code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
require 'spec_helper'
describe RubygemsController do
before do
@g = Factory.create :rubygem
@v = Factory.create :version, rubygem: @g
end
it 'should #show successfully' do
tr = Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id
get :show, id: @g.name
response.should be_successful
end
describe '' do
render_views
it "should redirect if there are no test results" do
get :show, id: @g.name
response.body.should match(/Nothing to see here!/)
end
end
it 'should route to the root url when showing a gem that does not exist' do
get :show, id: 'foo'
response.should be_redirect
flash[:notice].should == "Sorry, there's no data for foo yet."
response.should redirect_to root_path
end
it 'should respond to json requests' do
10.times { Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id }
get :show, id: @g.name, format: 'json'
response.should be_success
response.body.should == @g.to_json(methods: [:pass_count, :fail_count], include: { versions: {methods: [:pass_count, :fail_count], include: :test_results} } )
end
it 'should be successful when the rubygem is not found' do
get :show, id: 'somegem', format: 'json'
response.should be_success
response.body.should == '{}'
end
describe "When there is a platform parameter" do
render_views
before do
10.times do
v = Factory.create :version, rubygem: @g
Factory.create :test_result, version: v, rubygem: @g, platform: "ruby"
Factory.create :test_result, version: v, rubygem: @g, platform: "jruby"
end
@g2 = Factory.create :rubygem
@v2 = Factory.create :version, rubygem: @g2
Factory.create :test_result, version: @v2, rubygem: @g2, platform: "jruby"
end
it "should #show if there are tests for that platform" do
get :show, id: @g.name, platform: "ruby"
response.should be_successful
end
it "should not omit valid platforms if one is selected" do
get :show, id: @g.name, platform: "ruby"
response.should be_successful
response.body.should match(%r!<option[^>]*>jruby</option>!)
end
it "should redirect if there are no tests for that platform" do
get :show, id: @g.name, platform: "rbx"
response.body.should match(/Nothing to see here!/)
end
it "should have the right platform selected when there is only one platform" do
get :show, id: @g.name, platform: "jruby"
response.should be_success
response.body.should match(%r!<option value="[^\"]+" selected="selected">jruby</option>!i)
end
end
describe "datatables paging" do
before do
@datatables_params = {
"rubygem_id"=> @g.name,
"format"=>"json",
"sEcho"=>"3",
"iColumns"=>"7",
"sColumns"=>"",
"iDisplayStart"=>"0",
"iDisplayLength"=>"10",
"sNames"=>",,,,,,",
"sSearch"=>"",
"bRegex"=>"false",
"sSearch_0"=>"",
"bRegex_0"=>"false",
"bSearchable_0"=>"true",
"sSearch_1"=>"",
"bRegex_1"=>"false",
"bSearchable_1"=>"true",
"sSearch_2"=>"",
"bRegex_2"=>"false",
"bSearchable_2"=>"true",
"sSearch_3"=>"",
"bRegex_3"=>"false",
"bSearchable_3"=>"true",
"sSearch_4"=>"",
"bRegex_4"=>"false",
"bSearchable_4"=>"true",
"sSearch_5"=>"",
"bRegex_5"=>"false",
"bSearchable_5"=>"true",
"sSearch_6"=>"",
"bRegex_6"=>"false",
"bSearchable_6"=>"true",
"iSortingCols"=>"1",
"iSortCol_0"=>"0",
"sSortDir_0"=>"asc",
"bSortable_0"=>"true",
"bSortable_1"=>"true",
"bSortable_2"=>"true",
"bSortable_3"=>"true",
"bSortable_4"=>"true",
"bSortable_5"=>"true",
"bSortable_6"=>"true"}
end
it "should handle datatables splatter of parameters with show_paged" do
t = Array.new(20).collect { |x| Factory.create :test_result, version: @v, rubygem: @g }
expected_response = { iTotalRecords: 20, iTotalDisplayRecords: 20, aaData: t.slice(0..9).collect(&:datatables_attributes) }.to_json
get :show_paged, @datatables_params
response.should be_successful
response.body.should == expected_response
end
describe "should search" do
before do
@params = @datatables_params.clone
end
it 'pass or fail' do
@params['sSearch'] = 'pass'
t = Factory.create :test_result, rubygem: @g, version: @v, result: true
expected_response = {iTotalRecords: 1, iTotalDisplayRecords: 1, aaData: [t.datatables_attributes]}.to_json
get :show_paged, @params
response.should be_successful
response.body.should == expected_response
end
end
describe "should honor sorting in for" do
before do
@params = @datatables_params.clone
end
describe "result" do
it "ascending" do
@params['iSortCol_0'] = 0
@params['sSortDir_0'] = 'asc'
Array.new(5).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g }
Array.new(5).collect { |x| Factory.create :test_result, result: false, version: @v, rubygem: @g }
Array.new(3).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g }
get :show_paged, @params
r = JSON::parse response.body
r['aaData'].slice(0..4).collect { |x| x[0].should match(/FAIL/) }
r['aaData'].slice(5..12).collect { |x| x[0].should match(/PASS/) }
end
it "descending" do
@params['iSortCol_0'] = 0
@params['sSortDir_0'] = 'desc'
Array.new(5).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g }
Array.new(5).collect { |x| Factory.create :test_result, result: false, version: @v, rubygem: @g }
Array.new(3).collect { |x| Factory.create :test_result, result: true, version: @v, rubygem: @g }
get :show_paged, @params
r = JSON::parse response.body
r['aaData'].slice(0..7).collect { |x| x[0].should match(/PASS/) }
r['aaData'].slice(8..12).collect { |x| x[0].should match(/FAIL/) }
end
end
describe "gem version" do
it "ascending" do
@params['iSortCol_0'] = 1
@params['sSortDir_0'] = 'asc'
v1 = Factory.create :version, number: '0.1.0'
v3 = Factory.create :version, number: '1.2.0'
v2 = Factory.create :version, number: '0.2.0'
Array.new(5).collect { |x| Factory.create :test_result, result: true, version: v1, rubygem: @g }
Array.new(5).collect { |x| Factory.create :test_result, result: false, version: v3, rubygem: @g }
Array.new(3).collect { |x| Factory.create :test_result, result: true, version: v2, rubygem: @g }
get :show_paged, @params
r = JSON::parse response.body
r['aaData'].slice(0..4).collect { |x| x[1].should match(/0.1.0/) }
r['aaData'].slice(5..7).collect { |x| x[1].should match(/0.2.0/) }
r['aaData'].slice(8..9).collect { |x| x[1].should match(/1.2.0/) }
end
it "descending" do
@params['iSortCol_0'] = 1
@params['sSortDir_0'] = 'desc'
v1 = Factory.create :version, number: '0.1.0'
v3 = Factory.create :version, number: '1.2.0'
v2 = Factory.create :version, number: '0.2.0'
Array.new(5).collect { |x| Factory.create :test_result, result: true, version: v1, rubygem: @g }
Array.new(5).collect { |x| Factory.create :test_result, result: false, version: v3, rubygem: @g }
Array.new(3).collect { |x| Factory.create :test_result, result: true, version: v2, rubygem: @g }
get :show_paged, @params
r = JSON::parse response.body
r['aaData'].slice(0..4).collect { |x| x[1].should match(/1.2.0/) }
r['aaData'].slice(5..7).collect { |x| x[1].should match(/0.2.0/) }
r['aaData'].slice(8..10).collect { |x| x[1].should match(/0.1.0/) }
end
end
end
end
end
| capoferro/gem-testers | spec/controllers/rubygems_controller_spec.rb | Ruby | mit | 8,293 |
using System;
using System.IO;
namespace Pulse.Core
{
/// <summary>
/// НЕ потокобезопасный!
/// </summary>
public sealed class StreamSegment : Stream
{
private long _offset, _length;
public readonly Stream BaseStream;
public StreamSegment(Stream stream, long offset, long length, FileAccess access)
{
Exceptions.CheckArgumentNull(stream, "stream");
if (offset < 0 || offset >= stream.Length)
throw new ArgumentOutOfRangeException("offset", offset, "Смещение выходит за границы потока.");
if (offset + length > stream.Length)
throw new ArgumentOutOfRangeException("length", length, "Недопустимая длина.");
_offset = offset;
_length = length;
BaseStream = stream;
switch (access)
{
case FileAccess.Read:
BaseStream.Position = _offset;
break;
case FileAccess.Write:
BaseStream.Position = _offset;
break;
default:
BaseStream.Seek(_offset, SeekOrigin.Begin);
break;
}
}
public override bool CanRead
{
get { return BaseStream.CanRead; }
}
public override bool CanSeek
{
get { return BaseStream.CanSeek; }
}
public override bool CanWrite
{
get { return BaseStream.CanWrite; }
}
public override long Length
{
get { return _length; }
}
public override long Position
{
get { return BaseStream.Position - _offset; }
set { BaseStream.Position = value + _offset; }
}
public override void Flush()
{
BaseStream.Flush();
}
public override long Seek(long offset, SeekOrigin origin)
{
switch (origin)
{
case SeekOrigin.Begin:
Position = offset;
break;
case SeekOrigin.Current:
Position += offset;
break;
case SeekOrigin.End:
Position = Length + offset;
break;
}
return Position;
}
public void SetOffset(long value)
{
_offset = value;
}
public override void SetLength(long value)
{
_length = value;
}
public override int Read(byte[] buffer, int offset, int count)
{
return BaseStream.Read(buffer, offset, (int)Math.Min(count, Length - Position));
}
public override void Write(byte[] buffer, int offset, int count)
{
BaseStream.Write(buffer, offset, count);
}
}
} | kidaa/Pulse | Pulse.Core/Components/StreamSegment.cs | C# | mit | 3,012 |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: '',
didInsertElement: function() {
this.startPoppover();
},
willDestroyElement: function() {
this.dismissPoppover();
},
startPoppover: function() {
var options = this.getPoppoverOptions();
Ember.$(function() {
Ember.$('[data-toggle="popover"]').popover(options);
});
},
getPoppoverOptions: function() {
var template = Ember.$('.poppover-template').innerHTML;
var content = Ember.$('.poppover-content').html();
return {
template: template,
placement: 'right',
title: 'Download Tip',
trigger: 'hover',
content: content,
html: true
};
},
dismissPoppover: function() {
Ember.$('[data-toggle="popover"]').popover('hide');
}
});
| iorrah/you-rockstar | app/components/resume/yr-download-tips.js | JavaScript | mit | 806 |
#ifndef _RELLIK_H_
#define _RELLIK_H_
#include "gametime.h"
typedef struct rellik Rellik;
Rellik *rellik_Create();
void rellik_Destroy(Rellik *self);
void rellik_Initialize(Rellik *self);
void rellik_Update(Rellik *self, GameTime gameTime);
void rellik_Render(Rellik *self);
#endif
| srakowski/rellik | src/Rellik/rellik.h | C | mit | 290 |
header {
width: 100%;
color: #fff;
text-align: center;
}
.container {
width: 80%;
margin: 0 auto;
}
.brand {
background: linear-gradient(-225deg, #2c5499, #3e97e6);
padding: 30px 0;
}
.brand img {
cursor: pointer;
}
h1 {
font-size: 3em;
font-weight: normal;
line-height: 60px;
cursor: pointer;
display: inline-block;
}
h3 {
font-size: 1.375em;
font-weight: normal;
color: #bfd7ff;
line-height: 30px;
}
.search-box {
position: relative;
width: 30%;
min-width: 300px;
margin: 15px auto;
}
#search-field {
width: 100%;
background: url(../../../assets/img/icon-search-32px.svg) no-repeat 16px 16px, rgba(255,255,255,0.4);
border: none;
font-size: 1.5em;
color: rgba(62, 151, 230, 0.87);;
padding: 16px 20px;
}
#search-field:focus,
#search-field:valid {
background: url(../../../assets/img/icon-search-32px.svg) no-repeat 16px 16px, #fff;
}
.search-box label {
position: absolute;
top: 16px;
left: 54px;
font-size: 1.5em;
color: #fff;
cursor: text;
}
#search-field:focus + label,
#search-field:valid + label {
display: none;
}
.brand a,
.brand a:active,
.brand a:visited {
text-transform: uppercase;
color: #fff;
font-size: 0.875em;
}
.brand a:hover {
opacity: 0.7;
}
.divider
{
background: #2c5499;
font-size: 1.25em;
color: rgba(255, 255, 255, 0.7);
line-height: 32px;
padding: 24px;
}
.container .page {
width: 100%;
margin-top: 30px;
}
.section-title {
font-size: 1.5em;
color: #78909C;
margin-bottom: 20px;
}
.card {
position: relative;
float: left;
height: 200px;
width: calc(33% - 30px);
background: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
padding: 24px;
margin: 15px;
margin-bottom: 28px;
cursor: pointer;
}
.card:last-child
{
margin-bottom: 45px;
}
.card:hover {
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
}
.no-results {
font-size: 1.5em;
width: 100%;
text-align: center;
padding: 50px 0;
}
.row {
clear: both;
padding: 0px;
margin: 0px;
}
.col {
display: block;
float: left;
margin-bottom: 30px;
padding-left: 30px;
}
.col:first-child {
padding-left: 0;
}
.col-3 {
width: 33%;
}
.publish-steps {
background: linear-gradient(45deg, #2c5499, #3e97e6);
text-align: center;
color: #fff;
padding-top: 30px;
padding-bottom: 10px;
}
.how-to {
font-size: 1.75em;
color: #bfd7ff;
margin-bottom: 30px;
}
.step-number {
width: 64px;
height: 64px;
float: left;
background: #fff;
border-radius: 50%;
font-size: 1.75em;
color: #2c5499;
line-height: 64px;
margin-right: 16px;
}
.step-content {
display: table-cell;
vertical-align: middle;
height: 64px;
font-size: 1.25em;
text-align: left;
margin-left: 24px;
}
@media only screen and (max-width: 1200px) {
.container {
width: 90%;
}
.card {
width: calc(50% - 30px);
}
}
@media only screen and (max-width: 1020px) {
.col,
.col:first-child {
padding-left: 10px;
padding-right: 10px;
}
.col-3 {
width: 100%;
}
}
@media only screen and (max-width: 768px) {
.container {
width: 100%;
}
.card {
width: calc(100% - 30px);
}
}
| k7moorthi/package-browser | src/app/pages/home/home.component.css | CSS | mit | 3,291 |
FROM debian:8.2
MAINTAINER Stuart Ellis <[email protected]>
ENV REFRESHED_AT 2015-09-09
ENV PYTHON_VERSION 3.4.2-2
RUN apt-get update && \
apt-get install -qy python3=$PYTHON_VERSION && \
rm -rf /var/lib/apt/lists/*
| stuartellis/stuartellis-docker-python3-baseimage | Dockerfile | Dockerfile | mit | 230 |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class TagsTableSeeder extends Seeder
{
/**
* Run the database seeding.
*/
public function run()
{
DB::table('tags')->truncate();
DB::table('tags')->insert([
[
'name' => 'Qnique',
'slug' => Str::slug('qnique'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Quilting',
'slug' => Str::slug('quilting'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Quilting Machine',
'slug' => Str::slug('quilting-machine'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Sewing Machine',
'slug' => Str::slug('sewing-machine'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Expert Quilter',
'slug' => Str::slug('expert-quilter'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Quilting Tutorial',
'slug' => Str::slug('quilting-tutorial'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Hand Quilting',
'slug' => Str::slug('hand-quilting'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Hand Quilting Frame',
'slug' => Str::slug('hand-quilting-frame'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Quilting Hoop',
'slug' => Str::slug('quilting-hoop'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Quilting Lap Hoop',
'slug' => Str::slug('quilting-lap-hoop'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Grace',
'slug' => Str::slug('grace'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Grace Company',
'slug' => Str::slug('grace-company'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Grace Frame',
'slug' => Str::slug('grace-frame'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Grace Manufacturing',
'slug' => Str::slug('grace-manufacturing'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
[
'name' => 'Affordable Programmer',
'slug' => Str::slug('affordable-programmer'),
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
'lang' => 'en',
],
]);
}
}
| madsynn/LaraMaker | .temp/seeds/TagsTableSeeder.php | PHP | mit | 4,116 |
/*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
using System;
using System.Diagnostics;
using Microsoft.CodeAnalysis;
using SonarAnalyzer.Helpers;
using SonarLint.VisualStudio.Integration.Vsix.Suppression;
namespace SonarLint.VisualStudio.Integration.Vsix
{
// This workflow affects only the VSIX Analyzers
internal class SonarAnalyzerConnectedWorkflow : SonarAnalyzerWorkflowBase
{
private readonly IRoslynSuppressionHandler suppressionHandler;
public SonarAnalyzerConnectedWorkflow(Workspace workspace, IRoslynSuppressionHandler suppressionHandler)
: base(workspace)
{
if (suppressionHandler == null)
{
throw new ArgumentNullException(nameof(suppressionHandler));
}
this.suppressionHandler = suppressionHandler;
SonarAnalysisContext.ReportDiagnostic = VsixAnalyzerReportDiagnostic;
}
internal /* for testing purposes */ void VsixAnalyzerReportDiagnostic(IReportingContext context)
{
Debug.Assert(context.SyntaxTree != null, "Not expecting to be called with a null SyntaxTree");
Debug.Assert(context.Diagnostic != null, "Not expecting to be called with a null Diagnostic");
Debug.Assert(GetProjectNuGetAnalyzerStatus(context.SyntaxTree) == ProjectAnalyzerStatus.NoAnalyzer,
"Not expecting to be called when project contains any SonarAnalyzer NuGet");
if (this.suppressionHandler.ShouldIssueBeReported(context.SyntaxTree, context.Diagnostic))
{
context.ReportDiagnostic(context.Diagnostic);
}
}
}
}
| SonarSource-VisualStudio/sonarlint-visualstudio | src/Integration.Vsix/Delegates/SonarAnalyzerConnectedWorkflow.cs | C# | mit | 2,486 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* SoundcloudSearch Schema
*/
var SoundcloudSearchSchema = new Schema({
// SoundcloudSearch model fields
// ...
search: {
type: String,
required: 'There must be a search term',
trim: true
},
result: {
type: Object
},
created: {
type: Date,
default: Date.now
}
});
mongoose.model('SoundcloudSearch', SoundcloudSearchSchema); | bhops/Music | app/models/soundcloud-search.server.model.js | JavaScript | mit | 463 |
---
layout: home
title: All Posts
description: "An archive of posts."
comments: false
---
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<article>
<h2 id="{{ this_year }}-ref">{{ this_year }}</h2>
<ul>
{% endif %}
<li class="entry-title"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>
{% if forloop.last %}
</ul>
</article>
{% else %}
{% if this_year != next_year %}
</ul>
</article>
<article>
<h2 id="{{ next_year }}-ref" class="year-heading">{{next_year}}</h2>
<ul>
{% endif %}
{% endif %}
{% endfor %} | Zihin/zihin.github.io | posts.html | HTML | mit | 778 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.12.0 / io - 3.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
io
<small>
3.3.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-02 09:40:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 09:40:27 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.12.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/clarus/io"
dev-repo: "git+https://github.com/clarus/io.git"
bug-reports: "https://github.com/clarus/io/issues"
authors: ["Guillaume Claret"]
license: "MIT"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Io"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
synopsis: "A library for effects in Coq"
flags: light-uninstall
url {
src: "https://github.com/coq-io/io/archive/3.3.0.tar.gz"
checksum: "md5=0c5b884e9aabf39239fa42f8ae7ccda1"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-io.3.3.0 coq.8.12.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.12.0).
The following dependencies couldn't be met:
- coq-io -> coq < 8.6~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-io.3.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.12.0/io/3.3.0.html | HTML | mit | 6,502 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="lens.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/kineticjs/4.7.2/kinetic.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.min.js"></script>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" >
</head>
<body onload="startup()">
<div id="main">
<div id="toolbar" align="center">
<div id="lensgroup" title="Drag and Drop upto two lenses">
<div id="labels">Lens</div>
<div id="lens" ><img id="lense0" name="convex_lense" class="lenses" width=100 height=100 src="Images/100b.png"></div>
<div id="lens"><img id="lense1" name="concave_lense" class="lenses" width=100 height=100 src="Images/100a.png"></div>
<div id="lens" ><img id="lense2" name="plano_convex_lense" class="lenses" width=100 height=100 src="Images/100plano.png"></div>
<div id="lens"><img id="lense3" name="plano_concave_lense" class="lenses" width=100 height=100 src="Images/plano100.png"></div>
<div id="lens" ><img id="lense4" name="meniscus_lense" class="lenses" width=100 height=100 src="Images/100po.png"></div>
</div></div>
<div id="container" align="center"></div>
<div id="toolbar" align="center">
<div id="objectgroup" title="Click one of these objects" >
<div id="labels">Objects</div>
<div id="object"><img id="object_arrow" width=100% height=100% src="Images/arr.png"></div>
<div id="object"><img id="object_triangle" width=100% height=100% src="Images/triangle.png"></div>
<div id="object"><img id="object_square" width=100% height=100% src="Images/box.png"></div>
</div>
<div id="labels">Help</div>
<div id="help1"><img id="help" width=100% height=100% src="Images/help.png"></div>
</div>
</div>
<div class="overlay-bg">
</div>
<div class="overlay-content popup1">
<p># In the toolbar there are five type of lenses avaiable. <br /><br />
# <b>Drag & Drop</b> the lens to the experiment area to place the lens <br /><br />
# <b>Click</b> on the Object to place the object in experimental area <br /><br />
# You can add upto <b>two lenses</b> , after added two lenses you can <b>replace</b> the lens by dragging the wanted lens near to the existing lens.<br /><br />
# You can <b>Drag</b> the lenses to get ray diagram after adding <b>second lens</b> <br /><br />
# <b>Double click</b> on the lens to remove the lens from the experimental area.<br /><br />
# There are three types of objects are available here <b>Arrow</b>, <b>Triangle</b> and <b>Rectangle</b>
</p>
<button class="close-btn">Close</button>
</div>
</body>
</html>
| Opt-Sim/Opt-Sim | Opt-Sim/lens_experiment.html | HTML | mit | 2,859 |
{% extends 'base.html' %}
{% block body %}
<div>
rest: {{ restaurant.name }}
</div>
{% endblock %} | wenshin/gulosity | gulosity/apps/restaurant/templates/restaurant/owner_page.html | HTML | mit | 101 |
import random
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
_largesize = 300
def __init__(self, head):
self.head = head
self.lsize = 0
while head.next:
head = head.next
self.lsize += 1
self.m1_idx = None
self.m2_idx = None
if self.lsize > self._largesize:
self.m1_idx = self.lsize / 3 # start from 1/3
self.m1 = self._getN(self.m1_idx)
self.m2_idx = self.m1_idx * 2 # start from 2/3
self.m2 = self._getN(self.m2_idx)
def _getN(self, n):
n -= 1
p = self.head
while n:
p = p.next
n -= 1
return p
def getRandom(self):
def _get(delta, start):
p = start
while delta:
p = p.next
delta -= 1
return p.val
nextpos = random.randint(0, self.lsize)
if not self.m1_idx:
return _get(nextpos, self.head)
if nextpos < self.m1_idx:
val = _get(nextpos, self.head)
elif nextpos < self.m2_idx:
val = _get(nextpos - self.m1_idx, self.m1)
else:
val = _get(nextpos - self.m2_idx, self.m2)
return val
| daicang/Leetcode-solutions | 382-linked-list-random-node.py | Python | mit | 1,372 |
package db
import (
"io/ioutil"
"os"
. "fmt"
"strings"
. "github.com/yak-labs/chirp-lang"
"github.com/yak-labs/smilax-web/table/levi"
)
/*
table get Site Table Row -> []Value
table set Site Table Row []Value
table match Site Table RowPattern ValuePattern -> []{row value}
*/
var Lev = levi.New("leveldb.dat")
var data_dir = os.Getenv("SMILAX_DATA_DIR")
var log_file = Sprintf("%s/table_log.txt", data_dir)
func init() {
if len(data_dir) == 0 {
data_dir = "."
}
}
func cmdTableLoad(fr *Frame, argv []T) T {
Arg0(argv)
TableLoad()
return Empty
}
func cmdTableGet(fr *Frame, argv []T) T {
site, table, row := Arg3(argv)
return MkList(TableGet(site.String(), table.String(), row.String()))
}
func cmdTableSet(fr *Frame, argv []T) T {
site, table, row, values := Arg4(argv)
TableSet(site.String(), table.String(), row.String(), values.String())
return Empty
}
func cmdTableMatch(fr *Frame, argv []T) T {
site, table, rowPat, valuePat := Arg4(argv)
return MkList(TableMatch(site.String(), table.String(), rowPat.String(), valuePat.String()))
}
func TableLoad() {
// Start with a fresh levelDB database.
Lev.Close()
err := os.RemoveAll("leveldb.data")
if err != nil {
panic(err)
}
Lev = levi.New("leveldb.dat")
text, err := ioutil.ReadFile(log_file)
if err != nil {
panic(err)
}
lines := strings.Split(string(text), "\n")
for _, line := range lines {
line = strings.Trim(line, " \t")
if line == "" || strings.HasPrefix(line, "#") {
continue
}
words := ParseList(line)
leviSet(words[0].String(), words[1].String(), words[2].String(), words[3].String())
}
}
func TableGet(site, table, row string) []T {
key := Sprintf("/%s/%s/%s", site, table, row)
vals := Lev.Get(key)
return ParseList(vals)
}
func leviSet(site, table, row, values string) {
key := Sprintf("/%s/%s/%s", site, table, row)
Lev.Set(key, values)
}
func TableSet(site, table, row, values string) {
leviSet(site, table, row, values)
line := MkList(
[]T {
MkString(site),
MkString(table),
MkString(row),
MkString(values),
}).String()
line = Sprintf("%s\n", line)
f, err := os.OpenFile(log_file, os.O_APPEND|os.O_WRONLY, 0600)
if err != nil {
panic(err)
}
defer f.Close()
if _, err = f.WriteString(line); err != nil {
panic(err)
}
}
func TableMatch(site, table, rowPat, valuePat string) []T {
threeSlashLen := len(site) + len(table) + 3
keyPattern := Sprintf("/%s/%s/%s", site, table, rowPat)
prefix := keyPattern
star := strings.IndexAny(prefix, "*[")
if star >= 0 {
prefix = prefix[:star] // Shorten prefix, stopping before '*'.
}
zz := make([]T, 0)
it := Lev.Find(prefix)
// for it.Next() // IF mappy
for _ = it; it.Valid() ; it.Next() {
key := string(it.Key())
value := string(it.Value())
if !strings.HasPrefix(key, prefix) {
break // Gone too far.
}
if StringMatch(keyPattern, key) {
z := make([]T, 0, 0)
vv := ParseList(value)
for _, v := range vv {
if StringMatch(valuePat, v.String()) {
z = append(z, v)
}
}
if len(z) > 0 {
zz = append(zz, MkList([]T{MkString(key[threeSlashLen:]), MkList(z)}))
}
}
}
if err := it.GetError(); err != nil {
panic(err)
}
return zz
}
var tableEnsemble = []EnsembleItem{
EnsembleItem{Name: "load", Cmd: cmdTableLoad},
EnsembleItem{Name: "get", Cmd: cmdTableGet},
EnsembleItem{Name: "set", Cmd: cmdTableSet},
EnsembleItem{Name: "match", Cmd: cmdTableMatch},
}
func init() {
if Unsafes == nil {
Unsafes = make(map[string]Command, 333)
}
Unsafes["table"] = MkEnsemble(tableEnsemble)
}
| yak-labs/smilax-web | table/table.go | GO | mit | 3,563 |
package com.github.wovnio.wovnjava;
import java.util.HashMap;
import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;
import org.easymock.EasyMock;
import java.net.URL;
import java.net.MalformedURLException;
import junit.framework.TestCase;
public class HeadersTest extends TestCase {
private Lang japanese;
protected void setUp() throws Exception {
this.japanese = Lang.get("ja");
}
private static FilterConfig mockConfigPath() {
HashMap<String, String> parameters = new HashMap<String, String>() {{
put("urlPattern", "path");
}};
return TestUtil.makeConfigWithValidDefaults(parameters);
}
private static FilterConfig mockConfigSubdomain() {
HashMap<String, String> parameters = new HashMap<String, String>() {{
put("urlPattern", "subdomain");
}};
return TestUtil.makeConfigWithValidDefaults(parameters);
}
private static FilterConfig mockConfigQuery() {
HashMap<String, String> parameters = new HashMap<String, String>() {{
put("urlPattern", "query");
put("defaultLang", "en");
put("supportedLangs", "en,ja,zh-CHS");
}};
return TestUtil.makeConfigWithValidDefaults(parameters);
}
public void testHeaders() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertNotNull(h);
}
public void testGetRequestLangPath() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals(this.japanese, h.getRequestLang());
}
public void testGetRequestLangSubdomain() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/test");
FilterConfig mockConfig = mockConfigSubdomain();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals(this.japanese, h.getRequestLang());
}
public void testGetRequestLangQuery() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/test?wovn=ja");
FilterConfig mockConfig = mockConfigQuery();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals(this.japanese, h.getRequestLang());
}
public void testConvertToDefaultLanguage__PathPattern() throws ConfigurationError, MalformedURLException {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/test");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
URL url = new URL("http://example.com/ja/test");
assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString());
}
public void testConvertToDefaultLanguage__SubdomainPattern() throws ConfigurationError, MalformedURLException {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/test");
FilterConfig mockConfig = mockConfigSubdomain();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
URL url = new URL("http://ja.example.com/test");
assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString());
}
public void testConvertToDefaultLanguage__QueryPattern() throws ConfigurationError, MalformedURLException {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/test?wovn=ja");
FilterConfig mockConfig = mockConfigQuery();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
URL url = new URL("http://example.com/test?wovn=ja");
assertEquals("http://example.com/test", h.convertToDefaultLanguage(url).toString());
}
public void testConvertToDefaultLanguage__PathPatternWithSitePrefixPath() throws ConfigurationError, MalformedURLException {
Headers h = createHeaders("/global/en/foo", "/global/", "");
URL url;
url = new URL("http://site.com/global/en/");
assertEquals("http://site.com/global/", h.convertToDefaultLanguage(url).toString());
url = new URL("http://site.com/en/global/");
assertEquals("http://site.com/en/global/", h.convertToDefaultLanguage(url).toString());
}
public void testLocationWithDefaultLangCode() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/signin");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("http://example.com/", h.locationWithLangCode("http://example.com/"));
assertEquals("https://example.com/", h.locationWithLangCode("https://example.com/"));
assertEquals("https://example.com/dir/file", h.locationWithLangCode("https://example.com/dir/file"));
}
public void testLocationWithPath() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/dir/signin");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("http://example.com/ja/", h.locationWithLangCode("http://example.com/"));
assertEquals("https://example.com/ja/", h.locationWithLangCode("https://example.com/"));
assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("https://example.com/dir/file"));
assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file"));
assertEquals("https://example.com/ja/", h.locationWithLangCode("/"));
assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("/dir/file"));
assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("./file"));
assertEquals("https://example.com/ja/file", h.locationWithLangCode("../file"));
assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../file"));
}
public void testLocationWithPathAndTrailingSlash() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/ja/dir/signin/");
FilterConfig mockConfig = mockConfigPath();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("https://example.com/ja/dir/signin/file", h.locationWithLangCode("./file"));
assertEquals("https://example.com/ja/dir/file", h.locationWithLangCode("../file"));
assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../file"));
assertEquals("https://example.com/ja/file", h.locationWithLangCode("../../../file"));
}
public void testLocationWithPathAndTopLevel() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/location.jsp?wovn=ja");
FilterConfig mockConfig = mockConfigQuery();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("https://example.com/index.jsp?wovn=ja", h.locationWithLangCode("./index.jsp"));
}
public void testLocationWithQuery() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com/dir/signin?wovn=ja");
FilterConfig mockConfig = mockConfigQuery();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("http://example.com/?wovn=ja", h.locationWithLangCode("http://example.com/"));
assertEquals("https://example.com/?wovn=ja", h.locationWithLangCode("https://example.com/"));
assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("https://example.com/dir/file"));
assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file"));
assertEquals("https://example.com/?wovn=ja", h.locationWithLangCode("/"));
assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("/dir/file"));
assertEquals("https://example.com/dir/file?wovn=ja", h.locationWithLangCode("./file"));
assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../file"));
assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../../file"));
assertEquals("https://example.com/file?q=hello&wovn=ja", h.locationWithLangCode("../../file?q=hello&wovn=zh-CHS"));
assertEquals("https://example.com/file?wovn=ja", h.locationWithLangCode("../../file?wovn=zh-CHS"));
}
public void testLocationWithSubdomain() throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://ja.example.com/dir/signin");
FilterConfig mockConfig = mockConfigSubdomain();
Settings s = new Settings(mockConfig);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
Headers h = new Headers(mockRequest, s, ulph);
assertEquals("http://ja.example.com/", h.locationWithLangCode("http://example.com/"));
assertEquals("https://ja.example.com/", h.locationWithLangCode("https://example.com/"));
assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("https://example.com/dir/file"));
assertEquals("https://other.com/dir/file", h.locationWithLangCode("https://other.com/dir/file"));
assertEquals("https://fr.example.com/dir/file", h.locationWithLangCode("https://fr.example.com/dir/file"));
assertEquals("https://ja.example.com/", h.locationWithLangCode("/"));
assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("/dir/file"));
assertEquals("https://ja.example.com/dir/file", h.locationWithLangCode("./file"));
assertEquals("https://ja.example.com/file", h.locationWithLangCode("../file"));
assertEquals("https://ja.example.com/file", h.locationWithLangCode("../../file"));
}
public void testLocationWithSitePrefixPath() throws ConfigurationError {
Headers h = createHeaders("/global/ja/foo", "/global/", "");
assertEquals("http://example.com/", h.locationWithLangCode("http://example.com/"));
assertEquals("http://example.com/global/ja/", h.locationWithLangCode("http://example.com/global/"));
assertEquals("https://example.com/global/ja/", h.locationWithLangCode("https://example.com/global/"));
assertEquals("https://example.com/global/ja/", h.locationWithLangCode("https://example.com/global/ja/"));
assertEquals("https://example.com/global/ja/th/", h.locationWithLangCode("https://example.com/global/th/")); // `th` not in supportedLangs
assertEquals("https://example.com/global/ja/tokyo/", h.locationWithLangCode("https://example.com/global/tokyo/"));
assertEquals("https://example.com/global/ja/file.html", h.locationWithLangCode("https://example.com/global/file.html"));
assertEquals("https://example.com/global/ja/file.html", h.locationWithLangCode("https://example.com/pics/../global/file.html"));
assertEquals("https://example.com/global/../../file.html", h.locationWithLangCode("https://example.com/global/../../file.html"));
assertEquals("https://example.com/tokyo/", h.locationWithLangCode("https://example.com/tokyo/"));
assertEquals("https://example.com/tokyo/global/", h.locationWithLangCode("https://example.com/tokyo/global/"));
assertEquals("https://example.com/ja/global/", h.locationWithLangCode("https://example.com/ja/global/"));
assertEquals("https://example.com/th/global/", h.locationWithLangCode("https://example.com/th/global/"));
assertEquals("https://example.com/th/", h.locationWithLangCode("https://example.com/th/"));
}
public void testGetIsValidRequest() throws ConfigurationError {
Headers h;
h = createHeaders("/", "global", "");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/global", "global", "");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/global/ja/foo", "global", "");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/ja/global/foo", "global", "");
assertEquals(false, h.getIsValidRequest());
}
public void testGetIsValidRequest__withIgnoredPaths() throws ConfigurationError {
Headers h;
h = createHeaders("/", "", "/admin,/wp-admin");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/user/admin", "", "/admin,/wp-admin");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/adminpage", "", "/admin,/wp-admin");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/admin", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/wp-admin/", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/wp-admin/page", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/ja/admin", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/ja/wp-admin/", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/en/admin", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/en/wp-admin/", "", "/admin,/wp-admin");
assertEquals(false, h.getIsValidRequest());
h = createHeaders("/city/wp-admin", "city", "/admin,/wp-admin");
assertEquals(true, h.getIsValidRequest());
h = createHeaders("/city/wp-admin", "city", "/city/admin,/city/wp-admin");
assertEquals(false, h.getIsValidRequest());
}
private Headers createHeaders(String requestPath, String sitePrefixPath, String ignorePaths) throws ConfigurationError {
HttpServletRequest mockRequest = MockHttpServletRequest.create("https://example.com" + requestPath);
HashMap<String, String> option = new HashMap<String, String>() {{
put("urlPattern", "path");
put("sitePrefixPath", sitePrefixPath);
put("ignorePaths", ignorePaths);
}};
Settings s = TestUtil.makeSettings(option);
UrlLanguagePatternHandler ulph = UrlLanguagePatternHandlerFactory.create(s);
return new Headers(mockRequest, s, ulph);
}
public void testGetHreflangUrlMap__PathPattern() throws ConfigurationError {
Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{
put("defaultLang", "en");
put("supportedLangs", "en,ja,fr");
put("urlPattern", "path");
put("sitePrefixPath", "/home");
}});
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123");
Headers sut = new Headers(request, settings, patternHandler);
HashMap<String, String> hreflangs = sut.getHreflangUrlMap();
assertEquals(3, hreflangs.size());
assertEquals("https://example.com/home?user=123", hreflangs.get("en"));
assertEquals("https://example.com/home/ja?user=123", hreflangs.get("ja"));
assertEquals("https://example.com/home/fr?user=123", hreflangs.get("fr"));
}
public void testGetHreflangUrlMap__QueryPattern() throws ConfigurationError {
Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{
put("defaultLang", "ja");
put("supportedLangs", "ko");
put("urlPattern", "query");
}});
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123");
Headers sut = new Headers(request, settings, patternHandler);
HashMap<String, String> hreflangs = sut.getHreflangUrlMap();
assertEquals(2, hreflangs.size());
assertEquals("https://example.com/home?user=123", hreflangs.get("ja"));
assertEquals("https://example.com/home?user=123&wovn=ko", hreflangs.get("ko"));
}
public void testGetHreflangUrlMap__SubdomainPattern__WithChineseSupportedLangs() throws ConfigurationError {
Settings settings = TestUtil.makeSettings(new HashMap<String, String>() {{
put("defaultLang", "ja");
put("supportedLangs", "ko,th, zh-CHT, zh-CHS");
put("urlPattern", "subdomain");
}});
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123");
Headers sut = new Headers(request, settings, patternHandler);
HashMap<String, String> hreflangs = sut.getHreflangUrlMap();
assertEquals(5, hreflangs.size());
assertEquals("https://example.com/home?user=123", hreflangs.get("ja"));
assertEquals("https://ko.example.com/home?user=123", hreflangs.get("ko"));
assertEquals("https://th.example.com/home?user=123", hreflangs.get("th"));
assertEquals("https://zh-CHT.example.com/home?user=123", hreflangs.get("zh-Hant"));
assertEquals("https://zh-CHS.example.com/home?user=123", hreflangs.get("zh-Hans"));
}
public void testIsSearchEngineBot_NoUserAgent_False() throws ConfigurationError {
String userAgent = null;
Settings settings = TestUtil.makeSettings();
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123", userAgent);
Headers sut = new Headers(request, settings, patternHandler);
assertEquals(false, sut.isSearchEngineBot());
}
public void testIsSearchEngineBot_OrdinaryUserAgent_False() throws ConfigurationError {
String userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.81 Safari/537.36";
Settings settings = TestUtil.makeSettings();
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123");
Headers sut = new Headers(request, settings, patternHandler);
assertEquals(false, sut.isSearchEngineBot());
}
public void testIsSearchEngineBot_SearchEngineBotUserAgent_True() throws ConfigurationError {
String userAgent = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)";
Settings settings = TestUtil.makeSettings();
UrlLanguagePatternHandler patternHandler = UrlLanguagePatternHandlerFactory.create(settings);
HttpServletRequest request = MockHttpServletRequest.create("https://example.com/home?user=123", userAgent);
Headers sut = new Headers(request, settings, patternHandler);
assertEquals(true, sut.isSearchEngineBot());
}
}
| WOVNio/wovnjava | src/test/java/com/github/wovnio/wovnjava/HeadersTest.java | Java | mit | 21,076 |
package eu.cyfronoid.core.configuration.evaluator;
import java.util.ArrayDeque;
public class Stack extends ArrayDeque<Double> {
private static final long serialVersionUID = 1L;
@Override
public void push(Double v) {
super.push(v);
}
@Override
public Double pop() {
Double v = super.pop();
return v;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("[");
for (Double v: this) {
builder.append(v);
builder.append(" ");
}
builder.append("]");
return builder.toString();
}
}
| widmofazowe/cyfronoid-core | src/eu/cyfronoid/core/configuration/evaluator/Stack.java | Java | mit | 694 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import os
from misura.canon import option
from misura.canon.option import get_typed_cols, get_insert_cmd, base_col_def, print_tree
import sqlite3
from misura.canon.tests import testdir
db = testdir + 'storage/tmpdb'
c1 = testdir + 'storage/Conf.csv'
def go(t):
o = option.Option(**{'handle': t, 'type': t})
o.validate()
return o
class SqlStore(unittest.TestCase):
@classmethod
def setUpClass(cls):
if os.path.exists(db):
os.remove(db)
cls.conn = sqlite3.connect(db, detect_types=sqlite3.PARSE_DECLTYPES)
st0 = option.CsvStore(kid='/base/')
st0.merge_file(c1)
st0.validate()
cls.desc = st0.desc
def test_get_typed_cols(self):
print(get_typed_cols(go('Integer')))
print(get_typed_cols(go('String')))
print(get_typed_cols(go('Point')))
print(get_typed_cols(go('Role')))
print(get_typed_cols(go('RoleIO')))
print(get_typed_cols(go('Log')))
print(get_typed_cols(go('Meta')))
def test_get_insert_cmd(self):
print(get_insert_cmd(go('Integer'), base_col_def))
print(get_insert_cmd(go('String'), base_col_def))
print(get_insert_cmd(go('Point'), base_col_def))
print(get_insert_cmd(go('Role'), base_col_def))
print(get_insert_cmd(go('RoleIO'), base_col_def))
print(get_insert_cmd(go('Log'), base_col_def))
print(get_insert_cmd(go('Meta'), base_col_def))
def test_column_definition(self):
s = option.SqlStore()
print(s.column_definition(go('Integer'))[1])
print(s.column_definition(go('String'))[1])
print(s.column_definition(go('Point'))[1])
print(s.column_definition(go('Role'))[1])
print(s.column_definition(go('RoleIO'))[1])
print(s.column_definition(go('Log'))[1])
print(s.column_definition(go('Meta'))[1])
def test_write_desc(self):
s = option.SqlStore()
s.cursor = self.conn.cursor()
s.write_desc(self.desc)
print('READING')
r = s.read_tree()
print(r)
print('print(tree\n', print_tree(r))
print('WRITING AGAIN')
s.write_tree(r)
print("READING AGAIN")
r = s.read_tree()
print(r)
print('print(tree2\n', print_tree(r))
# @unittest.skip('')
def test_tables(self):
st0 = option.CsvStore(kid='ciao')
st0.merge_file(c1)
st = option.SqlStore(kid='ciao')
st.desc = st0.desc
k0 = set(st.desc.keys())
cursor = self.conn.cursor()
st.write_table(cursor, 'conf1')
self.conn.commit()
cursor.execute('select handle from conf1')
r = cursor.fetchall()
k1 = set([eval(k[0]) for k in r])
self.assertEqual(k0, k1)
st2 = option.SqlStore(kid='ciao')
st2.read_table(cursor, 'conf1')
self.assertEqual(st.desc, st2.desc)
if __name__ == "__main__":
unittest.main()
| tainstr/misura.canon | misura/canon/option/tests/test_sqlstore.py | Python | mit | 3,011 |
/* Taken from the popular Visual Studio Vibrant Ink Schema */
.cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
.cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; }
.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
.cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; }
.cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; }
.cm-s-vibrant-ink .cm-keyword { color: #CC7832; }
.cm-s-vibrant-ink .cm-atom { color: #fdd733; }
.cm-s-vibrant-ink .cm-number { color: #FFEE98; }
.cm-s-vibrant-ink .cm-def { color: #8DA6CE; }
.cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D }
.cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D }
.cm-s-vibrant-ink .cm-operator { color: #888; }
.cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; }
.cm-s-vibrant-ink .cm-string { color: #A5C25C }
.cm-s-vibrant-ink .cm-string-2 { color: red }
.cm-s-vibrant-ink .cm-meta { color: #D8FA3C; }
.cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; }
.cm-s-vibrant-ink .cm-tag { color: #8DA6CE; }
.cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; }
.cm-s-vibrant-ink .cm-header { color: #FF6400; }
.cm-s-vibrant-ink .cm-hr { color: #AEAEAE; }
.cm-s-vibrant-ink .cm-link { color: blue; }
.cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; }
.cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;}
.cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
| djesuscc/portalcasting-repo | dist/css/codemirror/theme/vibrant-ink.css | CSS | mit | 1,720 |
// * ———————————————————————————————————————————————————————— * //
// * cli upload
// * uploads image by providing a link by running:
// * enduro upload http://www.imgur.com/asd.png
// * ———————————————————————————————————————————————————————— * //
var cli_upload = function () {}
// vendor dependencies
var Promise = require('bluebird')
// local dependencies
var logger = require(ENDURO_FOLDER + '/libs/logger')
var file_uploader = require(ENDURO_FOLDER + '/libs/admin_utilities/file_uploader')
// * ———————————————————————————————————————————————————————— * //
// * cli upload
// * generates object based on flag array
// *
// * @return {string} - url for uploaded link
// * ———————————————————————————————————————————————————————— * //
cli_upload.prototype.cli_upload = function (file_url) {
if (!file_url) {
logger.err('File url not specified\nUsage: $ enduro upload http://yourdomain.com/yourimage.png')
return Promise.reject()
}
return file_uploader.upload_by_url(file_url)
}
module.exports = new cli_upload()
| dmourato/mastercv | libs/cli_tools/cli_upload.js | JavaScript | mit | 1,479 |
import React from "react"
import Img from "gatsby-image"
import { StaticQuery, graphql } from "gatsby"
import html5 from "../images/html5.svg"
import js from "../images/javascript.svg"
import jQuery from "../images/jquery.svg"
import php from "../images/php.svg"
import python from "../images/python.svg"
import css3 from "../images/css3.svg"
import sass from "../images/sass.svg"
import react from "../images/react.svg"
import redux from "../images/redux.svg"
import angular from "../images/angular.svg"
import nodejs from "../images/nodejs.svg"
import express from "../images/express.svg"
import graphQL from "../images/graphql.svg"
import apollo from "../images/apollo.svg"
import laravel from "../images/laravel.svg"
import django from "../images/django.svg"
import ruby from "../images/ruby.svg"
import rails from "../images/rails.svg"
import firebase from "../images/firebase.svg"
import mongodb from "../images/mongodb.svg"
import postgresql from "../images/postgresql.svg"
const About = ({ id }) => (
<StaticQuery
query={graphql`
query AboutImgQuery {
aboutImg: file(relativePath: { eq: "towers.jpg" }) {
childImageSharp {
fluid(maxWidth: 1200) {
...GatsbyImageSharpFluid
}
}
}
}
`}
render={data => (
<section id={id} className="section cover">
<Img
title="About image"
alt="Towers"
fluid={data.aboutImg.childImageSharp.fluid}
style={{
borderBottom: "2px solid #0F2027",
position: "absolute",
left: 0,
top: 0,
width: "100%",
height: "100%",
}}
/>
<div className="overlay" />
<div className="about">
<h1 className="name mt-5">
<b>About Me</b>
</h1>
<div className="description mb-4">
<h5 className="greetings">
I'm a developer who is driven by the motivation to learn and
utilize all of the <br />
newest and leading software technologies, tools and frameworks.{" "}
<br />
Here are some of the technologies I have worked with:
</h5>
</div>
<div className="svg-container">
<div className="logo-container">
<a
href="https://rebrand.ly/w1zfk5"
target="_blank"
rel="noopener noreferrer"
>
<img src={html5} alt="html5" />
</a>
<h5>HTML</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/gpe80b"
target="_blank"
rel="noopener noreferrer"
>
<img src={css3} alt="css3" />
</a>
<h5>CSS</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/ac3zez"
target="_blank"
rel="noopener noreferrer"
>
<img src={sass} alt="sass" />
</a>
<h5>Sass</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/gdw8nf"
target="_blank"
rel="noopener noreferrer"
>
<img src={js} alt="js" />
</a>
<h5>JavaScript</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/t8q4kk"
target="_blank"
rel="noopener noreferrer"
>
<img src={jQuery} alt="jQuery" />
</a>
<h5>jQuery</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/5dmk0k"
target="_blank"
rel="noopener noreferrer"
>
<img src={php} alt="php" />
</a>
<h5>PHP</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/51v3f7"
target="_blank"
rel="noopener noreferrer"
>
<img src={ruby} alt="ruby" />
</a>
<h5>Ruby</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/u9f3bu"
target="_blank"
rel="noopener noreferrer"
>
<img src={python} alt="python" />
</a>
<h5>Python</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/4711zo"
target="_blank"
rel="noopener noreferrer"
>
<img src={react} alt="react" />
</a>
<h5>React</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/f4fdtb"
target="_blank"
rel="noopener noreferrer"
>
<img src={redux} alt="redux" />
</a>
<h5>Redux</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/0af3pn"
target="_blank"
rel="noopener noreferrer"
>
<img src={angular} alt="angular" />
</a>
<h5>Angular</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/fno5hy"
target="_blank"
rel="noopener noreferrer"
>
<img src={nodejs} alt="nodejs" />
</a>
<h5>Node</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/8pwvla"
target="_blank"
rel="noopener noreferrer"
>
<img src={express} alt="express" />
</a>
<h5>Express</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/chgco7"
target="_blank"
rel="noopener noreferrer"
>
<img src={graphQL} alt="graphQL" />
</a>
<h5>GraphQL</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/s8v7qq"
target="_blank"
rel="noopener noreferrer"
>
<img src={apollo} alt="apollo" />
</a>
<h5>Apollo</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/jm3gu8"
target="_blank"
rel="noopener noreferrer"
>
<img src={laravel} alt="laravel" />
</a>
<h5>Laravel</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/hbkv6c"
target="_blank"
rel="noopener noreferrer"
>
<img src={django} alt="django" />
</a>
<h5>Django</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/71jw07"
target="_blank"
rel="noopener noreferrer"
>
<img src={rails} alt="rails" />
</a>
<h5>Ruby on Rails</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/8jg10f"
target="_blank"
rel="noopener noreferrer"
>
<img src={firebase} alt="firebase" />
</a>
<h5>Firebase</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/1lamx3"
target="_blank"
rel="noopener noreferrer"
>
<img src={mongodb} alt="mongodb" />
</a>
<h5>MongoDB</h5>
</div>
<div className="logo-container">
<a
href="https://rebrand.ly/az0ssm"
target="_blank"
rel="noopener noreferrer"
>
<img src={postgresql} alt="postgresql" />
</a>
<h5>PostgreSQL</h5>
</div>
</div>
<div className="arrow animated bounceInDown" />
</div>
</section>
)}
/>
)
export default About
| ajspotts/ajspotts.github.io | src/components/about.js | JavaScript | mit | 9,133 |
var debug = require('debug')('harmonyhubjs:client:login:hub')
var Client = require('node-xmpp-client')
var Q = require('q')
var util = require('../util')
/** PrivateFunction: getIdentity
* Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's
* web service to retrieve an identity token.
*
* Parameters:
* (String) hubhost - Hostname/IP of the Harmony hub to connect.
* (int) hubport - Optional. Port of the Harmony hub to connect. By default,
* this is set to 5222.
*
* Returns:
* (Q.promise) - The resolved promise passes the retrieved identity token.
*/
function getIdentity (hubhost, hubport) {
debug('retrieve identity by logging in as guest')
// [email protected] / guest
// [email protected]/gatorade
var deferred = Q.defer()
var iqId
var xmppClient = new Client({
jid: '[email protected]/gatorade',
password: 'guest',
host: hubhost,
port: hubport,
disallowTLS: true,
reconnect: true
})
xmppClient.on('online', function () {
debug('XMPP client connected')
var body = 'method=pair:name=harmonyjs#iOS6.0.1#iPhone'
var iq = util.buildIqStanza(
'get', 'connect.logitech.com', 'vnd.logitech.connect/vnd.logitech.pair',
body, 'guest')
iqId = iq.attr('id')
xmppClient.send(iq)
})
xmppClient.on('error', function (e) {
debug('XMPP client error', e)
xmppClient.end()
deferred.reject(e)
})
xmppClient.on('stanza', function (stanza) {
debug('received XMPP stanza: ' + stanza)
if (stanza.attrs.id === iqId.toString()) {
var body = stanza.getChildText('oa')
var response = util.decodeColonSeparatedResponse(body)
if (response.identity && response.identity !== undefined) {
debug('received identity token: ' + response.identity)
xmppClient.end()
deferred.resolve(response.identity)
} else {
debug('could not find identity token')
xmppClient.end()
deferred.reject(new Error('Did not retrieve identity.'))
}
}
})
return deferred.promise
}
/** PrivateFunction: loginWithIdentity
* After fetching an identity from the Harmony hub, this function creates an
* XMPP client using that identity. It returns a promise which, when resolved,
* passes that XMPP client.
*
* Parameters:
* (String) identity - Identity token to login to the Harmony hub.
* (String) hubhost - Hostname/IP of the Harmony hub to connect.
* (int) hubport - Optional. Port of the Harmony hub to connect. By default,
* this is set to 5222.
*
* Returns:
* (Q.promise) - When resolved, passes the logged in XMPP client, ready to
* communicate with the Harmony hub.
*/
function loginWithIdentity (identity, hubhost, hubport) {
debug('create xmpp client using retrieved identity token: ' + identity)
var deferred = Q.defer()
var jid = identity + '@connect.logitech.com/gatorade'
var password = identity
var xmppClient = new Client({
jid: jid,
password: password,
host: hubhost,
port: hubport,
disallowTLS: true
})
xmppClient.on('error', function (e) {
debug('XMPP login error', e)
xmppClient.end()
deferred.reject(e)
})
xmppClient.once('online', function () {
debug('XMPP client connected using identity token')
deferred.resolve(xmppClient)
})
return deferred.promise
}
/** Function: loginToHub
* Uses a userAuthToken to login to a Harmony hub.
*
* Parameters:
* (String) userAuthToken - A authentication token, retrieved from logitechs
* web service.
* (String) hubhost - Hostname/IP of the Harmony hub to connect.
* (int) hubport - Optional. Port of the Harmony hub to connect. By default,
* this is set to 5222.
*
* Returns:
* (Q.promise) - The final resolved promise will pass a fully authenticated
* XMPP client which can be used to communicate with the
* Harmony hub.
*/
function loginToHub (hubhost, hubport) {
debug('perform hub login')
hubport = hubport || 5222
return getIdentity(hubhost, hubport)
.then(function (identity) {
return loginWithIdentity(identity, hubhost, hubport)
})
}
module.exports = loginToHub
| swissmanu/harmonyhubjs-client | lib/login/hub.js | JavaScript | mit | 4,310 |
from players.player import player
from auxiliar.aux_plot import *
import random
from collections import deque
import sys
sys.path.append('..')
import tensorblock as tb
import numpy as np
import tensorflow as tf
# PLAYER REINFORCE RNN
class player_reinforce_rnn_2(player):
# __INIT__
def __init__(self):
player.__init__(self)
self.experiences = deque()
# CHOOSE NEXT ACTION
def act(self, state):
return self.calculate(state)
# CALCULATE NETWORK
def calculate(self, state):
size = len( self.experiences )
if size < self.NUM_FRAMES:
return self.create_random_action()
states = np.zeros( (self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) )
for i , j in enumerate( range( size - self.NUM_FRAMES , size ) ):
states[i] = self.experiences[j][1]
states = np.expand_dims( states, 0 )
output = np.squeeze( self.brain.run('Output', [['Observation', states]]) )
action = np.random.choice( np.arange(len(output)), p=output )
return self.create_action(action)
# PREPARE NETWORK
def operations(self):
# Action Placeholders
self.brain.addInput( shape = [ None , self.num_actions ] , name = 'Actions' )
self.brain.addInput( shape = [ None ] , name = 'Target' )
# Operations
self.brain.addOperation( function = tb.ops.pgcost,
input = [ 'Output', 'Actions', 'Target' ],
name = 'Cost' )
# Optimizer
self.brain.addOperation( function = tb.optims.adam,
input = 'Cost',
learning_rate = self.LEARNING_RATE,
name = 'Optimizer' )
# TensorBoard
self.brain.addSummaryScalar( input = 'Cost' )
self.brain.addSummaryHistogram( input = 'Target' )
self.brain.addWriter( name = 'Writer' , dir = './' )
self.brain.addSummary( name = 'Summary' )
self.brain.initialize()
# TRAIN NETWORK
def train(self, prev_state, curr_state, actn, rewd, done, episode):
# Store New Experience Until Done
self.experiences.append((prev_state, curr_state, actn, rewd, done))
batchsize = len( self.experiences ) - self.NUM_FRAMES + 1
# Check for Train
if done:
# Select Batch
batch = self.experiences
# Separate Batch Data
prev_states = np.zeros( ( batchsize , self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) )
curr_states = np.zeros( ( batchsize , self.NUM_FRAMES , self.obsv_shape[0], self.obsv_shape[1] ) )
actions = np.zeros( ( batchsize , self.num_actions ) )
rewards = np.zeros( ( batchsize ) )
dones = np.zeros( ( batchsize ) )
# Select Batches
for i in range( 0 , batchsize ):
for j in range( 0 , self.NUM_FRAMES ):
prev_states[i,j,:,:] = self.experiences[ i + j ][0]
curr_states[i,j,:,:] = self.experiences[ i + j ][1]
actions[i] = self.experiences[ i + self.NUM_FRAMES - 1][2]
rewards[i] = self.experiences[ i + self.NUM_FRAMES - 1][3]
dones[i] = self.experiences[ i + self.NUM_FRAMES - 1][4]
# Calculate Discounted Reward
running_add = 0
discounted_r = np.zeros_like(rewards)
for t in reversed(range(0, len(rewards))):
if rewards[t] != 0: # pygame_catch specific
running_add = 0
running_add = running_add * self.REWARD_DISCOUNT + rewards[t]
discounted_r[t] = running_add
# Optimize Neural Network
_, summary = self.brain.run( ['Optimizer','Summary'], [ ['Observation', prev_states ],
['Actions', actions ],
['Target', discounted_r ] ] )
# TensorBoard
self.brain.write( summary = summary, iter = episode )
# Reset Batch
self.experiences = deque()
| NiloFreitas/Deep-Reinforcement-Learning | reinforcement/players/player_reinforce_rnn_2.py | Python | mit | 4,361 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fundamental-arithmetics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.12.1 / fundamental-arithmetics - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
fundamental-arithmetics
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-26 01:44:44 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-26 01:44:44 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.12.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "http://perso.ens-lyon.fr/sebastien.briais/tools/Arith_080201.tar.gz"
license: "LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FundamentalArithmetics"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: arithmetic"
"keyword: number theory"
"category: Mathematics/Arithmetic and Number Theory/Miscellaneous"
"date: 2008-02-1"
]
authors: [
"Sébastien Briais <sebastien.briais at ens-lyon.fr> [http://perso.ens-lyon.fr/sebastien.briais/]"
]
bug-reports: "https://github.com/coq-contribs/fundamental-arithmetics/issues"
dev-repo: "git+https://github.com/coq-contribs/fundamental-arithmetics.git"
synopsis: "Fundamental theorems of arithmetic"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/fundamental-arithmetics/archive/v8.9.0.tar.gz"
checksum: "md5=cf730613573d2738cfb63d9c1b887750"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-fundamental-arithmetics.8.9.0 coq.8.12.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.12.1).
The following dependencies couldn't be met:
- coq-fundamental-arithmetics -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fundamental-arithmetics.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.1/fundamental-arithmetics/8.9.0.html | HTML | mit | 6,951 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.14.0 / huffman - 8.11.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
huffman
<small>
8.11.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-23 01:13:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-23 01:13:15 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq 8.14.0 Formal proof management system
dune 2.9.1 Fast, portable, and opinionated build system
ocaml 4.10.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.2 Official release 4.10.2
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-community/huffman"
dev-repo: "git+https://github.com/coq-community/huffman.git"
bug-reports: "https://github.com/coq-community/huffman/issues"
doc: "https://coq-community.github.io/huffman/"
license: "LGPL-2.1-or-later"
synopsis: "Coq proof of the correctness of the Huffman coding algorithm"
description: """
This projects contains a Coq proof of the correctness of the Huffman coding algorithm,
as described in David A. Huffman's paper A Method for the Construction of Minimum-Redundancy
Codes, Proc. IRE, pp. 1098-1101, September 1952."""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.12~"}
]
tags: [
"category:Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms"
"category:Miscellaneous/Extracted Programs/Combinatorics"
"keyword:data compression"
"keyword:code"
"keyword:huffman tree"
"logpath:Huffman"
"date:2020-02-01"
]
authors: [
"Laurent Théry"
]
url {
src: "https://github.com/coq-community/huffman/archive/v8.11.0.tar.gz"
checksum: "sha512=5417b219b54a7e553a278cd3d8c8ae9e86d411c3277513cdef3a68840cce145062f601782620e495df2724b92cead9a78d19c26fa1ff4cd8d332526c6b5180a2"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-huffman.8.11.0 coq.8.14.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.14.0).
The following dependencies couldn't be met:
- coq-huffman -> coq < 8.12~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-huffman.8.11.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.0/huffman/8.11.0.html | HTML | mit | 7,385 |
<html>
<head>
<title>User agent detail - Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>woothee/woothee-testset<br /><small>/testsets/smartphone_ios.yaml</small></td><td>UNKNOWN </td><td>iOS </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td>smartphone</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a>
<!-- Modal Structure -->
<div id="modal-test" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Testsuite result detail</h4>
<p><pre><code class="php">Array
(
[target] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0
[name] => UNKNOWN
[os] => iOS
[category] => smartphone
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>CFNetwork </td><td>WebKit </td><td>iOS 5.0</td><td style="border-left: 1px solid #555">Apple</td><td></td><td>Mobile Device</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.029</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a>
<!-- Modal Structure -->
<div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^.*cfnetwork\/548\.0.*$/
[browser_name_pattern] => *cfnetwork/548.0*
[parent] => CFNetwork for iOS
[comment] => CFNetwork for iOS
[browser] => CFNetwork
[browser_type] => Application
[browser_bits] => 32
[browser_maker] => Apple Inc
[browser_modus] => unknown
[version] => 0.0
[majorver] => 0
[minorver] => 0
[platform] => iOS
[platform_version] => 5.0
[platform_description] => iPod, iPhone & iPad
[platform_bits] => 32
[platform_maker] => Apple Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] => 1
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[cssversion] => 0
[aolversion] => 0
[device_name] => general Mobile Device
[device_maker] => Apple Inc
[device_type] => Mobile Device
[device_pointing_method] => touchscreen
[device_code_name] => general Mobile Device
[device_brand_name] => Apple
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Blogos 1.13</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a>
<!-- Modal Structure -->
<div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] =>
[browser] => Blogos
[version] => 1.13
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>Blogos 1.13</td><td><i class="material-icons">close</i></td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555"></td><td></td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.30803</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a>
<!-- Modal Structure -->
<div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 0
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] =>
[mobile_model] =>
[version] => 1.13
[is_android] =>
[browser_name] => Blogos
[operating_system_family] => iOS
[operating_system_version] => 5.0.1
[is_ios] => 1
[producer] =>
[operating_system] => iOS 5.0.1
[mobile_screen_width] => 0
[mobile_browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td> </td><td> </td><td>iOS 5.0</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.007</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a>
<!-- Modal Structure -->
<div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] =>
[operatingSystem] => Array
(
[name] => iOS
[short_name] => IOS
[version] => 5.0
[platform] =>
)
[device] => Array
(
[brand] =>
[brandName] =>
[model] =>
[device] =>
[deviceName] =>
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] =>
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] =>
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>CFNetwork 548.0.4</td><td><i class="material-icons">close</i></td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555">Apple</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a>
<!-- Modal Structure -->
<div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 548
[minor] => 0
[patch] => 4
[family] => CFNetwork
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 5
[minor] => 0
[patch] => 1
[patchMinor] =>
[family] => iOS
)
[device] => UAParser\Result\Device Object
(
[brand] => Apple
[model] => iOS-Device
[family] => iOS-Device
)
[originalUserAgent] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td> </td><td> </td><td>Darwin </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40804</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a>
<!-- Modal Structure -->
<div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Darwin
[simple_sub_description_string] =>
[simple_browser_string] =>
[browser_version] =>
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => Array
(
)
[layout_engine_name] =>
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] =>
[operating_system_version] =>
[simple_operating_platform_string] =>
[is_abusive] =>
[layout_engine_version] =>
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] =>
[operating_system] => Darwin
[operating_system_version_full] =>
[operating_platform_code] =>
[browser_name] =>
[operating_system_name_code] => darwin
[user_agent] => Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0
[browser_version_full] =>
[browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Blogos 1.13</td><td> </td><td>iOS 5.0.1</td><td style="border-left: 1px solid #555"></td><td></td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.013</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a>
<!-- Modal Structure -->
<div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Blogos
[version] => 1.13
[type] => app:feedreader
)
[os] => Array
(
[name] => iOS
[version] => 5.0.1
)
[device] => Array
(
[type] => mobile
[subtype] => smart
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td> </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a>
<!-- Modal Structure -->
<div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[category] => smartphone
[os] => iOS
[name] => UNKNOWN
[version] => UNKNOWN
[vendor] => UNKNOWN
[os_version] => UNKNOWN
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Mobile Safari 5.0</td><td><i class="material-icons">close</i></td><td>iOS 5.0</td><td style="border-left: 1px solid #555">Apple</td><td>iPhone</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.011</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a>
<!-- Modal Structure -->
<div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => false
[is_ios] => true
[is_windows_phone] => false
[is_app] => true
[is_full_desktop] => false
[is_largescreen] => false
[is_mobile] => true
[is_robot] => false
[is_smartphone] => true
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => iOS
[advertised_device_os_version] => 5.0
[advertised_browser] => Mobile Safari
[advertised_browser_version] => 5.0
[complete_device_name] => Apple iPhone
[form_factor] => Smartphone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Apple
[model_name] => iPhone
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => iOS
[mobile_browser] => Safari
[mobile_browser_version] => 5.0
[device_os_version] => 5.0
[pointing_method] => touchscreen
[release_date] => 2011_october
[marketing_name] =>
[model_extra_info] => 5.0
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => false
[softkey_support] => false
[table_support] => false
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => false
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => false
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => false
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => none
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => false
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => true
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #D9EFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => false
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => utf8
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => none
[xhtml_file_upload] => not_supported
[cookie_support] => true
[accept_third_party_cookie] => false
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => false
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => true
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 320
[resolution_height] => 480
[columns] => 20
[max_image_width] => 320
[max_image_height] => 480
[rows] => 20
[physical_screen_width] => 50
[physical_screen_height] => 74
[dual_orientation] => true
[density_class] => 1.0
[wbmp] => false
[bmp] => true
[epoc_bmp] => false
[gif_animated] => true
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => false
[transparent_png_index] => false
[svgt_1_1] => true
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 200
[wifi] => true
[sdio] => false
[vpn] => true
[has_cellular_radio] => true
[max_deck_size] => 100000
[max_url_length_in_requests] => 512
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => false
[inline_support] => false
[oma_support] => false
[ringtone] => true
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => true
[ringtone_midi_polyphonic] => true
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => true
[ringtone_awb] => false
[ringtone_aac] => true
[ringtone_wav] => true
[ringtone_mp3] => true
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 12
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 320
[wallpaper_max_height] => 480
[wallpaper_preferred_width] => 320
[wallpaper_preferred_height] => 480
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => true
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 30
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 3
[streaming_vcodec_mpeg4_asp] => 3
[streaming_vcodec_h264_bp] => 3.0
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => http
[streaming_preferred_http_protocol] => apple_live_streaming
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => true
[sender] => true
[mms_max_size] => 1048576
[mms_max_height] => 1024
[mms_max_width] => 1024
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => true
[mms_jpeg_progressive] => true
[mms_gif_static] => true
[mms_gif_animated] => true
[mms_png] => true
[mms_bmp] => true
[mms_wbmp] => false
[mms_amr] => true
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => true
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => true
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => true
[mms_mp4] => true
[mms_3gpp] => true
[mms_3gpp2] => true
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => webkit
[css_spriting] => true
[css_gradient_linear] => webkit
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => true
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 30
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 3
[playback_vcodec_mpeg4_asp] => 2
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => true
[playback_mp4] => true
[playback_mov] => true
[playback_acodec_amr] => nb
[playback_acodec_aac] => lc
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => false
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => true
[controlcap_is_smartphone] => default
[controlcap_is_ios] => default
[controlcap_is_android] => default
[controlcap_is_robot] => default
[controlcap_is_app] => default
[controlcap_advertised_device_os] => default
[controlcap_advertised_device_os_version] => default
[controlcap_advertised_browser] => default
[controlcap_advertised_browser_version] => default
[controlcap_is_windows_phone] => default
[controlcap_is_full_desktop] => default
[controlcap_is_largescreen] => default
[controlcap_is_mobile] => default
[controlcap_is_touchscreen] => default
[controlcap_is_wml_preferred] => default
[controlcap_is_xhtmlmp_preferred] => default
[controlcap_is_html_preferred] => default
[controlcap_form_factor] => default
[controlcap_complete_device_name] => default
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-02-13 13:32:21</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/65/5d/655ddbc1-ae56-4c95-bf64-dd6f5870b84f.html | HTML | mit | 41,021 |
<!DOCTYPE html>
<html>
<head>
<title>MyFonts Webfonts Demo for iOS devices</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="all">
h2 {
font-weight:normal;
}
@font-face {
font-family:"ProximaNova-Bold";
src:url("2FE569_0.svg#ProximaNova-Bold") format("svg");
}
.webfont_0 {
font-family: ProximaNova-Bold;
}
@font-face {
font-family:"ProximaNova-Regular";
src:url("2FE569_1.svg#ProximaNova-Regular") format("svg");
}
.webfont_1 {
font-family: ProximaNova-Regular;
}
</style>
</head>
<body>
<h1>MyFonts Webfonts Demo for iOS devices</h1>
<h2>0. <span class='webfont_0'><a href='http://www.myfonts.com/search/style::148514/'>ProximaNova-Bold</a></span>
<small>(VersionID 675566, ttf)</small>
</h2>
<p class='webfont_0'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class='webfont_0'>An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.</p>
<p class='webfont_0'>Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.</p>
<h2>1. <span class='webfont_1'><a href='http://www.myfonts.com/search/style::148510/'>ProximaNova-Regular</a></span>
<small>(VersionID 675574, ttf)</small>
</h2>
<p class='webfont_1'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class='webfont_1'>An, partus ancillae sitne in fructu habendus, disseretur inter principes civitatis, P. Scaevolam M'.que Manilium, ab iisque M. Brutus dissentiet -- quod et acutum genus est et ad usus civium non inutile, nosque ea scripta reliquaque eiusdem generis et legimus libenter et legemus --, haec, quae vitam omnem continent, neglegentur? nam, ut sint illa vendibiliora, haec uberiora certe sunt. quamquam id quidem licebit iis existimare, qui legerint. nos autem hanc omnem quaestionem de finibus bonorum et malorum fere a nobis explicatam esse his litteris arbitramur, in quibus, quantum potuimus, non modo quid nobis probaretur, sed etiam quid a singulis philosophiae disciplinis diceretur, persecuti sumus.</p>
<p class='webfont_1'>Id qui in una virtute ponunt et splendore nominis capti quid natura postulet non intellegunt, errore maximo, si Epicurum audire voluerint, liberabuntur: istae enim vestrae eximiae pulchraeque virtutes nisi voluptatem efficerent, quis eas aut laudabilis aut expetendas arbitraretur? ut enim medicorum scientiam non ipsius artis, sed bonae valetudinis causa probamus, et gubernatoris ars, quia bene navigandi rationem habet, utilitate, non arte laudatur, sic sapientia, quae ars vivendi putanda est, non expeteretur, si nihil efficeret; nunc expetitur, quod est tamquam artifex conquirendae et comparandae voluptatis.</p>
</body>
</html> | richardcrichardc/digitalwhanganui | public/css/webfonts/svg_test.html | HTML | mit | 4,671 |
Namespace Media
''' <summary></summary>
''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated>
''' <generator-date>17/02/2014 16:03:03</generator-date>
''' <generator-functions>1</generator-functions>
''' <generator-source>Deimos\_Media\Enums\WMT_ATTR_DATATYPE.tt</generator-source>
''' <generator-version>1</generator-version>
<System.CodeDom.Compiler.GeneratedCode("Deimos\_Media\Enums\WMT_ATTR_DATATYPE.tt", "1")> _
Public Enum WMT_ATTR_DATATYPE As System.Int32
''' <summary>WMT_TYPE_DWORD</summary>
WMT_TYPE_DWORD = 0
''' <summary>WMT_TYPE_STRING</summary>
WMT_TYPE_STRING = 1
''' <summary>WMT_TYPE_BINARY</summary>
WMT_TYPE_BINARY = 2
''' <summary>WMT_TYPE_BOOL</summary>
WMT_TYPE_BOOL = 3
''' <summary>WMT_TYPE_QWORD</summary>
WMT_TYPE_QWORD = 4
''' <summary>WMT_TYPE_WORD</summary>
WMT_TYPE_WORD = 5
''' <summary>WMT_TYPE_GUID</summary>
WMT_TYPE_GUID = 6
End Enum
End Namespace | thiscouldbejd/Deimos | _Media/Enums/WMT_ATTR_DATATYPE.vb | Visual Basic | mit | 1,012 |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.api.text;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.collect.ImmutableList;
import org.spongepowered.api.scoreboard.Score;
import org.spongepowered.api.text.format.TextColor;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.text.format.TextStyle;
import org.spongepowered.api.text.format.TextStyles;
import org.spongepowered.api.text.selector.Selector;
import org.spongepowered.api.text.translation.Translatable;
import org.spongepowered.api.text.translation.Translation;
import java.util.Locale;
/**
* Utility class to work with and create {@link Text}.
*/
public final class Texts {
private static final TextFactory factory = null;
static final Text.Literal EMPTY = new Text.Literal();
private Texts() {
}
/**
* Returns an empty, unformatted {@link Text} instance.
*
* @return An empty text
*/
public static Text of() {
return EMPTY;
}
/**
* Creates a {@link Text} with the specified plain text. The created message
* won't have any formatting or events configured.
*
* @param content The content of the text
* @return The created text
* @see Text.Literal
*/
public static Text.Literal of(String content) {
if (checkNotNull(content, "content").isEmpty()) {
return EMPTY;
}
return new Text.Literal(content);
}
/**
* Creates a new unformatted {@link Text.Translatable} with the given
* {@link Translation} and arguments.
*
* @param translation The translation for the text
* @param args The arguments for the translation
* @return The created text
* @see Text.Translatable
*/
public static Text.Translatable of(Translation translation, Object... args) {
return new Text.Translatable(translation, ImmutableList.copyOf(checkNotNull(args, "args")));
}
/**
* Creates a new unformatted {@link Text.Translatable} from the given
* {@link Translatable}.
*
* @param translatable The translatable for the text
* @param args The arguments for the translation
* @return The created text
* @see Text.Translatable
*/
public static Text.Translatable of(Translatable translatable, Object... args) {
return of(checkNotNull(translatable, "translatable").getTranslation(), args);
}
/**
* Creates a new unformatted {@link Text.Selector} with the given selector.
*
* @param selector The selector for the text
* @return The created text
* @see Text.Selector
*/
public static Text.Selector of(Selector selector) {
return new Text.Selector(selector);
}
/**
* Creates a new unformatted {@link Text.Score} with the given score.
*
* @param score The score for the text
* @return The created text
* @see Text.Score
*/
public static Text.Score of(Score score) {
return new Text.Score(score);
}
/**
* Builds a {@link Text} from a given array of objects.
*
* <p>For instance, you can use this like
* <code>Texts.of(TextColors.DARK_AQUA, "Hi", TextColors.AQUA, "Bye")</code>
* </p>
*
* <p>This will create the correct {@link Text} instance if the input object
* is the input for one of the {@link Text} types or convert the object to a
* string otherwise.</p>
*
* @param objects The object array
* @return The built text object
*/
public static Text of(Object... objects) {
TextBuilder builder = builder();
TextColor color = TextColors.NONE;
TextStyle style = TextStyles.NONE;
for (Object obj : objects) {
if (obj instanceof TextColor) {
color = (TextColor) obj;
} else if (obj instanceof TextStyle) {
style = obj.equals(TextStyles.RESET) ? TextStyles.NONE : style.and((TextStyle) obj);
} else if (obj instanceof Text) {
builder.append((Text) obj);
} else if (obj instanceof TextBuilder) {
builder.append(((TextBuilder) obj).build());
} else {
TextBuilder childBuilder;
if (obj instanceof String) {
childBuilder = Texts.builder((String) obj);
} else if (obj instanceof Translation) {
childBuilder = Texts.builder((Translation) obj);
} else if (obj instanceof Selector) {
childBuilder = Texts.builder((Selector) obj);
} else if (obj instanceof Score) {
childBuilder = Texts.builder((Score) obj);
} else {
childBuilder = Texts.builder(String.valueOf(obj));
}
builder.append(childBuilder.color(color).style(style).build());
}
}
return builder.build();
}
/**
* Creates a {@link TextBuilder} with empty text.
*
* @return A new text builder with empty text
*/
public static TextBuilder builder() {
return new TextBuilder.Literal();
}
/**
* Creates a new unformatted {@link TextBuilder.Literal} with the specified
* content.
*
* @param content The content of the text
* @return The created text builder
* @see Text.Literal
* @see TextBuilder.Literal
*/
public static TextBuilder.Literal builder(String content) {
return new TextBuilder.Literal(content);
}
/**
* Creates a new {@link TextBuilder.Literal} with the formatting and actions
* of the specified {@link Text} and the given content.
*
* @param text The text to apply the properties from
* @param content The content for the text builder
* @return The created text builder
* @see Text.Literal
* @see TextBuilder.Literal
*/
public static TextBuilder.Literal builder(Text text, String content) {
return new TextBuilder.Literal(text, content);
}
/**
* Creates a new unformatted {@link TextBuilder.Translatable} with the given
* {@link Translation} and arguments.
*
* @param translation The translation for the builder
* @param args The arguments for the translation
* @return The created text builder
* @see Text.Translatable
* @see TextBuilder.Translatable
*/
public static TextBuilder.Translatable builder(Translation translation, Object... args) {
return new TextBuilder.Translatable(translation, args);
}
/**
* Creates a new unformatted {@link TextBuilder.Translatable} from the given
* {@link Translatable}.
*
* @param translatable The translatable for the builder
* @param args The arguments for the translation
* @return The created text builder
* @see Text.Translatable
* @see TextBuilder.Translatable
*/
public static TextBuilder.Translatable builder(Translatable translatable, Object... args) {
return new TextBuilder.Translatable(translatable, args);
}
/**
* Creates a new {@link TextBuilder.Translatable} with the formatting and
* actions of the specified {@link Text} and the given {@link Translation}
* and arguments.
*
* @param text The text to apply the properties from
* @param translation The translation for the builder
* @param args The arguments for the translation
* @return The created text builder
* @see Text.Translatable
* @see TextBuilder.Translatable
*/
public static TextBuilder.Translatable builder(Text text, Translation translation, Object... args) {
return new TextBuilder.Translatable(text, translation, args);
}
/**
* Creates a new {@link TextBuilder.Translatable} with the formatting and
* actions of the specified {@link Text} and the given {@link Translatable}.
*
* @param text The text to apply the properties from
* @param translatable The translatable for the builder
* @param args The arguments for the translation
* @return The created text builder
* @see Text.Translatable
* @see TextBuilder.Translatable
*/
public static TextBuilder.Translatable builder(Text text, Translatable translatable, Object... args) {
return new TextBuilder.Translatable(text, translatable, args);
}
/**
* Creates a new unformatted {@link TextBuilder.Selector} with the given
* selector.
*
* @param selector The selector for the builder
* @return The created text builder
* @see Text.Selector
* @see TextBuilder.Selector
*/
public static TextBuilder.Selector builder(Selector selector) {
return new TextBuilder.Selector(selector);
}
/**
* Creates a new {@link TextBuilder.Selector} with the formatting and
* actions of the specified {@link Text} and the given selector.
*
* @param text The text to apply the properties from
* @param selector The selector for the builder
* @return The created text builder
* @see Text.Selector
* @see TextBuilder.Selector
*/
public static TextBuilder.Selector builder(Text text, Selector selector) {
return new TextBuilder.Selector(text, selector);
}
/**
* Creates a new unformatted {@link TextBuilder.Score} with the given score.
*
* @param score The score for the text builder
* @return The created text builder
* @see Text.Score
* @see TextBuilder.Score
*/
public static TextBuilder.Score builder(Score score) {
return new TextBuilder.Score(score);
}
/**
* Creates a new {@link TextBuilder.Score} with the formatting and actions
* of the specified {@link Text} and the given score.
*
* @param text The text to apply the properties from
* @param score The score for the text builder
* @return The created text builder
* @see Text.Score
* @see TextBuilder.Score
*/
public static TextBuilder.Score builder(Text text, Score score) {
return new TextBuilder.Score(text, score);
}
/**
* Joins a sequence of text objects together.
*
* @param texts The texts to join
* @return A text object that joins the given text objects
*/
public static Text join(Text... texts) {
return builder().append(texts).build();
}
/**
* Joins a sequence of text objects together.
*
* @param texts The texts to join
* @return A text object that joins the given text objects
*/
public static Text join(Iterable<? extends Text> texts) {
return builder().append(texts).build();
}
/**
* Joins a sequence of text objects together along with a separator.
*
* @param separator The separator
* @param texts The text to join
* @return A text object that joins the given text objects
*/
public static Text join(Text separator, Text... texts) {
switch (texts.length) {
case 0:
return of();
case 1:
return texts[0];
default:
TextBuilder builder = builder();
boolean appendSeparator = false;
for (Text text : texts) {
if (appendSeparator) {
builder.append(separator);
} else {
appendSeparator = true;
}
builder.append(text);
}
return builder.build();
}
}
/**
* Parses the specified JSON text and returns the parsed result.
*
* @param json The valid JSON text
* @return The parsed text
* @throws IllegalArgumentException If the JSON is invalid
*/
public static Text parseJson(String json) throws IllegalArgumentException {
return factory.parseJson(json);
}
/**
* Parses the specified JSON text and returns the parsed result.
*
* <p>Unlike {@link #parseJson(String)} this will ignore some formatting
* errors and parse the JSON data more leniently.</p>
*
* @param json The JSON text
* @return The parsed text
* @throws IllegalArgumentException If the JSON couldn't be parsed
*/
public static Text parseJsonLenient(String json) throws IllegalArgumentException {
return factory.parseJsonLenient(json);
}
/**
* Returns a plain text representation of the {@link Text} without any
* formatting.
*
* @param text The text to convert
* @return The text converted to plain text
*/
public static String toPlain(Text text) {
return factory.toPlain(text);
}
/**
* Returns a JSON representation of the {@link Text} as used in commands.
*
* @param text The text to convert
* @return The text converted to JSON
*/
public static String toJson(Text text) {
return factory.toJson(text);
}
/**
* Returns a plain text representation of the {@link Text} without any
* formatting.
*
* @param text The text to convert
* @return The text converted to plain text
*/
public static String toPlain(Text text, Locale locale) {
return factory.toPlain(text, locale);
}
/**
* Returns a JSON representation of the {@link Text} as used in commands.
*
* @param text The text to convert
* @return The text converted to JSON
*/
public static String toJson(Text text, Locale locale) {
return factory.toJson(text, locale);
}
/**
* Returns the default legacy formatting character.
*
* @return The legacy formatting character
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static char getLegacyChar() {
return factory.getLegacyChar();
}
/**
* Creates a Message from a legacy string using the default legacy.
*
* @param text The text to be converted as a String
* @return The converted Message
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
@SuppressWarnings("deprecation")
public static Text.Literal fromLegacy(String text) {
return fromLegacy(text, getLegacyChar());
}
/**
* Creates a Message from a legacy string, given a color character.
*
* @param text The text to be converted as a String
* @param color The color character to be replaced
* @return The converted Message
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static Text.Literal fromLegacy(String text, char color) {
return factory.parseLegacyMessage(text, color);
}
/**
* Removes the legacy formatting character from a legacy string.
*
* @param text The legacy text as a String
* @return The stripped text
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
@SuppressWarnings("deprecation")
public static String stripCodes(String text) {
return stripCodes(text, getLegacyChar());
}
/**
* Removes the legacy formatting character from a legacy string.
*
* @param text The legacy text as a String
* @param color The color character to be replaced
* @return The stripped text
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static String stripCodes(String text, char color) {
return factory.stripLegacyCodes(text, color);
}
/**
* Replaces the given formatting character with the default legacy
* formatting character from a legacy string.
*
* @param text The legacy text as a String
* @param from The color character to be replaced
* @return The replaced text
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
@SuppressWarnings("deprecation")
public static String replaceCodes(String text, char from) {
return replaceCodes(text, from, getLegacyChar());
}
/**
* Replaces the given formatting character with another given formatting
* character from a legacy string.
*
* @param text The legacy text as a String
* @param from The color character to be replaced
* @param to The color character to replace with
* @return The replaced text
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static String replaceCodes(String text, char from, char to) {
return factory.replaceLegacyCodes(text, from, to);
}
/**
* Returns a representation of the {@link Text} using the legacy color
* codes.
*
* @param text The text to convert
* @return The text converted to the old color codes
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
@SuppressWarnings("deprecation")
public static String toLegacy(Text text) {
return toLegacy(text, getLegacyChar());
}
/**
* Returns a representation of the {@link Text} using the legacy color
* codes.
*
* @param text The text to convert
* @param code The legacy char to use for the message
* @return The text converted to the old color codes
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static String toLegacy(Text text, char code) {
return factory.toLegacy(text, code);
}
/**
* Returns a representation of the {@link Text} using the legacy color
* codes.
*
* @param text The text to convert
* @param code The legacy char to use for the message
* @param locale The language to return this representation in
* @return The text converted to the old color codes
* @deprecated Legacy formatting codes are being phased out of Minecraft
*/
@Deprecated
public static String toLegacy(Text text, char code, Locale locale) {
return factory.toLegacy(text, code, locale);
}
}
| gabizou/SpongeAPI | src/main/java/org/spongepowered/api/text/Texts.java | Java | mit | 19,598 |
module.exports = require('regenerate')(0x261D, 0x26F9, 0x1F385, 0x1F3C7, 0x1F46E, 0x1F47C, 0x1F4AA, 0x1F57A, 0x1F590, 0x1F6A3, 0x1F6C0, 0x1F6CC, 0x1F926).addRange(0x270A, 0x270D).addRange(0x1F3C2, 0x1F3C4).addRange(0x1F3CA, 0x1F3CC).addRange(0x1F442, 0x1F443).addRange(0x1F446, 0x1F450).addRange(0x1F466, 0x1F469).addRange(0x1F470, 0x1F478).addRange(0x1F481, 0x1F483).addRange(0x1F485, 0x1F487).addRange(0x1F574, 0x1F575).addRange(0x1F595, 0x1F596).addRange(0x1F645, 0x1F647).addRange(0x1F64B, 0x1F64F).addRange(0x1F6B4, 0x1F6B6).addRange(0x1F918, 0x1F91C).addRange(0x1F91E, 0x1F91F).addRange(0x1F930, 0x1F939).addRange(0x1F93D, 0x1F93E).addRange(0x1F9D1, 0x1F9DD);
| ocadni/citychrone | .build/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/regenerate-unicode-properties/Binary_Property/Emoji_Modifier_Base.js | JavaScript | mit | 666 |
# VivaTalk
Oh god it's time.
run this to push to GH pages:
rm output/images; cp -r images output; ghp-import -n output -p; rm -r output/images; ln -s ../images output/images
| Cadair/VivaTalk | README.md | Markdown | mit | 180 |
module SupportEngine
class SupportType < ActiveRecord::Base
attr_accessible :name, :email
has_many :tickets, inverse_of: :support_type
# TODO: Detect background job
def notify!(ticket)
SupportEngine::TicketMailer.notify(self, ticket).deliver
end
end
end
| orbitalimpact/SupportEngine | app/models/support_engine/support_type.rb | Ruby | mit | 286 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Story-Ly</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/2-col-portfolio.css" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#">Story-Ly</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/">1 Column
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/2Coll">2 Column</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/3Coll">3 Column</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/4Coll">4 Column</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div class="container">
<!-- Page Heading -->
<h1 class="my-4">Harjit's BS
<small>Everyone loves BS test data</small>
</h1>
<div id="contentList" class="row"></div>
<!-- /.row -->
<!-- Pagination -->
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
<span class="sr-only">Previous</span>
</a>
</li>
<li class="page-item">
<a class="page-link" href="#">1</a>
</li>
<li class="page-item">
<a class="page-link" href="#">2</a>
</li>
<li class="page-item">
<a class="page-link" href="#">3</a>
</li>
<li class="page-item">
<a class="page-link" href="#" aria-label="Next">
<span aria-hidden="true">»</span>
<span class="sr-only">Next</span>
</a>
</li>
</ul>
</div>
<!-- /.container -->
<!-- Footer -->
<footer class="py-5 bg-dark">
<div class="container">
<p class="m-0 text-center text-white">Copyright © Your Website 2017</p>
</div>
<!-- /.container -->
</footer>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script>
GenerateCardForStory = function(content)
{
var html = `<div class='col-lg-6 portfolio-item' content-id='`+content.content_id+`'>
<div class='card h-100'>
<a href="#">
<img class="card-img-top" src="http://placehold.it/700x400" alt="">
</a>
<div class="card-body">
<h4 class="card-title">
<a href="#">`+content.title+`</a>
</h4>
<p class="card-text">We need to add Description to DB. I am starting to think that this is honestly just a problem of not enough text which is a dumb problem to have if it is indeed the problem.</p>
</div>
</div>
</div>`;
$("#contentList").append(html);
}
$(document).ready(function(){
$.get("/data", function(data, status){
this.data = data;
data.data.content.forEach(function(obj){
GenerateCardForStory(obj);
GenerateCardForStory(obj);
GenerateCardForStory(obj);
GenerateCardForStory(obj);
GenerateCardForStory(obj);
});
});
});
</script>
</body>
</html>
| heylookabird/PublishingSite | views/two_col/index.html | HTML | mit | 4,220 |
from SBaaS_base.postgresql_orm_base import *
class data_stage01_rnasequencing_analysis(Base):
__tablename__ = 'data_stage01_rnasequencing_analysis'
id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True)
analysis_id = Column(String(500))
experiment_id = Column(String(50))
sample_name_abbreviation = Column(String(500)) # equivalent to sample_name_abbreviation
sample_name = Column(String(500)) # equivalent to sample_name_abbreviation
time_point = Column(String(10)) # converted to intermediate in lineage analysis
analysis_type = Column(String(100)); # time-course (i.e., multiple time points), paired (i.e., control compared to multiple replicates), group (i.e., single grouping of samples).
used_ = Column(Boolean);
comment_ = Column(Text);
__table_args__ = (
UniqueConstraint('experiment_id','sample_name_abbreviation','sample_name','time_point','analysis_type','analysis_id'),
)
def __init__(self,
row_dict_I,
):
self.analysis_id=row_dict_I['analysis_id'];
self.experiment_id=row_dict_I['experiment_id'];
self.sample_name_abbreviation=row_dict_I['sample_name_abbreviation'];
self.sample_name=row_dict_I['sample_name'];
self.time_point=row_dict_I['time_point'];
self.analysis_type=row_dict_I['analysis_type'];
self.used_=row_dict_I['used_'];
self.comment_=row_dict_I['comment_'];
def __set__row__(self,analysis_id_I,
experiment_id_I,
sample_name_abbreviation_I,
sample_name_I,
time_point_I,
analysis_type_I,
used__I,
comment__I):
self.analysis_id=analysis_id_I
self.experiment_id=experiment_id_I
self.sample_name_abbreviation=sample_name_abbreviation_I
self.sample_name=sample_name_I
self.time_point=time_point_I
self.analysis_type=analysis_type_I
self.used_=used__I
self.comment_=comment__I
def __repr__dict__(self):
return {'id':self.id,
'analysis_id':self.analysis_id,
'experiment_id':self.experiment_id,
'sample_name_abbreviation':self.sample_name_abbreviation,
'sample_name':self.sample_name,
'time_point':self.time_point,
'analysis_type':self.analysis_type,
'used_':self.used_,
'comment_':self.comment_}
def __repr__json__(self):
return json.dumps(self.__repr__dict__()) | dmccloskey/SBaaS_rnasequencing | SBaaS_rnasequencing/stage01_rnasequencing_analysis_postgresql_models.py | Python | mit | 2,579 |
require 'faraday'
# @private
module Faraday
module Disqussion
# @private
class RaiseHttp4xx < ::Faraday::Response::Middleware
def on_complete(env)
case env[:status].to_i
when 400
raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers])
when 401
raise ::Disqussion::Unauthorized.new(error_message(env), env[:response_headers])
when 403
raise ::Disqussion::Forbidden.new(error_message(env), env[:response_headers])
when 404
raise ::Disqussion::NotFound.new(error_message(env), env[:response_headers])
end
end
private
def error_message(env)
"#{env[:method].to_s.upcase} #{env[:url].to_s}: (#{env[:status]}) #{error_body(env[:body])}"
end
def error_body(body)
if body['code'] && body['response']
"Disqus Error #{body['code']}: #{body['response']}"
else
nil
end
end
end
end
end | jeremyvdw/disqussion | lib/faraday/disqussion/raise_http_4xx.rb | Ruby | mit | 997 |
#
CuSha is a CUDA-based vertex-centric graph processing framework that uses G-Shards and Concatenated Windows (CW) representations to store graphs inside the GPU global memory. G-Shards and CW consume more space compared to Compressed Sparse Row (CSR) format but on the other hand provide better performance due to GPU-friendly representations. For completeness, provided package also includes Virtual Warp-Centric (VWC) processing method for GPU that uses CSR representation.
[ [Paper](http://www.cs.ucr.edu/~fkhor001/index.html#publications) ] -- [ [Slides](http://www.cs.ucr.edu/~fkhor001/CuSha/CuSha_Slides.pptx) ] -- [ [Requirements and Usage](http://farkhor.github.io/CuSha/) ]
#####Acknowledgements#####
This work is supported by National Science Foundation grants CCF-1157377 and CCF-0905509 to UC Riverside.
| farkhor/CuSha | README.md | Markdown | mit | 904 |
package jp.co.future.uroborosql.parameter.mapper;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Timestamp;
import java.text.ParseException;
import java.time.Clock;
import java.time.LocalDate;
import java.time.Month;
import java.time.ZoneId;
import java.util.Date;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import jp.co.future.uroborosql.parameter.mapper.legacy.DateToStringParameterMapper;
public class BindParameterMapperManagerTest {
private Clock clock;
@BeforeEach
public void setUp() {
this.clock = Clock.systemDefaultZone();
}
@Test
public void test() throws ParseException {
var parameterMapperManager = new BindParameterMapperManager(this.clock);
assertThat(parameterMapperManager.toJdbc(null, null), is(nullValue()));
assertThat(parameterMapperManager.toJdbc(true, null), is(true));
assertThat(parameterMapperManager.toJdbc((byte) 1, null), is((byte) 1));
assertThat(parameterMapperManager.toJdbc((short) 1, null), is((short) 1));
assertThat(parameterMapperManager.toJdbc(1, null), is(1));
assertThat(parameterMapperManager.toJdbc(1L, null), is(1L));
assertThat(parameterMapperManager.toJdbc(1F, null), is(1F));
assertThat(parameterMapperManager.toJdbc(1D, null), is(1D));
assertThat(parameterMapperManager.toJdbc(BigDecimal.TEN, null), is(BigDecimal.TEN));
assertThat(parameterMapperManager.toJdbc("A", null), is("A"));
assertThat(parameterMapperManager.toJdbc(new byte[] { 1, 2 }, null), is(new byte[] { 1, 2 }));
assertThat(parameterMapperManager.toJdbc(new java.sql.Date(1), null), is(new java.sql.Date(1)));
assertThat(parameterMapperManager.toJdbc(new java.sql.Time(1), null), is(new java.sql.Time(1)));
assertThat(parameterMapperManager.toJdbc(new java.sql.Timestamp(1), null), is(new java.sql.Timestamp(1)));
var array = newProxy(java.sql.Array.class);
assertThat(parameterMapperManager.toJdbc(array, null), is(array));
var ref = newProxy(java.sql.Ref.class);
assertThat(parameterMapperManager.toJdbc(ref, null), is(ref));
var blob = newProxy(java.sql.Blob.class);
assertThat(parameterMapperManager.toJdbc(blob, null), is(blob));
var clob = newProxy(java.sql.Clob.class);
assertThat(parameterMapperManager.toJdbc(clob, null), is(clob));
var sqlxml = newProxy(java.sql.SQLXML.class);
assertThat(parameterMapperManager.toJdbc(sqlxml, null), is(sqlxml));
var struct = newProxy(java.sql.Struct.class);
assertThat(parameterMapperManager.toJdbc(struct, null), is(struct));
var object = new Object();
assertThat(parameterMapperManager.toJdbc(object, null), is(object));
var date = Date.from(LocalDate.parse("2000-01-01").atStartOfDay(ZoneId.systemDefault()).toInstant());
assertThat(parameterMapperManager.toJdbc(date, null), is(new java.sql.Timestamp(date.getTime())));
assertThat(parameterMapperManager.toJdbc(Month.APRIL, null), is(4));
}
@Test
public void testWithCustom() throws ParseException {
var original = new BindParameterMapperManager(this.clock);
original.addMapper(new EmptyStringToNullParameterMapper());
var mapper = new DateToStringParameterMapper();
original.addMapper(mapper);
var parameterMapperManager = new BindParameterMapperManager(original, this.clock);
var date = Date.from(LocalDate.parse("2000-01-01").atStartOfDay(this.clock.getZone()).toInstant());
assertThat(parameterMapperManager.toJdbc(date, null), is("20000101"));
assertThat(parameterMapperManager.canAcceptByStandard(date), is(true));
parameterMapperManager.removeMapper(mapper);
assertThat(parameterMapperManager.toJdbc(date, null), is(instanceOf(Timestamp.class)));
}
@Test
public void testCustom() {
var parameterMapperManager = new BindParameterMapperManager(this.clock);
parameterMapperManager.addMapper(new BindParameterMapper<String>() {
@Override
public Class<String> targetType() {
return String.class;
}
@Override
public Object toJdbc(final String original, final Connection connection,
final BindParameterMapperManager parameterMapperManager) {
return original.toLowerCase();
}
});
assertThat(parameterMapperManager.toJdbc("S", null), is("s"));
assertThat(parameterMapperManager.toJdbc(true, null), is(true));
}
@Test
public void testCustomWithClock() {
var parameterMapperManager = new BindParameterMapperManager(this.clock);
parameterMapperManager.addMapper(new BindParameterMapperWithClock<String>() {
private Clock clock;
@Override
public Class<String> targetType() {
return String.class;
}
@Override
public Object toJdbc(final String original, final Connection connection,
final BindParameterMapperManager parameterMapperManager) {
return original.toLowerCase();
}
@Override
public Clock getClock() {
return this.clock;
}
@Override
public void setClock(final Clock clock) {
this.clock = clock;
}
});
assertThat(parameterMapperManager.toJdbc("S", null), is("s"));
assertThat(parameterMapperManager.toJdbc(true, null), is(true));
}
interface ProxyContainer {
Object getOriginal();
}
@SuppressWarnings("unchecked")
private static <I> I newProxy(final Class<I> interfaceType) {
var o = new Object();
Method getOriginal;
try {
getOriginal = ProxyContainer.class.getMethod("getOriginal");
} catch (NoSuchMethodException | SecurityException e) {
throw new AssertionError(e);
}
var proxyInstance = (I) Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class<?>[] {
interfaceType, ProxyContainer.class }, (proxy, method, args) -> {
if (getOriginal.equals(method)) {
return o;
}
for (int i = 0; i < args.length; i++) {
if (args[i] instanceof ProxyContainer) {
args[i] = ((ProxyContainer) args[i]).getOriginal();
}
}
return method.invoke(o, args);
});
return proxyInstance;
}
}
| future-architect/uroborosql | src/test/java/jp/co/future/uroborosql/parameter/mapper/BindParameterMapperManagerTest.java | Java | mit | 6,049 |
<?php namespace Ejimba\Pesapal\OAuth;
class OAuthRequest {
private $parameters;
private $http_method;
private $http_url;
// for debug purposes
public $base_string;
public static $version = '1.0';
public static $POST_INPUT = 'php://input';
function __construct($http_method, $http_url, $parameters=NULL) {
@$parameters or $parameters = array();
$this->parameters = $parameters;
$this->http_method = $http_method;
$this->http_url = $http_url;
}
/**
* attempt to build up a request from what was passed to the server
*/
public static function from_request($http_method=NULL, $http_url=NULL, $parameters=NULL) {
$scheme = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on")
? 'http'
: 'https';
@$http_url or $http_url = $scheme .
'://' . $_SERVER['HTTP_HOST'] .
':' .
$_SERVER['SERVER_PORT'] .
$_SERVER['REQUEST_URI'];
@$http_method or $http_method = $_SERVER['REQUEST_METHOD'];
// We weren't handed any parameters, so let's find the ones relevant to
// this request.
// If you run XML-RPC or similar you should use this to provide your own
// parsed parameter-list
if (!$parameters) {
// Find request headers
$request_headers = OAuthUtil::get_headers();
// Parse the query-string to find GET parameters
$parameters = OAuthUtil::parse_parameters($_SERVER['QUERY_STRING']);
// It's a POST request of the proper content-type, so parse POST
// parameters and add those overriding any duplicates from GET
if ($http_method == "POST"
&& @strstr($request_headers["Content-Type"],
"application/x-www-form-urlencoded")
) {
$post_data = OAuthUtil::parse_parameters(
file_get_contents(self::$POST_INPUT)
);
$parameters = array_merge($parameters, $post_data);
}
// We have a Authorization-header with OAuth data. Parse the header
// and add those overriding any duplicates from GET or POST
if (@substr($request_headers['Authorization'], 0, 6) == "OAuth ") {
$header_parameters = OAuthUtil::split_header(
$request_headers['Authorization']
);
$parameters = array_merge($parameters, $header_parameters);
}
}
return new OAuthRequest($http_method, $http_url, $parameters);
}
/**
* pretty much a helper function to set up the request
*/
public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) {
@$parameters or $parameters = array();
$defaults = array("oauth_version" => OAuthRequest::$version,
"oauth_nonce" => OAuthRequest::generate_nonce(),
"oauth_timestamp" => OAuthRequest::generate_timestamp(),
"oauth_consumer_key" => $consumer->key);
if ($token)
$defaults['oauth_token'] = $token->key;
$parameters = array_merge($defaults, $parameters);
return new OAuthRequest($http_method, $http_url, $parameters);
}
public function set_parameter($name, $value, $allow_duplicates = true) {
if ($allow_duplicates && isset($this->parameters[$name])) {
// We have already added parameter(s) with this name, so add to the list
if (is_scalar($this->parameters[$name])) {
// This is the first duplicate, so transform scalar (string)
// into an array so we can add the duplicates
$this->parameters[$name] = array($this->parameters[$name]);
}
$this->parameters[$name][] = $value;
} else {
$this->parameters[$name] = $value;
}
}
public function get_parameter($name) {
return isset($this->parameters[$name]) ? $this->parameters[$name] : null;
}
public function get_parameters() {
return $this->parameters;
}
public function unset_parameter($name) {
unset($this->parameters[$name]);
}
/**
* The request parameters, sorted and concatenated into a normalized string.
* @return string
*/
public function get_signable_parameters() {
// Grab all parameters
$params = $this->parameters;
// Remove oauth_signature if present
// Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.")
if (isset($params['oauth_signature'])) {
unset($params['oauth_signature']);
}
return OAuthUtil::build_http_query($params);
}
/**
* Returns the base string of this request
*
* The base string defined as the method, the url
* and the parameters (normalized), each urlencoded
* and the concated with &.
*/
public function get_signature_base_string() {
$parts = array(
$this->get_normalized_http_method(),
$this->get_normalized_http_url(),
$this->get_signable_parameters()
);
$parts = OAuthUtil::urlencode_rfc3986($parts);
return implode('&', $parts);
}
/**
* just uppercases the http method
*/
public function get_normalized_http_method() {
return strtoupper($this->http_method);
}
/**
* parses the url and rebuilds it to be
* scheme://host/path
*/
public function get_normalized_http_url() {
$parts = parse_url($this->http_url);
$port = @$parts['port'];
$scheme = $parts['scheme'];
$host = $parts['host'];
$path = @$parts['path'];
$port or $port = ($scheme == 'https') ? '443' : '80';
if (($scheme == 'https' && $port != '443')
|| ($scheme == 'http' && $port != '80')) {
$host = "$host:$port";
}
return "$scheme://$host$path";
}
/**
* builds a url usable for a GET request
*/
public function to_url() {
$post_data = $this->to_postdata();
$out = $this->get_normalized_http_url();
if ($post_data) {
$out .= '?'.$post_data;
}
return $out;
}
/**
* builds the data one would send in a POST request
*/
public function to_postdata() {
return OAuthUtil::build_http_query($this->parameters);
}
/**
* builds the Authorization: header
*/
public function to_header() {
$out ='Authorization: OAuth realm=""';
$total = array();
foreach ($this->parameters as $k => $v) {
if (substr($k, 0, 5) != "oauth") continue;
if (is_array($v)) {
throw new OAuthException('Arrays not supported in headers');
}
$out .= ',' .
OAuthUtil::urlencode_rfc3986($k) .
'="' .
OAuthUtil::urlencode_rfc3986($v) .
'"';
}
return $out;
}
public function __toString() {
return $this->to_url();
}
public function sign_request($signature_method, $consumer, $token) {
$this->set_parameter(
"oauth_signature_method",
$signature_method->get_name(),
false
);
$signature = $this->build_signature($signature_method, $consumer, $token);
$this->set_parameter("oauth_signature", $signature, false);
}
public function build_signature($signature_method, $consumer, $token) {
$signature = $signature_method->build_signature($this, $consumer, $token);
return $signature;
}
/**
* util function: current timestamp
*/
private static function generate_timestamp() {
return time();
}
/**
* util function: current nonce
*/
private static function generate_nonce() {
mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
$charid = strtoupper(md5(uniqid(rand(), true)));
$hyphen = chr(45);// "-"
$uuid = chr(123)// "{"
.substr($charid, 0, 8).$hyphen
.substr($charid, 8, 4).$hyphen
.substr($charid,12, 4).$hyphen
.substr($charid,16, 4).$hyphen
.substr($charid,20,12)
.chr(125);// "}"
return $uuid;
}
} | Ejimba/pesapal | src/Ejimba/Pesapal/OAuth/OAuthRequest.php | PHP | mit | 7,121 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
__webpack_require__(1);
var _jquery = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"jquery\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
var _jquery2 = _interopRequireDefault(_jquery);
var _cats = __webpack_require__(327);
var _cats2 = _interopRequireDefault(_cats);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _jquery2.default)('<h1>Cats</h1>').appendTo('body');
var ul = (0, _jquery2.default)('<ul></ul>').appendTo('body');
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = _cats2.default[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var cat = _step.value;
(0, _jquery2.default)('<li></li>').text(cat).appendTo(ul);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {"use strict";
__webpack_require__(2);
__webpack_require__(323);
__webpack_require__(324);
if (global._babelPolyfill) {
throw new Error("only one instance of babel-polyfill is allowed");
}
global._babelPolyfill = true;
var DEFINE_PROPERTY = "defineProperty";
function define(O, key, value) {
O[key] || Object[DEFINE_PROPERTY](O, key, {
writable: true,
configurable: true,
value: value
});
}
define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);
"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) {
[][key] && define(Array, key, Function.call.bind([][key]));
});
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(3);
__webpack_require__(51);
__webpack_require__(52);
__webpack_require__(53);
__webpack_require__(54);
__webpack_require__(56);
__webpack_require__(59);
__webpack_require__(60);
__webpack_require__(61);
__webpack_require__(62);
__webpack_require__(63);
__webpack_require__(64);
__webpack_require__(65);
__webpack_require__(66);
__webpack_require__(67);
__webpack_require__(69);
__webpack_require__(71);
__webpack_require__(73);
__webpack_require__(75);
__webpack_require__(78);
__webpack_require__(79);
__webpack_require__(80);
__webpack_require__(84);
__webpack_require__(86);
__webpack_require__(88);
__webpack_require__(91);
__webpack_require__(92);
__webpack_require__(93);
__webpack_require__(94);
__webpack_require__(96);
__webpack_require__(97);
__webpack_require__(98);
__webpack_require__(99);
__webpack_require__(100);
__webpack_require__(101);
__webpack_require__(102);
__webpack_require__(104);
__webpack_require__(105);
__webpack_require__(106);
__webpack_require__(108);
__webpack_require__(109);
__webpack_require__(110);
__webpack_require__(112);
__webpack_require__(114);
__webpack_require__(115);
__webpack_require__(116);
__webpack_require__(117);
__webpack_require__(118);
__webpack_require__(119);
__webpack_require__(120);
__webpack_require__(121);
__webpack_require__(122);
__webpack_require__(123);
__webpack_require__(124);
__webpack_require__(125);
__webpack_require__(126);
__webpack_require__(131);
__webpack_require__(132);
__webpack_require__(136);
__webpack_require__(137);
__webpack_require__(138);
__webpack_require__(139);
__webpack_require__(141);
__webpack_require__(142);
__webpack_require__(143);
__webpack_require__(144);
__webpack_require__(145);
__webpack_require__(146);
__webpack_require__(147);
__webpack_require__(148);
__webpack_require__(149);
__webpack_require__(150);
__webpack_require__(151);
__webpack_require__(152);
__webpack_require__(153);
__webpack_require__(154);
__webpack_require__(155);
__webpack_require__(157);
__webpack_require__(158);
__webpack_require__(160);
__webpack_require__(161);
__webpack_require__(167);
__webpack_require__(168);
__webpack_require__(170);
__webpack_require__(171);
__webpack_require__(172);
__webpack_require__(176);
__webpack_require__(177);
__webpack_require__(178);
__webpack_require__(179);
__webpack_require__(180);
__webpack_require__(182);
__webpack_require__(183);
__webpack_require__(184);
__webpack_require__(185);
__webpack_require__(188);
__webpack_require__(190);
__webpack_require__(191);
__webpack_require__(192);
__webpack_require__(194);
__webpack_require__(196);
__webpack_require__(198);
__webpack_require__(199);
__webpack_require__(200);
__webpack_require__(202);
__webpack_require__(203);
__webpack_require__(204);
__webpack_require__(205);
__webpack_require__(216);
__webpack_require__(220);
__webpack_require__(221);
__webpack_require__(223);
__webpack_require__(224);
__webpack_require__(228);
__webpack_require__(229);
__webpack_require__(231);
__webpack_require__(232);
__webpack_require__(233);
__webpack_require__(234);
__webpack_require__(235);
__webpack_require__(236);
__webpack_require__(237);
__webpack_require__(238);
__webpack_require__(239);
__webpack_require__(240);
__webpack_require__(241);
__webpack_require__(242);
__webpack_require__(243);
__webpack_require__(244);
__webpack_require__(245);
__webpack_require__(246);
__webpack_require__(247);
__webpack_require__(248);
__webpack_require__(249);
__webpack_require__(251);
__webpack_require__(252);
__webpack_require__(253);
__webpack_require__(254);
__webpack_require__(255);
__webpack_require__(257);
__webpack_require__(258);
__webpack_require__(259);
__webpack_require__(261);
__webpack_require__(262);
__webpack_require__(263);
__webpack_require__(264);
__webpack_require__(265);
__webpack_require__(266);
__webpack_require__(267);
__webpack_require__(268);
__webpack_require__(270);
__webpack_require__(271);
__webpack_require__(273);
__webpack_require__(274);
__webpack_require__(275);
__webpack_require__(276);
__webpack_require__(279);
__webpack_require__(280);
__webpack_require__(282);
__webpack_require__(283);
__webpack_require__(284);
__webpack_require__(285);
__webpack_require__(287);
__webpack_require__(288);
__webpack_require__(289);
__webpack_require__(290);
__webpack_require__(291);
__webpack_require__(292);
__webpack_require__(293);
__webpack_require__(294);
__webpack_require__(295);
__webpack_require__(296);
__webpack_require__(298);
__webpack_require__(299);
__webpack_require__(300);
__webpack_require__(301);
__webpack_require__(302);
__webpack_require__(303);
__webpack_require__(304);
__webpack_require__(305);
__webpack_require__(306);
__webpack_require__(307);
__webpack_require__(308);
__webpack_require__(310);
__webpack_require__(311);
__webpack_require__(312);
__webpack_require__(313);
__webpack_require__(314);
__webpack_require__(315);
__webpack_require__(316);
__webpack_require__(317);
__webpack_require__(318);
__webpack_require__(319);
__webpack_require__(320);
__webpack_require__(321);
__webpack_require__(322);
module.exports = __webpack_require__(9);
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// ECMAScript 6 symbols shim
var global = __webpack_require__(4);
var has = __webpack_require__(5);
var DESCRIPTORS = __webpack_require__(6);
var $export = __webpack_require__(8);
var redefine = __webpack_require__(18);
var META = __webpack_require__(22).KEY;
var $fails = __webpack_require__(7);
var shared = __webpack_require__(23);
var setToStringTag = __webpack_require__(25);
var uid = __webpack_require__(19);
var wks = __webpack_require__(26);
var wksExt = __webpack_require__(27);
var wksDefine = __webpack_require__(28);
var enumKeys = __webpack_require__(29);
var isArray = __webpack_require__(44);
var anObject = __webpack_require__(12);
var isObject = __webpack_require__(13);
var toIObject = __webpack_require__(32);
var toPrimitive = __webpack_require__(16);
var createDesc = __webpack_require__(17);
var _create = __webpack_require__(45);
var gOPNExt = __webpack_require__(48);
var $GOPD = __webpack_require__(50);
var $DP = __webpack_require__(11);
var $keys = __webpack_require__(30);
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
return _create(dP({}, 'a', {
get: function () { return dP(this, 'a', { value: 7 }).a; }
})).a != 7;
}) ? function (it, key, D) {
var protoDesc = gOPD(ObjectProto, key);
if (protoDesc) delete ObjectProto[key];
dP(it, key, D);
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;
var wrap = function (tag) {
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
sym._k = tag;
return sym;
};
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
return typeof it == 'symbol';
} : function (it) {
return it instanceof $Symbol;
};
var $defineProperty = function defineProperty(it, key, D) {
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
anObject(it);
key = toPrimitive(key, true);
anObject(D);
if (has(AllSymbols, key)) {
if (!D.enumerable) {
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
it[HIDDEN][key] = true;
} else {
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
D = _create(D, { enumerable: createDesc(0, false) });
} return setSymbolDesc(it, key, D);
} return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
anObject(it);
var keys = enumKeys(P = toIObject(P));
var i = 0;
var l = keys.length;
var key;
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
return it;
};
var $create = function create(it, P) {
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
var E = isEnum.call(this, key = toPrimitive(key, true));
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
it = toIObject(it);
key = toPrimitive(key, true);
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
var D = gOPD(it, key);
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
var names = gOPN(toIObject(it));
var result = [];
var i = 0;
var key;
while (names.length > i) {
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
} return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
var IS_OP = it === ObjectProto;
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
var result = [];
var i = 0;
var key;
while (names.length > i) {
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
} return result;
};
// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
var $set = function (value) {
if (this === ObjectProto) $set.call(OPSymbols, value);
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
setSymbolDesc(this, tag, createDesc(1, value));
};
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
return wrap(tag);
};
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
return this._k;
});
$GOPD.f = $getOwnPropertyDescriptor;
$DP.f = $defineProperty;
__webpack_require__(49).f = gOPNExt.f = $getOwnPropertyNames;
__webpack_require__(43).f = $propertyIsEnumerable;
__webpack_require__(42).f = $getOwnPropertySymbols;
if (DESCRIPTORS && !__webpack_require__(24)) {
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
wksExt.f = function (name) {
return wrap(wks(name));
};
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
for (var es6Symbols = (
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
// 19.4.2.1 Symbol.for(key)
'for': function (key) {
return has(SymbolRegistry, key += '')
? SymbolRegistry[key]
: SymbolRegistry[key] = $Symbol(key);
},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor: function keyFor(sym) {
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
},
useSetter: function () { setter = true; },
useSimple: function () { setter = false; }
});
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
// 19.1.2.2 Object.create(O [, Properties])
create: $create,
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty: $defineProperty,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties: $defineProperties,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames: $getOwnPropertyNames,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: $getOwnPropertySymbols
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
var S = $Symbol();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
stringify: function stringify(it) {
var args = [it];
var i = 1;
var replacer, $replacer;
while (arguments.length > i) args.push(arguments[i++]);
$replacer = replacer = args[1];
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
if (!isArray(replacer)) replacer = function (key, value) {
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
if (!isSymbol(value)) return value;
};
args[1] = replacer;
return _stringify.apply($JSON, args);
}
});
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);
/***/ }),
/* 4 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/* 5 */
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(7)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 7 */
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var core = __webpack_require__(9);
var hide = __webpack_require__(10);
var redefine = __webpack_require__(18);
var ctx = __webpack_require__(20);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
var key, own, out, exp;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined;
// export native or passed
out = (own ? target : source)[key];
// bind timers to global for call from export context
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// extend global
if (target) redefine(target, key, out, type & $export.U);
// export
if (exports[key] != out) hide(exports, key, exp);
if (IS_PROTO && expProto[key] != out) expProto[key] = out;
}
};
global.core = core;
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
/***/ }),
/* 9 */
/***/ (function(module, exports) {
var core = module.exports = { version: '2.5.7' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(11);
var createDesc = __webpack_require__(17);
module.exports = __webpack_require__(6) ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(12);
var IE8_DOM_DEFINE = __webpack_require__(14);
var toPrimitive = __webpack_require__(16);
var dP = Object.defineProperty;
exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(13);
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
/***/ }),
/* 13 */
/***/ (function(module, exports) {
module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = !__webpack_require__(6) && !__webpack_require__(7)(function () {
return Object.defineProperty(__webpack_require__(15)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(13);
var document = __webpack_require__(4).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return is ? document.createElement(it) : {};
};
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(13);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/ }),
/* 17 */
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var hide = __webpack_require__(10);
var has = __webpack_require__(5);
var SRC = __webpack_require__(19)('src');
var TO_STRING = 'toString';
var $toString = Function[TO_STRING];
var TPL = ('' + $toString).split(TO_STRING);
__webpack_require__(9).inspectSource = function (it) {
return $toString.call(it);
};
(module.exports = function (O, key, val, safe) {
var isFunction = typeof val == 'function';
if (isFunction) has(val, 'name') || hide(val, 'name', key);
if (O[key] === val) return;
if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
if (O === global) {
O[key] = val;
} else if (!safe) {
delete O[key];
hide(O, key, val);
} else if (O[key]) {
O[key] = val;
} else {
hide(O, key, val);
}
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
return typeof this == 'function' && this[SRC] || $toString.call(this);
});
/***/ }),
/* 19 */
/***/ (function(module, exports) {
var id = 0;
var px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
var aFunction = __webpack_require__(21);
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
/***/ }),
/* 21 */
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {
var META = __webpack_require__(19)('meta');
var isObject = __webpack_require__(13);
var has = __webpack_require__(5);
var setDesc = __webpack_require__(11).f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var FREEZE = !__webpack_require__(7)(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
setDesc(it, META, { value: {
i: 'O' + ++id, // object ID
w: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMeta(it);
// return object ID
} return it[META].i;
};
var getWeak = function (it, create) {
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMeta(it);
// return hash weak collections IDs
} return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
return it;
};
var meta = module.exports = {
KEY: META,
NEED: false,
fastKey: fastKey,
getWeak: getWeak,
onFreeze: onFreeze
};
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
var core = __webpack_require__(9);
var global = __webpack_require__(4);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(24) ? 'pure' : 'global',
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
/* 24 */
/***/ (function(module, exports) {
module.exports = false;
/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
var def = __webpack_require__(11).f;
var has = __webpack_require__(5);
var TAG = __webpack_require__(26)('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__(23)('wks');
var uid = __webpack_require__(19);
var Symbol = __webpack_require__(4).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
exports.f = __webpack_require__(26);
/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var core = __webpack_require__(9);
var LIBRARY = __webpack_require__(24);
var wksExt = __webpack_require__(27);
var defineProperty = __webpack_require__(11).f;
module.exports = function (name) {
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(30);
var gOPS = __webpack_require__(42);
var pIE = __webpack_require__(43);
module.exports = function (it) {
var result = getKeys(it);
var getSymbols = gOPS.f;
if (getSymbols) {
var symbols = getSymbols(it);
var isEnum = pIE.f;
var i = 0;
var key;
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
} return result;
};
/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(31);
var enumBugKeys = __webpack_require__(41);
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
};
/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__(5);
var toIObject = __webpack_require__(32);
var arrayIndexOf = __webpack_require__(36)(false);
var IE_PROTO = __webpack_require__(40)('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
var i = 0;
var result = [];
var key;
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(33);
var defined = __webpack_require__(35);
module.exports = function (it) {
return IObject(defined(it));
};
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(34);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
};
/***/ }),
/* 34 */
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/* 35 */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = __webpack_require__(32);
var toLength = __webpack_require__(37);
var toAbsoluteIndex = __webpack_require__(39);
module.exports = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
var toInteger = __webpack_require__(38);
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
/***/ }),
/* 38 */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(38);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__(23)('keys');
var uid = __webpack_require__(19);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
/* 41 */
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
module.exports = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
/***/ }),
/* 42 */
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/* 43 */
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(34);
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(12);
var dPs = __webpack_require__(46);
var enumBugKeys = __webpack_require__(41);
var IE_PROTO = __webpack_require__(40)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(15)('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
__webpack_require__(47).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/ }),
/* 46 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(11);
var anObject = __webpack_require__(12);
var getKeys = __webpack_require__(30);
module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
var i = 0;
var P;
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
return O;
};
/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
var document = __webpack_require__(4).document;
module.exports = document && document.documentElement;
/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(32);
var gOPN = __webpack_require__(49).f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
try {
return gOPN(it);
} catch (e) {
return windowNames.slice();
}
};
module.exports.f = function getOwnPropertyNames(it) {
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};
/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(31);
var hiddenKeys = __webpack_require__(41).concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return $keys(O, hiddenKeys);
};
/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {
var pIE = __webpack_require__(43);
var createDesc = __webpack_require__(17);
var toIObject = __webpack_require__(32);
var toPrimitive = __webpack_require__(16);
var has = __webpack_require__(5);
var IE8_DOM_DEFINE = __webpack_require__(14);
var gOPD = Object.getOwnPropertyDescriptor;
exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
return gOPD(O, P);
} catch (e) { /* empty */ }
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};
/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
$export($export.S, 'Object', { create: __webpack_require__(45) });
/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperty: __webpack_require__(11).f });
/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
$export($export.S + $export.F * !__webpack_require__(6), 'Object', { defineProperties: __webpack_require__(46) });
/***/ }),
/* 54 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(32);
var $getOwnPropertyDescriptor = __webpack_require__(50).f;
__webpack_require__(55)('getOwnPropertyDescriptor', function () {
return function getOwnPropertyDescriptor(it, key) {
return $getOwnPropertyDescriptor(toIObject(it), key);
};
});
/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {
// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(8);
var core = __webpack_require__(9);
var fails = __webpack_require__(7);
module.exports = function (KEY, exec) {
var fn = (core.Object || {})[KEY] || Object[KEY];
var exp = {};
exp[KEY] = exec(fn);
$export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
};
/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = __webpack_require__(57);
var $getPrototypeOf = __webpack_require__(58);
__webpack_require__(55)('getPrototypeOf', function () {
return function getPrototypeOf(it) {
return $getPrototypeOf(toObject(it));
};
});
/***/ }),
/* 57 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(35);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/* 58 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(5);
var toObject = __webpack_require__(57);
var IE_PROTO = __webpack_require__(40)('IE_PROTO');
var ObjectProto = Object.prototype;
module.exports = Object.getPrototypeOf || function (O) {
O = toObject(O);
if (has(O, IE_PROTO)) return O[IE_PROTO];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
};
/***/ }),
/* 59 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(57);
var $keys = __webpack_require__(30);
__webpack_require__(55)('keys', function () {
return function keys(it) {
return $keys(toObject(it));
};
});
/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 Object.getOwnPropertyNames(O)
__webpack_require__(55)('getOwnPropertyNames', function () {
return __webpack_require__(48).f;
});
/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.5 Object.freeze(O)
var isObject = __webpack_require__(13);
var meta = __webpack_require__(22).onFreeze;
__webpack_require__(55)('freeze', function ($freeze) {
return function freeze(it) {
return $freeze && isObject(it) ? $freeze(meta(it)) : it;
};
});
/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.17 Object.seal(O)
var isObject = __webpack_require__(13);
var meta = __webpack_require__(22).onFreeze;
__webpack_require__(55)('seal', function ($seal) {
return function seal(it) {
return $seal && isObject(it) ? $seal(meta(it)) : it;
};
});
/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.15 Object.preventExtensions(O)
var isObject = __webpack_require__(13);
var meta = __webpack_require__(22).onFreeze;
__webpack_require__(55)('preventExtensions', function ($preventExtensions) {
return function preventExtensions(it) {
return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;
};
});
/***/ }),
/* 64 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.12 Object.isFrozen(O)
var isObject = __webpack_require__(13);
__webpack_require__(55)('isFrozen', function ($isFrozen) {
return function isFrozen(it) {
return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
};
});
/***/ }),
/* 65 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.13 Object.isSealed(O)
var isObject = __webpack_require__(13);
__webpack_require__(55)('isSealed', function ($isSealed) {
return function isSealed(it) {
return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
};
});
/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.11 Object.isExtensible(O)
var isObject = __webpack_require__(13);
__webpack_require__(55)('isExtensible', function ($isExtensible) {
return function isExtensible(it) {
return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
};
});
/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(8);
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(68) });
/***/ }),
/* 68 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(30);
var gOPS = __webpack_require__(42);
var pIE = __webpack_require__(43);
var toObject = __webpack_require__(57);
var IObject = __webpack_require__(33);
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(7)(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var S = Symbol();
var K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) { B[k] = k; });
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var aLen = arguments.length;
var index = 1;
var getSymbols = gOPS.f;
var isEnum = pIE.f;
while (aLen > index) {
var S = IObject(arguments[index++]);
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
} return T;
} : $assign;
/***/ }),
/* 69 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.10 Object.is(value1, value2)
var $export = __webpack_require__(8);
$export($export.S, 'Object', { is: __webpack_require__(70) });
/***/ }),
/* 70 */
/***/ (function(module, exports) {
// 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = __webpack_require__(8);
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(72).set });
/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(13);
var anObject = __webpack_require__(12);
var check = function (O, proto) {
anObject(O);
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function (test, buggy, set) {
try {
set = __webpack_require__(20)(Function.call, __webpack_require__(50).f(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch (e) { buggy = true; }
return function setPrototypeOf(O, proto) {
check(O, proto);
if (buggy) O.__proto__ = proto;
else set(O, proto);
return O;
};
}({}, false) : undefined),
check: check
};
/***/ }),
/* 73 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 19.1.3.6 Object.prototype.toString()
var classof = __webpack_require__(74);
var test = {};
test[__webpack_require__(26)('toStringTag')] = 'z';
if (test + '' != '[object z]') {
__webpack_require__(18)(Object.prototype, 'toString', function toString() {
return '[object ' + classof(this) + ']';
}, true);
}
/***/ }),
/* 74 */
/***/ (function(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(34);
var TAG = __webpack_require__(26)('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (e) { /* empty */ }
};
module.exports = function (it) {
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
/***/ }),
/* 75 */
/***/ (function(module, exports, __webpack_require__) {
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
var $export = __webpack_require__(8);
$export($export.P, 'Function', { bind: __webpack_require__(76) });
/***/ }),
/* 76 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var aFunction = __webpack_require__(21);
var isObject = __webpack_require__(13);
var invoke = __webpack_require__(77);
var arraySlice = [].slice;
var factories = {};
var construct = function (F, len, args) {
if (!(len in factories)) {
for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
// eslint-disable-next-line no-new-func
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
} return factories[len](F, args);
};
module.exports = Function.bind || function bind(that /* , ...args */) {
var fn = aFunction(this);
var partArgs = arraySlice.call(arguments, 1);
var bound = function (/* args... */) {
var args = partArgs.concat(arraySlice.call(arguments));
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
};
if (isObject(fn.prototype)) bound.prototype = fn.prototype;
return bound;
};
/***/ }),
/* 77 */
/***/ (function(module, exports) {
// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function (fn, args, that) {
var un = that === undefined;
switch (args.length) {
case 0: return un ? fn()
: fn.call(that);
case 1: return un ? fn(args[0])
: fn.call(that, args[0]);
case 2: return un ? fn(args[0], args[1])
: fn.call(that, args[0], args[1]);
case 3: return un ? fn(args[0], args[1], args[2])
: fn.call(that, args[0], args[1], args[2]);
case 4: return un ? fn(args[0], args[1], args[2], args[3])
: fn.call(that, args[0], args[1], args[2], args[3]);
} return fn.apply(that, args);
};
/***/ }),
/* 78 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(11).f;
var FProto = Function.prototype;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';
// 19.2.4.2 name
NAME in FProto || __webpack_require__(6) && dP(FProto, NAME, {
configurable: true,
get: function () {
try {
return ('' + this).match(nameRE)[1];
} catch (e) {
return '';
}
}
});
/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var isObject = __webpack_require__(13);
var getPrototypeOf = __webpack_require__(58);
var HAS_INSTANCE = __webpack_require__(26)('hasInstance');
var FunctionProto = Function.prototype;
// 19.2.3.6 Function.prototype[@@hasInstance](V)
if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(11).f(FunctionProto, HAS_INSTANCE, { value: function (O) {
if (typeof this != 'function' || !isObject(O)) return false;
if (!isObject(this.prototype)) return O instanceof this;
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
return false;
} });
/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var $parseInt = __webpack_require__(81);
// 18.2.5 parseInt(string, radix)
$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });
/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {
var $parseInt = __webpack_require__(4).parseInt;
var $trim = __webpack_require__(82).trim;
var ws = __webpack_require__(83);
var hex = /^[-+]?0[xX]/;
module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
var string = $trim(String(str), 3);
return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
} : $parseInt;
/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var defined = __webpack_require__(35);
var fails = __webpack_require__(7);
var spaces = __webpack_require__(83);
var space = '[' + spaces + ']';
var non = '\u200b\u0085';
var ltrim = RegExp('^' + space + space + '*');
var rtrim = RegExp(space + space + '*$');
var exporter = function (KEY, exec, ALIAS) {
var exp = {};
var FORCE = fails(function () {
return !!spaces[KEY]() || non[KEY]() != non;
});
var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
if (ALIAS) exp[ALIAS] = fn;
$export($export.P + $export.F * FORCE, 'String', exp);
};
// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
string = String(defined(string));
if (TYPE & 1) string = string.replace(ltrim, '');
if (TYPE & 2) string = string.replace(rtrim, '');
return string;
};
module.exports = exporter;
/***/ }),
/* 83 */
/***/ (function(module, exports) {
module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var $parseFloat = __webpack_require__(85);
// 18.2.4 parseFloat(string)
$export($export.G + $export.F * (parseFloat != $parseFloat), { parseFloat: $parseFloat });
/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {
var $parseFloat = __webpack_require__(4).parseFloat;
var $trim = __webpack_require__(82).trim;
module.exports = 1 / $parseFloat(__webpack_require__(83) + '-0') !== -Infinity ? function parseFloat(str) {
var string = $trim(String(str), 3);
var result = $parseFloat(string);
return result === 0 && string.charAt(0) == '-' ? -0 : result;
} : $parseFloat;
/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var global = __webpack_require__(4);
var has = __webpack_require__(5);
var cof = __webpack_require__(34);
var inheritIfRequired = __webpack_require__(87);
var toPrimitive = __webpack_require__(16);
var fails = __webpack_require__(7);
var gOPN = __webpack_require__(49).f;
var gOPD = __webpack_require__(50).f;
var dP = __webpack_require__(11).f;
var $trim = __webpack_require__(82).trim;
var NUMBER = 'Number';
var $Number = global[NUMBER];
var Base = $Number;
var proto = $Number.prototype;
// Opera ~12 has broken Object#toString
var BROKEN_COF = cof(__webpack_require__(45)(proto)) == NUMBER;
var TRIM = 'trim' in String.prototype;
// 7.1.3 ToNumber(argument)
var toNumber = function (argument) {
var it = toPrimitive(argument, false);
if (typeof it == 'string' && it.length > 2) {
it = TRIM ? it.trim() : $trim(it, 3);
var first = it.charCodeAt(0);
var third, radix, maxCode;
if (first === 43 || first === 45) {
third = it.charCodeAt(2);
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
} else if (first === 48) {
switch (it.charCodeAt(1)) {
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
default: return +it;
}
for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
code = digits.charCodeAt(i);
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if (code < 48 || code > maxCode) return NaN;
} return parseInt(digits, radix);
}
} return +it;
};
if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
$Number = function Number(value) {
var it = arguments.length < 1 ? 0 : value;
var that = this;
return that instanceof $Number
// check on 1..constructor(foo) case
&& (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
};
for (var keys = __webpack_require__(6) ? gOPN(Base) : (
// ES3:
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
// ES6 (in case, if modules with ES6 Number statics required before):
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
).split(','), j = 0, key; keys.length > j; j++) {
if (has(Base, key = keys[j]) && !has($Number, key)) {
dP($Number, key, gOPD(Base, key));
}
}
$Number.prototype = proto;
proto.constructor = $Number;
__webpack_require__(18)(global, NUMBER, $Number);
}
/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(13);
var setPrototypeOf = __webpack_require__(72).set;
module.exports = function (that, target, C) {
var S = target.constructor;
var P;
if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
setPrototypeOf(that, P);
} return that;
};
/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toInteger = __webpack_require__(38);
var aNumberValue = __webpack_require__(89);
var repeat = __webpack_require__(90);
var $toFixed = 1.0.toFixed;
var floor = Math.floor;
var data = [0, 0, 0, 0, 0, 0];
var ERROR = 'Number.toFixed: incorrect invocation!';
var ZERO = '0';
var multiply = function (n, c) {
var i = -1;
var c2 = c;
while (++i < 6) {
c2 += n * data[i];
data[i] = c2 % 1e7;
c2 = floor(c2 / 1e7);
}
};
var divide = function (n) {
var i = 6;
var c = 0;
while (--i >= 0) {
c += data[i];
data[i] = floor(c / n);
c = (c % n) * 1e7;
}
};
var numToString = function () {
var i = 6;
var s = '';
while (--i >= 0) {
if (s !== '' || i === 0 || data[i] !== 0) {
var t = String(data[i]);
s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;
}
} return s;
};
var pow = function (x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
};
var log = function (x) {
var n = 0;
var x2 = x;
while (x2 >= 4096) {
n += 12;
x2 /= 4096;
}
while (x2 >= 2) {
n += 1;
x2 /= 2;
} return n;
};
$export($export.P + $export.F * (!!$toFixed && (
0.00008.toFixed(3) !== '0.000' ||
0.9.toFixed(0) !== '1' ||
1.255.toFixed(2) !== '1.25' ||
1000000000000000128.0.toFixed(0) !== '1000000000000000128'
) || !__webpack_require__(7)(function () {
// V8 ~ Android 4.3-
$toFixed.call({});
})), 'Number', {
toFixed: function toFixed(fractionDigits) {
var x = aNumberValue(this, ERROR);
var f = toInteger(fractionDigits);
var s = '';
var m = ZERO;
var e, z, j, k;
if (f < 0 || f > 20) throw RangeError(ERROR);
// eslint-disable-next-line no-self-compare
if (x != x) return 'NaN';
if (x <= -1e21 || x >= 1e21) return String(x);
if (x < 0) {
s = '-';
x = -x;
}
if (x > 1e-21) {
e = log(x * pow(2, 69, 1)) - 69;
z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);
z *= 0x10000000000000;
e = 52 - e;
if (e > 0) {
multiply(0, z);
j = f;
while (j >= 7) {
multiply(1e7, 0);
j -= 7;
}
multiply(pow(10, j, 1), 0);
j = e - 1;
while (j >= 23) {
divide(1 << 23);
j -= 23;
}
divide(1 << j);
multiply(1, 1);
divide(2);
m = numToString();
} else {
multiply(0, z);
multiply(1 << -e, 0);
m = numToString() + repeat.call(ZERO, f);
}
}
if (f > 0) {
k = m.length;
m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));
} else {
m = s + m;
} return m;
}
});
/***/ }),
/* 89 */
/***/ (function(module, exports, __webpack_require__) {
var cof = __webpack_require__(34);
module.exports = function (it, msg) {
if (typeof it != 'number' && cof(it) != 'Number') throw TypeError(msg);
return +it;
};
/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var toInteger = __webpack_require__(38);
var defined = __webpack_require__(35);
module.exports = function repeat(count) {
var str = String(defined(this));
var res = '';
var n = toInteger(count);
if (n < 0 || n == Infinity) throw RangeError("Count can't be negative");
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;
return res;
};
/***/ }),
/* 91 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $fails = __webpack_require__(7);
var aNumberValue = __webpack_require__(89);
var $toPrecision = 1.0.toPrecision;
$export($export.P + $export.F * ($fails(function () {
// IE7-
return $toPrecision.call(1, undefined) !== '1';
}) || !$fails(function () {
// V8 ~ Android 4.3-
$toPrecision.call({});
})), 'Number', {
toPrecision: function toPrecision(precision) {
var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');
return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);
}
});
/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.1 Number.EPSILON
var $export = __webpack_require__(8);
$export($export.S, 'Number', { EPSILON: Math.pow(2, -52) });
/***/ }),
/* 93 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.2 Number.isFinite(number)
var $export = __webpack_require__(8);
var _isFinite = __webpack_require__(4).isFinite;
$export($export.S, 'Number', {
isFinite: function isFinite(it) {
return typeof it == 'number' && _isFinite(it);
}
});
/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.3 Number.isInteger(number)
var $export = __webpack_require__(8);
$export($export.S, 'Number', { isInteger: __webpack_require__(95) });
/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.3 Number.isInteger(number)
var isObject = __webpack_require__(13);
var floor = Math.floor;
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};
/***/ }),
/* 96 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.4 Number.isNaN(number)
var $export = __webpack_require__(8);
$export($export.S, 'Number', {
isNaN: function isNaN(number) {
// eslint-disable-next-line no-self-compare
return number != number;
}
});
/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.5 Number.isSafeInteger(number)
var $export = __webpack_require__(8);
var isInteger = __webpack_require__(95);
var abs = Math.abs;
$export($export.S, 'Number', {
isSafeInteger: function isSafeInteger(number) {
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
}
});
/***/ }),
/* 98 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.6 Number.MAX_SAFE_INTEGER
var $export = __webpack_require__(8);
$export($export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
/***/ }),
/* 99 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.10 Number.MIN_SAFE_INTEGER
var $export = __webpack_require__(8);
$export($export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
/***/ }),
/* 100 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var $parseFloat = __webpack_require__(85);
// 20.1.2.12 Number.parseFloat(string)
$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', { parseFloat: $parseFloat });
/***/ }),
/* 101 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var $parseInt = __webpack_require__(81);
// 20.1.2.13 Number.parseInt(string, radix)
$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', { parseInt: $parseInt });
/***/ }),
/* 102 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.3 Math.acosh(x)
var $export = __webpack_require__(8);
var log1p = __webpack_require__(103);
var sqrt = Math.sqrt;
var $acosh = Math.acosh;
$export($export.S + $export.F * !($acosh
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
&& Math.floor($acosh(Number.MAX_VALUE)) == 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
&& $acosh(Infinity) == Infinity
), 'Math', {
acosh: function acosh(x) {
return (x = +x) < 1 ? NaN : x > 94906265.62425156
? Math.log(x) + Math.LN2
: log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
}
});
/***/ }),
/* 103 */
/***/ (function(module, exports) {
// 20.2.2.20 Math.log1p(x)
module.exports = Math.log1p || function log1p(x) {
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
};
/***/ }),
/* 104 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.5 Math.asinh(x)
var $export = __webpack_require__(8);
var $asinh = Math.asinh;
function asinh(x) {
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
}
// Tor Browser bug: Math.asinh(0) -> -0
$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
/***/ }),
/* 105 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.7 Math.atanh(x)
var $export = __webpack_require__(8);
var $atanh = Math.atanh;
// Tor Browser bug: Math.atanh(-0) -> 0
$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
atanh: function atanh(x) {
return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
}
});
/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.9 Math.cbrt(x)
var $export = __webpack_require__(8);
var sign = __webpack_require__(107);
$export($export.S, 'Math', {
cbrt: function cbrt(x) {
return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
}
});
/***/ }),
/* 107 */
/***/ (function(module, exports) {
// 20.2.2.28 Math.sign(x)
module.exports = Math.sign || function sign(x) {
// eslint-disable-next-line no-self-compare
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
/***/ }),
/* 108 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.11 Math.clz32(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
clz32: function clz32(x) {
return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
}
});
/***/ }),
/* 109 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.12 Math.cosh(x)
var $export = __webpack_require__(8);
var exp = Math.exp;
$export($export.S, 'Math', {
cosh: function cosh(x) {
return (exp(x = +x) + exp(-x)) / 2;
}
});
/***/ }),
/* 110 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.14 Math.expm1(x)
var $export = __webpack_require__(8);
var $expm1 = __webpack_require__(111);
$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', { expm1: $expm1 });
/***/ }),
/* 111 */
/***/ (function(module, exports) {
// 20.2.2.14 Math.expm1(x)
var $expm1 = Math.expm1;
module.exports = (!$expm1
// Old FF bug
|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
// Tor Browser bug
|| $expm1(-2e-17) != -2e-17
) ? function expm1(x) {
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
} : $expm1;
/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.16 Math.fround(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', { fround: __webpack_require__(113) });
/***/ }),
/* 113 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.16 Math.fround(x)
var sign = __webpack_require__(107);
var pow = Math.pow;
var EPSILON = pow(2, -52);
var EPSILON32 = pow(2, -23);
var MAX32 = pow(2, 127) * (2 - EPSILON32);
var MIN32 = pow(2, -126);
var roundTiesToEven = function (n) {
return n + 1 / EPSILON - 1 / EPSILON;
};
module.exports = Math.fround || function fround(x) {
var $abs = Math.abs(x);
var $sign = sign(x);
var a, result;
if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a = (1 + EPSILON32 / EPSILON) * $abs;
result = a - (a - $abs);
// eslint-disable-next-line no-self-compare
if (result > MAX32 || result != result) return $sign * Infinity;
return $sign * result;
};
/***/ }),
/* 114 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
var $export = __webpack_require__(8);
var abs = Math.abs;
$export($export.S, 'Math', {
hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
var sum = 0;
var i = 0;
var aLen = arguments.length;
var larg = 0;
var arg, div;
while (i < aLen) {
arg = abs(arguments[i++]);
if (larg < arg) {
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if (arg > 0) {
div = arg / larg;
sum += div * div;
} else sum += arg;
}
return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
}
});
/***/ }),
/* 115 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.18 Math.imul(x, y)
var $export = __webpack_require__(8);
var $imul = Math.imul;
// some WebKit versions fails with big numbers, some has wrong arity
$export($export.S + $export.F * __webpack_require__(7)(function () {
return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
}), 'Math', {
imul: function imul(x, y) {
var UINT16 = 0xffff;
var xn = +x;
var yn = +y;
var xl = UINT16 & xn;
var yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
}
});
/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.21 Math.log10(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
log10: function log10(x) {
return Math.log(x) * Math.LOG10E;
}
});
/***/ }),
/* 117 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.20 Math.log1p(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', { log1p: __webpack_require__(103) });
/***/ }),
/* 118 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.22 Math.log2(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
log2: function log2(x) {
return Math.log(x) / Math.LN2;
}
});
/***/ }),
/* 119 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.28 Math.sign(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', { sign: __webpack_require__(107) });
/***/ }),
/* 120 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.30 Math.sinh(x)
var $export = __webpack_require__(8);
var expm1 = __webpack_require__(111);
var exp = Math.exp;
// V8 near Chromium 38 has a problem with very small numbers
$export($export.S + $export.F * __webpack_require__(7)(function () {
return !Math.sinh(-2e-17) != -2e-17;
}), 'Math', {
sinh: function sinh(x) {
return Math.abs(x = +x) < 1
? (expm1(x) - expm1(-x)) / 2
: (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
}
});
/***/ }),
/* 121 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.33 Math.tanh(x)
var $export = __webpack_require__(8);
var expm1 = __webpack_require__(111);
var exp = Math.exp;
$export($export.S, 'Math', {
tanh: function tanh(x) {
var a = expm1(x = +x);
var b = expm1(-x);
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
}
});
/***/ }),
/* 122 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.34 Math.trunc(x)
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
trunc: function trunc(it) {
return (it > 0 ? Math.floor : Math.ceil)(it);
}
});
/***/ }),
/* 123 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var toAbsoluteIndex = __webpack_require__(39);
var fromCharCode = String.fromCharCode;
var $fromCodePoint = String.fromCodePoint;
// length should be 1, old FF problem
$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
// 21.1.2.2 String.fromCodePoint(...codePoints)
fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
var res = [];
var aLen = arguments.length;
var i = 0;
var code;
while (aLen > i) {
code = +arguments[i++];
if (toAbsoluteIndex(code, 0x10ffff) !== code) throw RangeError(code + ' is not a valid code point');
res.push(code < 0x10000
? fromCharCode(code)
: fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
);
} return res.join('');
}
});
/***/ }),
/* 124 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var toIObject = __webpack_require__(32);
var toLength = __webpack_require__(37);
$export($export.S, 'String', {
// 21.1.2.4 String.raw(callSite, ...substitutions)
raw: function raw(callSite) {
var tpl = toIObject(callSite.raw);
var len = toLength(tpl.length);
var aLen = arguments.length;
var res = [];
var i = 0;
while (len > i) {
res.push(String(tpl[i++]));
if (i < aLen) res.push(String(arguments[i]));
} return res.join('');
}
});
/***/ }),
/* 125 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 21.1.3.25 String.prototype.trim()
__webpack_require__(82)('trim', function ($trim) {
return function trim() {
return $trim(this, 3);
};
});
/***/ }),
/* 126 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $at = __webpack_require__(127)(true);
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(128)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
var O = this._t;
var index = this._i;
var point;
if (index >= O.length) return { value: undefined, done: true };
point = $at(O, index);
this._i += point.length;
return { value: point, done: false };
});
/***/ }),
/* 127 */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(38);
var defined = __webpack_require__(35);
// true -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
return function (that, pos) {
var s = String(defined(that));
var i = toInteger(pos);
var l = s.length;
var a, b;
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
};
/***/ }),
/* 128 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var LIBRARY = __webpack_require__(24);
var $export = __webpack_require__(8);
var redefine = __webpack_require__(18);
var hide = __webpack_require__(10);
var Iterators = __webpack_require__(129);
var $iterCreate = __webpack_require__(130);
var setToStringTag = __webpack_require__(25);
var getPrototypeOf = __webpack_require__(58);
var ITERATOR = __webpack_require__(26)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';
var returnThis = function () { return this; };
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
$iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS: return function keys() { return new Constructor(this, kind); };
case VALUES: return function values() { return new Constructor(this, kind); };
} return function entries() { return new Constructor(this, kind); };
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() { return $native.call(this); };
}
// Define iterator
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
};
if (FORCED) for (key in methods) {
if (!(key in proto)) redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
/***/ }),
/* 129 */
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/* 130 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var create = __webpack_require__(45);
var descriptor = __webpack_require__(17);
var setToStringTag = __webpack_require__(25);
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(10)(IteratorPrototype, __webpack_require__(26)('iterator'), function () { return this; });
module.exports = function (Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
setToStringTag(Constructor, NAME + ' Iterator');
};
/***/ }),
/* 131 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $at = __webpack_require__(127)(false);
$export($export.P, 'String', {
// 21.1.3.3 String.prototype.codePointAt(pos)
codePointAt: function codePointAt(pos) {
return $at(this, pos);
}
});
/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
'use strict';
var $export = __webpack_require__(8);
var toLength = __webpack_require__(37);
var context = __webpack_require__(133);
var ENDS_WITH = 'endsWith';
var $endsWith = ''[ENDS_WITH];
$export($export.P + $export.F * __webpack_require__(135)(ENDS_WITH), 'String', {
endsWith: function endsWith(searchString /* , endPosition = @length */) {
var that = context(this, searchString, ENDS_WITH);
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
var len = toLength(that.length);
var end = endPosition === undefined ? len : Math.min(toLength(endPosition), len);
var search = String(searchString);
return $endsWith
? $endsWith.call(that, search, end)
: that.slice(end - search.length, end) === search;
}
});
/***/ }),
/* 133 */
/***/ (function(module, exports, __webpack_require__) {
// helper for String#{startsWith, endsWith, includes}
var isRegExp = __webpack_require__(134);
var defined = __webpack_require__(35);
module.exports = function (that, searchString, NAME) {
if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
return String(defined(that));
};
/***/ }),
/* 134 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.8 IsRegExp(argument)
var isObject = __webpack_require__(13);
var cof = __webpack_require__(34);
var MATCH = __webpack_require__(26)('match');
module.exports = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
};
/***/ }),
/* 135 */
/***/ (function(module, exports, __webpack_require__) {
var MATCH = __webpack_require__(26)('match');
module.exports = function (KEY) {
var re = /./;
try {
'/./'[KEY](re);
} catch (e) {
try {
re[MATCH] = false;
return !'/./'[KEY](re);
} catch (f) { /* empty */ }
} return true;
};
/***/ }),
/* 136 */
/***/ (function(module, exports, __webpack_require__) {
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
'use strict';
var $export = __webpack_require__(8);
var context = __webpack_require__(133);
var INCLUDES = 'includes';
$export($export.P + $export.F * __webpack_require__(135)(INCLUDES), 'String', {
includes: function includes(searchString /* , position = 0 */) {
return !!~context(this, searchString, INCLUDES)
.indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/* 137 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
$export($export.P, 'String', {
// 21.1.3.13 String.prototype.repeat(count)
repeat: __webpack_require__(90)
});
/***/ }),
/* 138 */
/***/ (function(module, exports, __webpack_require__) {
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
'use strict';
var $export = __webpack_require__(8);
var toLength = __webpack_require__(37);
var context = __webpack_require__(133);
var STARTS_WITH = 'startsWith';
var $startsWith = ''[STARTS_WITH];
$export($export.P + $export.F * __webpack_require__(135)(STARTS_WITH), 'String', {
startsWith: function startsWith(searchString /* , position = 0 */) {
var that = context(this, searchString, STARTS_WITH);
var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = String(searchString);
return $startsWith
? $startsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
/***/ }),
/* 139 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.2 String.prototype.anchor(name)
__webpack_require__(140)('anchor', function (createHTML) {
return function anchor(name) {
return createHTML(this, 'a', 'name', name);
};
});
/***/ }),
/* 140 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var fails = __webpack_require__(7);
var defined = __webpack_require__(35);
var quot = /"/g;
// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
var createHTML = function (string, tag, attribute, value) {
var S = String(defined(string));
var p1 = '<' + tag;
if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
return p1 + '>' + S + '</' + tag + '>';
};
module.exports = function (NAME, exec) {
var O = {};
O[NAME] = exec(createHTML);
$export($export.P + $export.F * fails(function () {
var test = ''[NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
}), 'String', O);
};
/***/ }),
/* 141 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.3 String.prototype.big()
__webpack_require__(140)('big', function (createHTML) {
return function big() {
return createHTML(this, 'big', '', '');
};
});
/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.4 String.prototype.blink()
__webpack_require__(140)('blink', function (createHTML) {
return function blink() {
return createHTML(this, 'blink', '', '');
};
});
/***/ }),
/* 143 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.5 String.prototype.bold()
__webpack_require__(140)('bold', function (createHTML) {
return function bold() {
return createHTML(this, 'b', '', '');
};
});
/***/ }),
/* 144 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.6 String.prototype.fixed()
__webpack_require__(140)('fixed', function (createHTML) {
return function fixed() {
return createHTML(this, 'tt', '', '');
};
});
/***/ }),
/* 145 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.7 String.prototype.fontcolor(color)
__webpack_require__(140)('fontcolor', function (createHTML) {
return function fontcolor(color) {
return createHTML(this, 'font', 'color', color);
};
});
/***/ }),
/* 146 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.8 String.prototype.fontsize(size)
__webpack_require__(140)('fontsize', function (createHTML) {
return function fontsize(size) {
return createHTML(this, 'font', 'size', size);
};
});
/***/ }),
/* 147 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.9 String.prototype.italics()
__webpack_require__(140)('italics', function (createHTML) {
return function italics() {
return createHTML(this, 'i', '', '');
};
});
/***/ }),
/* 148 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.10 String.prototype.link(url)
__webpack_require__(140)('link', function (createHTML) {
return function link(url) {
return createHTML(this, 'a', 'href', url);
};
});
/***/ }),
/* 149 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.11 String.prototype.small()
__webpack_require__(140)('small', function (createHTML) {
return function small() {
return createHTML(this, 'small', '', '');
};
});
/***/ }),
/* 150 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.12 String.prototype.strike()
__webpack_require__(140)('strike', function (createHTML) {
return function strike() {
return createHTML(this, 'strike', '', '');
};
});
/***/ }),
/* 151 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.13 String.prototype.sub()
__webpack_require__(140)('sub', function (createHTML) {
return function sub() {
return createHTML(this, 'sub', '', '');
};
});
/***/ }),
/* 152 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// B.2.3.14 String.prototype.sup()
__webpack_require__(140)('sup', function (createHTML) {
return function sup() {
return createHTML(this, 'sup', '', '');
};
});
/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {
// 20.3.3.1 / 15.9.4.4 Date.now()
var $export = __webpack_require__(8);
$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });
/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var toPrimitive = __webpack_require__(16);
$export($export.P + $export.F * __webpack_require__(7)(function () {
return new Date(NaN).toJSON() !== null
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
}), 'Date', {
// eslint-disable-next-line no-unused-vars
toJSON: function toJSON(key) {
var O = toObject(this);
var pv = toPrimitive(O);
return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
}
});
/***/ }),
/* 155 */
/***/ (function(module, exports, __webpack_require__) {
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var $export = __webpack_require__(8);
var toISOString = __webpack_require__(156);
// PhantomJS / old WebKit has a broken implementations
$export($export.P + $export.F * (Date.prototype.toISOString !== toISOString), 'Date', {
toISOString: toISOString
});
/***/ }),
/* 156 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var fails = __webpack_require__(7);
var getTime = Date.prototype.getTime;
var $toISOString = Date.prototype.toISOString;
var lz = function (num) {
return num > 9 ? num : '0' + num;
};
// PhantomJS / old WebKit has a broken implementations
module.exports = (fails(function () {
return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
}) || !fails(function () {
$toISOString.call(new Date(NaN));
})) ? function toISOString() {
if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
var d = this;
var y = d.getUTCFullYear();
var m = d.getUTCMilliseconds();
var s = y < 0 ? '-' : y > 9999 ? '+' : '';
return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
'-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
} : $toISOString;
/***/ }),
/* 157 */
/***/ (function(module, exports, __webpack_require__) {
var DateProto = Date.prototype;
var INVALID_DATE = 'Invalid Date';
var TO_STRING = 'toString';
var $toString = DateProto[TO_STRING];
var getTime = DateProto.getTime;
if (new Date(NaN) + '' != INVALID_DATE) {
__webpack_require__(18)(DateProto, TO_STRING, function toString() {
var value = getTime.call(this);
// eslint-disable-next-line no-self-compare
return value === value ? $toString.call(this) : INVALID_DATE;
});
}
/***/ }),
/* 158 */
/***/ (function(module, exports, __webpack_require__) {
var TO_PRIMITIVE = __webpack_require__(26)('toPrimitive');
var proto = Date.prototype;
if (!(TO_PRIMITIVE in proto)) __webpack_require__(10)(proto, TO_PRIMITIVE, __webpack_require__(159));
/***/ }),
/* 159 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var anObject = __webpack_require__(12);
var toPrimitive = __webpack_require__(16);
var NUMBER = 'number';
module.exports = function (hint) {
if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
return toPrimitive(anObject(this), hint != NUMBER);
};
/***/ }),
/* 160 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
var $export = __webpack_require__(8);
$export($export.S, 'Array', { isArray: __webpack_require__(44) });
/***/ }),
/* 161 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var ctx = __webpack_require__(20);
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var call = __webpack_require__(162);
var isArrayIter = __webpack_require__(163);
var toLength = __webpack_require__(37);
var createProperty = __webpack_require__(164);
var getIterFn = __webpack_require__(165);
$export($export.S + $export.F * !__webpack_require__(166)(function (iter) { Array.from(iter); }), 'Array', {
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
var O = toObject(arrayLike);
var C = typeof this == 'function' ? this : Array;
var aLen = arguments.length;
var mapfn = aLen > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var index = 0;
var iterFn = getIterFn(O);
var length, result, step, iterator;
if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
// if object isn't iterable or it's array with default iterator - use simple case
if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
}
} else {
length = toLength(O.length);
for (result = new C(length); length > index; index++) {
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
}
}
result.length = index;
return result;
}
});
/***/ }),
/* 162 */
/***/ (function(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__(12);
module.exports = function (iterator, fn, value, entries) {
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (e) {
var ret = iterator['return'];
if (ret !== undefined) anObject(ret.call(iterator));
throw e;
}
};
/***/ }),
/* 163 */
/***/ (function(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__(129);
var ITERATOR = __webpack_require__(26)('iterator');
var ArrayProto = Array.prototype;
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
/***/ }),
/* 164 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $defineProperty = __webpack_require__(11);
var createDesc = __webpack_require__(17);
module.exports = function (object, index, value) {
if (index in object) $defineProperty.f(object, index, createDesc(0, value));
else object[index] = value;
};
/***/ }),
/* 165 */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(74);
var ITERATOR = __webpack_require__(26)('iterator');
var Iterators = __webpack_require__(129);
module.exports = __webpack_require__(9).getIteratorMethod = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/* 166 */
/***/ (function(module, exports, __webpack_require__) {
var ITERATOR = __webpack_require__(26)('iterator');
var SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function () { SAFE_CLOSING = true; };
// eslint-disable-next-line no-throw-literal
Array.from(riter, function () { throw 2; });
} catch (e) { /* empty */ }
module.exports = function (exec, skipClosing) {
if (!skipClosing && !SAFE_CLOSING) return false;
var safe = false;
try {
var arr = [7];
var iter = arr[ITERATOR]();
iter.next = function () { return { done: safe = true }; };
arr[ITERATOR] = function () { return iter; };
exec(arr);
} catch (e) { /* empty */ }
return safe;
};
/***/ }),
/* 167 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var createProperty = __webpack_require__(164);
// WebKit Array.of isn't generic
$export($export.S + $export.F * __webpack_require__(7)(function () {
function F() { /* empty */ }
return !(Array.of.call(F) instanceof F);
}), 'Array', {
// 22.1.2.3 Array.of( ...items)
of: function of(/* ...args */) {
var index = 0;
var aLen = arguments.length;
var result = new (typeof this == 'function' ? this : Array)(aLen);
while (aLen > index) createProperty(result, index, arguments[index++]);
result.length = aLen;
return result;
}
});
/***/ }),
/* 168 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 22.1.3.13 Array.prototype.join(separator)
var $export = __webpack_require__(8);
var toIObject = __webpack_require__(32);
var arrayJoin = [].join;
// fallback for not array-like strings
$export($export.P + $export.F * (__webpack_require__(33) != Object || !__webpack_require__(169)(arrayJoin)), 'Array', {
join: function join(separator) {
return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);
}
});
/***/ }),
/* 169 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var fails = __webpack_require__(7);
module.exports = function (method, arg) {
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call
arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
});
};
/***/ }),
/* 170 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var html = __webpack_require__(47);
var cof = __webpack_require__(34);
var toAbsoluteIndex = __webpack_require__(39);
var toLength = __webpack_require__(37);
var arraySlice = [].slice;
// fallback for not array-like ES3 strings and DOM objects
$export($export.P + $export.F * __webpack_require__(7)(function () {
if (html) arraySlice.call(html);
}), 'Array', {
slice: function slice(begin, end) {
var len = toLength(this.length);
var klass = cof(this);
end = end === undefined ? len : end;
if (klass == 'Array') return arraySlice.call(this, begin, end);
var start = toAbsoluteIndex(begin, len);
var upTo = toAbsoluteIndex(end, len);
var size = toLength(upTo - start);
var cloned = new Array(size);
var i = 0;
for (; i < size; i++) cloned[i] = klass == 'String'
? this.charAt(start + i)
: this[start + i];
return cloned;
}
});
/***/ }),
/* 171 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var aFunction = __webpack_require__(21);
var toObject = __webpack_require__(57);
var fails = __webpack_require__(7);
var $sort = [].sort;
var test = [1, 2, 3];
$export($export.P + $export.F * (fails(function () {
// IE8-
test.sort(undefined);
}) || !fails(function () {
// V8 bug
test.sort(null);
// Old WebKit
}) || !__webpack_require__(169)($sort)), 'Array', {
// 22.1.3.25 Array.prototype.sort(comparefn)
sort: function sort(comparefn) {
return comparefn === undefined
? $sort.call(toObject(this))
: $sort.call(toObject(this), aFunction(comparefn));
}
});
/***/ }),
/* 172 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $forEach = __webpack_require__(173)(0);
var STRICT = __webpack_require__(169)([].forEach, true);
$export($export.P + $export.F * !STRICT, 'Array', {
// 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
forEach: function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments[1]);
}
});
/***/ }),
/* 173 */
/***/ (function(module, exports, __webpack_require__) {
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(20);
var IObject = __webpack_require__(33);
var toObject = __webpack_require__(57);
var toLength = __webpack_require__(37);
var asc = __webpack_require__(174);
module.exports = function (TYPE, $create) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
var create = $create || asc;
return function ($this, callbackfn, that) {
var O = toObject($this);
var self = IObject(O);
var f = ctx(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
var val, res;
for (;length > index; index++) if (NO_HOLES || index in self) {
val = self[index];
res = f(val, index, O);
if (TYPE) {
if (IS_MAP) result[index] = res; // map
else if (res) switch (TYPE) {
case 3: return true; // some
case 5: return val; // find
case 6: return index; // findIndex
case 2: result.push(val); // filter
} else if (IS_EVERY) return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
};
};
/***/ }),
/* 174 */
/***/ (function(module, exports, __webpack_require__) {
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var speciesConstructor = __webpack_require__(175);
module.exports = function (original, length) {
return new (speciesConstructor(original))(length);
};
/***/ }),
/* 175 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(13);
var isArray = __webpack_require__(44);
var SPECIES = __webpack_require__(26)('species');
module.exports = function (original) {
var C;
if (isArray(original)) {
C = original.constructor;
// cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
if (isObject(C)) {
C = C[SPECIES];
if (C === null) C = undefined;
}
} return C === undefined ? Array : C;
};
/***/ }),
/* 176 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $map = __webpack_require__(173)(1);
$export($export.P + $export.F * !__webpack_require__(169)([].map, true), 'Array', {
// 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
map: function map(callbackfn /* , thisArg */) {
return $map(this, callbackfn, arguments[1]);
}
});
/***/ }),
/* 177 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $filter = __webpack_require__(173)(2);
$export($export.P + $export.F * !__webpack_require__(169)([].filter, true), 'Array', {
// 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
filter: function filter(callbackfn /* , thisArg */) {
return $filter(this, callbackfn, arguments[1]);
}
});
/***/ }),
/* 178 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $some = __webpack_require__(173)(3);
$export($export.P + $export.F * !__webpack_require__(169)([].some, true), 'Array', {
// 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
some: function some(callbackfn /* , thisArg */) {
return $some(this, callbackfn, arguments[1]);
}
});
/***/ }),
/* 179 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $every = __webpack_require__(173)(4);
$export($export.P + $export.F * !__webpack_require__(169)([].every, true), 'Array', {
// 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
every: function every(callbackfn /* , thisArg */) {
return $every(this, callbackfn, arguments[1]);
}
});
/***/ }),
/* 180 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $reduce = __webpack_require__(181);
$export($export.P + $export.F * !__webpack_require__(169)([].reduce, true), 'Array', {
// 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
reduce: function reduce(callbackfn /* , initialValue */) {
return $reduce(this, callbackfn, arguments.length, arguments[1], false);
}
});
/***/ }),
/* 181 */
/***/ (function(module, exports, __webpack_require__) {
var aFunction = __webpack_require__(21);
var toObject = __webpack_require__(57);
var IObject = __webpack_require__(33);
var toLength = __webpack_require__(37);
module.exports = function (that, callbackfn, aLen, memo, isRight) {
aFunction(callbackfn);
var O = toObject(that);
var self = IObject(O);
var length = toLength(O.length);
var index = isRight ? length - 1 : 0;
var i = isRight ? -1 : 1;
if (aLen < 2) for (;;) {
if (index in self) {
memo = self[index];
index += i;
break;
}
index += i;
if (isRight ? index < 0 : length <= index) {
throw TypeError('Reduce of empty array with no initial value');
}
}
for (;isRight ? index >= 0 : length > index; index += i) if (index in self) {
memo = callbackfn(memo, self[index], index, O);
}
return memo;
};
/***/ }),
/* 182 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $reduce = __webpack_require__(181);
$export($export.P + $export.F * !__webpack_require__(169)([].reduceRight, true), 'Array', {
// 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
reduceRight: function reduceRight(callbackfn /* , initialValue */) {
return $reduce(this, callbackfn, arguments.length, arguments[1], true);
}
});
/***/ }),
/* 183 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $indexOf = __webpack_require__(36)(false);
var $native = [].indexOf;
var NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;
$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', {
// 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
return NEGATIVE_ZERO
// convert -0 to +0
? $native.apply(this, arguments) || 0
: $indexOf(this, searchElement, arguments[1]);
}
});
/***/ }),
/* 184 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toIObject = __webpack_require__(32);
var toInteger = __webpack_require__(38);
var toLength = __webpack_require__(37);
var $native = [].lastIndexOf;
var NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;
$export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(169)($native)), 'Array', {
// 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
lastIndexOf: function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
// convert -0 to +0
if (NEGATIVE_ZERO) return $native.apply(this, arguments) || 0;
var O = toIObject(this);
var length = toLength(O.length);
var index = length - 1;
if (arguments.length > 1) index = Math.min(index, toInteger(arguments[1]));
if (index < 0) index = length + index;
for (;index >= 0; index--) if (index in O) if (O[index] === searchElement) return index || 0;
return -1;
}
});
/***/ }),
/* 185 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var $export = __webpack_require__(8);
$export($export.P, 'Array', { copyWithin: __webpack_require__(186) });
__webpack_require__(187)('copyWithin');
/***/ }),
/* 186 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
'use strict';
var toObject = __webpack_require__(57);
var toAbsoluteIndex = __webpack_require__(39);
var toLength = __webpack_require__(37);
module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
var O = toObject(this);
var len = toLength(O.length);
var to = toAbsoluteIndex(target, len);
var from = toAbsoluteIndex(start, len);
var end = arguments.length > 2 ? arguments[2] : undefined;
var count = Math.min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
var inc = 1;
if (from < to && to < from + count) {
inc = -1;
from += count - 1;
to += count - 1;
}
while (count-- > 0) {
if (from in O) O[to] = O[from];
else delete O[to];
to += inc;
from += inc;
} return O;
};
/***/ }),
/* 187 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.31 Array.prototype[@@unscopables]
var UNSCOPABLES = __webpack_require__(26)('unscopables');
var ArrayProto = Array.prototype;
if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(10)(ArrayProto, UNSCOPABLES, {});
module.exports = function (key) {
ArrayProto[UNSCOPABLES][key] = true;
};
/***/ }),
/* 188 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
var $export = __webpack_require__(8);
$export($export.P, 'Array', { fill: __webpack_require__(189) });
__webpack_require__(187)('fill');
/***/ }),
/* 189 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
'use strict';
var toObject = __webpack_require__(57);
var toAbsoluteIndex = __webpack_require__(39);
var toLength = __webpack_require__(37);
module.exports = function fill(value /* , start = 0, end = @length */) {
var O = toObject(this);
var length = toLength(O.length);
var aLen = arguments.length;
var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
var end = aLen > 2 ? arguments[2] : undefined;
var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
while (endPos > index) O[index++] = value;
return O;
};
/***/ }),
/* 190 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
var $export = __webpack_require__(8);
var $find = __webpack_require__(173)(5);
var KEY = 'find';
var forced = true;
// Shouldn't skip holes
if (KEY in []) Array(1)[KEY](function () { forced = false; });
$export($export.P + $export.F * forced, 'Array', {
find: function find(callbackfn /* , that = undefined */) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
__webpack_require__(187)(KEY);
/***/ }),
/* 191 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
var $export = __webpack_require__(8);
var $find = __webpack_require__(173)(6);
var KEY = 'findIndex';
var forced = true;
// Shouldn't skip holes
if (KEY in []) Array(1)[KEY](function () { forced = false; });
$export($export.P + $export.F * forced, 'Array', {
findIndex: function findIndex(callbackfn /* , that = undefined */) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
__webpack_require__(187)(KEY);
/***/ }),
/* 192 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(193)('Array');
/***/ }),
/* 193 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var global = __webpack_require__(4);
var dP = __webpack_require__(11);
var DESCRIPTORS = __webpack_require__(6);
var SPECIES = __webpack_require__(26)('species');
module.exports = function (KEY) {
var C = global[KEY];
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
configurable: true,
get: function () { return this; }
});
};
/***/ }),
/* 194 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var addToUnscopables = __webpack_require__(187);
var step = __webpack_require__(195);
var Iterators = __webpack_require__(129);
var toIObject = __webpack_require__(32);
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(128)(Array, 'Array', function (iterated, kind) {
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
var O = this._t;
var kind = this._k;
var index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
return step(1);
}
if (kind == 'keys') return step(0, index);
if (kind == 'values') return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/* 195 */
/***/ (function(module, exports) {
module.exports = function (done, value) {
return { value: value, done: !!done };
};
/***/ }),
/* 196 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var inheritIfRequired = __webpack_require__(87);
var dP = __webpack_require__(11).f;
var gOPN = __webpack_require__(49).f;
var isRegExp = __webpack_require__(134);
var $flags = __webpack_require__(197);
var $RegExp = global.RegExp;
var Base = $RegExp;
var proto = $RegExp.prototype;
var re1 = /a/g;
var re2 = /a/g;
// "new" creates a new object, old webkit buggy here
var CORRECT_NEW = new $RegExp(re1) !== re1;
if (__webpack_require__(6) && (!CORRECT_NEW || __webpack_require__(7)(function () {
re2[__webpack_require__(26)('match')] = false;
// RegExp constructor can alter flags and IsRegExp works correct with @@match
return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
}))) {
$RegExp = function RegExp(p, f) {
var tiRE = this instanceof $RegExp;
var piRE = isRegExp(p);
var fiU = f === undefined;
return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
: inheritIfRequired(CORRECT_NEW
? new Base(piRE && !fiU ? p.source : p, f)
: Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
, tiRE ? this : proto, $RegExp);
};
var proxy = function (key) {
key in $RegExp || dP($RegExp, key, {
configurable: true,
get: function () { return Base[key]; },
set: function (it) { Base[key] = it; }
});
};
for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
proto.constructor = $RegExp;
$RegExp.prototype = proto;
__webpack_require__(18)(global, 'RegExp', $RegExp);
}
__webpack_require__(193)('RegExp');
/***/ }),
/* 197 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 21.2.5.3 get RegExp.prototype.flags
var anObject = __webpack_require__(12);
module.exports = function () {
var that = anObject(this);
var result = '';
if (that.global) result += 'g';
if (that.ignoreCase) result += 'i';
if (that.multiline) result += 'm';
if (that.unicode) result += 'u';
if (that.sticky) result += 'y';
return result;
};
/***/ }),
/* 198 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
__webpack_require__(199);
var anObject = __webpack_require__(12);
var $flags = __webpack_require__(197);
var DESCRIPTORS = __webpack_require__(6);
var TO_STRING = 'toString';
var $toString = /./[TO_STRING];
var define = function (fn) {
__webpack_require__(18)(RegExp.prototype, TO_STRING, fn, true);
};
// 21.2.5.14 RegExp.prototype.toString()
if (__webpack_require__(7)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
define(function toString() {
var R = anObject(this);
return '/'.concat(R.source, '/',
'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
});
// FF44- RegExp#toString has a wrong name
} else if ($toString.name != TO_STRING) {
define(function toString() {
return $toString.call(this);
});
}
/***/ }),
/* 199 */
/***/ (function(module, exports, __webpack_require__) {
// 21.2.5.3 get RegExp.prototype.flags()
if (__webpack_require__(6) && /./g.flags != 'g') __webpack_require__(11).f(RegExp.prototype, 'flags', {
configurable: true,
get: __webpack_require__(197)
});
/***/ }),
/* 200 */
/***/ (function(module, exports, __webpack_require__) {
// @@match logic
__webpack_require__(201)('match', 1, function (defined, MATCH, $match) {
// 21.1.3.11 String.prototype.match(regexp)
return [function match(regexp) {
'use strict';
var O = defined(this);
var fn = regexp == undefined ? undefined : regexp[MATCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
}, $match];
});
/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var hide = __webpack_require__(10);
var redefine = __webpack_require__(18);
var fails = __webpack_require__(7);
var defined = __webpack_require__(35);
var wks = __webpack_require__(26);
module.exports = function (KEY, length, exec) {
var SYMBOL = wks(KEY);
var fns = exec(defined, SYMBOL, ''[KEY]);
var strfn = fns[0];
var rxfn = fns[1];
if (fails(function () {
var O = {};
O[SYMBOL] = function () { return 7; };
return ''[KEY](O) != 7;
})) {
redefine(String.prototype, KEY, strfn);
hide(RegExp.prototype, SYMBOL, length == 2
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
? function (string, arg) { return rxfn.call(string, this, arg); }
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
: function (string) { return rxfn.call(string, this); }
);
}
};
/***/ }),
/* 202 */
/***/ (function(module, exports, __webpack_require__) {
// @@replace logic
__webpack_require__(201)('replace', 2, function (defined, REPLACE, $replace) {
// 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
return [function replace(searchValue, replaceValue) {
'use strict';
var O = defined(this);
var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
return fn !== undefined
? fn.call(searchValue, O, replaceValue)
: $replace.call(String(O), searchValue, replaceValue);
}, $replace];
});
/***/ }),
/* 203 */
/***/ (function(module, exports, __webpack_require__) {
// @@search logic
__webpack_require__(201)('search', 1, function (defined, SEARCH, $search) {
// 21.1.3.15 String.prototype.search(regexp)
return [function search(regexp) {
'use strict';
var O = defined(this);
var fn = regexp == undefined ? undefined : regexp[SEARCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
}, $search];
});
/***/ }),
/* 204 */
/***/ (function(module, exports, __webpack_require__) {
// @@split logic
__webpack_require__(201)('split', 2, function (defined, SPLIT, $split) {
'use strict';
var isRegExp = __webpack_require__(134);
var _split = $split;
var $push = [].push;
var $SPLIT = 'split';
var LENGTH = 'length';
var LAST_INDEX = 'lastIndex';
if (
'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
'.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
'.'[$SPLIT](/()()/)[LENGTH] > 1 ||
''[$SPLIT](/.?/)[LENGTH]
) {
var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group
// based on es5-shim implementation, need to rework it
$split = function (separator, limit) {
var string = String(this);
if (separator === undefined && limit === 0) return [];
// If `separator` is not a regex, use native split
if (!isRegExp(separator)) return _split.call(string, separator, limit);
var output = [];
var flags = (separator.ignoreCase ? 'i' : '') +
(separator.multiline ? 'm' : '') +
(separator.unicode ? 'u' : '') +
(separator.sticky ? 'y' : '');
var lastLastIndex = 0;
var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
// Make `global` and avoid `lastIndex` issues by working with a copy
var separatorCopy = new RegExp(separator.source, flags + 'g');
var separator2, match, lastIndex, lastLength, i;
// Doesn't need flags gy, but they don't hurt
if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
while (match = separatorCopy.exec(string)) {
// `separatorCopy.lastIndex` is not reliable cross-browser
lastIndex = match.index + match[0][LENGTH];
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
// Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
// eslint-disable-next-line no-loop-func
if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {
for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;
});
if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
lastLength = match[0][LENGTH];
lastLastIndex = lastIndex;
if (output[LENGTH] >= splitLimit) break;
}
if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
}
if (lastLastIndex === string[LENGTH]) {
if (lastLength || !separatorCopy.test('')) output.push('');
} else output.push(string.slice(lastLastIndex));
return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
};
// Chakra, V8
} else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
$split = function (separator, limit) {
return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);
};
}
// 21.1.3.17 String.prototype.split(separator, limit)
return [function split(separator, limit) {
var O = defined(this);
var fn = separator == undefined ? undefined : separator[SPLIT];
return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);
}, $split];
});
/***/ }),
/* 205 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var LIBRARY = __webpack_require__(24);
var global = __webpack_require__(4);
var ctx = __webpack_require__(20);
var classof = __webpack_require__(74);
var $export = __webpack_require__(8);
var isObject = __webpack_require__(13);
var aFunction = __webpack_require__(21);
var anInstance = __webpack_require__(206);
var forOf = __webpack_require__(207);
var speciesConstructor = __webpack_require__(208);
var task = __webpack_require__(209).set;
var microtask = __webpack_require__(210)();
var newPromiseCapabilityModule = __webpack_require__(211);
var perform = __webpack_require__(212);
var userAgent = __webpack_require__(213);
var promiseResolve = __webpack_require__(214);
var PROMISE = 'Promise';
var TypeError = global.TypeError;
var process = global.process;
var versions = process && process.versions;
var v8 = versions && versions.v8 || '';
var $Promise = global[PROMISE];
var isNode = classof(process) == 'process';
var empty = function () { /* empty */ };
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
var USE_NATIVE = !!function () {
try {
// correct subclassing with @@species support
var promise = $Promise.resolve(1);
var FakePromise = (promise.constructor = {})[__webpack_require__(26)('species')] = function (exec) {
exec(empty, empty);
};
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
return (isNode || typeof PromiseRejectionEvent == 'function')
&& promise.then(empty) instanceof FakePromise
// v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// we can't detect it synchronously, so just check versions
&& v8.indexOf('6.6') !== 0
&& userAgent.indexOf('Chrome/66') === -1;
} catch (e) { /* empty */ }
}();
// helpers
var isThenable = function (it) {
var then;
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (promise, isReject) {
if (promise._n) return;
promise._n = true;
var chain = promise._c;
microtask(function () {
var value = promise._v;
var ok = promise._s == 1;
var i = 0;
var run = function (reaction) {
var handler = ok ? reaction.ok : reaction.fail;
var resolve = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (promise._h == 2) onHandleUnhandled(promise);
promise._h = 1;
}
if (handler === true) result = value;
else {
if (domain) domain.enter();
result = handler(value); // may throw
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError('Promise-chain cycle'));
} else if (then = isThenable(result)) {
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch (e) {
if (domain && !exited) domain.exit();
reject(e);
}
};
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
promise._c = [];
promise._n = false;
if (isReject && !promise._h) onUnhandled(promise);
});
};
var onUnhandled = function (promise) {
task.call(global, function () {
var value = promise._v;
var unhandled = isUnhandled(promise);
var result, handler, console;
if (unhandled) {
result = perform(function () {
if (isNode) {
process.emit('unhandledRejection', value, promise);
} else if (handler = global.onunhandledrejection) {
handler({ promise: promise, reason: value });
} else if ((console = global.console) && console.error) {
console.error('Unhandled promise rejection', value);
}
});
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
} promise._a = undefined;
if (unhandled && result.e) throw result.v;
});
};
var isUnhandled = function (promise) {
return promise._h !== 1 && (promise._a || promise._c).length === 0;
};
var onHandleUnhandled = function (promise) {
task.call(global, function () {
var handler;
if (isNode) {
process.emit('rejectionHandled', promise);
} else if (handler = global.onrejectionhandled) {
handler({ promise: promise, reason: promise._v });
}
});
};
var $reject = function (value) {
var promise = this;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
promise._v = value;
promise._s = 2;
if (!promise._a) promise._a = promise._c.slice();
notify(promise, true);
};
var $resolve = function (value) {
var promise = this;
var then;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
try {
if (promise === value) throw TypeError("Promise can't be resolved itself");
if (then = isThenable(value)) {
microtask(function () {
var wrapper = { _w: promise, _d: false }; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
} catch (e) {
$reject.call(wrapper, e);
}
});
} else {
promise._v = value;
promise._s = 1;
notify(promise, false);
}
} catch (e) {
$reject.call({ _w: promise, _d: false }, e); // wrap
}
};
// constructor polyfill
if (!USE_NATIVE) {
// 25.4.3.1 Promise(executor)
$Promise = function Promise(executor) {
anInstance(this, $Promise, PROMISE, '_h');
aFunction(executor);
Internal.call(this);
try {
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
} catch (err) {
$reject.call(this, err);
}
};
// eslint-disable-next-line no-unused-vars
Internal = function Promise(executor) {
this._c = []; // <- awaiting reactions
this._a = undefined; // <- checked in isUnhandled reactions
this._s = 0; // <- state
this._d = false; // <- done
this._v = undefined; // <- value
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
this._n = false; // <- notify
};
Internal.prototype = __webpack_require__(215)($Promise.prototype, {
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then: function then(onFulfilled, onRejected) {
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
reaction.fail = typeof onRejected == 'function' && onRejected;
reaction.domain = isNode ? process.domain : undefined;
this._c.push(reaction);
if (this._a) this._a.push(reaction);
if (this._s) notify(this, false);
return reaction.promise;
},
// 25.4.5.1 Promise.prototype.catch(onRejected)
'catch': function (onRejected) {
return this.then(undefined, onRejected);
}
});
OwnPromiseCapability = function () {
var promise = new Internal();
this.promise = promise;
this.resolve = ctx($resolve, promise, 1);
this.reject = ctx($reject, promise, 1);
};
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
return C === $Promise || C === Wrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
__webpack_require__(25)($Promise, PROMISE);
__webpack_require__(193)(PROMISE);
Wrapper = __webpack_require__(9)[PROMISE];
// statics
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
// 25.4.4.5 Promise.reject(r)
reject: function reject(r) {
var capability = newPromiseCapability(this);
var $$reject = capability.reject;
$$reject(r);
return capability.promise;
}
});
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
// 25.4.4.6 Promise.resolve(x)
resolve: function resolve(x) {
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
}
});
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(166)(function (iter) {
$Promise.all(iter)['catch'](empty);
})), PROMISE, {
// 25.4.4.1 Promise.all(iterable)
all: function all(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var values = [];
var index = 0;
var remaining = 1;
forOf(iterable, false, function (promise) {
var $index = index++;
var alreadyCalled = false;
values.push(undefined);
remaining++;
C.resolve(promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[$index] = value;
--remaining || resolve(values);
}, reject);
});
--remaining || resolve(values);
});
if (result.e) reject(result.v);
return capability.promise;
},
// 25.4.4.4 Promise.race(iterable)
race: function race(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var reject = capability.reject;
var result = perform(function () {
forOf(iterable, false, function (promise) {
C.resolve(promise).then(capability.resolve, reject);
});
});
if (result.e) reject(result.v);
return capability.promise;
}
});
/***/ }),
/* 206 */
/***/ (function(module, exports) {
module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};
/***/ }),
/* 207 */
/***/ (function(module, exports, __webpack_require__) {
var ctx = __webpack_require__(20);
var call = __webpack_require__(162);
var isArrayIter = __webpack_require__(163);
var anObject = __webpack_require__(12);
var toLength = __webpack_require__(37);
var getIterFn = __webpack_require__(165);
var BREAK = {};
var RETURN = {};
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
var f = ctx(fn, that, entries ? 2 : 1);
var index = 0;
var length, step, iterator, result;
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
// fast case for arrays with default iterator
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
if (result === BREAK || result === RETURN) return result;
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
result = call(iterator, f, step.value, entries);
if (result === BREAK || result === RETURN) return result;
}
};
exports.BREAK = BREAK;
exports.RETURN = RETURN;
/***/ }),
/* 208 */
/***/ (function(module, exports, __webpack_require__) {
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
var anObject = __webpack_require__(12);
var aFunction = __webpack_require__(21);
var SPECIES = __webpack_require__(26)('species');
module.exports = function (O, D) {
var C = anObject(O).constructor;
var S;
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
};
/***/ }),
/* 209 */
/***/ (function(module, exports, __webpack_require__) {
var ctx = __webpack_require__(20);
var invoke = __webpack_require__(77);
var html = __webpack_require__(47);
var cel = __webpack_require__(15);
var global = __webpack_require__(4);
var process = global.process;
var setTask = global.setImmediate;
var clearTask = global.clearImmediate;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var defer, channel, port;
var run = function () {
var id = +this;
// eslint-disable-next-line no-prototype-builtins
if (queue.hasOwnProperty(id)) {
var fn = queue[id];
delete queue[id];
fn();
}
};
var listener = function (event) {
run.call(event.data);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!setTask || !clearTask) {
setTask = function setImmediate(fn) {
var args = [];
var i = 1;
while (arguments.length > i) args.push(arguments[i++]);
queue[++counter] = function () {
// eslint-disable-next-line no-new-func
invoke(typeof fn == 'function' ? fn : Function(fn), args);
};
defer(counter);
return counter;
};
clearTask = function clearImmediate(id) {
delete queue[id];
};
// Node.js 0.8-
if (__webpack_require__(34)(process) == 'process') {
defer = function (id) {
process.nextTick(ctx(run, id, 1));
};
// Sphere (JS game engine) Dispatch API
} else if (Dispatch && Dispatch.now) {
defer = function (id) {
Dispatch.now(ctx(run, id, 1));
};
// Browsers with MessageChannel, includes WebWorkers
} else if (MessageChannel) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
defer = ctx(port.postMessage, port, 1);
// Browsers with postMessage, skip WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
} else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
defer = function (id) {
global.postMessage(id + '', '*');
};
global.addEventListener('message', listener, false);
// IE8-
} else if (ONREADYSTATECHANGE in cel('script')) {
defer = function (id) {
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
html.removeChild(this);
run.call(id);
};
};
// Rest old browsers
} else {
defer = function (id) {
setTimeout(ctx(run, id, 1), 0);
};
}
}
module.exports = {
set: setTask,
clear: clearTask
};
/***/ }),
/* 210 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var macrotask = __webpack_require__(209).set;
var Observer = global.MutationObserver || global.WebKitMutationObserver;
var process = global.process;
var Promise = global.Promise;
var isNode = __webpack_require__(34)(process) == 'process';
module.exports = function () {
var head, last, notify;
var flush = function () {
var parent, fn;
if (isNode && (parent = process.domain)) parent.exit();
while (head) {
fn = head.fn;
head = head.next;
try {
fn();
} catch (e) {
if (head) notify();
else last = undefined;
throw e;
}
} last = undefined;
if (parent) parent.enter();
};
// Node.js
if (isNode) {
notify = function () {
process.nextTick(flush);
};
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
} else if (Observer && !(global.navigator && global.navigator.standalone)) {
var toggle = true;
var node = document.createTextNode('');
new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
notify = function () {
node.data = toggle = !toggle;
};
// environments with maybe non-completely correct, but existent Promise
} else if (Promise && Promise.resolve) {
// Promise.resolve without an argument throws an error in LG WebOS 2
var promise = Promise.resolve(undefined);
notify = function () {
promise.then(flush);
};
// for other environments - macrotask based on:
// - setImmediate
// - MessageChannel
// - window.postMessag
// - onreadystatechange
// - setTimeout
} else {
notify = function () {
// strange IE + webpack dev server bug - use .call(global)
macrotask.call(global, flush);
};
}
return function (fn) {
var task = { fn: fn, next: undefined };
if (last) last.next = task;
if (!head) {
head = task;
notify();
} last = task;
};
};
/***/ }),
/* 211 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 25.4.1.5 NewPromiseCapability(C)
var aFunction = __webpack_require__(21);
function PromiseCapability(C) {
var resolve, reject;
this.promise = new C(function ($$resolve, $$reject) {
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aFunction(resolve);
this.reject = aFunction(reject);
}
module.exports.f = function (C) {
return new PromiseCapability(C);
};
/***/ }),
/* 212 */
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return { e: false, v: exec() };
} catch (e) {
return { e: true, v: e };
}
};
/***/ }),
/* 213 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var navigator = global.navigator;
module.exports = navigator && navigator.userAgent || '';
/***/ }),
/* 214 */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(12);
var isObject = __webpack_require__(13);
var newPromiseCapability = __webpack_require__(211);
module.exports = function (C, x) {
anObject(C);
if (isObject(x) && x.constructor === C) return x;
var promiseCapability = newPromiseCapability.f(C);
var resolve = promiseCapability.resolve;
resolve(x);
return promiseCapability.promise;
};
/***/ }),
/* 215 */
/***/ (function(module, exports, __webpack_require__) {
var redefine = __webpack_require__(18);
module.exports = function (target, src, safe) {
for (var key in src) redefine(target, key, src[key], safe);
return target;
};
/***/ }),
/* 216 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var strong = __webpack_require__(217);
var validate = __webpack_require__(218);
var MAP = 'Map';
// 23.1 Map Objects
module.exports = __webpack_require__(219)(MAP, function (get) {
return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = strong.getEntry(validate(this, MAP), key);
return entry && entry.v;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);
}
}, strong, true);
/***/ }),
/* 217 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var dP = __webpack_require__(11).f;
var create = __webpack_require__(45);
var redefineAll = __webpack_require__(215);
var ctx = __webpack_require__(20);
var anInstance = __webpack_require__(206);
var forOf = __webpack_require__(207);
var $iterDefine = __webpack_require__(128);
var step = __webpack_require__(195);
var setSpecies = __webpack_require__(193);
var DESCRIPTORS = __webpack_require__(6);
var fastKey = __webpack_require__(22).fastKey;
var validate = __webpack_require__(218);
var SIZE = DESCRIPTORS ? '_s' : 'size';
var getEntry = function (that, key) {
// fast case
var index = fastKey(key);
var entry;
if (index !== 'F') return that._i[index];
// frozen object case
for (entry = that._f; entry; entry = entry.n) {
if (entry.k == key) return entry;
}
};
module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
that._i = create(null); // index
that._f = undefined; // first entry
that._l = undefined; // last entry
that[SIZE] = 0; // size
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
entry.r = true;
if (entry.p) entry.p = entry.p.n = undefined;
delete data[entry.i];
}
that._f = that._l = undefined;
that[SIZE] = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = validate(this, NAME);
var entry = getEntry(that, key);
if (entry) {
var next = entry.n;
var prev = entry.p;
delete that._i[entry.i];
entry.r = true;
if (prev) prev.n = next;
if (next) next.p = prev;
if (that._f == entry) that._f = next;
if (that._l == entry) that._l = prev;
that[SIZE]--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /* , that = undefined */) {
validate(this, NAME);
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var entry;
while (entry = entry ? entry.n : this._f) {
f(entry.v, entry.k, this);
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(validate(this, NAME), key);
}
});
if (DESCRIPTORS) dP(C.prototype, 'size', {
get: function () {
return validate(this, NAME)[SIZE];
}
});
return C;
},
def: function (that, key, value) {
var entry = getEntry(that, key);
var prev, index;
// change existing entry
if (entry) {
entry.v = value;
// create new entry
} else {
that._l = entry = {
i: index = fastKey(key, true), // <- index
k: key, // <- key
v: value, // <- value
p: prev = that._l, // <- previous entry
n: undefined, // <- next entry
r: false // <- removed
};
if (!that._f) that._f = entry;
if (prev) prev.n = entry;
that[SIZE]++;
// add to index
if (index !== 'F') that._i[index] = entry;
} return that;
},
getEntry: getEntry,
setStrong: function (C, NAME, IS_MAP) {
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
$iterDefine(C, NAME, function (iterated, kind) {
this._t = validate(iterated, NAME); // target
this._k = kind; // kind
this._l = undefined; // previous
}, function () {
var that = this;
var kind = that._k;
var entry = that._l;
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
// get next entry
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
// or finish the iteration
that._t = undefined;
return step(1);
}
// return step by kind
if (kind == 'keys') return step(0, entry.k);
if (kind == 'values') return step(0, entry.v);
return step(0, [entry.k, entry.v]);
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(NAME);
}
};
/***/ }),
/* 218 */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(13);
module.exports = function (it, TYPE) {
if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
return it;
};
/***/ }),
/* 219 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var global = __webpack_require__(4);
var $export = __webpack_require__(8);
var redefine = __webpack_require__(18);
var redefineAll = __webpack_require__(215);
var meta = __webpack_require__(22);
var forOf = __webpack_require__(207);
var anInstance = __webpack_require__(206);
var isObject = __webpack_require__(13);
var fails = __webpack_require__(7);
var $iterDetect = __webpack_require__(166);
var setToStringTag = __webpack_require__(25);
var inheritIfRequired = __webpack_require__(87);
module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
var Base = global[NAME];
var C = Base;
var ADDER = IS_MAP ? 'set' : 'add';
var proto = C && C.prototype;
var O = {};
var fixMethod = function (KEY) {
var fn = proto[KEY];
redefine(proto, KEY,
KEY == 'delete' ? function (a) {
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'has' ? function has(a) {
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'get' ? function get(a) {
return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }
: function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }
);
};
if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
new C().entries().next();
}))) {
// create collection constructor
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
redefineAll(C.prototype, methods);
meta.NEED = true;
} else {
var instance = new C();
// early implementations not supports chaining
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
// most early implementations doesn't supports iterables, most modern - not close it correctly
var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new
// for early implementations -0 and +0 not the same
var BUGGY_ZERO = !IS_WEAK && fails(function () {
// V8 ~ Chromium 42- fails only with 5+ elements
var $instance = new C();
var index = 5;
while (index--) $instance[ADDER](index, index);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
C = wrapper(function (target, iterable) {
anInstance(target, C, NAME);
var that = inheritIfRequired(new Base(), target, C);
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
return that;
});
C.prototype = proto;
proto.constructor = C;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod('delete');
fixMethod('has');
IS_MAP && fixMethod('get');
}
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
// weak collections should not contains .clear method
if (IS_WEAK && proto.clear) delete proto.clear;
}
setToStringTag(C, NAME);
O[NAME] = C;
$export($export.G + $export.W + $export.F * (C != Base), O);
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
return C;
};
/***/ }),
/* 220 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var strong = __webpack_require__(217);
var validate = __webpack_require__(218);
var SET = 'Set';
// 23.2 Set Objects
module.exports = __webpack_require__(219)(SET, function (get) {
return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value) {
return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);
}
}, strong);
/***/ }),
/* 221 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var each = __webpack_require__(173)(0);
var redefine = __webpack_require__(18);
var meta = __webpack_require__(22);
var assign = __webpack_require__(68);
var weak = __webpack_require__(222);
var isObject = __webpack_require__(13);
var fails = __webpack_require__(7);
var validate = __webpack_require__(218);
var WEAK_MAP = 'WeakMap';
var getWeak = meta.getWeak;
var isExtensible = Object.isExtensible;
var uncaughtFrozenStore = weak.ufstore;
var tmp = {};
var InternalMap;
var wrapper = function (get) {
return function WeakMap() {
return get(this, arguments.length > 0 ? arguments[0] : undefined);
};
};
var methods = {
// 23.3.3.3 WeakMap.prototype.get(key)
get: function get(key) {
if (isObject(key)) {
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);
return data ? data[this._i] : undefined;
}
},
// 23.3.3.5 WeakMap.prototype.set(key, value)
set: function set(key, value) {
return weak.def(validate(this, WEAK_MAP), key, value);
}
};
// 23.3 WeakMap Objects
var $WeakMap = module.exports = __webpack_require__(219)(WEAK_MAP, wrapper, methods, weak, true, true);
// IE11 WeakMap frozen keys fix
if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {
InternalMap = weak.getConstructor(wrapper, WEAK_MAP);
assign(InternalMap.prototype, methods);
meta.NEED = true;
each(['delete', 'has', 'get', 'set'], function (key) {
var proto = $WeakMap.prototype;
var method = proto[key];
redefine(proto, key, function (a, b) {
// store frozen objects on internal weakmap shim
if (isObject(a) && !isExtensible(a)) {
if (!this._f) this._f = new InternalMap();
var result = this._f[key](a, b);
return key == 'set' ? this : result;
// store all the rest on native weakmap
} return method.call(this, a, b);
});
});
}
/***/ }),
/* 222 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var redefineAll = __webpack_require__(215);
var getWeak = __webpack_require__(22).getWeak;
var anObject = __webpack_require__(12);
var isObject = __webpack_require__(13);
var anInstance = __webpack_require__(206);
var forOf = __webpack_require__(207);
var createArrayMethod = __webpack_require__(173);
var $has = __webpack_require__(5);
var validate = __webpack_require__(218);
var arrayFind = createArrayMethod(5);
var arrayFindIndex = createArrayMethod(6);
var id = 0;
// fallback for uncaught frozen keys
var uncaughtFrozenStore = function (that) {
return that._l || (that._l = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
this.a = [];
};
var findUncaughtFrozen = function (store, key) {
return arrayFind(store.a, function (it) {
return it[0] === key;
});
};
UncaughtFrozenStore.prototype = {
get: function (key) {
var entry = findUncaughtFrozen(this, key);
if (entry) return entry[1];
},
has: function (key) {
return !!findUncaughtFrozen(this, key);
},
set: function (key, value) {
var entry = findUncaughtFrozen(this, key);
if (entry) entry[1] = value;
else this.a.push([key, value]);
},
'delete': function (key) {
var index = arrayFindIndex(this.a, function (it) {
return it[0] === key;
});
if (~index) this.a.splice(index, 1);
return !!~index;
}
};
module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME, '_i');
that._t = NAME; // collection type
that._i = id++; // collection id
that._l = undefined; // leak store for uncaught frozen objects
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
'delete': function (key) {
if (!isObject(key)) return false;
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
return data && $has(data, this._i) && delete data[this._i];
},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
has: function has(key) {
if (!isObject(key)) return false;
var data = getWeak(key);
if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
return data && $has(data, this._i);
}
});
return C;
},
def: function (that, key, value) {
var data = getWeak(anObject(key), true);
if (data === true) uncaughtFrozenStore(that).set(key, value);
else data[that._i] = value;
return that;
},
ufstore: uncaughtFrozenStore
};
/***/ }),
/* 223 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var weak = __webpack_require__(222);
var validate = __webpack_require__(218);
var WEAK_SET = 'WeakSet';
// 23.4 WeakSet Objects
__webpack_require__(219)(WEAK_SET, function (get) {
return function WeakSet() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.4.3.1 WeakSet.prototype.add(value)
add: function add(value) {
return weak.def(validate(this, WEAK_SET), value, true);
}
}, weak, false, true);
/***/ }),
/* 224 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var $typed = __webpack_require__(225);
var buffer = __webpack_require__(226);
var anObject = __webpack_require__(12);
var toAbsoluteIndex = __webpack_require__(39);
var toLength = __webpack_require__(37);
var isObject = __webpack_require__(13);
var ArrayBuffer = __webpack_require__(4).ArrayBuffer;
var speciesConstructor = __webpack_require__(208);
var $ArrayBuffer = buffer.ArrayBuffer;
var $DataView = buffer.DataView;
var $isView = $typed.ABV && ArrayBuffer.isView;
var $slice = $ArrayBuffer.prototype.slice;
var VIEW = $typed.VIEW;
var ARRAY_BUFFER = 'ArrayBuffer';
$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), { ArrayBuffer: $ArrayBuffer });
$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {
// 24.1.3.1 ArrayBuffer.isView(arg)
isView: function isView(it) {
return $isView && $isView(it) || isObject(it) && VIEW in it;
}
});
$export($export.P + $export.U + $export.F * __webpack_require__(7)(function () {
return !new $ArrayBuffer(2).slice(1, undefined).byteLength;
}), ARRAY_BUFFER, {
// 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
slice: function slice(start, end) {
if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix
var len = anObject(this).byteLength;
var first = toAbsoluteIndex(start, len);
var fin = toAbsoluteIndex(end === undefined ? len : end, len);
var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first));
var viewS = new $DataView(this);
var viewT = new $DataView(result);
var index = 0;
while (first < fin) {
viewT.setUint8(index++, viewS.getUint8(first++));
} return result;
}
});
__webpack_require__(193)(ARRAY_BUFFER);
/***/ }),
/* 225 */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(4);
var hide = __webpack_require__(10);
var uid = __webpack_require__(19);
var TYPED = uid('typed_array');
var VIEW = uid('view');
var ABV = !!(global.ArrayBuffer && global.DataView);
var CONSTR = ABV;
var i = 0;
var l = 9;
var Typed;
var TypedArrayConstructors = (
'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'
).split(',');
while (i < l) {
if (Typed = global[TypedArrayConstructors[i++]]) {
hide(Typed.prototype, TYPED, true);
hide(Typed.prototype, VIEW, true);
} else CONSTR = false;
}
module.exports = {
ABV: ABV,
CONSTR: CONSTR,
TYPED: TYPED,
VIEW: VIEW
};
/***/ }),
/* 226 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var global = __webpack_require__(4);
var DESCRIPTORS = __webpack_require__(6);
var LIBRARY = __webpack_require__(24);
var $typed = __webpack_require__(225);
var hide = __webpack_require__(10);
var redefineAll = __webpack_require__(215);
var fails = __webpack_require__(7);
var anInstance = __webpack_require__(206);
var toInteger = __webpack_require__(38);
var toLength = __webpack_require__(37);
var toIndex = __webpack_require__(227);
var gOPN = __webpack_require__(49).f;
var dP = __webpack_require__(11).f;
var arrayFill = __webpack_require__(189);
var setToStringTag = __webpack_require__(25);
var ARRAY_BUFFER = 'ArrayBuffer';
var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH = 'Wrong length!';
var WRONG_INDEX = 'Wrong index!';
var $ArrayBuffer = global[ARRAY_BUFFER];
var $DataView = global[DATA_VIEW];
var Math = global.Math;
var RangeError = global.RangeError;
// eslint-disable-next-line no-shadow-restricted-names
var Infinity = global.Infinity;
var BaseBuffer = $ArrayBuffer;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var BUFFER = 'buffer';
var BYTE_LENGTH = 'byteLength';
var BYTE_OFFSET = 'byteOffset';
var $BUFFER = DESCRIPTORS ? '_b' : BUFFER;
var $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH;
var $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;
// IEEE754 conversions based on https://github.com/feross/ieee754
function packIEEE754(value, mLen, nBytes) {
var buffer = new Array(nBytes);
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0;
var i = 0;
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
var e, m, c;
value = abs(value);
// eslint-disable-next-line no-self-compare
if (value != value || value === Infinity) {
// eslint-disable-next-line no-self-compare
m = value != value ? 1 : 0;
e = eMax;
} else {
e = floor(log(value) / LN2);
if (value * (c = pow(2, -e)) < 1) {
e--;
c *= 2;
}
if (e + eBias >= 1) {
value += rt / c;
} else {
value += rt * pow(2, 1 - eBias);
}
if (value * c >= 2) {
e++;
c /= 2;
}
if (e + eBias >= eMax) {
m = 0;
e = eMax;
} else if (e + eBias >= 1) {
m = (value * c - 1) * pow(2, mLen);
e = e + eBias;
} else {
m = value * pow(2, eBias - 1) * pow(2, mLen);
e = 0;
}
}
for (; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);
e = e << mLen | m;
eLen += mLen;
for (; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);
buffer[--i] |= s * 128;
return buffer;
}
function unpackIEEE754(buffer, mLen, nBytes) {
var eLen = nBytes * 8 - mLen - 1;
var eMax = (1 << eLen) - 1;
var eBias = eMax >> 1;
var nBits = eLen - 7;
var i = nBytes - 1;
var s = buffer[i--];
var e = s & 127;
var m;
s >>= 7;
for (; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);
m = e & (1 << -nBits) - 1;
e >>= -nBits;
nBits += mLen;
for (; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);
if (e === 0) {
e = 1 - eBias;
} else if (e === eMax) {
return m ? NaN : s ? -Infinity : Infinity;
} else {
m = m + pow(2, mLen);
e = e - eBias;
} return (s ? -1 : 1) * m * pow(2, e - mLen);
}
function unpackI32(bytes) {
return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];
}
function packI8(it) {
return [it & 0xff];
}
function packI16(it) {
return [it & 0xff, it >> 8 & 0xff];
}
function packI32(it) {
return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];
}
function packF64(it) {
return packIEEE754(it, 52, 8);
}
function packF32(it) {
return packIEEE754(it, 23, 4);
}
function addGetter(C, key, internal) {
dP(C[PROTOTYPE], key, { get: function () { return this[internal]; } });
}
function get(view, bytes, index, isLittleEndian) {
var numIndex = +index;
var intIndex = toIndex(numIndex);
if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
var store = view[$BUFFER]._b;
var start = intIndex + view[$OFFSET];
var pack = store.slice(start, start + bytes);
return isLittleEndian ? pack : pack.reverse();
}
function set(view, bytes, index, conversion, value, isLittleEndian) {
var numIndex = +index;
var intIndex = toIndex(numIndex);
if (intIndex + bytes > view[$LENGTH]) throw RangeError(WRONG_INDEX);
var store = view[$BUFFER]._b;
var start = intIndex + view[$OFFSET];
var pack = conversion(+value);
for (var i = 0; i < bytes; i++) store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];
}
if (!$typed.ABV) {
$ArrayBuffer = function ArrayBuffer(length) {
anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
var byteLength = toIndex(length);
this._b = arrayFill.call(new Array(byteLength), 0);
this[$LENGTH] = byteLength;
};
$DataView = function DataView(buffer, byteOffset, byteLength) {
anInstance(this, $DataView, DATA_VIEW);
anInstance(buffer, $ArrayBuffer, DATA_VIEW);
var bufferLength = buffer[$LENGTH];
var offset = toInteger(byteOffset);
if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset!');
byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
this[$BUFFER] = buffer;
this[$OFFSET] = offset;
this[$LENGTH] = byteLength;
};
if (DESCRIPTORS) {
addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
addGetter($DataView, BUFFER, '_b');
addGetter($DataView, BYTE_LENGTH, '_l');
addGetter($DataView, BYTE_OFFSET, '_o');
}
redefineAll($DataView[PROTOTYPE], {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
getUint8: function getUint8(byteOffset) {
return get(this, 1, byteOffset)[0];
},
getInt16: function getInt16(byteOffset /* , littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments[1]);
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
},
getUint16: function getUint16(byteOffset /* , littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments[1]);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset /* , littleEndian */) {
return unpackI32(get(this, 4, byteOffset, arguments[1]));
},
getUint32: function getUint32(byteOffset /* , littleEndian */) {
return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;
},
getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);
},
getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);
},
setInt8: function setInt8(byteOffset, value) {
set(this, 1, byteOffset, packI8, value);
},
setUint8: function setUint8(byteOffset, value) {
set(this, 1, byteOffset, packI8, value);
},
setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
set(this, 2, byteOffset, packI16, value, arguments[2]);
},
setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
set(this, 2, byteOffset, packI16, value, arguments[2]);
},
setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packI32, value, arguments[2]);
},
setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packI32, value, arguments[2]);
},
setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packF32, value, arguments[2]);
},
setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
set(this, 8, byteOffset, packF64, value, arguments[2]);
}
});
} else {
if (!fails(function () {
$ArrayBuffer(1);
}) || !fails(function () {
new $ArrayBuffer(-1); // eslint-disable-line no-new
}) || fails(function () {
new $ArrayBuffer(); // eslint-disable-line no-new
new $ArrayBuffer(1.5); // eslint-disable-line no-new
new $ArrayBuffer(NaN); // eslint-disable-line no-new
return $ArrayBuffer.name != ARRAY_BUFFER;
})) {
$ArrayBuffer = function ArrayBuffer(length) {
anInstance(this, $ArrayBuffer);
return new BaseBuffer(toIndex(length));
};
var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];
for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {
if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key, BaseBuffer[key]);
}
if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
}
// iOS Safari 7.x bug
var view = new $DataView(new $ArrayBuffer(2));
var $setInt8 = $DataView[PROTOTYPE].setInt8;
view.setInt8(0, 2147483648);
view.setInt8(1, 2147483649);
if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {
setInt8: function setInt8(byteOffset, value) {
$setInt8.call(this, byteOffset, value << 24 >> 24);
},
setUint8: function setUint8(byteOffset, value) {
$setInt8.call(this, byteOffset, value << 24 >> 24);
}
}, true);
}
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
hide($DataView[PROTOTYPE], $typed.VIEW, true);
exports[ARRAY_BUFFER] = $ArrayBuffer;
exports[DATA_VIEW] = $DataView;
/***/ }),
/* 227 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/ecma262/#sec-toindex
var toInteger = __webpack_require__(38);
var toLength = __webpack_require__(37);
module.exports = function (it) {
if (it === undefined) return 0;
var number = toInteger(it);
var length = toLength(number);
if (number !== length) throw RangeError('Wrong length!');
return length;
};
/***/ }),
/* 228 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
$export($export.G + $export.W + $export.F * !__webpack_require__(225).ABV, {
DataView: __webpack_require__(226).DataView
});
/***/ }),
/* 229 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Int8', 1, function (init) {
return function Int8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 230 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
if (__webpack_require__(6)) {
var LIBRARY = __webpack_require__(24);
var global = __webpack_require__(4);
var fails = __webpack_require__(7);
var $export = __webpack_require__(8);
var $typed = __webpack_require__(225);
var $buffer = __webpack_require__(226);
var ctx = __webpack_require__(20);
var anInstance = __webpack_require__(206);
var propertyDesc = __webpack_require__(17);
var hide = __webpack_require__(10);
var redefineAll = __webpack_require__(215);
var toInteger = __webpack_require__(38);
var toLength = __webpack_require__(37);
var toIndex = __webpack_require__(227);
var toAbsoluteIndex = __webpack_require__(39);
var toPrimitive = __webpack_require__(16);
var has = __webpack_require__(5);
var classof = __webpack_require__(74);
var isObject = __webpack_require__(13);
var toObject = __webpack_require__(57);
var isArrayIter = __webpack_require__(163);
var create = __webpack_require__(45);
var getPrototypeOf = __webpack_require__(58);
var gOPN = __webpack_require__(49).f;
var getIterFn = __webpack_require__(165);
var uid = __webpack_require__(19);
var wks = __webpack_require__(26);
var createArrayMethod = __webpack_require__(173);
var createArrayIncludes = __webpack_require__(36);
var speciesConstructor = __webpack_require__(208);
var ArrayIterators = __webpack_require__(194);
var Iterators = __webpack_require__(129);
var $iterDetect = __webpack_require__(166);
var setSpecies = __webpack_require__(193);
var arrayFill = __webpack_require__(189);
var arrayCopyWithin = __webpack_require__(186);
var $DP = __webpack_require__(11);
var $GOPD = __webpack_require__(50);
var dP = $DP.f;
var gOPD = $GOPD.f;
var RangeError = global.RangeError;
var TypeError = global.TypeError;
var Uint8Array = global.Uint8Array;
var ARRAY_BUFFER = 'ArrayBuffer';
var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
var PROTOTYPE = 'prototype';
var ArrayProto = Array[PROTOTYPE];
var $ArrayBuffer = $buffer.ArrayBuffer;
var $DataView = $buffer.DataView;
var arrayForEach = createArrayMethod(0);
var arrayFilter = createArrayMethod(2);
var arraySome = createArrayMethod(3);
var arrayEvery = createArrayMethod(4);
var arrayFind = createArrayMethod(5);
var arrayFindIndex = createArrayMethod(6);
var arrayIncludes = createArrayIncludes(true);
var arrayIndexOf = createArrayIncludes(false);
var arrayValues = ArrayIterators.values;
var arrayKeys = ArrayIterators.keys;
var arrayEntries = ArrayIterators.entries;
var arrayLastIndexOf = ArrayProto.lastIndexOf;
var arrayReduce = ArrayProto.reduce;
var arrayReduceRight = ArrayProto.reduceRight;
var arrayJoin = ArrayProto.join;
var arraySort = ArrayProto.sort;
var arraySlice = ArrayProto.slice;
var arrayToString = ArrayProto.toString;
var arrayToLocaleString = ArrayProto.toLocaleString;
var ITERATOR = wks('iterator');
var TAG = wks('toStringTag');
var TYPED_CONSTRUCTOR = uid('typed_constructor');
var DEF_CONSTRUCTOR = uid('def_constructor');
var ALL_CONSTRUCTORS = $typed.CONSTR;
var TYPED_ARRAY = $typed.TYPED;
var VIEW = $typed.VIEW;
var WRONG_LENGTH = 'Wrong length!';
var $map = createArrayMethod(1, function (O, length) {
return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
});
var LITTLE_ENDIAN = fails(function () {
// eslint-disable-next-line no-undef
return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
});
var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {
new Uint8Array(1).set({});
});
var toOffset = function (it, BYTES) {
var offset = toInteger(it);
if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
return offset;
};
var validate = function (it) {
if (isObject(it) && TYPED_ARRAY in it) return it;
throw TypeError(it + ' is not a typed array!');
};
var allocate = function (C, length) {
if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {
throw TypeError('It is not a typed array constructor!');
} return new C(length);
};
var speciesFromList = function (O, list) {
return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
};
var fromList = function (C, list) {
var index = 0;
var length = list.length;
var result = allocate(C, length);
while (length > index) result[index] = list[index++];
return result;
};
var addGetter = function (it, key, internal) {
dP(it, key, { get: function () { return this._d[internal]; } });
};
var $from = function from(source /* , mapfn, thisArg */) {
var O = toObject(source);
var aLen = arguments.length;
var mapfn = aLen > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var iterFn = getIterFn(O);
var i, length, values, result, step, iterator;
if (iterFn != undefined && !isArrayIter(iterFn)) {
for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {
values.push(step.value);
} O = values;
}
if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);
for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {
result[i] = mapping ? mapfn(O[i], i) : O[i];
}
return result;
};
var $of = function of(/* ...items */) {
var index = 0;
var length = arguments.length;
var result = allocate(this, length);
while (length > index) result[index] = arguments[index++];
return result;
};
// iOS Safari 6.x fails here
var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });
var $toLocaleString = function toLocaleString() {
return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);
};
var proto = {
copyWithin: function copyWithin(target, start /* , end */) {
return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
},
every: function every(callbackfn /* , thisArg */) {
return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
},
fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
return arrayFill.apply(validate(this), arguments);
},
filter: function filter(callbackfn /* , thisArg */) {
return speciesFromList(this, arrayFilter(validate(this), callbackfn,
arguments.length > 1 ? arguments[1] : undefined));
},
find: function find(predicate /* , thisArg */) {
return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
},
findIndex: function findIndex(predicate /* , thisArg */) {
return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
},
forEach: function forEach(callbackfn /* , thisArg */) {
arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
},
indexOf: function indexOf(searchElement /* , fromIndex */) {
return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
},
includes: function includes(searchElement /* , fromIndex */) {
return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
},
join: function join(separator) { // eslint-disable-line no-unused-vars
return arrayJoin.apply(validate(this), arguments);
},
lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars
return arrayLastIndexOf.apply(validate(this), arguments);
},
map: function map(mapfn /* , thisArg */) {
return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);
},
reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
return arrayReduce.apply(validate(this), arguments);
},
reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
return arrayReduceRight.apply(validate(this), arguments);
},
reverse: function reverse() {
var that = this;
var length = validate(that).length;
var middle = Math.floor(length / 2);
var index = 0;
var value;
while (index < middle) {
value = that[index];
that[index++] = that[--length];
that[length] = value;
} return that;
},
some: function some(callbackfn /* , thisArg */) {
return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
},
sort: function sort(comparefn) {
return arraySort.call(validate(this), comparefn);
},
subarray: function subarray(begin, end) {
var O = validate(this);
var length = O.length;
var $begin = toAbsoluteIndex(begin, length);
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
O.buffer,
O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
);
}
};
var $slice = function slice(start, end) {
return speciesFromList(this, arraySlice.call(validate(this), start, end));
};
var $set = function set(arrayLike /* , offset */) {
validate(this);
var offset = toOffset(arguments[1], 1);
var length = this.length;
var src = toObject(arrayLike);
var len = toLength(src.length);
var index = 0;
if (len + offset > length) throw RangeError(WRONG_LENGTH);
while (index < len) this[offset + index] = src[index++];
};
var $iterators = {
entries: function entries() {
return arrayEntries.call(validate(this));
},
keys: function keys() {
return arrayKeys.call(validate(this));
},
values: function values() {
return arrayValues.call(validate(this));
}
};
var isTAIndex = function (target, key) {
return isObject(target)
&& target[TYPED_ARRAY]
&& typeof key != 'symbol'
&& key in target
&& String(+key) == String(key);
};
var $getDesc = function getOwnPropertyDescriptor(target, key) {
return isTAIndex(target, key = toPrimitive(key, true))
? propertyDesc(2, target[key])
: gOPD(target, key);
};
var $setDesc = function defineProperty(target, key, desc) {
if (isTAIndex(target, key = toPrimitive(key, true))
&& isObject(desc)
&& has(desc, 'value')
&& !has(desc, 'get')
&& !has(desc, 'set')
// TODO: add validation descriptor w/o calling accessors
&& !desc.configurable
&& (!has(desc, 'writable') || desc.writable)
&& (!has(desc, 'enumerable') || desc.enumerable)
) {
target[key] = desc.value;
return target;
} return dP(target, key, desc);
};
if (!ALL_CONSTRUCTORS) {
$GOPD.f = $getDesc;
$DP.f = $setDesc;
}
$export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {
getOwnPropertyDescriptor: $getDesc,
defineProperty: $setDesc
});
if (fails(function () { arrayToString.call({}); })) {
arrayToString = arrayToLocaleString = function toString() {
return arrayJoin.call(this);
};
}
var $TypedArrayPrototype$ = redefineAll({}, proto);
redefineAll($TypedArrayPrototype$, $iterators);
hide($TypedArrayPrototype$, ITERATOR, $iterators.values);
redefineAll($TypedArrayPrototype$, {
slice: $slice,
set: $set,
constructor: function () { /* noop */ },
toString: arrayToString,
toLocaleString: $toLocaleString
});
addGetter($TypedArrayPrototype$, 'buffer', 'b');
addGetter($TypedArrayPrototype$, 'byteOffset', 'o');
addGetter($TypedArrayPrototype$, 'byteLength', 'l');
addGetter($TypedArrayPrototype$, 'length', 'e');
dP($TypedArrayPrototype$, TAG, {
get: function () { return this[TYPED_ARRAY]; }
});
// eslint-disable-next-line max-statements
module.exports = function (KEY, BYTES, wrapper, CLAMPED) {
CLAMPED = !!CLAMPED;
var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';
var GETTER = 'get' + KEY;
var SETTER = 'set' + KEY;
var TypedArray = global[NAME];
var Base = TypedArray || {};
var TAC = TypedArray && getPrototypeOf(TypedArray);
var FORCED = !TypedArray || !$typed.ABV;
var O = {};
var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];
var getter = function (that, index) {
var data = that._d;
return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);
};
var setter = function (that, index, value) {
var data = that._d;
if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;
data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);
};
var addElement = function (that, index) {
dP(that, index, {
get: function () {
return getter(this, index);
},
set: function (value) {
return setter(this, index, value);
},
enumerable: true
});
};
if (FORCED) {
TypedArray = wrapper(function (that, data, $offset, $length) {
anInstance(that, TypedArray, NAME, '_d');
var index = 0;
var offset = 0;
var buffer, byteLength, length, klass;
if (!isObject(data)) {
length = toIndex(data);
byteLength = length * BYTES;
buffer = new $ArrayBuffer(byteLength);
} else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
buffer = data;
offset = toOffset($offset, BYTES);
var $len = data.byteLength;
if ($length === undefined) {
if ($len % BYTES) throw RangeError(WRONG_LENGTH);
byteLength = $len - offset;
if (byteLength < 0) throw RangeError(WRONG_LENGTH);
} else {
byteLength = toLength($length) * BYTES;
if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
}
length = byteLength / BYTES;
} else if (TYPED_ARRAY in data) {
return fromList(TypedArray, data);
} else {
return $from.call(TypedArray, data);
}
hide(that, '_d', {
b: buffer,
o: offset,
l: byteLength,
e: length,
v: new $DataView(buffer)
});
while (index < length) addElement(that, index++);
});
TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
hide(TypedArrayPrototype, 'constructor', TypedArray);
} else if (!fails(function () {
TypedArray(1);
}) || !fails(function () {
new TypedArray(-1); // eslint-disable-line no-new
}) || !$iterDetect(function (iter) {
new TypedArray(); // eslint-disable-line no-new
new TypedArray(null); // eslint-disable-line no-new
new TypedArray(1.5); // eslint-disable-line no-new
new TypedArray(iter); // eslint-disable-line no-new
}, true)) {
TypedArray = wrapper(function (that, data, $offset, $length) {
anInstance(that, TypedArray, NAME);
var klass;
// `ws` module bug, temporarily remove validation length for Uint8Array
// https://github.com/websockets/ws/pull/645
if (!isObject(data)) return new Base(toIndex(data));
if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
return $length !== undefined
? new Base(data, toOffset($offset, BYTES), $length)
: $offset !== undefined
? new Base(data, toOffset($offset, BYTES))
: new Base(data);
}
if (TYPED_ARRAY in data) return fromList(TypedArray, data);
return $from.call(TypedArray, data);
});
arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
});
TypedArray[PROTOTYPE] = TypedArrayPrototype;
if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
}
var $nativeIterator = TypedArrayPrototype[ITERATOR];
var CORRECT_ITER_NAME = !!$nativeIterator
&& ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
var $iterator = $iterators.values;
hide(TypedArray, TYPED_CONSTRUCTOR, true);
hide(TypedArrayPrototype, TYPED_ARRAY, NAME);
hide(TypedArrayPrototype, VIEW, true);
hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);
if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {
dP(TypedArrayPrototype, TAG, {
get: function () { return NAME; }
});
}
O[NAME] = TypedArray;
$export($export.G + $export.W + $export.F * (TypedArray != Base), O);
$export($export.S, NAME, {
BYTES_PER_ELEMENT: BYTES
});
$export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {
from: $from,
of: $of
});
if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
$export($export.P, NAME, proto);
setSpecies(NAME);
$export($export.P + $export.F * FORCED_SET, NAME, { set: $set });
$export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);
if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
$export($export.P + $export.F * fails(function () {
new TypedArray(1).slice();
}), NAME, { slice: $slice });
$export($export.P + $export.F * (fails(function () {
return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();
}) || !fails(function () {
TypedArrayPrototype.toLocaleString.call([1, 2]);
})), NAME, { toLocaleString: $toLocaleString });
Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
};
} else module.exports = function () { /* empty */ };
/***/ }),
/* 231 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Uint8', 1, function (init) {
return function Uint8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 232 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Uint8', 1, function (init) {
return function Uint8ClampedArray(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
}, true);
/***/ }),
/* 233 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Int16', 2, function (init) {
return function Int16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 234 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Uint16', 2, function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 235 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Int32', 4, function (init) {
return function Int32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 236 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Uint32', 4, function (init) {
return function Uint32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 237 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Float32', 4, function (init) {
return function Float32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 238 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(230)('Float64', 8, function (init) {
return function Float64Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 239 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
var $export = __webpack_require__(8);
var aFunction = __webpack_require__(21);
var anObject = __webpack_require__(12);
var rApply = (__webpack_require__(4).Reflect || {}).apply;
var fApply = Function.apply;
// MS Edge argumentsList argument is optional
$export($export.S + $export.F * !__webpack_require__(7)(function () {
rApply(function () { /* empty */ });
}), 'Reflect', {
apply: function apply(target, thisArgument, argumentsList) {
var T = aFunction(target);
var L = anObject(argumentsList);
return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);
}
});
/***/ }),
/* 240 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var $export = __webpack_require__(8);
var create = __webpack_require__(45);
var aFunction = __webpack_require__(21);
var anObject = __webpack_require__(12);
var isObject = __webpack_require__(13);
var fails = __webpack_require__(7);
var bind = __webpack_require__(76);
var rConstruct = (__webpack_require__(4).Reflect || {}).construct;
// MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails(function () {
function F() { /* empty */ }
return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
rConstruct(function () { /* empty */ });
});
$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
construct: function construct(Target, args /* , newTarget */) {
aFunction(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
if (Target == newTarget) {
// w/o altered newTarget, optimization for 0-4 arguments
switch (args.length) {
case 0: return new Target();
case 1: return new Target(args[0]);
case 2: return new Target(args[0], args[1]);
case 3: return new Target(args[0], args[1], args[2]);
case 4: return new Target(args[0], args[1], args[2], args[3]);
}
// w/o altered newTarget, lot of arguments case
var $args = [null];
$args.push.apply($args, args);
return new (bind.apply(Target, $args))();
}
// with altered newTarget, not support built-in constructors
var proto = newTarget.prototype;
var instance = create(isObject(proto) ? proto : Object.prototype);
var result = Function.apply.call(Target, instance, args);
return isObject(result) ? result : instance;
}
});
/***/ }),
/* 241 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
var dP = __webpack_require__(11);
var $export = __webpack_require__(8);
var anObject = __webpack_require__(12);
var toPrimitive = __webpack_require__(16);
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
$export($export.S + $export.F * __webpack_require__(7)(function () {
// eslint-disable-next-line no-undef
Reflect.defineProperty(dP.f({}, 1, { value: 1 }), 1, { value: 2 });
}), 'Reflect', {
defineProperty: function defineProperty(target, propertyKey, attributes) {
anObject(target);
propertyKey = toPrimitive(propertyKey, true);
anObject(attributes);
try {
dP.f(target, propertyKey, attributes);
return true;
} catch (e) {
return false;
}
}
});
/***/ }),
/* 242 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
var $export = __webpack_require__(8);
var gOPD = __webpack_require__(50).f;
var anObject = __webpack_require__(12);
$export($export.S, 'Reflect', {
deleteProperty: function deleteProperty(target, propertyKey) {
var desc = gOPD(anObject(target), propertyKey);
return desc && !desc.configurable ? false : delete target[propertyKey];
}
});
/***/ }),
/* 243 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// 26.1.5 Reflect.enumerate(target)
var $export = __webpack_require__(8);
var anObject = __webpack_require__(12);
var Enumerate = function (iterated) {
this._t = anObject(iterated); // target
this._i = 0; // next index
var keys = this._k = []; // keys
var key;
for (key in iterated) keys.push(key);
};
__webpack_require__(130)(Enumerate, 'Object', function () {
var that = this;
var keys = that._k;
var key;
do {
if (that._i >= keys.length) return { value: undefined, done: true };
} while (!((key = keys[that._i++]) in that._t));
return { value: key, done: false };
});
$export($export.S, 'Reflect', {
enumerate: function enumerate(target) {
return new Enumerate(target);
}
});
/***/ }),
/* 244 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
var gOPD = __webpack_require__(50);
var getPrototypeOf = __webpack_require__(58);
var has = __webpack_require__(5);
var $export = __webpack_require__(8);
var isObject = __webpack_require__(13);
var anObject = __webpack_require__(12);
function get(target, propertyKey /* , receiver */) {
var receiver = arguments.length < 3 ? target : arguments[2];
var desc, proto;
if (anObject(target) === receiver) return target[propertyKey];
if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
? desc.value
: desc.get !== undefined
? desc.get.call(receiver)
: undefined;
if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
}
$export($export.S, 'Reflect', { get: get });
/***/ }),
/* 245 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
var gOPD = __webpack_require__(50);
var $export = __webpack_require__(8);
var anObject = __webpack_require__(12);
$export($export.S, 'Reflect', {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return gOPD.f(anObject(target), propertyKey);
}
});
/***/ }),
/* 246 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.8 Reflect.getPrototypeOf(target)
var $export = __webpack_require__(8);
var getProto = __webpack_require__(58);
var anObject = __webpack_require__(12);
$export($export.S, 'Reflect', {
getPrototypeOf: function getPrototypeOf(target) {
return getProto(anObject(target));
}
});
/***/ }),
/* 247 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.9 Reflect.has(target, propertyKey)
var $export = __webpack_require__(8);
$export($export.S, 'Reflect', {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
/***/ }),
/* 248 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.10 Reflect.isExtensible(target)
var $export = __webpack_require__(8);
var anObject = __webpack_require__(12);
var $isExtensible = Object.isExtensible;
$export($export.S, 'Reflect', {
isExtensible: function isExtensible(target) {
anObject(target);
return $isExtensible ? $isExtensible(target) : true;
}
});
/***/ }),
/* 249 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.11 Reflect.ownKeys(target)
var $export = __webpack_require__(8);
$export($export.S, 'Reflect', { ownKeys: __webpack_require__(250) });
/***/ }),
/* 250 */
/***/ (function(module, exports, __webpack_require__) {
// all object keys, includes non-enumerable and symbols
var gOPN = __webpack_require__(49);
var gOPS = __webpack_require__(42);
var anObject = __webpack_require__(12);
var Reflect = __webpack_require__(4).Reflect;
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
var keys = gOPN.f(anObject(it));
var getSymbols = gOPS.f;
return getSymbols ? keys.concat(getSymbols(it)) : keys;
};
/***/ }),
/* 251 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.12 Reflect.preventExtensions(target)
var $export = __webpack_require__(8);
var anObject = __webpack_require__(12);
var $preventExtensions = Object.preventExtensions;
$export($export.S, 'Reflect', {
preventExtensions: function preventExtensions(target) {
anObject(target);
try {
if ($preventExtensions) $preventExtensions(target);
return true;
} catch (e) {
return false;
}
}
});
/***/ }),
/* 252 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
var dP = __webpack_require__(11);
var gOPD = __webpack_require__(50);
var getPrototypeOf = __webpack_require__(58);
var has = __webpack_require__(5);
var $export = __webpack_require__(8);
var createDesc = __webpack_require__(17);
var anObject = __webpack_require__(12);
var isObject = __webpack_require__(13);
function set(target, propertyKey, V /* , receiver */) {
var receiver = arguments.length < 4 ? target : arguments[3];
var ownDesc = gOPD.f(anObject(target), propertyKey);
var existingDescriptor, proto;
if (!ownDesc) {
if (isObject(proto = getPrototypeOf(target))) {
return set(proto, propertyKey, V, receiver);
}
ownDesc = createDesc(0);
}
if (has(ownDesc, 'value')) {
if (ownDesc.writable === false || !isObject(receiver)) return false;
if (existingDescriptor = gOPD.f(receiver, propertyKey)) {
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
existingDescriptor.value = V;
dP.f(receiver, propertyKey, existingDescriptor);
} else dP.f(receiver, propertyKey, createDesc(0, V));
return true;
}
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
}
$export($export.S, 'Reflect', { set: set });
/***/ }),
/* 253 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.14 Reflect.setPrototypeOf(target, proto)
var $export = __webpack_require__(8);
var setProto = __webpack_require__(72);
if (setProto) $export($export.S, 'Reflect', {
setPrototypeOf: function setPrototypeOf(target, proto) {
setProto.check(target, proto);
try {
setProto.set(target, proto);
return true;
} catch (e) {
return false;
}
}
});
/***/ }),
/* 254 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/tc39/Array.prototype.includes
var $export = __webpack_require__(8);
var $includes = __webpack_require__(36)(true);
$export($export.P, 'Array', {
includes: function includes(el /* , fromIndex = 0 */) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
__webpack_require__(187)('includes');
/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap
var $export = __webpack_require__(8);
var flattenIntoArray = __webpack_require__(256);
var toObject = __webpack_require__(57);
var toLength = __webpack_require__(37);
var aFunction = __webpack_require__(21);
var arraySpeciesCreate = __webpack_require__(174);
$export($export.P, 'Array', {
flatMap: function flatMap(callbackfn /* , thisArg */) {
var O = toObject(this);
var sourceLen, A;
aFunction(callbackfn);
sourceLen = toLength(O.length);
A = arraySpeciesCreate(O, 0);
flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]);
return A;
}
});
__webpack_require__(187)('flatMap');
/***/ }),
/* 256 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var isArray = __webpack_require__(44);
var isObject = __webpack_require__(13);
var toLength = __webpack_require__(37);
var ctx = __webpack_require__(20);
var IS_CONCAT_SPREADABLE = __webpack_require__(26)('isConcatSpreadable');
function flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) {
var targetIndex = start;
var sourceIndex = 0;
var mapFn = mapper ? ctx(mapper, thisArg, 3) : false;
var element, spreadable;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
spreadable = false;
if (isObject(element)) {
spreadable = element[IS_CONCAT_SPREADABLE];
spreadable = spreadable !== undefined ? !!spreadable : isArray(element);
}
if (spreadable && depth > 0) {
targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
} else {
if (targetIndex >= 0x1fffffffffffff) throw TypeError();
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
}
module.exports = flattenIntoArray;
/***/ }),
/* 257 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten
var $export = __webpack_require__(8);
var flattenIntoArray = __webpack_require__(256);
var toObject = __webpack_require__(57);
var toLength = __webpack_require__(37);
var toInteger = __webpack_require__(38);
var arraySpeciesCreate = __webpack_require__(174);
$export($export.P, 'Array', {
flatten: function flatten(/* depthArg = 1 */) {
var depthArg = arguments[0];
var O = toObject(this);
var sourceLen = toLength(O.length);
var A = arraySpeciesCreate(O, 0);
flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
return A;
}
});
__webpack_require__(187)('flatten');
/***/ }),
/* 258 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/mathiasbynens/String.prototype.at
var $export = __webpack_require__(8);
var $at = __webpack_require__(127)(true);
$export($export.P, 'String', {
at: function at(pos) {
return $at(this, pos);
}
});
/***/ }),
/* 259 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/tc39/proposal-string-pad-start-end
var $export = __webpack_require__(8);
var $pad = __webpack_require__(260);
var userAgent = __webpack_require__(213);
// https://github.com/zloirock/core-js/issues/280
$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
padStart: function padStart(maxLength /* , fillString = ' ' */) {
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
}
});
/***/ }),
/* 260 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-string-pad-start-end
var toLength = __webpack_require__(37);
var repeat = __webpack_require__(90);
var defined = __webpack_require__(35);
module.exports = function (that, maxLength, fillString, left) {
var S = String(defined(that));
var stringLength = S.length;
var fillStr = fillString === undefined ? ' ' : String(fillString);
var intMaxLength = toLength(maxLength);
if (intMaxLength <= stringLength || fillStr == '') return S;
var fillLen = intMaxLength - stringLength;
var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
return left ? stringFiller + S : S + stringFiller;
};
/***/ }),
/* 261 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/tc39/proposal-string-pad-start-end
var $export = __webpack_require__(8);
var $pad = __webpack_require__(260);
var userAgent = __webpack_require__(213);
// https://github.com/zloirock/core-js/issues/280
$export($export.P + $export.F * /Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent), 'String', {
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
}
});
/***/ }),
/* 262 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
__webpack_require__(82)('trimLeft', function ($trim) {
return function trimLeft() {
return $trim(this, 1);
};
}, 'trimStart');
/***/ }),
/* 263 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
__webpack_require__(82)('trimRight', function ($trim) {
return function trimRight() {
return $trim(this, 2);
};
}, 'trimEnd');
/***/ }),
/* 264 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/String.prototype.matchAll/
var $export = __webpack_require__(8);
var defined = __webpack_require__(35);
var toLength = __webpack_require__(37);
var isRegExp = __webpack_require__(134);
var getFlags = __webpack_require__(197);
var RegExpProto = RegExp.prototype;
var $RegExpStringIterator = function (regexp, string) {
this._r = regexp;
this._s = string;
};
__webpack_require__(130)($RegExpStringIterator, 'RegExp String', function next() {
var match = this._r.exec(this._s);
return { value: match, done: match === null };
});
$export($export.P, 'String', {
matchAll: function matchAll(regexp) {
defined(this);
if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!');
var S = String(this);
var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp);
var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);
rx.lastIndex = toLength(regexp.lastIndex);
return new $RegExpStringIterator(rx, S);
}
});
/***/ }),
/* 265 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(28)('asyncIterator');
/***/ }),
/* 266 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(28)('observable');
/***/ }),
/* 267 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-getownpropertydescriptors
var $export = __webpack_require__(8);
var ownKeys = __webpack_require__(250);
var toIObject = __webpack_require__(32);
var gOPD = __webpack_require__(50);
var createProperty = __webpack_require__(164);
$export($export.S, 'Object', {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIObject(object);
var getDesc = gOPD.f;
var keys = ownKeys(O);
var result = {};
var i = 0;
var key, desc;
while (keys.length > i) {
desc = getDesc(O, key = keys[i++]);
if (desc !== undefined) createProperty(result, key, desc);
}
return result;
}
});
/***/ }),
/* 268 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(8);
var $values = __webpack_require__(269)(false);
$export($export.S, 'Object', {
values: function values(it) {
return $values(it);
}
});
/***/ }),
/* 269 */
/***/ (function(module, exports, __webpack_require__) {
var getKeys = __webpack_require__(30);
var toIObject = __webpack_require__(32);
var isEnum = __webpack_require__(43).f;
module.exports = function (isEntries) {
return function (it) {
var O = toIObject(it);
var keys = getKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) if (isEnum.call(O, key = keys[i++])) {
result.push(isEntries ? [key, O[key]] : O[key]);
} return result;
};
};
/***/ }),
/* 270 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(8);
var $entries = __webpack_require__(269)(true);
$export($export.S, 'Object', {
entries: function entries(it) {
return $entries(it);
}
});
/***/ }),
/* 271 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var aFunction = __webpack_require__(21);
var $defineProperty = __webpack_require__(11);
// B.2.2.2 Object.prototype.__defineGetter__(P, getter)
__webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', {
__defineGetter__: function __defineGetter__(P, getter) {
$defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });
}
});
/***/ }),
/* 272 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// Forced replacement prototype accessors methods
module.exports = __webpack_require__(24) || !__webpack_require__(7)(function () {
var K = Math.random();
// In FF throws only define methods
// eslint-disable-next-line no-undef, no-useless-call
__defineSetter__.call(null, K, function () { /* empty */ });
delete __webpack_require__(4)[K];
});
/***/ }),
/* 273 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var aFunction = __webpack_require__(21);
var $defineProperty = __webpack_require__(11);
// B.2.2.3 Object.prototype.__defineSetter__(P, setter)
__webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', {
__defineSetter__: function __defineSetter__(P, setter) {
$defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
}
});
/***/ }),
/* 274 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var toPrimitive = __webpack_require__(16);
var getPrototypeOf = __webpack_require__(58);
var getOwnPropertyDescriptor = __webpack_require__(50).f;
// B.2.2.4 Object.prototype.__lookupGetter__(P)
__webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', {
__lookupGetter__: function __lookupGetter__(P) {
var O = toObject(this);
var K = toPrimitive(P, true);
var D;
do {
if (D = getOwnPropertyDescriptor(O, K)) return D.get;
} while (O = getPrototypeOf(O));
}
});
/***/ }),
/* 275 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var $export = __webpack_require__(8);
var toObject = __webpack_require__(57);
var toPrimitive = __webpack_require__(16);
var getPrototypeOf = __webpack_require__(58);
var getOwnPropertyDescriptor = __webpack_require__(50).f;
// B.2.2.5 Object.prototype.__lookupSetter__(P)
__webpack_require__(6) && $export($export.P + __webpack_require__(272), 'Object', {
__lookupSetter__: function __lookupSetter__(P) {
var O = toObject(this);
var K = toPrimitive(P, true);
var D;
do {
if (D = getOwnPropertyDescriptor(O, K)) return D.set;
} while (O = getPrototypeOf(O));
}
});
/***/ }),
/* 276 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(8);
$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(277)('Map') });
/***/ }),
/* 277 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var classof = __webpack_require__(74);
var from = __webpack_require__(278);
module.exports = function (NAME) {
return function toJSON() {
if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
return from(this);
};
};
/***/ }),
/* 278 */
/***/ (function(module, exports, __webpack_require__) {
var forOf = __webpack_require__(207);
module.exports = function (iter, ITERATOR) {
var result = [];
forOf(iter, false, result.push, result, ITERATOR);
return result;
};
/***/ }),
/* 279 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(8);
$export($export.P + $export.R, 'Set', { toJSON: __webpack_require__(277)('Set') });
/***/ }),
/* 280 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
__webpack_require__(281)('Map');
/***/ }),
/* 281 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(8);
module.exports = function (COLLECTION) {
$export($export.S, COLLECTION, { of: function of() {
var length = arguments.length;
var A = new Array(length);
while (length--) A[length] = arguments[length];
return new this(A);
} });
};
/***/ }),
/* 282 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
__webpack_require__(281)('Set');
/***/ }),
/* 283 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
__webpack_require__(281)('WeakMap');
/***/ }),
/* 284 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
__webpack_require__(281)('WeakSet');
/***/ }),
/* 285 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
__webpack_require__(286)('Map');
/***/ }),
/* 286 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
var $export = __webpack_require__(8);
var aFunction = __webpack_require__(21);
var ctx = __webpack_require__(20);
var forOf = __webpack_require__(207);
module.exports = function (COLLECTION) {
$export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
var mapFn = arguments[1];
var mapping, A, n, cb;
aFunction(this);
mapping = mapFn !== undefined;
if (mapping) aFunction(mapFn);
if (source == undefined) return new this();
A = [];
if (mapping) {
n = 0;
cb = ctx(mapFn, arguments[2], 2);
forOf(source, false, function (nextItem) {
A.push(cb(nextItem, n++));
});
} else {
forOf(source, false, A.push, A);
}
return new this(A);
} });
};
/***/ }),
/* 287 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
__webpack_require__(286)('Set');
/***/ }),
/* 288 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
__webpack_require__(286)('WeakMap');
/***/ }),
/* 289 */
/***/ (function(module, exports, __webpack_require__) {
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
__webpack_require__(286)('WeakSet');
/***/ }),
/* 290 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-global
var $export = __webpack_require__(8);
$export($export.G, { global: __webpack_require__(4) });
/***/ }),
/* 291 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-global
var $export = __webpack_require__(8);
$export($export.S, 'System', { global: __webpack_require__(4) });
/***/ }),
/* 292 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/ljharb/proposal-is-error
var $export = __webpack_require__(8);
var cof = __webpack_require__(34);
$export($export.S, 'Error', {
isError: function isError(it) {
return cof(it) === 'Error';
}
});
/***/ }),
/* 293 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
clamp: function clamp(x, lower, upper) {
return Math.min(upper, Math.max(lower, x));
}
});
/***/ }),
/* 294 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
$export($export.S, 'Math', { DEG_PER_RAD: Math.PI / 180 });
/***/ }),
/* 295 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
var RAD_PER_DEG = 180 / Math.PI;
$export($export.S, 'Math', {
degrees: function degrees(radians) {
return radians * RAD_PER_DEG;
}
});
/***/ }),
/* 296 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
var scale = __webpack_require__(297);
var fround = __webpack_require__(113);
$export($export.S, 'Math', {
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
return fround(scale(x, inLow, inHigh, outLow, outHigh));
}
});
/***/ }),
/* 297 */
/***/ (function(module, exports) {
// https://rwaldron.github.io/proposal-math-extensions/
module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {
if (
arguments.length === 0
// eslint-disable-next-line no-self-compare
|| x != x
// eslint-disable-next-line no-self-compare
|| inLow != inLow
// eslint-disable-next-line no-self-compare
|| inHigh != inHigh
// eslint-disable-next-line no-self-compare
|| outLow != outLow
// eslint-disable-next-line no-self-compare
|| outHigh != outHigh
) return NaN;
if (x === Infinity || x === -Infinity) return x;
return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow;
};
/***/ }),
/* 298 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
iaddh: function iaddh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0;
var $x1 = x1 >>> 0;
var $y0 = y0 >>> 0;
return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
}
});
/***/ }),
/* 299 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
isubh: function isubh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0;
var $x1 = x1 >>> 0;
var $y0 = y0 >>> 0;
return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;
}
});
/***/ }),
/* 300 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
imulh: function imulh(u, v) {
var UINT16 = 0xffff;
var $u = +u;
var $v = +v;
var u0 = $u & UINT16;
var v0 = $v & UINT16;
var u1 = $u >> 16;
var v1 = $v >> 16;
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
}
});
/***/ }),
/* 301 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
$export($export.S, 'Math', { RAD_PER_DEG: 180 / Math.PI });
/***/ }),
/* 302 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
var DEG_PER_RAD = Math.PI / 180;
$export($export.S, 'Math', {
radians: function radians(degrees) {
return degrees * DEG_PER_RAD;
}
});
/***/ }),
/* 303 */
/***/ (function(module, exports, __webpack_require__) {
// https://rwaldron.github.io/proposal-math-extensions/
var $export = __webpack_require__(8);
$export($export.S, 'Math', { scale: __webpack_require__(297) });
/***/ }),
/* 304 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(8);
$export($export.S, 'Math', {
umulh: function umulh(u, v) {
var UINT16 = 0xffff;
var $u = +u;
var $v = +v;
var u0 = $u & UINT16;
var v0 = $v & UINT16;
var u1 = $u >>> 16;
var v1 = $v >>> 16;
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
}
});
/***/ }),
/* 305 */
/***/ (function(module, exports, __webpack_require__) {
// http://jfbastien.github.io/papers/Math.signbit.html
var $export = __webpack_require__(8);
$export($export.S, 'Math', { signbit: function signbit(x) {
// eslint-disable-next-line no-self-compare
return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
} });
/***/ }),
/* 306 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-promise-finally
'use strict';
var $export = __webpack_require__(8);
var core = __webpack_require__(9);
var global = __webpack_require__(4);
var speciesConstructor = __webpack_require__(208);
var promiseResolve = __webpack_require__(214);
$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
var C = speciesConstructor(this, core.Promise || global.Promise);
var isFunction = typeof onFinally == 'function';
return this.then(
isFunction ? function (x) {
return promiseResolve(C, onFinally()).then(function () { return x; });
} : onFinally,
isFunction ? function (e) {
return promiseResolve(C, onFinally()).then(function () { throw e; });
} : onFinally
);
} });
/***/ }),
/* 307 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/tc39/proposal-promise-try
var $export = __webpack_require__(8);
var newPromiseCapability = __webpack_require__(211);
var perform = __webpack_require__(212);
$export($export.S, 'Promise', { 'try': function (callbackfn) {
var promiseCapability = newPromiseCapability.f(this);
var result = perform(callbackfn);
(result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
return promiseCapability.promise;
} });
/***/ }),
/* 308 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var toMetaKey = metadata.key;
var ordinaryDefineOwnMetadata = metadata.set;
metadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
} });
/***/ }),
/* 309 */
/***/ (function(module, exports, __webpack_require__) {
var Map = __webpack_require__(216);
var $export = __webpack_require__(8);
var shared = __webpack_require__(23)('metadata');
var store = shared.store || (shared.store = new (__webpack_require__(221))());
var getOrCreateMetadataMap = function (target, targetKey, create) {
var targetMetadata = store.get(target);
if (!targetMetadata) {
if (!create) return undefined;
store.set(target, targetMetadata = new Map());
}
var keyMetadata = targetMetadata.get(targetKey);
if (!keyMetadata) {
if (!create) return undefined;
targetMetadata.set(targetKey, keyMetadata = new Map());
} return keyMetadata;
};
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
};
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
};
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
};
var ordinaryOwnMetadataKeys = function (target, targetKey) {
var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
var keys = [];
if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
return keys;
};
var toMetaKey = function (it) {
return it === undefined || typeof it == 'symbol' ? it : String(it);
};
var exp = function (O) {
$export($export.S, 'Reflect', O);
};
module.exports = {
store: store,
map: getOrCreateMetadataMap,
has: ordinaryHasOwnMetadata,
get: ordinaryGetOwnMetadata,
set: ordinaryDefineOwnMetadata,
keys: ordinaryOwnMetadataKeys,
key: toMetaKey,
exp: exp
};
/***/ }),
/* 310 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var toMetaKey = metadata.key;
var getOrCreateMetadataMap = metadata.map;
var store = metadata.store;
metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
if (metadataMap.size) return true;
var targetMetadata = store.get(target);
targetMetadata['delete'](targetKey);
return !!targetMetadata.size || store['delete'](target);
} });
/***/ }),
/* 311 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var getPrototypeOf = __webpack_require__(58);
var ordinaryHasOwnMetadata = metadata.has;
var ordinaryGetOwnMetadata = metadata.get;
var toMetaKey = metadata.key;
var ordinaryGetMetadata = function (MetadataKey, O, P) {
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
var parent = getPrototypeOf(O);
return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
};
metadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
/***/ }),
/* 312 */
/***/ (function(module, exports, __webpack_require__) {
var Set = __webpack_require__(220);
var from = __webpack_require__(278);
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var getPrototypeOf = __webpack_require__(58);
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;
var ordinaryMetadataKeys = function (O, P) {
var oKeys = ordinaryOwnMetadataKeys(O, P);
var parent = getPrototypeOf(O);
if (parent === null) return oKeys;
var pKeys = ordinaryMetadataKeys(parent, P);
return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;
};
metadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });
/***/ }),
/* 313 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var ordinaryGetOwnMetadata = metadata.get;
var toMetaKey = metadata.key;
metadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
return ordinaryGetOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
/***/ }),
/* 314 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;
metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });
/***/ }),
/* 315 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var getPrototypeOf = __webpack_require__(58);
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;
var ordinaryHasMetadata = function (MetadataKey, O, P) {
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) return true;
var parent = getPrototypeOf(O);
return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
};
metadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
/***/ }),
/* 316 */
/***/ (function(module, exports, __webpack_require__) {
var metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;
metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
return ordinaryHasOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });
/***/ }),
/* 317 */
/***/ (function(module, exports, __webpack_require__) {
var $metadata = __webpack_require__(309);
var anObject = __webpack_require__(12);
var aFunction = __webpack_require__(21);
var toMetaKey = $metadata.key;
var ordinaryDefineOwnMetadata = $metadata.set;
$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
return function decorator(target, targetKey) {
ordinaryDefineOwnMetadata(
metadataKey, metadataValue,
(targetKey !== undefined ? anObject : aFunction)(target),
toMetaKey(targetKey)
);
};
} });
/***/ }),
/* 318 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask
var $export = __webpack_require__(8);
var microtask = __webpack_require__(210)();
var process = __webpack_require__(4).process;
var isNode = __webpack_require__(34)(process) == 'process';
$export($export.G, {
asap: function asap(fn) {
var domain = isNode && process.domain;
microtask(domain ? domain.bind(fn) : fn);
}
});
/***/ }),
/* 319 */
/***/ (function(module, exports, __webpack_require__) {
'use strict';
// https://github.com/zenparsing/es-observable
var $export = __webpack_require__(8);
var global = __webpack_require__(4);
var core = __webpack_require__(9);
var microtask = __webpack_require__(210)();
var OBSERVABLE = __webpack_require__(26)('observable');
var aFunction = __webpack_require__(21);
var anObject = __webpack_require__(12);
var anInstance = __webpack_require__(206);
var redefineAll = __webpack_require__(215);
var hide = __webpack_require__(10);
var forOf = __webpack_require__(207);
var RETURN = forOf.RETURN;
var getMethod = function (fn) {
return fn == null ? undefined : aFunction(fn);
};
var cleanupSubscription = function (subscription) {
var cleanup = subscription._c;
if (cleanup) {
subscription._c = undefined;
cleanup();
}
};
var subscriptionClosed = function (subscription) {
return subscription._o === undefined;
};
var closeSubscription = function (subscription) {
if (!subscriptionClosed(subscription)) {
subscription._o = undefined;
cleanupSubscription(subscription);
}
};
var Subscription = function (observer, subscriber) {
anObject(observer);
this._c = undefined;
this._o = observer;
observer = new SubscriptionObserver(this);
try {
var cleanup = subscriber(observer);
var subscription = cleanup;
if (cleanup != null) {
if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); };
else aFunction(cleanup);
this._c = cleanup;
}
} catch (e) {
observer.error(e);
return;
} if (subscriptionClosed(this)) cleanupSubscription(this);
};
Subscription.prototype = redefineAll({}, {
unsubscribe: function unsubscribe() { closeSubscription(this); }
});
var SubscriptionObserver = function (subscription) {
this._s = subscription;
};
SubscriptionObserver.prototype = redefineAll({}, {
next: function next(value) {
var subscription = this._s;
if (!subscriptionClosed(subscription)) {
var observer = subscription._o;
try {
var m = getMethod(observer.next);
if (m) return m.call(observer, value);
} catch (e) {
try {
closeSubscription(subscription);
} finally {
throw e;
}
}
}
},
error: function error(value) {
var subscription = this._s;
if (subscriptionClosed(subscription)) throw value;
var observer = subscription._o;
subscription._o = undefined;
try {
var m = getMethod(observer.error);
if (!m) throw value;
value = m.call(observer, value);
} catch (e) {
try {
cleanupSubscription(subscription);
} finally {
throw e;
}
} cleanupSubscription(subscription);
return value;
},
complete: function complete(value) {
var subscription = this._s;
if (!subscriptionClosed(subscription)) {
var observer = subscription._o;
subscription._o = undefined;
try {
var m = getMethod(observer.complete);
value = m ? m.call(observer, value) : undefined;
} catch (e) {
try {
cleanupSubscription(subscription);
} finally {
throw e;
}
} cleanupSubscription(subscription);
return value;
}
}
});
var $Observable = function Observable(subscriber) {
anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber);
};
redefineAll($Observable.prototype, {
subscribe: function subscribe(observer) {
return new Subscription(observer, this._f);
},
forEach: function forEach(fn) {
var that = this;
return new (core.Promise || global.Promise)(function (resolve, reject) {
aFunction(fn);
var subscription = that.subscribe({
next: function (value) {
try {
return fn(value);
} catch (e) {
reject(e);
subscription.unsubscribe();
}
},
error: reject,
complete: resolve
});
});
}
});
redefineAll($Observable, {
from: function from(x) {
var C = typeof this === 'function' ? this : $Observable;
var method = getMethod(anObject(x)[OBSERVABLE]);
if (method) {
var observable = anObject(method.call(x));
return observable.constructor === C ? observable : new C(function (observer) {
return observable.subscribe(observer);
});
}
return new C(function (observer) {
var done = false;
microtask(function () {
if (!done) {
try {
if (forOf(x, false, function (it) {
observer.next(it);
if (done) return RETURN;
}) === RETURN) return;
} catch (e) {
if (done) throw e;
observer.error(e);
return;
} observer.complete();
}
});
return function () { done = true; };
});
},
of: function of() {
for (var i = 0, l = arguments.length, items = new Array(l); i < l;) items[i] = arguments[i++];
return new (typeof this === 'function' ? this : $Observable)(function (observer) {
var done = false;
microtask(function () {
if (!done) {
for (var j = 0; j < items.length; ++j) {
observer.next(items[j]);
if (done) return;
} observer.complete();
}
});
return function () { done = true; };
});
}
});
hide($Observable.prototype, OBSERVABLE, function () { return this; });
$export($export.G, { Observable: $Observable });
__webpack_require__(193)('Observable');
/***/ }),
/* 320 */
/***/ (function(module, exports, __webpack_require__) {
// ie9- setTimeout & setInterval additional parameters fix
var global = __webpack_require__(4);
var $export = __webpack_require__(8);
var userAgent = __webpack_require__(213);
var slice = [].slice;
var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
var wrap = function (set) {
return function (fn, time /* , ...args */) {
var boundArgs = arguments.length > 2;
var args = boundArgs ? slice.call(arguments, 2) : false;
return set(boundArgs ? function () {
// eslint-disable-next-line no-new-func
(typeof fn == 'function' ? fn : Function(fn)).apply(this, args);
} : fn, time);
};
};
$export($export.G + $export.B + $export.F * MSIE, {
setTimeout: wrap(global.setTimeout),
setInterval: wrap(global.setInterval)
});
/***/ }),
/* 321 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(8);
var $task = __webpack_require__(209);
$export($export.G + $export.B, {
setImmediate: $task.set,
clearImmediate: $task.clear
});
/***/ }),
/* 322 */
/***/ (function(module, exports, __webpack_require__) {
var $iterators = __webpack_require__(194);
var getKeys = __webpack_require__(30);
var redefine = __webpack_require__(18);
var global = __webpack_require__(4);
var hide = __webpack_require__(10);
var Iterators = __webpack_require__(129);
var wks = __webpack_require__(26);
var ITERATOR = wks('iterator');
var TO_STRING_TAG = wks('toStringTag');
var ArrayValues = Iterators.Array;
var DOMIterables = {
CSSRuleList: true, // TODO: Not spec compliant, should be false.
CSSStyleDeclaration: false,
CSSValueList: false,
ClientRectList: false,
DOMRectList: false,
DOMStringList: false,
DOMTokenList: true,
DataTransferItemList: false,
FileList: false,
HTMLAllCollection: false,
HTMLCollection: false,
HTMLFormElement: false,
HTMLSelectElement: false,
MediaList: true, // TODO: Not spec compliant, should be false.
MimeTypeArray: false,
NamedNodeMap: false,
NodeList: true,
PaintRequestList: false,
Plugin: false,
PluginArray: false,
SVGLengthList: false,
SVGNumberList: false,
SVGPathSegList: false,
SVGPointList: false,
SVGStringList: false,
SVGTransformList: false,
SourceBufferList: false,
StyleSheetList: true, // TODO: Not spec compliant, should be false.
TextTrackCueList: false,
TextTrackList: false,
TouchList: false
};
for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
var NAME = collections[i];
var explicit = DOMIterables[NAME];
var Collection = global[NAME];
var proto = Collection && Collection.prototype;
var key;
if (proto) {
if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
Iterators[NAME] = ArrayValues;
if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
}
}
/***/ }),
/* 323 */
/***/ (function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
!(function(global) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
var inModule = typeof module === "object";
var runtime = global.regeneratorRuntime;
if (runtime) {
if (inModule) {
// If regeneratorRuntime is defined globally and we're in a module,
// make the exports object identical to regeneratorRuntime.
module.exports = runtime;
}
// Don't bother evaluating the rest of this file if the runtime was
// already defined globally.
return;
}
// Define the runtime globally (as expected by generated code) as either
// module.exports (if we're in a module) or a new, empty object.
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
runtime.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
prototype[method] = function(arg) {
return this._invoke(method, arg);
};
});
}
runtime.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
runtime.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
if (!(toStringTagSymbol in genFun)) {
genFun[toStringTagSymbol] = "GeneratorFunction";
}
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
runtime.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}
return Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the
// result for this iteration will be rejected with the same
// reason. Note that rejections of yielded Promises are not
// thrown back into the generator function, as is the case
// when an awaited Promise is rejected. This difference in
// behavior between yield and await is important, because it
// allows the consumer to decide what to do with the yielded
// rejection (swallow it and continue, manually .throw it back
// into the generator, abandon iteration, whatever). With
// await, by contrast, there is no opportunity to examine the
// rejection reason outside the generator function, so the
// only option is to throw it from the await expression, and
// let the generator function handle the exception.
result.value = unwrapped;
resolve(result);
}, reject);
}
}
if (typeof global.process === "object" && global.process.domain) {
invoke = global.process.domain.bind(invoke);
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : callInvokeWithMethodAndArg();
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
runtime.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
);
return runtime.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
if (delegate.iterator.return) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (! info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function() {
return this;
};
Gp.toString = function() {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
runtime.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
runtime.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !! caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
}
};
})(
// Among the various tricks for obtaining a reference to the global
// object, this seems to be the most reliable technique that does not
// use indirect eval (which violates Content Security Policy).
typeof global === "object" ? global :
typeof window === "object" ? window :
typeof self === "object" ? self : this
);
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }),
/* 324 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(325);
module.exports = __webpack_require__(9).RegExp.escape;
/***/ }),
/* 325 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/benjamingr/RexExp.escape
var $export = __webpack_require__(8);
var $re = __webpack_require__(326)(/[\\^$*+?.()|[\]{}]/g, '\\$&');
$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } });
/***/ }),
/* 326 */
/***/ (function(module, exports) {
module.exports = function (regExp, replace) {
var replacer = replace === Object(replace) ? function (part) {
return replace[part];
} : replace;
return function (it) {
return String(it).replace(regExp, replacer);
};
};
/***/ }),
/* 327 */
/***/ (function(module, exports) {
'use strict';
module.exports = ['dave', 'henry', 'martha'];
/***/ })
/******/ ]); | syndbg/webpack-google-cloud-storage-plugin | examples/bin/app.bundle.js | JavaScript | mit | 271,678 |
#!/bin/sh
# Capture the current version.
VERSION=`cat ./VERSION`
# Currently using YUI Compressor for minification.
YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar
# To use the YUI Compressor, Java is required (http://java.com).
JAVA=`which java`
if [ "$JAVA" == "" ]; then echo "Not found: java" ; exit 1 ; fi
# Output tmp version file (use comment style that works for both CSS and JS).
echo "/* uducada v$VERSION - https://github.com/m5n/uducada */" > ./version.tmp
# Process CSS files for each third-party UI framework.
UIFWKFILES=`find ./src/css/adapters/uifwk -type f`
for UIFWKFILE in $UIFWKFILES
do
# Extract framework identifier.
# Note: remove "-" for readability, e.g. jquery-ui => jqueryui.
UIFWKID=`expr "$UIFWKFILE" : ".*/\(.*\).css" | tr -d "-"`
echo "Generating uducada-$UIFWKID CSS files..."
# Generate unminified and minified versions of the CSS file.
# Note: add adapter file before uducada files.
cat $UIFWKFILE ./src/css/*.css > ./uducada.css.tmp
$JAVA -jar $YUICOMPRESSOR --type css -o ./uducada.min.css.tmp ./uducada.css.tmp
# Add the version file to the minified and unminified versions of the CSS file.
cat ./version.tmp ./uducada.css.tmp > ./uducada-$UIFWKID.css
cat ./version.tmp ./uducada.min.css.tmp > ./uducada-$UIFWKID.min.css
done
# Process JS files for each third-party JS and UI framework combination.
FWKFILES=`find ./src/js/adapters/fwk -type f`
for FWKFILE in $FWKFILES
do
# Extract framework identifier.
# Note: remove "-" for readability, e.g. jquery-ui => jqueryui.
FWKID=`expr "$FWKFILE" : ".*/\(.*\).js" | tr -d "-"`
UIFWKFILES=`find ./src/js/adapters/uifwk -type f`
for UIFWKFILE in $UIFWKFILES
do
# Extract framework identifier.
# Note: remove "-" for readability, e.g. jquery-ui => jqueryui.
UIFWKID=`expr "$UIFWKFILE" : ".*/\(.*\).js" | tr -d "-"`
echo "Generating uducada-$FWKID-$UIFWKID JS files..."
# Generate unminified and minified versions of the JS file.
# Note: add adapter files before uducada files.
cat $FWKFILE $UIFWKFILE ./src/js/*.js > ./uducada.js.tmp
$JAVA -jar $YUICOMPRESSOR --type js -o ./uducada.min.js.tmp ./uducada.js.tmp
# Add the version file to the minified and unminified versions of the CSS file.
cat ./version.tmp ./uducada.js.tmp > ./uducada-$FWKID-$UIFWKID.js
cat ./version.tmp ./uducada.min.js.tmp > ./uducada-$FWKID-$UIFWKID.min.js
done
done
# Delete all tmp files.
rm ./*.tmp
| m5n/uducada | build.sh | Shell | mit | 2,544 |
<template name="home">
<div id="ww">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-offset-2 centered">
{{> me}}
</div><!-- /col-lg-8 -->
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /ww -->
{{> work}}
</template>
| pH-7/pH7Ortfolio | client/templates/home.html | HTML | mit | 318 |
/**
* Scale Interpolation Function.
*
* @param {number} a start scale
* @param {number} b end scale
* @param {number} v progress
* @returns {string} the interpolated scale
*/
export default function scale(a, b, v) {
// eslint-disable-next-line no-bitwise
return `scale(${((a + (b - a) * v) * 1000 >> 0) / 1000})`;
}
| thednp/kute.js | src/interpolation/scale.js | JavaScript | mit | 327 |
/*
* jQuery ZenPen url/link action
*
* Copyright (c) 2013 Deux Huit Huit (http://www.deuxhuithuit.com/)
* Licensed under the MIT (http://deuxhuithuit.mit-license.org)
* Based on the work of Tim Holman (https://github.com/tholman/zenpen)
* Licensed under the Apache License (https://github.com/tholman/zenpen/blob/master/licence.md)
*/
(function ($) {
if (!$.zenpen) {
return;
}
var api = $.zenpen.api;
$.zenpen.actions.url = {
validNode: function (node) {
return !!node.closest('a').length;
},
create: function (options) {
var btn = api.createButtonFactory('url useicons', '', 'url')();
var input = $('<input />').addClass('url-input')
.attr('type','text')
.attr('placeholder','Type or Paste URL here');
var self = this;
var exit = function () {
setTimeout(function () {
self._options.opts.removeClass('url-mode');
self._options.popup.width(self._options.popup.data().width);
}, 100);
};
var realExec = function () {
var url = input.val();
api.rehighlightLastSelection(self._options.range);
// Unlink any current links
document.execCommand( 'unlink', false );
if (!!url) {
// Insert HTTP if it doesn't exist.
if ( !url.match("^(http|https|ftp|ftps|sftp)://")
&& !url.match("^(mailto|tel|fax|skype|irc):")
&& !url.match("^/") ) {
url = "http://" + url;
}
document.execCommand( 'createLink', false, url );
input.val(''); // creates a blur
self._options.popup.trigger('update');
}
};
input.keyup(function (e) {
if (e.which === 13) {
realExec();
} else if (e.which === 27) {
exit();
}
});
input.blur(exit);
return btn.add(input);
},
exec: function ( btn, popup, lastSelection, options ) {
var opts = popup.find('.zenpen-options');
if (!opts.hasClass('url-mode')) {
var width = popup.width();
opts.addClass('url-mode');
var newWidth = /*popup.find('input.url-input').width()*/245 + btn.width();
popup.width(newWidth);
// save options
if (!!lastSelection && !lastSelection.isCollapsed) {
this._options = {
btn: btn,
popup: popup,
opts: opts,
range: lastSelection.getRangeAt(0)
};
popup.data('width', width);
popup.find('input.url-input').val($(lastSelection.focusNode).closest('a').attr('href'));
}
setTimeout(function () {
popup.find('input.url-input').focus();
}, 50);
}
}
};
})(jQuery); | DeuxHuitHuit/jQuery-zenpen | src/js/jquery.zenpen.url.js | JavaScript | mit | 2,580 |
-- aka combobox in java/win32
-- also menubar : multiple dropdown
| ghoulsblade/vegaogre | lugre/widgets/lib.gui.widget.dropdownmenu.lua | Lua | mit | 66 |
const mockMark = jest.fn();
const mockUnmark = jest.fn();
jest.mock('mark.js', () => () => ({
mark: mockMark,
unmark: mockUnmark,
}));
import { MarkerService } from '../MarkerService';
describe('Marker service', () => {
let marker: MarkerService;
const element = document.createElement('span');
beforeEach(() => {
marker = new MarkerService();
mockMark.mockClear();
mockUnmark.mockClear();
});
test('add element to Map', () => {
marker.add(element);
expect(marker.map.size).toBeGreaterThan(0);
});
test('delete element from Map', () => {
marker.add(element);
marker.delete(element);
expect(marker.map.size).toEqual(0);
});
test('addOnly: should unmark and remove old elements', () => {
const e1 = document.createElement('span');
const e2 = document.createElement('span');
const e3 = document.createElement('span');
marker.add(e1);
marker.add(e2);
marker.addOnly([element, e2, e3]);
expect(mockUnmark).toHaveBeenCalledTimes(1);
expect(marker.map.size).toEqual(3);
});
test('unmark: should unmark all elements', () => {
const e1 = document.createElement('span');
const e2 = document.createElement('span');
marker.add(e1);
marker.add(e2);
marker.add(element);
marker.unmark();
expect(mockUnmark).toHaveBeenCalledTimes(3);
expect(mockMark).not.toHaveBeenCalled();
});
test('clearAll: should unmark and remove all elements', () => {
const e1 = document.createElement('span');
const e2 = document.createElement('span');
marker.add(e1);
marker.add(e2);
marker.add(element);
marker.clearAll();
expect(mockUnmark).toHaveBeenCalledTimes(3);
expect(mockMark).not.toHaveBeenCalled();
expect(marker.map.size).toEqual(0);
});
test('mark: should unmark and mark again each element', () => {
const e1 = document.createElement('span');
const e2 = document.createElement('span');
marker.add(e1);
marker.add(e2);
marker.add(element);
marker.mark('test');
expect(mockUnmark).toHaveBeenCalledTimes(3);
expect(mockMark).toHaveBeenCalledTimes(3);
expect(mockMark).toHaveBeenCalledWith('test');
expect(marker.map.size).toEqual(3);
});
test('mark: should do nothing if no term provided', () => {
marker.add(element);
marker.mark();
expect(mockMark).not.toHaveBeenCalled();
});
test('mark: should save previous marked term and use it if no term is provided', () => {
marker.add(element);
marker.mark('test');
marker.mark();
expect(mockMark).toHaveBeenLastCalledWith('test');
});
});
| Rebilly/ReDoc | src/services/__tests__/MarkerService.test.ts | TypeScript | mit | 2,623 |
# Copyright (c) 2010-2011 ProgressBound, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class CreateArticles < ActiveRecord::Migration
def self.up
end
def self.down
end
end
| marclove/stumpwise | db/migrate/20100118062606_create_articles.rb | Ruby | mit | 1,203 |
'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
describe('responsive-compass-sprite', function() {
describe('icon-sprite', function() {
function compare(expected, tmp, done) {
var baseExpected = __dirname + '/expected/icon-sprite',
baseTmp = __dirname + '/tmp/icon-sprite';
if(typeof tmp === 'function') {
done = tmp;
tmp = expected;
}
assert.equal(fs.readFileSync(baseExpected + '/' + expected, 'utf-8'), fs.readFileSync(baseTmp + '/' + tmp, 'utf-8'));
done();
};
it('simple test', function(done) {
compare('simple.css', done);
});
it('renderAll test', function(done) {
compare('renderAllSprites.css', done);
});
});
});
| git-patrickliu/responsive-compass-sprite | test/main.js | JavaScript | mit | 867 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-odd-order: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.2 / mathcomp-odd-order - 1.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-odd-order
<small>
1.7.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-03-31 05:27:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-03-31 05:27:10 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-odd-order"
version: "1.7.0"
maintainer: "Mathematical Components <[email protected]>"
homepage: "http://math-comp.github.io/math-comp/"
bug-reports: "Mathematical Components <[email protected]>"
license: "CeCILL-B"
build: [
[make "-j" "%{jobs}%"]
]
install: [ make "install" ]
remove: [
["sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp/odd_order'"]
]
depends: [
"ocaml"
"coq-mathcomp-algebra" {= "1.7.0"}
"coq-mathcomp-character" {= "1.7.0"}
"coq-mathcomp-field" {= "1.7.0"}
"coq-mathcomp-fingroup" {= "1.7.0"}
"coq-mathcomp-solvable" {= "1.7.0"}
"coq-mathcomp-ssreflect" {= "1.7.0"}
]
tags: [ "keyword:finite groups" "keyword:Feit Thompson theorem" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
synopsis: "The formal proof of the Feit-Thompson theorem"
description: """
The formal proof of the Feit-Thompson theorem.
From mathcomp Require Import all_ssreflect all_fingroup all_solvable PFsection14.
Check Feit_Thompson.
: forall (gT : finGroupType) (G : {group gT}), odd #|G| -> solvable G
From mathcomp Require Import all_ssreflect all_fingroup
all_solvable stripped_odd_order_theorem.
Check stripped_Odd_Order.
: forall (T : Type) (mul : T -> T -> T) (one : T) (inv : T -> T)
(G : T -> Type) (n : natural),
group_axioms T mul one inv ->
group T mul one inv G ->
finite_of_order T G n -> odd n -> solvable_group T mul one inv G"""
url {
src:
"https://github.com/math-comp/odd-order/archive/mathcomp-odd-order.1.7.0.tar.gz"
checksum: "md5=e7a90d25223e257a604a8574a06a3e3c"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-odd-order.1.7.0 coq.8.11.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2).
The following dependencies couldn't be met:
- coq-mathcomp-odd-order -> coq-mathcomp-ssreflect = 1.7.0 -> coq < 8.10~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-odd-order.1.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.2/mathcomp-odd-order/1.7.0.html | HTML | mit | 8,295 |
ifeq ($(CC),cc)
CC = clang
endif
ifeq ($(CC),gcc)
CC = clang
endif
CC ?= clang
ifeq ($(V),1)
Q =
else
Q = @
endif
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SDN_SENSOR_BASE ?= $(shell dirname $(MAKEFILE_DIR))
RTE_SDK ?= $(SDN_SENSOR_BASE)/external/dpdk
RTE_TARGET ?= x86_64-native-linuxapp-gcc
RTE_OUTPUT ?= $(RTE_SDK)/$(RTE_TARGET)
RTE_INCLUDE ?= $(RTE_OUTPUT)/include
# XXX: -Wunused-but-set-variable doesn't work
# See: http://llvm.org/bugs/show_bug.cgi?id=9824
# -fcolor-diagnostics
# -O2 -Os
#
WARNINGS = \
-Wall -Wextra -Weverything \
-Wno-language-extension-token -Wno-disabled-macro-expansion -Wno-reserved-id-macro \
-Wno-cast-align -Wno-bad-function-cast -Wno-cast-qual -Wno-padded -Wno-packed \
-Wno-unused-parameter -Wno-unused-label -Wno-switch-enum -Wno-extra-semi \
-Wno-gcc-compat -Wno-documentation-unknown-command -Wno-missing-noreturn \
-Wno-vla
SS_VERSION := $(shell echo `date "+%Y%m%d-%H%M%S"`-`git rev-parse --short HEAD`)
#FLAGS = -fPIC -O0 -g -fno-strict-aliasing -pthread -m64 -march=native -msse4 -std=gnu11 -ferror-limit=5
FLAGS = -fPIC -O0 -g -fno-strict-aliasing -fno-omit-frame-pointer -pthread -m64 -march=native -msse4 -std=gnu11
DEFINES = -D__SSE3__ -D__SSSE3__ -D__SSE4_1__ -D__SSE4_2__ -DSS_VERSION="\"$(SS_VERSION)\""
INCLUDE_FILES = -include $(RTE_INCLUDE)/rte_config.h
INCLUDE_PATHS = -isystem$(RTE_INCLUDE) -I$(SDN_SENSOR_BASE)/external/spcdns/src -isystem/usr/local/jemalloc/include
CPROTO_PATHS = $(subst -isystem,-I,$(INCLUDE_PATHS))
CFLAGS := $(WARNINGS) $(FLAGS) $(INCLUDE_FILES) $(INCLUDE_PATHS) $(CFLAGS) $(DEFINES)
IWYU_CFLAGS := $(FLAGS) $(INCLUDE_FILES) $(INCLUDE_PATHS) $(CFLAGS) $(DEFINES)
# XXX: work around bugs in iwyu utility
IWYU_PATHS = -I/usr/local/include -I/usr/lib/llvm-3.4/lib/clang/3.4/include -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include -I/usr/include/x86_64-linux-gnu -I/usr/include
ifneq ($(strip $(LESS)),)
CFLAGS += -fcolor-diagnostics
endif
#DPDK_LINK = \
#-Wl,--whole-archive -Wl,--start-group \
#-lethdev \
#-lrte_acl \
#-lrte_cfgfile \
#-lrte_cmdline \
#-lrte_distributor \
#-lrte_eal \
#-lrte_hash \
#-lrte_ip_frag \
#-lrte_kvargs \
#-lrte_lpm \
#-lrte_malloc \
#-lrte_mbuf \
#-lrte_mempool \
#-lrte_meter \
#-lrte_pipeline \
#-lrte_pmd_bond \
#-lrte_pmd_e1000 \
#-lrte_pmd_pcap \
#-lrte_pmd_ring \
#-lrte_pmd_virtio_uio \
#-lrte_pmd_vmxnet3_uio \
#-lrte_port \
#-lrte_power \
#-lrte_ring \
#-lrte_sched \
#-lrte_table \
#-lrte_timer \
#-Wl,--end-group -Wl,--no-whole-archive
DPDK_LINK = -Wl,--whole-archive -Wl,--start-group -ldpdk -Wl,--end-group -Wl,--no-whole-archive
STATIC_LINK = -Wl,-Bstatic -lbsd -lcre2 -lre2 -llzma -ljson-c -lnanomsg -lanl -lpcap -lpcre -lspcdns -lspcdnsmisc -Wl,-Bdynamic
LDFLAGS = -L$(RTE_OUTPUT)/lib -Wl,-rpath,$(RTE_OUTPUT)/lib -L$(SDN_SENSOR_BASE)/external/spcdns/built -L/usr/local/jemalloc/lib -Wl,-rpath,/usr/local/jemalloc/lib
HEADERS = $(wildcard *.h)
SOURCES = $(wildcard *.c)
OBJECTS = $(patsubst %.c,%.o,$(wildcard *.c))
DEPENDS = $(patsubst %.c,%.d,$(wildcard *.c))
.PHONY: clean cproto iwyu
sdn_sensor: $(OBJECTS)
@echo 'Linking sdn_sensor...'
$(Q)$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(DPDK_LINK) $(STATIC_LINK) -ljemalloc -lunwind -ldl -lm -lpthread -lrt -lstdc++
#$(OBJECTS): $(DEPENDS)
%.o: %.d
%.d: %.c
@set -e; rm -f $@; \
$(CC) -MM $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
%.o: %.c
@echo "CC $<"
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
-include $(DEPENDS)
clean:
@echo 'Cleaning sdn_sensor...'
@rm -f sdn_sensor *.d *.o *.h.bak
cproto:
$(PWD)/../scripts/update-header-file.pl $(DEFINES) $(CPROTO_PATHS) -- $(HEADERS)
iwyu: $(HEADERS) $(SOURCES)
@echo 'Checking includes in sdn_sensor...'
for file in $^; do iwyu ${IWYU_CFLAGS} -Wno-pedantic -Wno-unused-macros ${IWYU_PATHS} $$file; done;
| megahall/sdn_sensor | src/Makefile | Makefile | mit | 3,893 |
---
id: D2D7DFCE-5BC2-4B6B-929D-A0DE8B1206C9
title: 春天
author: 吴念真
date: 2015-09-11 23:03:51
categories: 小说
tags: default
---
阿圆是金门金沙市场一家杂货店里打杂的小妹,长得不是很好看,加上老板以吝啬出名,所以跟其他杂货店比起来,他们的生意差很多。
那年头在金门当兵根本没有机会回台湾,所以不管哪家店,只要有稍具姿色的美眉驻守,几乎不管服务或者商品的品质有多烂、价格有多不合理,也可以让一大群“精子已经满到喉咙,吐口痰连爬过的蟑螂都会怀孕”的阿兵哥蜂拥而至;于是供应全师将近一万人伙食材料的市场摊商当然会运用这种“美人计”,每天清晨灯火通明的市场内,各个鱼肉蔬菜的摊位只要有美女露脸的必然生意鼎盛,阿公阿嬷顾守的永远乏人问津。
采买兵通常是一边跟美女打打嘴炮、吃吃豆腐,一边把各种伙食材料的品类和数量的单子交给她,然后转向另一摊继续哈拉,至于最后被摊商送上采买车的商品斤两和品质好像也没人在乎。
各类生鲜买完,接着买杂货。杂货单价高,所以采买兵喜欢的店除了美眉之外,更重要的是老板要上道,回扣、香烟要舍得给,最好连早餐都帮采买准备好。
不过,也不是每个采买兵都这么屌,人多的部队伙食费高,采买是大爷,至于我们这种二十几个人的小单位,不管生鲜摊位还是杂货店永远把我们隔着门缝瞧。
我跟小包当采买的第一天就碰到这种势利鬼。
那天我们买完菜才进杂货店,看到步兵营的采买要离开,香烟随手一拿就是好几包,小包只不过才拿起老板桌上的烟打出一支要点上,老板竟然就把香烟往抽屉一收,抬头问小包说:“你是哪个单位的?”
家族企业第三代的小包大概从没这样被侮辱过,当下把烟往老板的身上一甩,拉着我掉头就走。
市场晃了一圈之后,我们选了一家几乎没什么阿兵哥的杂货店,而从此之后我们单位就成了阿圆和她老板少数的顾客。
阿圆十七岁,应该初中毕业不久,因为她老穿着一件还留着学号的深蓝色旧外套。她话不多,笑的时候老是掩着嘴,有一天我们才发现她缺了两三颗门牙。“怎么不去补?”我们问。她说:“我爸去台湾做工,说赚到钱会给我补。”
阿圆的爸爸是石匠,金门工作少,应聘去台湾盖庙刻龙柱。
杂货店老板是她的亲戚,但使唤的语气一点也不亲,有一次甚至还听见他跟别人说:“我是在替人家养女儿!”
那年是我们第一次在外岛过年,除夕到初二都加菜,所以除夕前采买的钱是平常的三四倍。那天小包半开玩笑地跟老板说:“跟你买这么久,也没看你给我们一包烟,一点Bonus!”没想到老板竟然冷冷地笑着说:“我以为你们营部连的比较干净,我看,都一样嘛!”然后打开抽屉拿出一包烟以及两张百元的钞票塞给小包,接着就往屋里走。
我知道小包是憋了一卵泡火,可没想到是临走的时候他竟然随手抓起一打酱油往推车上放,说:这是给连上的Bonus!
阿圆什么都看到,但什么都没说。当她帮着我们把东西推到采买车的路上,小包把那两百元拿给她,她一直摇头。小包说:“拿着,这不是我给你的,这是你那个亲戚给你的过年红包。”
谁知道我们的东西都还没装上车,远处突然传来一阵急促的哨音,一回头,我们看到老板带着两个宪兵,正指着我们这头快步地走了过来。
老板揪住我们,把我们推向宪兵,然后走到车尾装货的推车,一把将酱油拎出来,跟宪兵说:“你看!这就是他们偷我的。”
停车场上所有人都盯着我们看,就在那种尴尬、不知所措的死寂中,我们忽然听到阿圆的声音说:“他们没有偷啦,是我……放错了。”
我和小包转头过去,只见她低着头,指着酱油说:“我以为是他们买的……就搬上推车了。”
“那你们有没有看到她搬上车?”宪兵问。
阿圆转头看看我们,我还犹豫着该怎么反应,没想到却听见小包直截了当地说:“没有。”
宪兵回头跟老板说:“你误会了吧?”
老板先是愣了一下,然后忽然快步走向阿圆,随手就是一个耳光,说:“你是想要他干你,然后带你去台湾啊?你想乎死啦你!”
阿圆站在那边没动,捏着衣摆低着头,也没哭,一直到我们车子开走了,远远地,她还是一样的姿势。
车子里小包沉默着,好久之后才哽咽地说:“刚刚,我好想去抱她一下……”
我们驻地旁边的公路是金东地区通往“勿忘在莒”勒石和金门名胜海印寺唯一的通道,平常是禁区,每年只有春节的初一、初二对民众开放一次。
对阿兵哥来说,道路开放的最大意义是,在这两天里金东地区的美女们一定会从这边经过,所以两百公尺外那条持续上坡的公路,在那两天之中显然就像选美大会的伸展台。初一的早点名草草结束后,我们已经聚集在视线最好的碉堡,把所有望远镜都架好,兴奋地等在那里。
那天天气奇好,阳光灿烂,所以上山的男女纷纷脱掉外衣,可看度以及可想象度都当下增加不少。十点左右是人群的高潮,随着各店家那些驻店美女陆续出现,碉堡里不时掀起骚动,忽然间,却有人回头说:“钦仔、小包,你们的救命恩人出现了。”
我们分别抢过望远镜,然后我们都看到了阿圆。
她穿了新衣服,白色的套头毛衣,一件粉红色的“太空衣”拿在手上,下身则是一条深蓝色的裤子,头发好像也整理过,还箍着一个白色的发箍,整个人显得明亮、青春。
我们看到她和身边一个应该是她父亲的黝黑中年男人开心地讲着话,另一边则是两个比她小、应该是她弟弟的男孩。
小包忽然放下望远镜,大声地喊她的名字,可是她好像没听见;碉堡里忽然又掀起另一波忙乱,几分钟不到简便的扩音器竟然就架设起来了。
当小包抓着扩音器朝公路那边喊“阿圆,你今天好漂亮!真的好漂亮呢,阿圆!”的时候,整条公路的人都慢慢停下脚步听,然后纷纷转头四处顾盼,好像在找谁是阿圆。
阿圆先愣了一下,看看父亲,然后朝我们这边望着;小包有点激动起来,接着说:“营部连小包跟阿圆说谢谢!跟阿圆爸爸说新年快乐,你女儿好棒,而且好漂亮!”
她父亲朝我们这边招招手,然后好像在问阿圆发生什么事。
我看到小包的眼眶有点红,于是拿过扩音器接着说:“阿圆,你是我见过最勇敢的美女……我们营部连所有人都爱你!”
公路那边的人都笑了,围着阿圆,甚至还有人鼓起掌来。之后扩音器便被传来传去,“阿圆,谢谢!”“阿圆,我爱你!”“阿圆是金门最漂亮的女孩!”……不同的声音不断地喊着,整个太武山有好长一段时间一直萦绕着阿圆的名字。
从望远镜里我们看到阿圆流泪了,她遮着嘴,看着我们碉堡的方向。
其实她是笑着的,在灿烂的阳光下。
直到现在,每年的春天我都还会想起阿圆以及她当时的笑容。
| q191201771/chef_blog | build/_notes/201509/2015-09-11-春天.md | Markdown | mit | 7,643 |
require "test_helper"
class Admin::BidsControllerTest < ActionController::TestCase
setup :create_administrator_session
def test_index
opts = {:controller => "admin/bids", :action => "index"}
assert_routing("/admin/bids", opts)
get(:index)
assert_response(:success)
assert_template("admin/bids/index")
assert_not_nil(assigns['bids'], 'Should assign bids')
end
end
| alpendergrass/montanacycling-racing_on_rails | test/functional/admin/bids_controller_test.rb | Ruby | mit | 396 |
package goginjsonrpc
import (
"fmt"
"encoding/json"
"io/ioutil"
"net/http"
"reflect"
"github.com/gin-gonic/gin"
)
func jsonrpcError(c *gin.Context, code int, message string, data string, id string) {
c.JSON(http.StatusOK, map[string]interface{}{
"result": nil,
"jsonrpc": "2.0",
"error": map[string]interface{}{
"code": code,
"message": message,
"data": data,
},
"id": id,
})
}
func ProcessJsonRPC(c *gin.Context, api interface{}) {
// check if we have any POST date
if "POST" != c.Request.Method {
jsonrpcError(c, -32700, "Parse error", "POST method excepted", "null")
return
}
if nil == c.Request.Body {
jsonrpcError(c, -32700, "Parse error", "No POST data", "null")
return
}
// reading POST data
body, err := ioutil.ReadAll(c.Request.Body)
if nil != err {
jsonrpcError(c, -32700, "Parse error", "Error while reading request body", "null")
return
}
// try to decode JSON
data := make(map[string]interface{})
err = json.Unmarshal(body, &data)
if nil != err {
jsonrpcError(c, -32700, "Parse error", "Error parsing json request", "null")
return
}
fmt.Println("data:", data)
id, ok := data["id"].(string)
fmt.Println("Id:", data["id"], id, ok)
if !ok {
jsonrpcError(c, -32600, "Invalid Request", "No or invalid 'id' in request", "null")
return
}
// having JSON now... validating if we all needed fields and version
if "2.0" != data["jsonrpc"] {
jsonrpcError(c, -32600, "Invalid Request", "Version of jsonrpc is not 2.0", id)
return
}
method, ok := data["method"].(string)
if !ok {
jsonrpcError(c, -32600, "Invalid Request", "No or invalid 'method' in request", id)
return
}
fmt.Printf("Method: '%s'\n", method)
// decoding params
params, ok := data["params"].([]interface{})
if !ok {
jsonrpcError(c, -32602, "Invalid params", "No or invalid 'params' in request", id)
return
}
fmt.Println("params:", params)
// checking if method is avaiable in "api"
fmt.Println(reflect.ValueOf(api), reflect.ValueOf(api).Type().Method(0))
call := reflect.ValueOf(api).MethodByName(method)
fmt.Println("call:", call)
if !call.IsValid() {
jsonrpcError(c, -32601, "Method not found", "Method not found", id)
return
}
// validating and converting params
if call.Type().NumIn() != len(params) {
jsonrpcError(c, -32602, "Invalid params", "Invalid number of params", id)
return
}
args := make([]reflect.Value, len(params))
for i, arg := range params {
switch call.Type().In(i).Kind() {
case reflect.Float32:
val, ok := arg.(float32)
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Float64:
val, ok := arg.(float64)
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Int:
val, ok := arg.(int)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = int(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Int8:
val, ok := arg.(int8)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = int8(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Int16:
val, ok := arg.(int16)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = int16(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Int32:
val, ok := arg.(int32)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = int32(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Int64:
val, ok := arg.(int64)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = int64(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Interface:
val, ok := arg.(interface{})
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Map:
val, ok := arg.(map[interface{}]interface{})
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Slice:
val, ok := arg.([]interface{})
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.String:
val, ok := arg.(string)
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
// case reflect.Struct:
// val, ok := arg.()
// if !ok {
// jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
// return
// }
// args[i] = reflect.ValueOf(val)
case reflect.Uint:
val, ok := arg.(uint)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = uint(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Uint8:
val, ok := arg.(uint8)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = uint8(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Uint16:
val, ok := arg.(uint16)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = uint16(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Uint32:
val, ok := arg.(uint32)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = uint32(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
case reflect.Uint64:
val, ok := arg.(uint64)
if !ok {
var fval float64
fval, ok = arg.(float64)
if ok {
val = uint64(fval)
}
}
if !ok {
jsonrpcError(c, -32602, "Invalid params", fmt.Sprintf("Param [%d] can't be converted to %v", i, call.Type().In(i).String()), id)
return
}
args[i] = reflect.ValueOf(val)
default:
if !ok {
jsonrpcError(c, -32603, "Internal error", "Invalid method defination", id)
return
}
}
}
result := call.Call(args)
if len(result) > 0 {
c.JSON(http.StatusOK, map[string]interface{}{
"result": result[0].Interface(),
"jsonrpc": "2.0",
"id": id,
})
} else {
c.JSON(http.StatusOK, map[string]interface{}{
"result": nil,
"jsonrpc": "2.0",
"id": id,
})
}
}
| kanocz/goginjsonrpc | jsonrpc.go | GO | mit | 8,250 |
require 'open-uri'
require 'nokogiri'
require 'pry'
require "oracle/version"
require 'oracle/cli'
require 'oracle/hero'
require 'oracle/scraper'
| TraiLYNNE/oracle-cli-project | lib/oracle.rb | Ruby | mit | 146 |
package com.ftchinese.jobs.common
import org.eclipse.jetty.server.handler.gzip.GzipHandler
import org.eclipse.jetty.server.handler.{ContextHandler, ContextHandlerCollection}
import org.eclipse.jetty.server.{Server, ServerConnector}
import scala.collection.mutable.ArrayBuffer
/**
* An http server.
* Created by wanbo on 15/8/21.
*/
class HttpServer(conf: JobsConfig) extends Logging {
private var _server: Server = null
private val _port: Int = conf.serverUIPort
private var _handlers: ArrayBuffer[ContextHandler] = ArrayBuffer[ContextHandler]()
def start(): Unit ={
if(_server != null)
throw new Exception("Server is already started.")
else {
doStart()
}
}
/**
* Actually start the HTTP server.
*/
private def doStart(): Unit ={
// The server
_server = new Server()
val connector = new ServerConnector(_server)
connector.setHost(conf.serverHost)
connector.setPort(_port)
_server.addConnector(connector)
// Set handlers
if(_handlers.size > 0) {
val collection = new ContextHandlerCollection
val gzipHandlers = _handlers.map(h => {
val gzipHandler = new GzipHandler
gzipHandler.setHandler(h)
gzipHandler
})
collection.setHandlers(gzipHandlers.toArray)
_server.setHandler(collection)
}
// Start the server
_server.start()
_server.join()
}
def attachHandler(handler: ContextHandler): Unit ={
_handlers += handler
}
def stop(): Unit ={
if(_server == null)
throw new Exception("Server is already stopped.")
else {
_server.stop()
_server = null
}
}
}
| FTChinese/push | src/main/scala/com/ftchinese/jobs/common/HttpServer.scala | Scala | mit | 1,840 |
include_directories(${GIT_ROOT}/aws-sdk-cpp/aws-cpp-sdk-transfer/include)
| ShaiRoitman/sbu | sbu/cmake/linux/aws-cpp-sdk-transferConfig.cmake | CMake | mit | 74 |
<!DOCTYPE html>
<html>
<head></head>
<body style="font:12px Consolas; margin:0;">
<div id="p1" style="background:gold; width:50px; height:50px; min-width:100px; min-height:100px; padding:10px;">
<div id="c1" style="width:100%; height:100%; background:plum;"></div>
</div>
<br>
<div id="p2" style="background:gold; width:150px; height:150px; max-width:100px; max-height:100px; padding:10px;">
<div id="c2" style="width:100%; height:100%; background:plum;"></div>
</div>
</body>
</html> | dota8/dota8.github.io | tests/RD1024/static_min_max_height.html | HTML | mit | 522 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / subst - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
subst
<small>
8.7.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-04-12 22:56:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-12 22:56:58 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/subst"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Subst"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [ "keyword: lambda-sigma-lift-calculus" "keyword: explicit substitution" "keyword: Newman's lemma" "keyword: Yokouchi's lemma" "keyword: confluence" "keyword: rewriting" "category: Computer Science/Lambda Calculi" ]
authors: [ "Amokrane Saïbi" ]
bug-reports: "https://github.com/coq-contribs/subst/issues"
dev-repo: "git+https://github.com/coq-contribs/subst.git"
synopsis: "The confluence of Hardin-Lévy lambda-sigma-lift-calcul"
description: """
The confluence of Hardin-Lévy lambda-sigma-lift-calcul is
proven. By the way, several standard definition and results about
rewriting systems are proven (Newman's lemma, Yokouchi's lemma, ...)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/subst/archive/v8.7.0.tar.gz"
checksum: "md5=55a737d8d86b32bbcd34ea1e7994e224"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-subst.8.7.0 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1).
The following dependencies couldn't be met:
- coq-subst -> coq < 8.8~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-subst.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/subst/8.7.0.html | HTML | mit | 6,920 |
//~ name a744
alert(a744);
//~ component a745.js
| homobel/makebird-node | test/projects/large/a744.js | JavaScript | mit | 52 |
//
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
public:
BlackHoleDemo();
~BlackHoleDemo();
//void update();
void mouseMoved(int x, int y);
void mouseEvent(int button, int state, int x, int y);
void keyPressed(unsigned char key, int x, int y);
void keyUnpressed(int key, int x, int y) {};
std::string name() { return "Black Hole"; };
void draw();
private:
Array *_blackHoles;
Array *_particles;
};
#endif /* defined(__Drawing__BlackHoleDemo__) */
| aderussell/ARPhysics | Demo App/Demos/BlackHoleDemo.h | C | mit | 803 |
'use strict';
var Q = require('q')
, _ = require('underscore');
exports.defaults = function () { return { storage: {} }; };
exports.mixin = {
/**
* Converts `arguments` to a key to be stored.
*/
toKey: function () {
return _.toArray(arguments);
},
contains: function () {
return this.containsKey(this.toKey.apply(this, _.toArray(arguments)));
},
containsKey: function (key) {
return Q.when(_.has(this.storage, key));
},
del: function () {
var args = _.toArray(arguments)
, key = this.toKey.apply(this, arguments);
if (!this.containsKey(key)) return Q.when(false);
this.emit.apply(this, [ 'del' ].concat(args));
delete this.storage[key];
return Q.when(true);
},
set: function (key, val) {
this.storage[key] = val;
return Q.when(true);
},
get: function (key) {
return Q.when(this.storage[key]);
}
};
| filipovskii/bolter | lib/bolter-memory.js | JavaScript | mit | 894 |
<?php
namespace Baghayi\Skyroom\Factory;
use Baghayi\Skyroom\Room as RoomItself;
use Baghayi\Skyroom\User;
use Baghayi\Skyroom\Collection\Users;
use Baghayi\Skyroom\Exception\AlreadyExists;
use Baghayi\Skyroom\Request;
use Baghayi\Skyroom\Exception\DuplicateRoom;
final class Room {
private $request;
public function __construct(Request $request)
{
$this->request = $request;
}
public function create(string $name, int $max_users = null) : RoomItself
{
try {
$roomId = $this->request->make('createRoom', [
'name' => 'room-' . md5($name) . '-' . rand(1, 99999999),
'title' => mb_substr($name, 0, 128),
'guest_login' => false,
"max_users" => $max_users
/*
*"op_login_first" => true,
*/
]);
}
catch(DuplicateRoom $e) {
$name .= '-' . rand(1, 99999999);
return $this->create($name);
}
$room = new RoomItself($roomId, $this->request);
return $room;
}
}
| baghayi/skyroom | src/Factory/Room.php | PHP | mit | 1,107 |
capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){
// $(".button-collapse").sideNav();
$http.get(`states.json`)
.then((data)=>{
$scope.stateName = data.data
console.log($scope.stateName)
$('input.autocomplete').autocomplete({
data: $scope.stateName,
limit: 10 // The max amount of results that can be shown at once. Default: Infinity.
});
})
$scope.date = new Date();
let storageRef = firebase.storage().ref();
let inputElement = document.getElementById("fileInput");
inputElement.addEventListener("change", handleFiles, false)
function handleFiles() {
var fileList = this.files; /* now you can work with the file list */
console.log("filelist[0]", fileList[0])
storageRef.child(fileList[0].name).put(fileList[0])
.then(function(snapshot) {
console.log('Uploaded a blob or file!');
storageRef.child(fileList[0].name).getDownloadURL()
.then((url)=>{
var img =document.getElementById("myImg")
img.src = url;
$scope.img = img.src;
})
.catch((error)=>{
alert("error")
})
});
}
$scope.register = () => {
if($scope.user_email === $scope.user_confirmEmail){
AuthFactory.getter($scope.user_email,$scope.user_password)
.then ((data)=> {
console.log(data)
$scope.UID = data
// $http.post(`https://frontendcapstone.firebaseio.com/users/.json`,{
// uid: $scope.UID
// })
$http.post(`https://frontendcapstone.firebaseio.com/users/${$scope.UID}.json`,{
uid: $scope.UID,
Firstname: $scope.firstName,
Lastname: $scope.lastName,
email: $scope.user_email,
password: $scope.user_password,
DOB: $scope.user_dob,
imageUrl : $scope.img,
Address: {Address1: $scope.user_addressLine1,
Address2: $scope.user_addressLine2,
City: $scope.user_city,
state: $scope.user_state,
zipcode: $scope.user_zipcode}
})
Materialize.toast("registered successfully", 2000)
$location.path(`/`)
})
}
else {
Materialize.toast("Emails have to match", 1000)
$("input[type='email']").focus()
}
}
})
| priyakamesh/frontendcapstone-priya | app/controller/registerCtrl.js | JavaScript | mit | 2,390 |
<?php if(time() > 1346310303){return null;} return array (
2 =>
array (
4 =>
array (
0 =>
array (
'id' => 3,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гастроэнтерология',
'longtitle' => '',
'description' => 'Гастроэнтерология в клинике Беласу.',
'alias' => 'gastroenterologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 0,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-16 23:02:18',
'editedby' => 1,
'editedon' => '2012-08-18 17:53:02',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-16 23:02:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'gastroenterologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'gastroenterologiya',
'level' => 2,
'linktext' => 'Гастроэнтерология',
'title' => 'Гастроэнтерология',
),
1 =>
array (
'id' => 5,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гинекология',
'longtitle' => '',
'description' => 'Гинекология в клинике Беласу.',
'alias' => 'ginekologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 1,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 13:18:32',
'editedby' => 1,
'editedon' => '2012-08-18 17:54:29',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 13:28:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'ginekologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'ginekologiya',
'level' => 2,
'linktext' => 'Гинекология',
'title' => 'Гинекология',
),
2 =>
array (
'id' => 6,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Кардиология',
'longtitle' => '',
'description' => 'Кардиология в клинике Беласу.',
'alias' => 'kardiologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 2,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 14:54:49',
'editedby' => 1,
'editedon' => '2012-08-18 17:55:27',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'kardiologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'kardiologiya',
'level' => 2,
'linktext' => 'Кардиология',
'title' => 'Кардиология',
),
3 =>
array (
'id' => 7,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Маммология',
'longtitle' => '',
'description' => 'Маммология в клинике Беласу.',
'alias' => 'mammologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 3,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:13:51',
'editedby' => 1,
'editedon' => '2012-08-18 17:56:26',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'mammologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'mammologiya',
'level' => 2,
'linktext' => 'Маммология',
'title' => 'Маммология',
),
4 =>
array (
'id' => 8,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Неврология',
'longtitle' => '',
'description' => 'Неврология в клинике Беласу.',
'alias' => 'nevrologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 4,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:16:02',
'editedby' => 1,
'editedon' => '2012-08-18 17:58:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'nevrologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'nevrologiya',
'level' => 2,
'linktext' => 'Неврология',
'title' => 'Неврология',
),
5 =>
array (
'id' => 9,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Оториноларингология',
'longtitle' => '',
'description' => 'Оториноларингология в клинике Беласу.',
'alias' => 'otorinolaringologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 5,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:25:40',
'editedby' => 1,
'editedon' => '2012-08-18 18:08:33',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:25:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'otorinolaringologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'otorinolaringologiya',
'level' => 2,
'linktext' => 'Оториноларингология',
'title' => 'Оториноларингология',
),
6 =>
array (
'id' => 10,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Урология',
'longtitle' => '',
'description' => 'Урология в клинике Беласу.',
'alias' => 'urologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 6,
'menuindex' => 6,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 16:53:30',
'editedby' => 1,
'editedon' => '2012-08-18 18:09:49',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 16:54:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'urologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'urologiya',
'level' => 2,
'linktext' => 'Урология',
'title' => 'Урология',
),
7 =>
array (
'id' => 11,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Эндокринология',
'longtitle' => '',
'description' => 'Эндокринология в клинике Беласу.',
'alias' => 'endokrinologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 7,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 17:36:34',
'editedby' => 1,
'editedon' => '2012-08-18 18:10:29',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 17:36:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'endokrinologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'endokrinologiya',
'level' => 2,
'linktext' => 'Эндокринология',
'title' => 'Эндокринология',
),
8 =>
array (
'id' => 13,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Ультразвуковая диагностика',
'longtitle' => '',
'description' => 'Ультразвуковая диагностика в клинике Беласу.',
'alias' => 'uzi',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 6,
'menuindex' => 8,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 17:53:53',
'editedby' => 1,
'editedon' => '2012-08-18 18:12:26',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 17:53:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'uzi',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'uzi',
'level' => 2,
'linktext' => 'Ультразвуковая диагностика',
'title' => 'Ультразвуковая диагностика',
),
9 =>
array (
'id' => 14,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Лабораторная диагностика',
'longtitle' => '',
'description' => 'Лабораторная диагностика в клинике Беласу.',
'alias' => 'lab',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 9,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 18:14:28',
'editedby' => 1,
'editedon' => '2012-08-18 18:14:00',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 18:14:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'lab',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'lab',
'level' => 2,
'linktext' => 'Лабораторная диагностика',
'title' => 'Лабораторная диагностика',
),
),
15 =>
array (
0 =>
array (
'id' => 17,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'О клинике',
'longtitle' => '',
'description' => 'Информация о клинике Беласу.',
'alias' => 'about',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 8,
'menuindex' => 0,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-18 20:58:15',
'editedby' => 1,
'editedon' => '2012-08-18 21:48:54',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-18 20:58:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'about',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'about',
'level' => 2,
'linktext' => 'О клинике',
'title' => 'О клинике',
),
1 =>
array (
'id' => 18,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Руководство клиники',
'longtitle' => '',
'description' => 'Руководство клиники Беласу.',
'alias' => 'chief',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 8,
'menuindex' => 1,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 11:29:51',
'editedby' => 1,
'editedon' => '2012-08-21 11:31:58',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 11:31:58',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'chief',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'chief',
'level' => 2,
'linktext' => 'Руководство клиники',
'title' => 'Руководство клиники',
),
2 =>
array (
'id' => 20,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'График работы',
'longtitle' => '',
'description' => 'График работы медицинского персонала ТОО "Беласу-Ш" во 2-полугодии 2011 года.
',
'alias' => 'schedule',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 9,
'menuindex' => 2,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 21:19:52',
'editedby' => 1,
'editedon' => '2012-08-27 19:47:38',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 21:19:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'schedule',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'schedule',
'level' => 2,
'linktext' => 'График работы',
'title' => 'График работы',
),
),
),
1 =>
array (
0 =>
array (
0 =>
array (
'id' => 4,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Услуги',
'longtitle' => '',
'description' => '',
'alias' => 'services',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => true,
'introtext' => '',
'content' => '/',
'richtext' => true,
'template' => 0,
'menuindex' => 3,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 11:44:34',
'editedby' => 1,
'editedon' => '2012-08-17 13:07:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 12:11:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modWebLink',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'services/',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' =>
array (
'core' =>
array (
'responseCode' => 'HTTP/1.1 301 Moved Permanently',
),
),
'protected' => false,
'link' => '/',
'level' => 1,
'linktext' => 'Услуги',
'title' => 'Услуги',
),
1 =>
array (
'id' => 15,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'О нас',
'longtitle' => '',
'description' => '',
'alias' => 'aboutus',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => true,
'introtext' => '',
'content' => '/about',
'richtext' => true,
'template' => 0,
'menuindex' => 4,
'searchable' => false,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 18:34:04',
'editedby' => 1,
'editedon' => '2012-08-18 22:07:09',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 18:34:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modWebLink',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'aboutus/',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' =>
array (
'core' =>
array (
'responseCode' => 'HTTP/1.1 301 Moved Permanently',
),
),
'protected' => false,
'link' => '/about',
'level' => 1,
'linktext' => 'О нас',
'title' => 'О нас',
),
2 =>
array (
'id' => 21,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Прейскурант',
'longtitle' => '',
'description' => 'Стоимость услуг в клинике Беласу.',
'alias' => 'prices',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 9,
'menuindex' => 5,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 23:41:05',
'editedby' => 1,
'editedon' => '2012-08-27 19:59:09',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 23:41:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'prices',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'prices',
'level' => 1,
'linktext' => 'Прейскурант',
'title' => 'Прейскурант',
),
3 =>
array (
'id' => 23,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Отзывы',
'longtitle' => '',
'description' => 'Отзывы пациентов клиники Беласу.',
'alias' => 'feedback',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 10,
'menuindex' => 6,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-25 14:08:31',
'editedby' => 1,
'editedon' => '2012-08-25 14:13:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-25 14:08:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'feedback',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'feedback',
'level' => 1,
'linktext' => 'Отзывы',
'title' => 'Отзывы',
),
4 =>
array (
'id' => 24,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Онлайн запись',
'longtitle' => '',
'description' => 'Онлайн запись на прием в клинике Беласу.',
'alias' => 'application',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 11,
'menuindex' => 7,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-27 22:05:50',
'editedby' => 0,
'editedon' => 0,
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-27 22:05:50',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'application',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'application',
'level' => 1,
'linktext' => 'Онлайн запись',
'title' => 'Онлайн запись',
),
),
),
); | yenbekbay/clinic | core/cache/resource/web/resources/5/e17fd6472397a7760f677426bb024e70.cache.php | PHP | mit | 29,091 |
<!DOCTYPE html>
<html>
<head>
<title>movies of the 80's</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<style>
body {
background-color: black;
background-image: url(action.jpg);
background-position-x: center;
background-position-y: bottom;
background-repeat: no-repeat;
background-attachment: scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;}
.list-group {float: left;
margin-left: 15px}
footer {text-align: center;}
.ulclass { position: relative;
display: block;
padding-top: 100px;
padding-right: 40px;
padding-bottom: 30px;
padding-left:22px;
margin-bottom: -1px;
height:30px;
background-color: #222;
border-color: #080808;}
.korisni {height: 600px;
background-color: #222;
float: left;
margin-top: -20px;
position: relative;
}
.vertical-menu {
width: 200px;
}
.vertical-menu a {
background-color: #222;
color: #eee;
display: block;
padding: 12px;
text-decoration: none;
}
.vertical-menu a:hover {
background-color: #ccc;
color: #222;
}
.signup {padding-left: 10px;
padding-top: 20px;
color: #eee;
}
.link0 {padding-top: 20px;}
.registracija {font-size: 78%;}
.textarea {
padding-left: 10px !important;
padding-top: 12px !important;
color: #eee;
}
.textarea2{ color: black !important }
.input {
transition: font-size 0.3s;
font-size: 14px;
}
.input:hover {
font-size: 14.9px;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="Index.html">Početna stranica</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#">Nekakav link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Nekakav link 2</a></li>
<li><a href="#">Nekakav link 3</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Drop menu za neke potrebe <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" class="form-control" placeholder="Upiši pretragu">
</div>
<button type="submit" class="btn btn-default">Traži</button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</header>
<div class="korisni">
<div class="vertical-menu">
<form class="signup">
<div>PRIJAVA</div> <br>
Korisnicko ime:<br>
<input type="text" name="username" style="color: black !important"><br><br>
Lozinka:<br>
<input type="password" name="password" style="color: black !important"><br><br>
<button type="submit" style="color:#222;">Prijavi se</button><button type="submit" style="color:#222;">Registracija</button><br>
</form>
<div class="link0"><a href="#">Link 0</a></div>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="textarea"><form>Unesite neki sadržaj:<br>
<textarea class="textarea2" rows="5"></textarea><br>
<input type="submit" value="Stisni" style="color:black !important">
</form>
</div>
</div>
<footer>
<nav class="navbar-fixed-bottom">
<div class="container" style="color: white !important">
<p>Ovo je jedan obični footer, a <a href="#">ovdje</a> kliknite za početnu stranicu 2017</p>
</div>
</nav>
</footer>
</body>
</html>
| algebrateam/phpdev2017 | gtolusic/bootstrap_zadaca.html | HTML | mit | 5,158 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Query Objects — MongoAlchemy v0.8 documentation</title>
<link rel="stylesheet" href="../../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '0.8',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="MongoAlchemy v0.8 documentation" href="../../index.html" />
<link rel="up" title="Expression Language — Querying and Updating" href="index.html" />
<link rel="next" title="Mongo Query Expression Language" href="query_expressions.html" />
<link rel="prev" title="Expression Language — Querying and Updating" href="index.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="query_expressions.html" title="Mongo Query Expression Language"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="index.html" title="Expression Language — Querying and Updating"
accesskey="P">previous</a> |</li>
<li><a href="../../index.html">MongoAlchemy v0.8 documentation</a> »</li>
<li><a href="../index.html" >API documentation</a> »</li>
<li><a href="index.html" accesskey="U">Expression Language — Querying and Updating</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="query-objects">
<h1>Query Objects<a class="headerlink" href="#query-objects" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="mongoalchemy.query.Query">
<em class="property">class </em><tt class="descclassname">mongoalchemy.query.</tt><tt class="descname">Query</tt><big>(</big><em>type</em>, <em>session</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query" title="Permalink to this definition">¶</a></dt>
<dd><p>A query object has all of the methods necessary to programmatically
generate a mongo query as well as methods to retrieve results of the
query or do an update based on it.</p>
<p>In general a query object should be created via <tt class="docutils literal"><span class="pre">Session.query</span></tt>,
not directly.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>type</strong> – A subclass of class:<cite>mongoalchemy.document.Document</cite></li>
<li><strong>db</strong> – The <a class="reference internal" href="../session.html#mongoalchemy.session.Session" title="mongoalchemy.session.Session"><tt class="xref py py-class docutils literal"><span class="pre">Session</span></tt></a> which this query is associated with.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="mongoalchemy.query.Query.resolve_name">
<tt class="descname">resolve_name</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.resolve_name" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="mongoalchemy.query.Query.query">
<tt class="descname">query</tt><a class="headerlink" href="#mongoalchemy.query.Query.query" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.raw_output">
<tt class="descname">raw_output</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.raw_output" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_fields">
<tt class="descname">get_fields</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_fields" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_limit">
<tt class="descname">get_limit</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_limit" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_skip">
<tt class="descname">get_skip</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_skip" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.limit">
<tt class="descname">limit</tt><big>(</big><em>limit</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.limit" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the limit on the number of documents returned</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>limit</strong> – the number of documents to return</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.skip">
<tt class="descname">skip</tt><big>(</big><em>skip</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.skip" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the number of documents to skip in the result</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>skip</strong> – the number of documents to skip</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.clone">
<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.clone" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates a clone of the current query and all settings. Further
updates to the cloned object or the original object will not
affect each other</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.one">
<tt class="descname">one</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.one" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute the query and return one result. If more than one result
is returned, raises a <tt class="docutils literal"><span class="pre">BadResultException</span></tt></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.first">
<tt class="descname">first</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.first" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute the query and return the first result. Unlike <tt class="docutils literal"><span class="pre">one</span></tt>, if
there are multiple documents it simply returns the first one. If
there are no documents, first returns <tt class="xref docutils literal"><span class="pre">None</span></tt></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.hint_asc">
<tt class="descname">hint_asc</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.hint_asc" title="Permalink to this definition">¶</a></dt>
<dd><p>Applies a hint for the query that it should use a
(<tt class="docutils literal"><span class="pre">qfield</span></tt>, ASCENDING) index when performing the query.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.hint_desc">
<tt class="descname">hint_desc</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.hint_desc" title="Permalink to this definition">¶</a></dt>
<dd><p>Applies a hint for the query that it should use a
(<tt class="docutils literal"><span class="pre">qfield</span></tt>, DESCENDING) index when performing the query.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.explain">
<tt class="descname">explain</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.explain" title="Permalink to this definition">¶</a></dt>
<dd><p>Executes an explain operation on the database for the current
query and returns the raw explain object returned.</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.all">
<tt class="descname">all</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.all" title="Permalink to this definition">¶</a></dt>
<dd><p>Return all of the results of a query in a list</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.distinct">
<tt class="descname">distinct</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.distinct" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute this query and return all of the unique values
of <tt class="docutils literal"><span class="pre">key</span></tt>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>key</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the distinct key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.filter">
<tt class="descname">filter</tt><big>(</big><em>*query_expressions</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.filter" title="Permalink to this definition">¶</a></dt>
<dd><p>Apply the given query expressions to this query object</p>
<p><strong>Example</strong>: <tt class="docutils literal"><span class="pre">s.query(SomeObj).filter(SomeObj.age</span> <span class="pre">></span> <span class="pre">10,</span> <span class="pre">SomeObj.blood_type</span> <span class="pre">==</span> <span class="pre">'O')</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">QueryExpression</span></tt></a> class</p>
</div>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.filter_by">
<tt class="descname">filter_by</tt><big>(</big><em>**filters</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.filter_by" title="Permalink to this definition">¶</a></dt>
<dd><p>Filter for the names in <tt class="docutils literal"><span class="pre">filters</span></tt> being equal to the associated
values. Cannot be used for sub-objects since keys must be strings</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.count">
<tt class="descname">count</tt><big>(</big><em>with_limit_and_skip=False</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.count" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute a count on the number of results this query would return.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>with_limit_and_skip</strong> – Include <tt class="docutils literal"><span class="pre">.limit()</span></tt> and <tt class="docutils literal"><span class="pre">.skip()</span></tt> arguments in the count?</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.fields">
<tt class="descname">fields</tt><big>(</big><em>*fields</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.fields" title="Permalink to this definition">¶</a></dt>
<dd><p>Only return the specified fields from the object. Accessing a field that was not specified in <tt class="docutils literal"><span class="pre">fields</span></tt> will result in a :class:<tt class="docutils literal"><span class="pre">mongoalchemy.document.FieldNotRetrieved</span></tt> exception being raised</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>fields</strong> – Instances of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which fields to return</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.ascending">
<tt class="descname">ascending</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.ascending" title="Permalink to this definition">¶</a></dt>
<dd><p>Sort the result based on <tt class="docutils literal"><span class="pre">qfield</span></tt> in ascending order. These calls
can be chained to sort by multiple fields.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – Instance of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which field to sort by.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.descending">
<tt class="descname">descending</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.descending" title="Permalink to this definition">¶</a></dt>
<dd><p>Sort the result based on <tt class="docutils literal"><span class="pre">qfield</span></tt> in ascending order. These calls
can be chained to sort by multiple fields.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – Instance of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which field to sort by.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.not_">
<tt class="descname">not_</tt><big>(</big><em>*query_expressions</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.not_" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a $not expression to the query, negating the query expressions
given.</p>
<p><strong>Examples</strong>: <tt class="docutils literal"><span class="pre">query.not_(SomeDocClass.age</span> <span class="pre"><=</span> <span class="pre">18)</span></tt> becomes <tt class="docutils literal"><span class="pre">{'age'</span> <span class="pre">:</span> <span class="pre">{</span> <span class="pre">'$not'</span> <span class="pre">:</span> <span class="pre">{</span> <span class="pre">'$gt'</span> <span class="pre">:</span> <span class="pre">18</span> <span class="pre">}</span> <span class="pre">}}</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.or_">
<tt class="descname">or_</tt><big>(</big><em>first_qe</em>, <em>*qes</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.or_" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a $not expression to the query, negating the query expressions
given. The <tt class="docutils literal"><span class="pre">|</span> <span class="pre">operator</span></tt> on query expressions does the same thing</p>
<p><strong>Examples</strong>: <tt class="docutils literal"><span class="pre">query.or_(SomeDocClass.age</span> <span class="pre">==</span> <span class="pre">18,</span> <span class="pre">SomeDocClass.age</span> <span class="pre">==</span> <span class="pre">17)</span></tt> becomes <tt class="docutils literal"><span class="pre">{'$or'</span> <span class="pre">:</span> <span class="pre">[{</span> <span class="pre">'age'</span> <span class="pre">:</span> <span class="pre">18</span> <span class="pre">},</span> <span class="pre">{</span> <span class="pre">'age'</span> <span class="pre">:</span> <span class="pre">17</span> <span class="pre">}]}</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.in_">
<tt class="descname">in_</tt><big>(</big><em>qfield</em>, <em>*values</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.in_" title="Permalink to this definition">¶</a></dt>
<dd><p>Check to see that the value of <tt class="docutils literal"><span class="pre">qfield</span></tt> is one of <tt class="docutils literal"><span class="pre">values</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>qfield</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></li>
<li><strong>values</strong> – Values should be python values which <tt class="docutils literal"><span class="pre">qfield</span></tt> understands</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.nin">
<tt class="descname">nin</tt><big>(</big><em>qfield</em>, <em>*values</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.nin" title="Permalink to this definition">¶</a></dt>
<dd><p>Check to see that the value of <tt class="docutils literal"><span class="pre">qfield</span></tt> is not one of <tt class="docutils literal"><span class="pre">values</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>qfield</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></li>
<li><strong>values</strong> – Values should be python values which <tt class="docutils literal"><span class="pre">qfield</span></tt> understands</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.find_and_modify">
<tt class="descname">find_and_modify</tt><big>(</big><em>new=False</em>, <em>remove=False</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.find_and_modify" title="Permalink to this definition">¶</a></dt>
<dd><p>The mongo “find and modify” command. Behaves like an update expression
in that “execute” must be called to do the update and return the
results.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>new</strong> – Whether to return the new object or old (default: False)</li>
<li><strong>remove</strong> – Whether to remove the object before returning it</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.set">
<tt class="descname">set</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.set" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.set" title="mongoalchemy.update_expression.UpdateExpression.set"><tt class="xref py py-func docutils literal"><span class="pre">set()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.unset">
<tt class="descname">unset</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.unset" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.unset" title="mongoalchemy.update_expression.UpdateExpression.unset"><tt class="xref py py-func docutils literal"><span class="pre">unset()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.inc">
<tt class="descname">inc</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.inc" title="mongoalchemy.update_expression.UpdateExpression.inc"><tt class="xref py py-func docutils literal"><span class="pre">inc()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.append">
<tt class="descname">append</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.append" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.append" title="mongoalchemy.update_expression.UpdateExpression.append"><tt class="xref py py-func docutils literal"><span class="pre">append()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.extend">
<tt class="descname">extend</tt><big>(</big><em>qfield</em>, <em>*value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.extend" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.extend" title="mongoalchemy.update_expression.UpdateExpression.extend"><tt class="xref py py-func docutils literal"><span class="pre">extend()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.remove">
<tt class="descname">remove</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.remove" title="mongoalchemy.update_expression.UpdateExpression.remove"><tt class="xref py py-func docutils literal"><span class="pre">remove()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.remove_all">
<tt class="descname">remove_all</tt><big>(</big><em>qfield</em>, <em>*value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.remove_all" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.remove_all" title="mongoalchemy.update_expression.UpdateExpression.remove_all"><tt class="xref py py-func docutils literal"><span class="pre">remove_all()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.add_to_set">
<tt class="descname">add_to_set</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.add_to_set" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.add_to_set" title="mongoalchemy.update_expression.UpdateExpression.add_to_set"><tt class="xref py py-func docutils literal"><span class="pre">add_to_set()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.pop_first">
<tt class="descname">pop_first</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.pop_first" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.pop_first" title="mongoalchemy.update_expression.UpdateExpression.pop_first"><tt class="xref py py-func docutils literal"><span class="pre">pop_first()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.pop_last">
<tt class="descname">pop_last</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.pop_last" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.pop_last" title="mongoalchemy.update_expression.UpdateExpression.pop_last"><tt class="xref py py-func docutils literal"><span class="pre">pop_last()</span></tt></a></p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="mongoalchemy.query.QueryResult">
<em class="property">class </em><tt class="descclassname">mongoalchemy.query.</tt><tt class="descname">QueryResult</tt><big>(</big><em>cursor</em>, <em>type</em>, <em>raw_output=False</em>, <em>fields=None</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult" title="Permalink to this definition">¶</a></dt>
<dd><dl class="method">
<dt id="mongoalchemy.query.QueryResult.next">
<tt class="descname">next</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.next" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.QueryResult.rewind">
<tt class="descname">rewind</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.rewind" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.QueryResult.clone">
<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.clone" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="index.html"
title="previous chapter">Expression Language — Querying and Updating</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="query_expressions.html"
title="next chapter">Mongo Query Expression Language</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/api/expressions/query.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="query_expressions.html" title="Mongo Query Expression Language"
>next</a> |</li>
<li class="right" >
<a href="index.html" title="Expression Language — Querying and Updating"
>previous</a> |</li>
<li><a href="../../index.html">MongoAlchemy v0.8 documentation</a> »</li>
<li><a href="../index.html" >API documentation</a> »</li>
<li><a href="index.html" >Expression Language — Querying and Updating</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2010, Jeffrey Jenkins.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.8.
</div>
</body>
</html> | shakefu/MongoAlchemy | api/expressions/query.html | HTML | mit | 32,684 |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: 'http://my-ghost-blog.com',
mail: {},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
// 配置MySQL 数据库
/*database: {
client: 'mysql',
connection: {
host : 'host',
user : 'user',
password : 'password',
database : 'database',
charset : 'utf8'
},
debug: false
},*/
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
//Storage.Now,we can support `qiniu`,`upyun`, `aliyun oss`, `aliyun ace-storage` and `local-file-store`
storage: {
provider: 'local-file-store'
}
// or
// 参考文档: http://www.ghostchina.com/qiniu-cdn-for-ghost/
/*storage: {
provider: 'qiniu',
bucketname: 'your-bucket-name',
ACCESS_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
SECRET_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
root: '/image/',
prefix: 'http://your-bucket-name.qiniudn.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/upyun-cdn-for-ghost/
/*storage: {
provider: 'upyun',
bucketname: 'your-bucket-name',
username: 'your user name',
password: 'your password',
root: '/image/',
prefix: 'http://your-bucket-name.b0.upaiyun.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/aliyun-oss-for-ghost/
/*storage: {
provider: 'oss',
bucketname: 'your-bucket-name',
ACCESS_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
SECRET_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
root: '/image/',
prefix: 'http://your-bucket-name.oss-cn-hangzhou.aliyuncs.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/install-ghost-on-aliyun-ace/
/*storage: {
provider: 'ace-storage',
bucketname: 'your-bucket-name'
}*/
},
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blogs published URL.
url: 'http://localhost:2368',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
// ```
// mail: {
// transport: 'SMTP',
// options: {
// service: 'Mailgun',
// auth: {
// user: '', // mailgun username
// pass: '' // mailgun password
// }
// }
// },
// ```
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
}
},
// **Developers only need to edit below here**
// ### Testing
// Used when developing Ghost to run tests and check the health of Ghost
// Uses a different port number
testing: {
url: 'http://127.0.0.1:2369',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-test.db')
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing MySQL
// Used by Travis - Automated testing run through GitHub
'testing-mysql': {
url: 'http://127.0.0.1:2369',
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'root',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing pg
// Used by Travis - Automated testing run through GitHub
'testing-pg': {
url: 'http://127.0.0.1:2369',
database: {
client: 'pg',
connection: {
host : '127.0.0.1',
user : 'postgres',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
}
};
// Export config
module.exports = config;
| PHILIP-2014/philip-blog | config.example.js | JavaScript | mit | 5,939 |
<?php
namespace AppBundle\Service\Crud\Strategy;
/**
* @author Alexandr Sibov<[email protected]>
*/
trait ResolverAwareTrait
{
/**
* @var ResolverInterface
*/
private $resolver;
public function setStrategyResolver(ResolverInterface $resolver)
{
$this->resolver = $resolver;
$resolver->setBaseEntityName($this->getBaseEntityName());
$resolver->setEntityFactory($this);
}
/**
* @return ResolverInterface
*/
public function getStrategyResolver()
{
return $this->resolver;
}
}
| Cyberdelia1987/symfony-test | src/AppBundle/Service/Crud/Strategy/ResolverAwareTrait.php | PHP | mit | 575 |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* @param avatarsService
* @constructor
*/
function UserController( userService, $mdSidenav, $mdBottomSheet, $log, $q) {
var self = this;
self.selected = null;
self.users = [ ];
self.selectUser = selectUser;
self.toggleList = toggleUsersList;
self.share = share;
// Load all registered users
userService
.loadAllUsers()
.then( function( users ) {
self.users = [].concat(users);
self.selected = users[0];
});
// *********************************
// Internal methods
// *********************************
/**
* First hide the bottomsheet IF visible, then
* hide or Show the 'left' sideNav area
*/
function toggleUsersList() {
var pending = $mdBottomSheet.hide() || $q.when(true);
pending.then(function(){
$mdSidenav('left').toggle();
});
}
/**
* Select the current avatars
* @param menuId
*/
function selectUser ( user ) {
self.selected = angular.isNumber(user) ? $scope.users[user] : user;
self.toggleList();
}
/**
* Show the bottom sheet
*/
function share($event) {
var user = self.selected;
$mdBottomSheet.show({
parent: angular.element(document.getElementById('content')),
templateUrl: '/src/users/view/contactSheet.html',
controller: [ '$mdBottomSheet', UserSheetController],
controllerAs: "vm",
bindToController : true,
targetEvent: $event
}).then(function(clickedItem) {
clickedItem && $log.debug( clickedItem.name + ' clicked!');
});
/**
* Bottom Sheet controller for the Avatar Actions
*/
function UserSheetController( $mdBottomSheet ) {
this.user = user;
this.items = [
{ name: 'Github' , icon: 'github' , icon_url: 'assets/svg/github.svg', urlPath: "https://github.com/hassanabidpk/"},
{ name: 'Twitter' , icon: 'twitter' , icon_url: 'assets/svg/twitter.svg', urlPath: "https://twitter.com/hassanabidpk"},
{ name: 'Google+' , icon: 'google_plus' , icon_url: 'assets/svg/google_plus.svg', urlPath: "https://plus.google.com/+HassanAbid/"},
{ name: 'Linkedin' , icon: 'linkedin' , icon_url: 'assets/svg/linkedin.svg', urlPath: "https://kr.linkedin.com/pub/hassan-abid/12/700/66b"}
];
this.performAction = function(action) {
window.location.href = action.urlPath;
$mdBottomSheet.hide(action);
};
}
}
}
})();
| hassanabidpk/portfolio | app/src/users/UserController.js | JavaScript | mit | 2,971 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.0 / metacoq-pcuic - 1.0~alpha2+8.10</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-pcuic
<small>
1.0~alpha2+8.10
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-01 17:12:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-01 17:12:23 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.9.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.10"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
"Cyril Cohen <[email protected]>"
"Yannick Forster <[email protected]>"
"Fabian Kunze <[email protected]>"
"Gregory Malecha <[email protected]>"
"Matthieu Sozeau <[email protected]>"
"Nicolas Tabareau <[email protected]>"
"Théo Winterhalter <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j%{jobs}%" "-C" "pcuic"]
]
install: [
[make "-C" "pcuic" "install"]
]
depends: [
"ocaml" {> "4.02.3"}
"coq" {>= "8.10" & < "8.11~"}
"coq-equations" {>= "1.2"}
"coq-metacoq-template" {= version}
"coq-metacoq-checker" {= version}
]
synopsis: "A type system equivalent to Coq's and its metatheory"
description: """
MetaCoq is a meta-programming framework for Coq.
The PCUIC module provides a cleaned-up specification of Coq's typing algorithm along
with a certified typechecker for it. This module includes the standard metatheory of
PCUIC: Weakening, Substitution, Confluence and Subject Reduction are proven here.
"""
# url {
# src: "https://github.com/MetaCoq/metacoq/archive/v2.1-beta3.tar.gz"
# checksum: "md5=e81b8ecabef788a10337a39b095d54f3"
# }
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-alpha2-8.10.tar.gz"
checksum: "sha256=94156cb9397b44915c9217a435a812cabc9651684cd229d5069b34332d0792a2"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq-pcuic.1.0~alpha2+8.10 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.9.0).
The following dependencies couldn't be met:
- coq-metacoq-pcuic -> ocaml >= 4.02.4
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-pcuic.1.0~alpha2+8.10</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.9.0/metacoq-pcuic/1.0~alpha2+8.10.html | HTML | mit | 8,081 |
# ConfigBot
Welcome to config_bot gem!
This is a ruby command-line bot which will guide you to create a config file which can be later used by any environment.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'config_bot'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install config_bot
## Usage
TODO: Write usage instructions here
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/WasiqB/config_bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
| WasiqB/config_bot | README.md | Markdown | mit | 1,366 |
import Router = require('koa-router');
import * as schema from './schema';
import * as routes from './routes';
import validator from '../../utils/validator';
const router = new Router({ prefix: '/toolkit' });
router.get('/example', routes.example);
router.post('/upload', validator(schema.upload), routes.upload);
export default router;
| whosesmile/koa-scaffold | src/modules/toolkit/index.ts | TypeScript | mit | 340 |
class Report < ActiveRecord::Base
mount_uploader :forest_photo, ForestPhotoUploader
end
| pilou15/https-github.com-pilou15-acacias-harvest | app/models/report.rb | Ruby | mit | 90 |
package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
public class ClipboardUtil {
private Clipboard systemClipboard;
public ClipboardUtil() {
}
private void initSystemClipboard() {
if (systemClipboard == null) {
systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
}
}
private void setSystemClipboard(Clipboard clipboard) {
this.systemClipboard = clipboard;
}
public String getClipboard() throws UnsupportedFlavorException, IOException {
return (String) systemClipboard.getData(DataFlavor.stringFlavor);
}
/**
* Sets clipboard to string value.
*
* @param string text to set clipboard as
*/
public void setClipboard(String string) {
initSystemClipboard();
StringSelection selection = new StringSelection(string);
systemClipboard.setContents(selection, selection);
}
/**
* Converts list into a line.separator delimited string and sets to clipboard.
*
* @param list list of objects converted to line separated toString()
*/
public void setClipboard(List<?> list) {
List<String> strList = list.stream().map(Object::toString).collect(Collectors.toList());
setClipboard(strList.stream().collect(Collectors.joining(System.getProperty("line.separator"))));
}
/**
* Coverts object to string value and sets to clipboard.
*
* @param object uses toString() for clipboard
*/
public void setClipboard(Object object) {
setClipboard(object.toString());
}
}
| mattwright324/youtube-comment-suite | src/main/java/io/mattw/youtube/commentsuite/util/ClipboardUtil.java | Java | mit | 1,872 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../circle.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /><small>vendor/whichbrowser/parser/tests/data/tablet/manufacturer-samsung.yaml</small></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"></td><td>Galaxy Tab 2 10.1</td><td>tablet</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-027cff01-4a76-491b-ace3-9289fcbc172f">Detail</a>
<!-- Modal Structure -->
<div id="modal-027cff01-4a76-491b-ace3-9289fcbc172f" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[headers] => User-Agent: Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
[result] => Array
(
[browser] => Array
(
[name] => Chrome
[version] => 18
[type] => browser
)
[engine] => Array
(
[name] => Webkit
[version] => 535.19
)
[os] => Array
(
[name] => Android
[version] => 4.0.3
)
[device] => Array
(
[type] => tablet
[manufacturer] => Samsung
[model] => Galaxy Tab 2 10.1
)
)
[readable] => Chrome 18 on a Samsung Galaxy Tab 2 10.1 running Android 4.0.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 10.1</td><td>Tablet</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.024</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a>
<!-- Modal Structure -->
<div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapFull result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.0.*gt\-p5100 build\/.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android?4.0*gt-p5100 build/*) applewebkit/* (khtml* like gecko) chrome/18.*safari/*
[parent] => Chrome 18.0 for Android
[comment] => Chrome 18.0
[browser] => Chrome
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 18.0
[majorver] => 18
[minorver] => 0
[platform] => Android
[platform_version] => 4.0
[platform_description] => Android OS
[platform_bits] => 32
[platform_maker] => Google Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] =>
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] => 1
[issyndicationreader] =>
[crawler] =>
[isfake] =>
[isanonymized] =>
[ismodified] =>
[cssversion] => 3
[aolversion] => 0
[device_name] => Galaxy Tab 2 10.1
[device_maker] => Samsung
[device_type] => Tablet
[device_pointing_method] => touchscreen
[device_code_name] => GT-P5100
[device_brand_name] => Samsung
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td><td>Chrome </td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.008</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-42bb56ba-b834-47c5-bea0-c0270e9ab371">Detail</a>
<!-- Modal Structure -->
<div id="modal-42bb56ba-b834-47c5-bea0-c0270e9ab371" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapLite result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/.*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/*safari/*
[parent] => Chrome Generic for Android
[comment] => Chrome Generic
[browser] => Chrome
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => unknown
[browser_modus] => unknown
[version] => 0.0
[majorver] => 0
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] => false
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => unknown
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.035</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a>
<!-- Modal Structure -->
<div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/18.*safari/*
[parent] => Chrome 18.0 for Android
[comment] => Chrome 18.0
[browser] => Chrome
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 18.0
[majorver] => 18
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] =>
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a>
<!-- Modal Structure -->
<div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] => Android
[browser] => Chrome
[version] => 18.0.1025.133
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>AndroidOS 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a>
<!-- Modal Structure -->
<div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>JenssegersAgent result detail</h4>
<p><pre><code class="php">Array
(
[browserName] => Chrome
[browserVersion] => 18.0.1025.133
[osName] => AndroidOS
[osVersion] => 4.0.3
[deviceModel] => SamsungTablet
[isMobile] => 1
[isRobot] =>
[botName] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 (10.1)</td><td>desktop-browser</td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.27802</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a>
<!-- Modal Structure -->
<div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 0
[is_mobile] =>
[type] => desktop-browser
[mobile_brand] => Samsung
[mobile_model] => Galaxy Tab 2 (10.1)
[version] => 18.0.1025.133
[is_android] =>
[browser_name] => Chrome
[operating_system_family] => Android
[operating_system_version] => 4.0.3
[is_ios] =>
[producer] => Google Inc.
[operating_system] => Android 4.0.x Ice Cream Sandwich
[mobile_screen_width] => 0
[mobile_browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">Samsung</td><td>GALAXY Tab 2 10.1"</td><td>tablet</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a>
<!-- Modal Structure -->
<div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => Chrome
[short_name] => CH
[version] => 18.0
[engine] => WebKit
)
[operatingSystem] => Array
(
[name] => Android
[short_name] => AND
[version] => 4.0
[platform] =>
)
[device] => Array
(
[brand] => SA
[brandName] => Samsung
[model] => GALAXY Tab 2 10.1"
[device] => 2
[deviceName] => tablet
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] =>
[isTablet] => 1
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a>
<!-- Modal Structure -->
<div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>SinergiBrowserDetector result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Sinergi\BrowserDetector\Browser Object
(
[userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
[name:Sinergi\BrowserDetector\Browser:private] => Chrome
[version:Sinergi\BrowserDetector\Browser:private] => 18.0.1025.133
[isRobot:Sinergi\BrowserDetector\Browser:private] =>
[isChromeFrame:Sinergi\BrowserDetector\Browser:private] =>
[isFacebookWebView:Sinergi\BrowserDetector\Browser:private] =>
[isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] =>
)
[operatingSystem] => Sinergi\BrowserDetector\Os Object
(
[name:Sinergi\BrowserDetector\Os:private] => Android
[version:Sinergi\BrowserDetector\Os:private] => 4.0.3
[isMobile:Sinergi\BrowserDetector\Os:private] => 1
[userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
)
[device] => Sinergi\BrowserDetector\Device Object
(
[name:Sinergi\BrowserDetector\Device:private] => unknown
[userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Chrome 18.0.1025</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>GT-P5100</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a>
<!-- Modal Structure -->
<div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 18
[minor] => 0
[patch] => 1025
[family] => Chrome
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 4
[minor] => 0
[patch] => 3
[patchMinor] =>
[family] => Android
)
[device] => UAParser\Result\Device Object
(
[brand] => Samsung
[model] => GT-P5100
[family] => Samsung GT-P5100
)
[originalUserAgent] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td>WebKit 535.19</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15101</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a>
<!-- Modal Structure -->
<div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[platform_name] => Android
[platform_version] => 4.0.3
[platform_type] => Mobile
[browser_name] => Chrome
[browser_version] => 18.0.1025.133
[engine_name] => WebKit
[engine_version] => 535.19
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.062</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a>
<!-- Modal Structure -->
<div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => Android Webkit Browser
[agent_version] => --
[os_type] => Android
[os_name] => Android
[os_versionName] =>
[os_versionNumber] => 4.0.3
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] =>
[agent_languageTag] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td>WebKit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.24001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Android
[simple_sub_description_string] =>
[simple_browser_string] => Chrome 18 on Android (Ice Cream Sandwich)
[browser_version] => 18
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => stdClass Object
(
[System Build] => IML74K
)
[layout_engine_name] => WebKit
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => chrome
[operating_system_version] => Ice Cream Sandwich
[simple_operating_platform_string] => Samsung GT-P5100
[is_abusive] =>
[layout_engine_version] => 535.19
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] => Samsung
[operating_system] => Android (Ice Cream Sandwich)
[operating_system_version_full] => 4.0.3
[operating_platform_code] => GT-P5100
[browser_name] => Chrome
[operating_system_name_code] => android
[user_agent] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
[browser_version_full] => 18.0.1025.133
[browser] => Chrome 18
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 10.1</td><td>tablet</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a>
<!-- Modal Structure -->
<div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Chrome
[version] => 18
[type] => browser
)
[engine] => Array
(
[name] => Webkit
[version] => 535.19
)
[os] => Array
(
[name] => Android
[version] => 4.0.3
)
[device] => Array
(
[type] => tablet
[manufacturer] => Samsung
[model] => Galaxy Tab 2 10.1
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a>
<!-- Modal Structure -->
<div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => Chrome
[vendor] => Google
[version] => 18.0.1025.133
[category] => smartphone
[os] => Android
[os_version] => 4.0.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>GT-P5100</td><td>Tablet</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.017</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a>
<!-- Modal Structure -->
<div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => true
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => true
[is_mobile] => true
[is_robot] => false
[is_smartphone] => false
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => Android
[advertised_device_os_version] => 4.0.3
[advertised_browser] => Chrome
[advertised_browser_version] => 18.0.1025.133
[complete_device_name] => Samsung GT-P5100 (Galaxy Tab 2 10.1)
[device_name] => Samsung Galaxy Tab 2 10.1
[form_factor] => Tablet
[is_phone] => false
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Samsung
[model_name] => GT-P5100
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] => http://wap.samsungmobile.com/uaprof/GT-P5100.xml
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => Android
[mobile_browser] => Chrome Mobile
[mobile_browser_version] => 18
[device_os_version] => 4.0
[pointing_method] => touchscreen
[release_date] => 2012_april
[marketing_name] => Galaxy Tab 2 10.1
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => true
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => true
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => iso-8859-1
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => true
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 1280
[resolution_height] => 800
[columns] => 25
[max_image_width] => 800
[max_image_height] => 1280
[rows] => 21
[physical_screen_width] => 218
[physical_screen_height] => 136
[dual_orientation] => true
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => true
[transparent_png_index] => true
[svgt_1_1] => true
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => true
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 3600
[wifi] => true
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 2000000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => false
[oma_support] => true
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 30
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 0
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 1
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => apple_live_streaming
[wap_push_support] => true
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => true
[sender] => true
[mms_max_size] => 307200
[mms_max_height] => 480
[mms_max_width] => 640
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => true
[mms_jpeg_progressive] => false
[mms_gif_static] => true
[mms_gif_animated] => true
[mms_png] => true
[mms_bmp] => false
[mms_wbmp] => true
[mms_amr] => true
[mms_wav] => false
[mms_midi_monophonic] => true
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => true
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => true
[mms_vcalendar] => true
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => true
[mms_mp4] => true
[mms_3gpp] => true
[mms_3gpp2] => true
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => true
[midi_polyphonic] => true
[sp_midi] => true
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => true
[au] => false
[amr] => true
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 0
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => true
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => false
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Google Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>P5100</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a>
<!-- Modal Structure -->
<div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Zsxsoft result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[link] => http://google.com/chrome/
[title] => Google Chrome 18.0.1025.133
[name] => Google Chrome
[version] => 18.0.1025.133
[code] => chrome
[image] => img/16/browser/chrome.png
)
[os] => Array
(
[link] => http://www.android.com/
[name] => Android
[version] => 4.0.3
[code] => android
[x64] =>
[title] => Android 4.0.3
[type] => os
[dir] => os
[image] => img/16/os/android.png
)
[device] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung P5100
[model] => P5100
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
[platform] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung P5100
[model] => P5100
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-05-10 08:10:14</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/e9/3d/e93d87f0-5b6e-4fa9-8a69-d4eb386acf11.html | HTML | mit | 57,360 |
package com.aol.cyclops.guava;
import com.aol.simple.react.stream.traits.FutureStream;
import com.google.common.collect.FluentIterable;
public class FromSimpleReact {
public static <T> FluentIterable<T> fromSimpleReact(
FutureStream<T> s) {
return FluentIterable.from(s);
}
}
| sjfloat/cyclops | cyclops-guava/src/main/java/com/aol/cyclops/guava/FromSimpleReact.java | Java | mit | 286 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目 </b></th><td class="std2">挑脣料嘴</td></tr>
<tr><th class="std1"><b>注音 </b></th><td class="std2">ㄊ|ㄠ<sup class="subfont">ˇ</sup> ㄔㄨㄣ<sup class="subfont">ˊ</sup> ㄌ|ㄠ<sup class="subfont">ˋ</sup> ㄗㄨㄟ<sup class="subfont">ˇ</sup></td></tr>
<tr><th class="std1"><b>漢語拼音 </b></th><td class="std2"><font class="english_word">tiǎo chún liào zuǐ</font></td></tr>
<tr><th class="std1"><b>釋義 </b></th><td class="std2">料,撩撥。挑脣料嘴指口角爭論。元˙李致遠˙還牢末˙第一折:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>誰與你挑脣料嘴,辨別個誰是誰非。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>亦作<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>挑牙料脣<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>。</td></tr>
<tr><th class="std1"><b><font class="fltypefont">附錄</font> </b></th><td class="std2">修訂本參考資料</td></tr>
</td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
| BuzzAcademy/idioms-moe-unformatted-data | all-data/23000-23999/23323-22.html | HTML | mit | 1,573 |
#import <Flutter/Flutter.h>
@interface AdbflibPlugin : NSObject<FlutterPlugin>
@end
| electricherd/audiobookfinder | packages/adbflib_ffi/ios/Classes/AdbflibPlugin.h | C | mit | 85 |
---
layout: post
title: "苹果的清洁能源项目"
date: 2016-3-21 9:11:11
categories: 苹果 能源 环保
published: false
---
本月 22 号苹果举行了他们的春季发布会。虽然消费产品,例如 iPhone 和 iPad 并没有大的更新,但是关于 CareKit 和[环保项目][1]的进展还是很振奋人心的。特别是其中的清洁能源项目,是非常雄心勃勃并且需要巨大投入的,因此也十分值得我们研究学习。

[1]: http://www.apple.com/cn/environment/renewable-resources/
| unionx/unionx.github.io | _posts/2016-3-22-renewable-resources-in-apple.md | Markdown | mit | 605 |
<?php
namespace Nijens\FailureHandling;
use Nijens\Utilities\UnregisterableCallback;
/**
* FailureCatcher
*
* @author Niels Nijens <[email protected]>
* @package Nijens\Failurehandling
**/
class FailureCatcher
{
/**
* The failure handler instance implementing FailureHandlerInterface
*
* @access protected
* @var FailureHandlerInterface
**/
protected static $failureHandler;
/**
* The UnregisterableCallback instance
*
* @access protected
* @var UnregisterableCallback
**/
protected static $shutdownCallback;
/**
* The callable with an additional shutdown callback handled in @see shutdown
*
* @access protected
* @var callable
**/
protected static $additionalShutdownCallback;
/**
* start
*
* Starts the failure catcher with a $failureHandler
*
* @access public
* @param FailureHandlerInterface $failureHandler
* @param callable $additionalShutdownCallback
* @return void
**/
public static function start(FailureHandlerInterface $failureHandler, $additionalShutdownCallback = null)
{
static::setPHPConfigurationOptionsToAvoidErrorOutput();
static::$failureHandler = $failureHandler;
set_error_handler(array($failureHandler, "handleError") );
set_exception_handler(array($failureHandler, "handleException") );
static::$shutdownCallback = new UnregisterableCallback(array(__CLASS__, "shutdown") );
register_shutdown_function(array(static::$shutdownCallback, "call") );
if (is_callable($additionalShutdownCallback) ) {
static::$additionalShutdownCallback = $additionalShutdownCallback;
}
}
/**
* setPHPConfigurationOptionsToAvoidErrorOutput
*
* Sets the ini options in a way that make sure errors are not outputted to the browser or cli
*
* @return boolean
*/
private static function setPHPConfigurationOptionsToAvoidErrorOutput() {
$changed = false;
// an empty log while logging will produce output on errors that cannot be handled by an error-handler
if (ini_get("log_errors") === "1" && ini_get("error_log") === "") {
ini_set("log_errors", "0");
$changed = true;
}
// do not output errors
if (ini_get("display_errors") === "1") {
ini_set("display_errors", "0");
$changed = true;
}
return $changed;
}
/**
* stop
*
* Stops the failure catcher
*
* @access public
* @return void
**/
public static function stop()
{
if (static::$failureHandler instanceof FailureHandlerInterface) {
restore_error_handler();
restore_exception_handler();
}
if (static::$shutdownCallback instanceof UnregisterableCallback) {
static::$shutdownCallback->unregister();
}
static::$failureHandler = null;
static::$shutdownCallback = null;
static::$additionalShutdownCallback = null;
}
/**
* shutdown
*
* Handles errors that were not handled by FailureHandlerInterface::handleError
*
* @access public
* @return void
**/
public static function shutdown()
{
$error = error_get_last();
if (is_array($error) ) {
static::handleShutdownError($error);
}
if (is_callable(static::$additionalShutdownCallback) ) {
call_user_func(static::$additionalShutdownCallback);
}
}
/**
* handleShutdownError
*
* Handles errors that were not handled by FailureHandlerInterface::handleError
*
* @access protected
* @param array $error
* @return void
**/
protected static function handleShutdownError(array $error)
{
$stacktrace = null;
if (ob_get_length() > 0) {
$stacktrace = ob_get_clean();
}
$context = array("stacktrace" => $stacktrace);
static::$failureHandler->handleError($error["type"], $error["message"], $error["file"], $error["line"], $context);
}
}
| niels-nijens/FailureHandling | src/FailureCatcher.php | PHP | mit | 4,222 |
namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers
{
// ReSharper disable StyleCop.SA1600
using System;
using System.ComponentModel.Composition;
using Farmhand.Installers.Patcher.Cecil;
using Farmhand.Installers.Patcher.Injection.Components.Hooks;
using Farmhand.Installers.Patcher.Injection.Components.Modifiers.Converters;
[Export(typeof(IHookHandler))]
[PartCreationPolicy(CreationPolicy.Shared)]
public class AlterProtectionHandler : IHookHandler
{
private readonly CecilContext cecilContext;
private readonly IAlterProtectionAttributeConverter propertyConverter;
[ImportingConstructor]
public AlterProtectionHandler(
IAlterProtectionAttributeConverter propertyConverter,
IInjectionContext injectionContext)
{
this.propertyConverter = propertyConverter;
var context = injectionContext as CecilContext;
if (context != null)
{
this.cecilContext = context;
}
else
{
throw new Exception(
$"CecilInjectionProcessor is only compatible with {nameof(CecilContext)}.");
}
}
#region IHookHandler Members
public void PerformAlteration(Attribute attribute, string typeName, string methodName)
{
this.propertyConverter.FromAttribute(attribute);
bool isPublic = this.propertyConverter.MinimumProtectionLevel == 2;
var type = this.cecilContext.GetTypeDefinition(this.propertyConverter.TypeName);
type.IsPublic = isPublic;
type.IsNotPublic = !isPublic;
}
public bool Equals(string fullName)
{
return this.propertyConverter.FullName == fullName;
}
#endregion
}
} | ClxS/Stardew-Farmhand | Libraries/Installers/Patcher/FarmhandPatcherCommon/Injection/Components/Modifiers/AlterProtectionHandler.cs | C# | mit | 1,879 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Apprecie: library/Model/ApprecieModelBase.php Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="apprecie.jpg"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Apprecie
 <span id="projectnumber">1</span>
</div>
<div id="projectbrief">Azure PHP</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_apprecie_model_base_8php_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ApprecieModelBase.php</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php</div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespace_apprecie_1_1_library_1_1_model.html"> 9</a></span> <span class="keyword">namespace </span><a class="code" href="namespace_apprecie_1_1_library_1_1_model.html">Apprecie\Library\Model</a>;</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_collections_1_1_can_register.html">Apprecie\Library\Collections\CanRegister</a>;</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_collections_1_1_is_registry.html">Apprecie\Library\Collections\IsRegistry</a>;</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_collections_1_1_registry.html">Apprecie\Library\Collections\Registry</a>;</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_messaging_1_1_private_message_queue.html">Apprecie\Library\Messaging\PrivateMessageQueue</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_manager.html">Apprecie\Library\Security\EncryptionManager</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_provider.html">Apprecie\Library\Security\EncryptionProvider</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> use <a class="code" href="namespace_apprecie_1_1_library_1_1_tracing_1_1_activity_trace_trait.html">Apprecie\Library\Tracing\ActivityTraceTrait</a>;</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> use <a class="code" href="namespace_phalcon_1_1_db_1_1_raw_value.html">Phalcon\Db\RawValue</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> use <a class="code" href="namespace_phalcon_1_1_exception.html">Phalcon\Exception</a>;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> use <a class="code" href="namespace_phalcon_1_1_mvc_1_1_model_1_1_message.html">Phalcon\Mvc\Model\Message</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> use <a class="code" href="namespace_phalcon_1_1_mvc_1_1_model_1_1_message_interface.html">Phalcon\Mvc\Model\MessageInterface</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> use <a class="code" href="namespace_phalcon_1_1_mvc_1_1_model.html">Phalcon\Mvc\Model</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> use <a class="code" href="namespace_phalcon_1_1_security.html">Phalcon\Security</a>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html"> 52</a></span> <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> <span class="keyword">extends</span> \Phalcon\Mvc\Model implements <a class="code" href="interface_apprecie_1_1_library_1_1_collections_1_1_can_register.html">CanRegister</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  use <a class="code" href="namespace_activity_trace_trait.html">ActivityTraceTrait</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">protected</span> $_defaultFields = array();</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">protected</span> $_encryptedFields = array();</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">protected</span> $_bitFields = array();</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">protected</span> $_isDecrypted = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">protected</span> $_encryptionProvider = null;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">protected</span> $_hash = null;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">protected</span> $_parentIsTableBase = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">protected</span> $_parentTransaction = null;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">protected</span> $_foreignKeyField = null;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">public</span> <span class="keyword">function</span> setParentIsTableBase($value)</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  $this->_parentIsTableBase = $value;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">public</span> <span class="keyword">function</span> getParentIsTableBase()</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> $this->_parentIsTableBase;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="preprocessor"> #region properties / getters / setters</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">protected</span> <span class="keyword">function</span> getForeignKeyField()</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">if</span> ($this->_foreignKeyField == null) {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  $this->calculateForeignKeyField();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">return</span> $this->_foreignKeyField;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">protected</span> <span class="keyword">function</span> getForeignKey()</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (!$this->_parentIsTableBase) {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  $field = $this->getForeignKeyField();</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">return</span> $this->$field;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">public</span> <span class="keyword">function</span> setForeignKey($value)</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  $field = $this->getForeignKeyField();</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  $this->$field = $value;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">public</span> <span class="keyword">function</span> getHash()</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordflow">if</span> ($this->_hash == null) {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  $this->_hash = uniqid(spl_object_hash($this), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> $this->_hash;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ad19aac92fbb93ec650e8550389bb6be5"> 118</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ad19aac92fbb93ec650e8550389bb6be5">getIsDecrypted</a>()</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> $this->_isDecrypted;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8529f9f3816efe674ad907bd1a2360d0"> 131</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8529f9f3816efe674ad907bd1a2360d0">setDefaultFields</a>($default)</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (!is_array($default)) {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  $default = array($default);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  $this->_defaultFields = $default;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a4bcc03e29cd5ea33ad13de858065135e"> 147</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a4bcc03e29cd5ea33ad13de858065135e">setEncryptedFields</a>($encrypted)</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">if</span> (!is_array($encrypted)) {</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  $encrypted = array($encrypted);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  $this->_encryptedFields = $encrypted;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  }</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab800a096b48dc7cfc539549ba02367ac"> 158</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab800a096b48dc7cfc539549ba02367ac">getEncryptedFields</a>()</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  {</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> $this->_encryptedFields;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae84b7722a75fa5c37ef628503346b7f9"> 166</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae84b7722a75fa5c37ef628503346b7f9">getDefaultFields</a>()</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  {</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordflow">return</span> $this->_defaultFields;</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a24ccf01c74e7f030e5463fa2818e1945"> 180</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a24ccf01c74e7f030e5463fa2818e1945">setEncryptionProvider</a>(<a class="code" href="interface_apprecie_1_1_library_1_1_security_1_1_encryption_provider.html">EncryptionProvider</a> $provider)</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  {</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  $this->getDI()->get(<span class="stringliteral">'encRegistry'</span>)->setInstance($this, $provider);</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#afaa69691910f5f8f0197722d23ec2f88"> 188</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#afaa69691910f5f8f0197722d23ec2f88">getEncryptionProvider</a>()</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  {</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">return</span> $this->getDI()->get(<span class="stringliteral">'encRegistry'</span>)->getInstance($this);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab84cf90eeb87f09b54c0bb9cfae0844b"> 197</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab84cf90eeb87f09b54c0bb9cfae0844b">createEncryptionProvider</a>()</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  {</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">return</span> <a class="code" href="class_apprecie_1_1_library_1_1_security_1_1_encryption_manager.html#aea94b93be7ee5f392d5c19ecb522f0f7">EncryptionManager::get</a>($this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9c31aa52b6e4dee9f0f9f6c3f617896f">getEncryptionKey</a>());</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9c31aa52b6e4dee9f0f9f6c3f617896f"> 207</a></span>  <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9c31aa52b6e4dee9f0f9f6c3f617896f">getEncryptionKey</a>()</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  {</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  $key1 = $this->getDI()->get(<span class="stringliteral">'portalid'</span>);</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  $key2 = $this->getDI()->get(<span class="stringliteral">'fieldkey'</span>);</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">return</span> $key1 . $key2;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  }</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="preprocessor"> #endregion</span></div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="preprocessor"> #region public methods</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keyword">public</span> <span class="keyword">function</span> <span class="keyword">register</span>(<a class="code" href="interface_apprecie_1_1_library_1_1_collections_1_1_is_registry.html">IsRegistry</a> $register, $key, $name)</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  {</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">if</span> ($name == <span class="stringliteral">'modelencryption'</span>) {</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  $register->setInstance($key, $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab84cf90eeb87f09b54c0bb9cfae0844b">createEncryptionProvider</a>());</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a2e694a13a253400ce9b1560c63962553"> 235</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a2e694a13a253400ce9b1560c63962553">isEncryptionField</a>($field)</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  {</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">return</span> in_array($field, $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab800a096b48dc7cfc539549ba02367ac">getEncryptedFields</a>());</div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  }</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#abf330a837c0889228c7b62bc18af99b5"> 253</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#abf330a837c0889228c7b62bc18af99b5">encryptFields</a>()</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  {</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">if</span> (count($this->_encryptedFields) > 0 && $this->_isDecrypted) {</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  $encrypt = $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#afaa69691910f5f8f0197722d23ec2f88">getEncryptionProvider</a>();</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">foreach</span> ($this->_encryptedFields as $field) {</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">if</span> (isset($this->$field) && is_string($this->$field)) {</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  $this->$field = $encrypt->encrypt($this->$field);</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  }</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  }</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  $this->_isDecrypted = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  }</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  }</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b"> 282</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">decryptFields</a>()</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  {</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">if</span> (count($this->_encryptedFields) > 0 && !$this->_isDecrypted) {</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  $encrypt = $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#afaa69691910f5f8f0197722d23ec2f88">getEncryptionProvider</a>();</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">foreach</span> ($this->_encryptedFields as $field) {</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">if</span> (isset($this->$field) && is_string($this->$field)) {</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  $this->$field = $encrypt->decrypt($this->$field);</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  }</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  }</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  $this->_isDecrypted = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  }</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  }</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="preprocessor"> #endregion</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="preprocessor"> #region protected methods</span></div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a5def8bf996218c5f74920eef290b1a89"> 310</a></span>  <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a5def8bf996218c5f74920eef290b1a89">processDefaultValues</a>($onlyIfNull = <span class="keyword">true</span>)</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  {</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">foreach</span> ($this->_defaultFields as $field) {</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  $setDefault = !$onlyIfNull ? <span class="keyword">true</span> : is_null($this->$field);</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">if</span> ($setDefault) {</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  $this->$field = new \Phalcon\Db\RawValue(<span class="stringliteral">'default'</span>);</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  }</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  }</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div>
<div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a12751dcdf42f432256a7455df5c3a663"> 326</a></span>  <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a12751dcdf42f432256a7455df5c3a663">processBitValues</a>()</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  {</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  $fields = $this->getModelsMetaData()->getAttributes($this);</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">foreach</span> ($fields as $field) { <span class="comment">// = The record doesn't have a valid data snapshot at</span></div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span> (isset($this->$field) && is_bool($this->$field)) {</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  $value = $this->$field === <span class="keyword">true</span> ? 1 : 0;</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  $this->$field = new \Phalcon\Db\RawValue(<span class="stringliteral">"{$value}"</span>);</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  $this->_bitFields[] = $field;</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  }</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  }</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div>
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div>
<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a49fed889a231292a2b9c9949c52de128"> 342</a></span>  <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a49fed889a231292a2b9c9949c52de128">unsetBitValues</a>()</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  {</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">foreach</span> ($this->_bitFields as $field) {</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordflow">if</span> ($this->$field instanceof RawValue) {</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  $val = $this->$field->getValue();</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordflow">if</span> (is_numeric($val) && $val == 0 || $val == 1) {</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  $this->$field = (int)$val;</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  }</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  }</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  }</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  $this->_bitFields = array();</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  }</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div>
<div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a70ec5ebfedc58756f409c37ad2df1deb"> 363</a></span>  <span class="keyword">protected</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a70ec5ebfedc58756f409c37ad2df1deb">getExtractToArray</a>(array $fields)</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  {</div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  $dataPackage = [];</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="keywordflow">foreach</span> ($fields as $field) { <span class="comment">//toArray does not return the protected parent field data, so we extract</span></div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  $getMethod = <span class="stringliteral">'get'</span> . ucfirst($field);</div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  $dataPackage[$field] = $this->$getMethod();</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  }</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">return</span> $dataPackage;</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  }</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keyword">protected</span> <span class="keyword">function</span> updateForeignKey(<a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> $parentInstance)</div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  {</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  $getMethod = <span class="stringliteral">'get'</span> . ucfirst($this->getForeignKeyField());</div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  $this->setForeignKey($parentInstance->$getMethod());</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  }</div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> </div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">protected</span> <span class="keyword">function</span> getParentInstance()</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  {</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordflow">if</span> (!$this->_parentIsTableBase) <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  $parent = get_parent_class(get_called_class());</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  $instance = $parent::findFirstBy($this->getForeignKeyField(), $this->getForeignKey());</div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">if</span> ($instance == null) {</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordflow">throw</span> new \LogicException($this->getForeignKeyField()</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  . <span class="stringliteral">'The underlying base record or type '</span></div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  . $parent . <span class="stringliteral">' could not be found using key field '</span></div>
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  . <span class="stringliteral">' and key '</span> . $this->getForeignKey());</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  }</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> </div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keywordflow">return</span> $instance;</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  }</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> </div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keyword">protected</span> <span class="keyword">function</span> calculateForeignKeyField()</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  {</div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase && $this->_foreignKeyField == null) {</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  $parent = get_parent_class(get_called_class());</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  $parentInstance = <span class="keyword">new</span> $parent();</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> </div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="comment">//find the foreign key</span></div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  $key = $parentInstance->getModelsMetaData()->getPrimaryKeyAttributes($parentInstance);</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">if</span> (count($key) != 1) {</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">throw</span> <span class="keyword">new</span> Exception(<span class="stringliteral">'TPT Inheritance only works with tables with a single primary key and a matching foreign key'</span>);</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  }</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  $this->_foreignKeyField = $key[0];</div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  }</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  }</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keyword">protected</span> <span class="keyword">function</span> updateFromParent()</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  {</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  $parent = $this->getParentInstance();</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  $this->assign($parent->toArray());</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  }</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  }</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="preprocessor"> #endregion</span></div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="preprocessor"> #region event handlers / overrides</span></div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keyword">public</span> <span class="keyword">function</span> onConstruct()</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  {</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  $this->useDynamicUpdate(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  }</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span> </div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keyword">public</span> <span class="keyword">function</span> beforeValidationOnCreate()</div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  {</div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div>
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  $this->_parentTransaction = (new \Phalcon\Mvc\Model\Transaction\Manager())-><span class="keyword">get</span>();</div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  $parent = get_parent_class(get_called_class());</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  $parentInstance = <span class="keyword">new</span> $parent();</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div>
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  $parentInstance->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  $data = $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a70ec5ebfedc58756f409c37ad2df1deb">getExtractToArray</a>($parentInstance->getModelsMetaData()->getAttributes($parentInstance));</div>
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div>
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keywordflow">if</span> (!$parentInstance->create($data)) {</div>
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  $this->appendMessage($parentInstance);</div>
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  }</div>
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div>
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  $this->updateForeignKey($parentInstance);</div>
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  } <span class="keywordflow">catch</span> (Exception $ex) {</div>
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  $this->appendMessage($ex);</div>
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  }</div>
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  }</div>
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> </div>
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">decryptFields</a>();</div>
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a5def8bf996218c5f74920eef290b1a89">processDefaultValues</a>();</div>
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  }</div>
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div>
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="keyword">public</span> <span class="keyword">function</span> beforeValidationOnUpdate()</div>
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  {</div>
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">decryptFields</a>();</div>
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  }</div>
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> </div>
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="keyword">public</span> <span class="keyword">function</span> beforeUpdate()</div>
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  {</div>
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#abf330a837c0889228c7b62bc18af99b5">encryptFields</a>();</div>
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a12751dcdf42f432256a7455df5c3a663">processBitValues</a>();</div>
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> </div>
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  $this->_parentTransaction = (new \Phalcon\Mvc\Model\Transaction\Manager())-><span class="keyword">get</span>();</div>
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  $parentInstance = $this->getParentInstance();</div>
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div>
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  $parentInstance->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> </div>
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  $data = $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a70ec5ebfedc58756f409c37ad2df1deb">getExtractToArray</a>($parentInstance->getModelsMetaData()->getAttributes($parentInstance));</div>
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div>
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keywordflow">if</span> (!$parentInstance->update($data)) {</div>
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  $this->appendMessage($parentInstance);</div>
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  }</div>
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  } <span class="keywordflow">catch</span> (Exception $ex) {</div>
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  $this->appendMessage($ex);</div>
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  }</div>
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div>
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  $this->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  }</div>
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  }</div>
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div>
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keyword">public</span> <span class="keyword">function</span> beforeCreate()</div>
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  {</div>
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#abf330a837c0889228c7b62bc18af99b5">encryptFields</a>();</div>
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a12751dcdf42f432256a7455df5c3a663">processBitValues</a>();</div>
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div>
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  $this->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  }</div>
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  }</div>
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> </div>
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <span class="keyword">public</span> <span class="keyword">function</span> afterCreate()</div>
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  {</div>
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  $this->_parentTransaction->commit();</div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  $this->updateFromParent();</div>
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  } <span class="keywordflow">catch</span> (Exception $ex) {</div>
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  $this->appendMessage($ex);</div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  $this->_parentTransaction->rollback(<span class="stringliteral">'The entire transaction could not completed'</span>);</div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  }</div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  }</div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  }</div>
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div>
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <span class="keyword">public</span> <span class="keyword">function</span> beforeDelete()</div>
<div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  {</div>
<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  $this->_parentTransaction = (new \Phalcon\Mvc\Model\Transaction\Manager())-><span class="keyword">get</span>();</div>
<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div>
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  $parent = $this->getParentInstance();</div>
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keywordflow">if</span> ($parent != null) {</div>
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  $parent->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordflow">if</span> (!$parent->delete()) {</div>
<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  $this->appendMessage($parent);</div>
<div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div>
<div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  }</div>
<div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div>
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  $this->setTransaction($this->_parentTransaction);</div>
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  }</div>
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  }</div>
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span> </div>
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keyword">public</span> <span class="keyword">function</span> afterDelete()</div>
<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  {</div>
<div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  $this->_parentTransaction->commit();</div>
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  } <span class="keywordflow">catch</span> (Exception $ex) {</div>
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  $this->appendMessage($ex);</div>
<div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  $this->_parentTransaction->rollback(<span class="stringliteral">'The entire transaction could not completed.'</span>);</div>
<div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  }</div>
<div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  }</div>
<div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  }</div>
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div>
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keyword">public</span> <span class="keyword">function</span> afterFetch()</div>
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  {</div>
<div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  $this->_hash = null;</div>
<div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <span class="keywordflow">if</span> (count($this->_encryptedFields) > 0) {</div>
<div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  $this->_isDecrypted = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  }</div>
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div>
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">decryptFields</a>();</div>
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a49fed889a231292a2b9c9949c52de128">unsetBitValues</a>();</div>
<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> </div>
<div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  $this->updateFromParent();</div>
<div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  }</div>
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> </div>
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keyword">public</span> <span class="keyword">function</span> afterUpdate()</div>
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  {</div>
<div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a49fed889a231292a2b9c9949c52de128">unsetBitValues</a>();</div>
<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  $this-><a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">decryptFields</a>();</div>
<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> </div>
<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">if</span> ($this->_parentIsTableBase) {</div>
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  $this->_parentTransaction->commit();</div>
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  $this->updateFromParent();</div>
<div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  } <span class="keywordflow">catch</span> (Exception $ex) {</div>
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  $this->appendMessage($ex);</div>
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  $this->_parentTransaction->rollback(<span class="stringliteral">'The entire transaction could not completed'</span>);</div>
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  }</div>
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  }</div>
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  }</div>
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div>
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="keyword">public</span> <span class="keyword">function</span> appendMessage($messages)</div>
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  {</div>
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keywordflow">if</span> (is_array($messages) || $messages instanceof \ArrayAccess) {</div>
<div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="keywordflow">foreach</span> ($messages as $message) {</div>
<div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  $this->appendMessage($message); <span class="comment">//recursion</span></div>
<div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  }</div>
<div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  } elseif ($messages instanceof PrivateMessageQueue) {</div>
<div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="keywordflow">foreach</span> ($messages->getMessages() as $message) {</div>
<div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  $this->appendMessage($message); <span class="comment">//recursion</span></div>
<div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  }</div>
<div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="keywordflow">if</span> (is_string($messages)) {</div>
<div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  $messages = <span class="keyword">new</span> Message($messages);</div>
<div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  } elseif ($messages instanceof Exception) {</div>
<div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  $messages = <span class="keyword">new</span> Message($messages->getMessage());</div>
<div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  }</div>
<div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div>
<div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  parent::appendMessage($messages);</div>
<div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  }</div>
<div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  }</div>
<div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="preprocessor"> #endregion</span></div>
<div class="line"><a name="l00598"></a><span class="lineno"> 598</span> </div>
<div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="preprocessor"> #region static methods</span></div>
<div class="line"><a name="l00600"></a><span class="lineno"> 600</span> </div>
<div class="line"><a name="l00611"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8ad9b2acae885be4ba4613620165d579"> 611</a></span>  <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8ad9b2acae885be4ba4613620165d579">findFirstBy</a>($field, $values, <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> $instance = null)</div>
<div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  {</div>
<div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  $class = get_called_class();</div>
<div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  $values = $class::prepareSearchValues($field, $values, $instance);</div>
<div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  $result = $class::query()</div>
<div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  ->inWhere($field, $values)</div>
<div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  ->limit(1)</div>
<div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  ->execute();</div>
<div class="line"><a name="l00619"></a><span class="lineno"> 619</span> </div>
<div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="keywordflow">return</span> $result->count() > 0 ? $result[0] : null;</div>
<div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  }</div>
<div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div>
<div class="line"><a name="l00633"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9e1499ecafbe8878b0cf60715cf37e2c"> 633</a></span>  <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9e1499ecafbe8878b0cf60715cf37e2c">findBy</a>($field, $values, <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> $instance = null)</div>
<div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  {</div>
<div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  $class = get_called_class();</div>
<div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  $values = $class::prepareSearchValues($field, $values, $instance);</div>
<div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  <span class="keywordflow">return</span> $class::query()</div>
<div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  ->inWhere($field, $values)</div>
<div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  ->execute();</div>
<div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  }</div>
<div class="line"><a name="l00641"></a><span class="lineno"> 641</span> </div>
<div class="line"><a name="l00651"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8b84a7be9c041bb355f361825362c2f3"> 651</a></span>  <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8b84a7be9c041bb355f361825362c2f3">prepareSearchValues</a>($field, $values, <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> $instance = null)</div>
<div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  {</div>
<div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <span class="keywordflow">if</span> (!is_array($values)) $values = array($values);</div>
<div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div>
<div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="keywordflow">if</span> ($instance == null) {</div>
<div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  $class = get_called_class();</div>
<div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  $instance = <span class="keyword">new</span> $class();</div>
<div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  }</div>
<div class="line"><a name="l00659"></a><span class="lineno"> 659</span> </div>
<div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="keywordflow">foreach</span> ($values as &$val) {</div>
<div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keywordflow">if</span> ($instance->isEncryptionField($field)) { <span class="comment">//encrypt the values before query</span></div>
<div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  $val = $instance->getEncryptionProvider()->encrypt($val);</div>
<div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  }</div>
<div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  }</div>
<div class="line"><a name="l00665"></a><span class="lineno"> 665</span> </div>
<div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  <span class="keywordflow">return</span> $values;</div>
<div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  }</div>
<div class="line"><a name="l00668"></a><span class="lineno"> 668</span> </div>
<div class="line"><a name="l00682"></a><span class="lineno"><a class="line" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9f28d67421dfa63e52e28cdc42cacc46"> 682</a></span>  <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">function</span> <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9f28d67421dfa63e52e28cdc42cacc46">resolve</a>($param, $throw = <span class="keyword">true</span>, <a class="code" href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">ApprecieModelBase</a> $instance = null)</div>
<div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  {</div>
<div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  $class = get_called_class();</div>
<div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keywordflow">if</span> ($param instanceof $class) <span class="keywordflow">return</span> $param;</div>
<div class="line"><a name="l00686"></a><span class="lineno"> 686</span> </div>
<div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="keywordflow">if</span> ($instance == null) {</div>
<div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  $instance = <span class="keyword">new</span> $class();</div>
<div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  }</div>
<div class="line"><a name="l00690"></a><span class="lineno"> 690</span> </div>
<div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  $key = $instance->getModelsMetaData()->getPrimaryKeyAttributes($instance);</div>
<div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="keywordflow">if</span> (count(</div>
<div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  $key</div>
<div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  ) != 1</div>
<div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  ) <span class="keywordflow">throw</span> <span class="keyword">new</span> Exception(<span class="stringliteral">'Composit key models and non primary key not implemented for resolution in model base. Please implement'</span>);</div>
<div class="line"><a name="l00696"></a><span class="lineno"> 696</span> </div>
<div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  $item = $class::findFirstBy($key[0], $param, $instance);</div>
<div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="keywordflow">if</span> ($item == null && $throw) {</div>
<div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="keywordflow">throw</span> new \InvalidArgumentException(<span class="stringliteral">'The requested '</span> . $class . <span class="stringliteral">' could not resolved to a record or object'</span>);</div>
<div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  }</div>
<div class="line"><a name="l00701"></a><span class="lineno"> 701</span> </div>
<div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keywordflow">return</span> $item;</div>
<div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  }</div>
<div class="line"><a name="l00704"></a><span class="lineno"> 704</span> </div>
<div class="line"><a name="l00705"></a><span class="lineno"> 705</span> <span class="preprocessor"> #endregion</span></div>
<div class="line"><a name="l00706"></a><span class="lineno"> 706</span> <span class="preprocessor">}</span></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a2e694a13a253400ce9b1560c63962553"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a2e694a13a253400ce9b1560c63962553">Apprecie\Library\Model\ApprecieModelBase\isEncryptionField</a></div><div class="ttdeci">isEncryptionField($field)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00235">ApprecieModelBase.php:235</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_exception_html"><div class="ttname"><a href="namespace_phalcon_1_1_exception.html">Exception</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a8ad9b2acae885be4ba4613620165d579"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8ad9b2acae885be4ba4613620165d579">Apprecie\Library\Model\ApprecieModelBase\findFirstBy</a></div><div class="ttdeci">static findFirstBy($field, $values, ApprecieModelBase $instance=null)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00611">ApprecieModelBase.php:611</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a9f28d67421dfa63e52e28cdc42cacc46"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9f28d67421dfa63e52e28cdc42cacc46">Apprecie\Library\Model\ApprecieModelBase\resolve</a></div><div class="ttdeci">static resolve($param, $throw=true, ApprecieModelBase $instance=null)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00682">ApprecieModelBase.php:682</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_ab84cf90eeb87f09b54c0bb9cfae0844b"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab84cf90eeb87f09b54c0bb9cfae0844b">Apprecie\Library\Model\ApprecieModelBase\createEncryptionProvider</a></div><div class="ttdeci">createEncryptionProvider()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00197">ApprecieModelBase.php:197</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a9c31aa52b6e4dee9f0f9f6c3f617896f"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9c31aa52b6e4dee9f0f9f6c3f617896f">Apprecie\Library\Model\ApprecieModelBase\getEncryptionKey</a></div><div class="ttdeci">getEncryptionKey()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00207">ApprecieModelBase.php:207</a></div></div>
<div class="ttc" id="interface_apprecie_1_1_library_1_1_collections_1_1_can_register_html"><div class="ttname"><a href="interface_apprecie_1_1_library_1_1_collections_1_1_can_register.html">Apprecie\Library\Collections\CanRegister</a></div><div class="ttdef"><b>Definition:</b> <a href="_can_register_8php_source.html#l00012">CanRegister.php:12</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_model_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_model.html">Apprecie\Library\Model</a></div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00009">ApprecieModelBase.php:9</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_manager_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_manager.html">EncryptionManager</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_db_1_1_raw_value_html"><div class="ttname"><a href="namespace_phalcon_1_1_db_1_1_raw_value.html">RawValue</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_security_1_1_encryption_manager_html_aea94b93be7ee5f392d5c19ecb522f0f7"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_security_1_1_encryption_manager.html#aea94b93be7ee5f392d5c19ecb522f0f7">Apprecie\Library\Security\EncryptionManager\get</a></div><div class="ttdeci">static get($keyAsText, $cypher=MCRYPT_RIJNDAEL_256, $encryptionClass= 'Apprecie\Library\Security\Encryption')</div><div class="ttdef"><b>Definition:</b> <a href="_encryption_manager_8php_source.html#l00020">EncryptionManager.php:20</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_security_html"><div class="ttname"><a href="namespace_phalcon_1_1_security.html">Security</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_ab800a096b48dc7cfc539549ba02367ac"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ab800a096b48dc7cfc539549ba02367ac">Apprecie\Library\Model\ApprecieModelBase\getEncryptedFields</a></div><div class="ttdeci">getEncryptedFields()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00158">ApprecieModelBase.php:158</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a49fed889a231292a2b9c9949c52de128"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a49fed889a231292a2b9c9949c52de128">Apprecie\Library\Model\ApprecieModelBase\unsetBitValues</a></div><div class="ttdeci">unsetBitValues()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00342">ApprecieModelBase.php:342</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a8529f9f3816efe674ad907bd1a2360d0"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8529f9f3816efe674ad907bd1a2360d0">Apprecie\Library\Model\ApprecieModelBase\setDefaultFields</a></div><div class="ttdeci">setDefaultFields($default)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00131">ApprecieModelBase.php:131</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a5def8bf996218c5f74920eef290b1a89"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a5def8bf996218c5f74920eef290b1a89">Apprecie\Library\Model\ApprecieModelBase\processDefaultValues</a></div><div class="ttdeci">processDefaultValues($onlyIfNull=true)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00310">ApprecieModelBase.php:310</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_afaa69691910f5f8f0197722d23ec2f88"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#afaa69691910f5f8f0197722d23ec2f88">Apprecie\Library\Model\ApprecieModelBase\getEncryptionProvider</a></div><div class="ttdeci">getEncryptionProvider()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00188">ApprecieModelBase.php:188</a></div></div>
<div class="ttc" id="interface_apprecie_1_1_library_1_1_collections_1_1_is_registry_html"><div class="ttname"><a href="interface_apprecie_1_1_library_1_1_collections_1_1_is_registry.html">Apprecie\Library\Collections\IsRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_is_registry_8php_source.html#l00021">IsRegistry.php:21</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_ae84b7722a75fa5c37ef628503346b7f9"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae84b7722a75fa5c37ef628503346b7f9">Apprecie\Library\Model\ApprecieModelBase\getDefaultFields</a></div><div class="ttdeci">getDefaultFields()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00166">ApprecieModelBase.php:166</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_collections_1_1_is_registry_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_collections_1_1_is_registry.html">IsRegistry</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_collections_1_1_registry_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_collections_1_1_registry.html">Registry</a></div></div>
<div class="ttc" id="namespace_activity_trace_trait_html"><div class="ttname"><a href="namespace_activity_trace_trait.html">ActivityTraceTrait</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a4bcc03e29cd5ea33ad13de858065135e"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a4bcc03e29cd5ea33ad13de858065135e">Apprecie\Library\Model\ApprecieModelBase\setEncryptedFields</a></div><div class="ttdeci">setEncryptedFields($encrypted)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00147">ApprecieModelBase.php:147</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_mvc_1_1_model_1_1_message_interface_html"><div class="ttname"><a href="namespace_phalcon_1_1_mvc_1_1_model_1_1_message_interface.html">MessageInterface</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a9e1499ecafbe8878b0cf60715cf37e2c"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a9e1499ecafbe8878b0cf60715cf37e2c">Apprecie\Library\Model\ApprecieModelBase\findBy</a></div><div class="ttdeci">static findBy($field, $values, ApprecieModelBase $instance=null)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00633">ApprecieModelBase.php:633</a></div></div>
<div class="ttc" id="interface_apprecie_1_1_library_1_1_security_1_1_encryption_provider_html"><div class="ttname"><a href="interface_apprecie_1_1_library_1_1_security_1_1_encryption_provider.html">Apprecie\Library\Security\EncryptionProvider</a></div><div class="ttdef"><b>Definition:</b> <a href="_encryption_provider_8php_source.html#l00010">EncryptionProvider.php:10</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_tracing_1_1_activity_trace_trait_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_tracing_1_1_activity_trace_trait.html">ActivityTraceTrait</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a70ec5ebfedc58756f409c37ad2df1deb"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a70ec5ebfedc58756f409c37ad2df1deb">Apprecie\Library\Model\ApprecieModelBase\getExtractToArray</a></div><div class="ttdeci">getExtractToArray(array $fields)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00363">ApprecieModelBase.php:363</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a8b84a7be9c041bb355f361825362c2f3"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a8b84a7be9c041bb355f361825362c2f3">Apprecie\Library\Model\ApprecieModelBase\prepareSearchValues</a></div><div class="ttdeci">static prepareSearchValues($field, $values, ApprecieModelBase $instance=null)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00651">ApprecieModelBase.php:651</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_ae1c6dd7fff21d9c67c959c33206d1e8b"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ae1c6dd7fff21d9c67c959c33206d1e8b">Apprecie\Library\Model\ApprecieModelBase\decryptFields</a></div><div class="ttdeci">decryptFields()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00282">ApprecieModelBase.php:282</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_ad19aac92fbb93ec650e8550389bb6be5"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#ad19aac92fbb93ec650e8550389bb6be5">Apprecie\Library\Model\ApprecieModelBase\getIsDecrypted</a></div><div class="ttdeci">getIsDecrypted()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00118">ApprecieModelBase.php:118</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_collections_1_1_can_register_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_collections_1_1_can_register.html">CanRegister</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_mvc_1_1_model_html"><div class="ttname"><a href="namespace_phalcon_1_1_mvc_1_1_model.html">Model</a></div></div>
<div class="ttc" id="namespace_phalcon_1_1_mvc_1_1_model_1_1_message_html"><div class="ttname"><a href="namespace_phalcon_1_1_mvc_1_1_model_1_1_message.html">Message</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html">Apprecie\Library\Model\ApprecieModelBase</a></div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00052">ApprecieModelBase.php:52</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a24ccf01c74e7f030e5463fa2818e1945"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a24ccf01c74e7f030e5463fa2818e1945">Apprecie\Library\Model\ApprecieModelBase\setEncryptionProvider</a></div><div class="ttdeci">setEncryptionProvider(EncryptionProvider $provider)</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00180">ApprecieModelBase.php:180</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_provider_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_security_1_1_encryption_provider.html">EncryptionProvider</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_abf330a837c0889228c7b62bc18af99b5"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#abf330a837c0889228c7b62bc18af99b5">Apprecie\Library\Model\ApprecieModelBase\encryptFields</a></div><div class="ttdeci">encryptFields()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00253">ApprecieModelBase.php:253</a></div></div>
<div class="ttc" id="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base_html_a12751dcdf42f432256a7455df5c3a663"><div class="ttname"><a href="class_apprecie_1_1_library_1_1_model_1_1_apprecie_model_base.html#a12751dcdf42f432256a7455df5c3a663">Apprecie\Library\Model\ApprecieModelBase\processBitValues</a></div><div class="ttdeci">processBitValues()</div><div class="ttdef"><b>Definition:</b> <a href="_apprecie_model_base_8php_source.html#l00326">ApprecieModelBase.php:326</a></div></div>
<div class="ttc" id="namespace_apprecie_1_1_library_1_1_messaging_1_1_private_message_queue_html"><div class="ttname"><a href="namespace_apprecie_1_1_library_1_1_messaging_1_1_private_message_queue.html">PrivateMessageQueue</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_e3d620c6b6fdb93ed3bc6186215bde2e.html">library</a></li><li class="navelem"><a class="el" href="dir_c134011803ed50784d067acb5cce3771.html">Model</a></li><li class="navelem"><b>ApprecieModelBase.php</b></li>
<li class="footer">Generated on Mon Dec 22 2014 23:59:02 for Apprecie by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
</ul>
</div>
</body>
</html>
| ApprecieOpenSource/Apprecie | public/docs/html/_apprecie_model_base_8php_source.html | HTML | mit | 98,504 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.1 / elpi - 1.12.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
elpi
<small>
1.12.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-02 19:39:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 19:39:01 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.5.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "Enrico Tassi <[email protected]>"
authors: [ "Enrico Tassi" ]
license: "LGPL-2.1-or-later"
homepage: "https://github.com/LPCIC/coq-elpi"
bug-reports: "https://github.com/LPCIC/coq-elpi/issues"
dev-repo: "git+https://github.com/LPCIC/coq-elpi"
build: [ [ make "build" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" "OCAMLWARN=" ]
[ make "test" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ] {with-test}
]
install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
"stdlib-shims"
"ocaml" {>= "4.07"}
"elpi" {>= "1.13.6" & < "1.14.0~"}
"coq" {>= "8.15" & < "8.16~" }
]
tags: [ "logpath:elpi" ]
synopsis: "Elpi extension language for Coq"
description: """
Coq-elpi provides a Coq plugin that embeds ELPI.
It also provides a way to embed Coq's terms into λProlog using
the Higher-Order Abstract Syntax approach
and a way to read terms back. In addition to that it exports to ELPI a
set of Coq's primitives, e.g. printing a message, accessing the
environment of theorems and data types, defining a new constant and so on.
For convenience it also provides a quotation and anti-quotation for Coq's
syntax in λProlog. E.g. `{{nat}}` is expanded to the type name of natural
numbers, or `{{A -> B}}` to the representation of a product by unfolding
the `->` notation. Finally it provides a way to define new vernacular commands
and
new tactics."""
url {
src: "https://github.com/LPCIC/coq-elpi/archive/v1.12.1.tar.gz"
checksum: "sha256=32eac6be5172eb945df6e80b1b6e0b784cbf1d7dca15ee780bb60716a0bb9ce5"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-elpi.1.12.1 coq.8.5.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.1).
The following dependencies couldn't be met:
- coq-elpi -> ocaml >= 4.07
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-elpi.1.12.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.1/elpi/1.12.1.html | HTML | mit | 7,729 |
<?php
namespace Superjobs\HomeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Superjobs\HomeBundle\Entity\CVtheque;
use Superjobs\HomeBundle\Form\CVthequeType;
use Superjobs\HomeBundle\Entity\Category;
use Superjobs\HomeBundle\Form\CategoryType;
class MainController extends Controller {
public function indexAction(Request $request) {
$em = $this->getDoctrine()->getManager();
$jobs = $em->getRepository("SuperjobsHomeBundle:Jobs")->findBy(
array(), array('id' => 'DESC')
);
$productRepository = $em->getRepository('SuperjobsHomeBundle:Category');
$oCategory = $productRepository->findAll();
foreach ($oCategory as $key => $oCategoryValue) {
$category[$key] = $oCategoryValue->getName();
}
$paginator = $this->get('knp_paginator');
$pagination = $paginator->paginate(
$jobs, $request->query->get('page', 1)/* page number */, 10/* limit per page */
);
return $this->render('SuperjobsHomeBundle:Main:index.html.twig', array(
'pagination' => $pagination,
'category' => $category
));
}
public function feedbackAction() {
return $this->render('SuperjobsHomeBundle:Main:feedback.html.twig');
}
public function contactAction() {
return $this->render('SuperjobsHomeBundle:Main:contact.html.twig');
}
public function faqAction() {
return $this->render('SuperjobsHomeBundle:Main:faq.html.twig');
}
public function pressAction() {
return $this->render('SuperjobsHomeBundle:Main:press.html.twig');
}
public function cguAction() {
return $this->render('SuperjobsHomeBundle:Main:cgu.html.twig');
}
public function aboutAction() {
return $this->render('SuperjobsHomeBundle:Main:about.html.twig');
}
function detailsAction($id, Request $request) {
$id = $request->query->get('tag');
$job = $this->getDoctrine()->getRepository("SuperjobsHomeBundle:Jobs")->findOneBy(array('id' => $id));
$CVtheque = new CVtheque();
$form = $this->createForm(new CVthequeType(), $CVtheque);
return $this->render('SuperjobsHomeBundle:Main:details.html.twig', array(
'job' => $job,
'form' => $form->createView(),
));
}
function searchEngineAction($pattern, Request $request) {
if ($pattern == "all")
$pattern = "";
$Jobs = $this->get("superjobs_search_engine")->searchExpress($pattern);
return $this->render('SuperjobsHomeBundle:SearchEngine:searchResults.html.twig', array(
'Jobs' => $Jobs
));
}
}
| anderson-abc/Superjobs | src/Superjobs/HomeBundle/Controller/MainController.php | PHP | mit | 2,833 |
local module = {}
function module.ctor(env,loader)
env.loader = loader
end
return module
| gsmake/gsmake | lib/gsmake/gsmake/sandbox/loader.lua | Lua | mit | 100 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.0 / metacoq - 1.0~beta1+8.11</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq
<small>
1.0~beta1+8.11
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-10-28 09:54:59 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-28 09:54:59 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
"Cyril Cohen <[email protected]>"
"Yannick Forster <[email protected]>"
"Fabian Kunze <[email protected]>"
"Gregory Malecha <[email protected]>"
"Matthieu Sozeau <[email protected]>"
"Nicolas Tabareau <[email protected]>"
"Théo Winterhalter <[email protected]>"
]
license: "MIT"
depends: [
"ocaml" {>= "4.07.1"}
"coq" {>= "8.11" & < "8.12~"}
"coq-metacoq-template" {= version}
"coq-metacoq-checker" {= version}
"coq-metacoq-pcuic" {= version}
"coq-metacoq-safechecker" {= version}
"coq-metacoq-erasure" {= version}
"coq-metacoq-translations" {= version}
]
synopsis: "A meta-programming framework for Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
The meta-package includes the template-coq library, unverified checker for Coq,
PCUIC development including a verified translation from Coq to PCUIC,
safe checker and erasure for PCUIC and example translations.
See individual packages for more detailed descriptions.
"""
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-beta1-8.11.tar.gz"
checksum: "sha256=1644c5bd9d02385c802535c6c46dbcaf279afcecd4ffb3da5fae08618c628c75"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq.1.0~beta1+8.11 coq.8.11.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.0).
The following dependencies couldn't be met:
- coq-metacoq -> ocaml >= 4.07.1
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq.1.0~beta1+8.11</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/metacoq/1.0~beta1+8.11.html | HTML | mit | 7,589 |
MIT License
===========
Copyright (c) 2017 Arne Bakkebø
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. | makingwaves/mirrorjson | LICENSE.md | Markdown | mit | 1,081 |
<?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Service;
use BjyAuthorize\View\UnauthorizedStrategy;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* Factory responsible of instantiating {@see \BjyAuthorize\View\UnauthorizedStrategy}
*
* @author Marco Pivetta <[email protected]>
*/
class UnauthorizedStrategyServiceFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
return new UnauthorizedStrategy($container->get('BjyAuthorize\Config')['template']);
}
/**
* {@inheritDoc}
*
* @return \BjyAuthorize\View\UnauthorizedStrategy
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
return $this($serviceLocator, UnauthorizedStrategy::class);
}
}
| JohnPaulConcierge/BjyAuthorize | src/BjyAuthorize/Service/UnauthorizedStrategyServiceFactory.php | PHP | mit | 1,135 |
require 'spec_helper'
describe Micropost do
let(:user) { FactoryGirl.create(:user) }
before { @micropost = user.microposts.build(content: "Lorem ipsum") }
subject { @micropost }
it { should respond_to(:content) }
it { should respond_to(:user_id) }
it { should respond_to(:user) }
its(:user) { should eq user }
it { should be_valid }
describe "when user_id is not present" do
before { @micropost.user_id = nil }
it { should_not be_valid }
end
end | prank7/jsTwitter | spec/models/micropost_spec.rb | Ruby | mit | 480 |
//
// ViewController.h
// DSCrashDemo
//
// Created by dasheng on 16/4/11.
// Copyright © 2016年 dasheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| walkdianzi/DSCrashDemo | DSCrashDemo/DSCrashDemo/ViewController.h | C | mit | 215 |
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=1068
| andrewdefries/ToxCast | Figure4/FDA_Pesticides/PCID_1068.html | HTML | mit | 62 |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\FujiFilm;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class Face7Name extends AbstractTag
{
protected $Id = 'Face7Name';
protected $Name = 'Face7Name';
protected $FullName = 'FujiFilm::FaceRecInfo';
protected $GroupName = 'FujiFilm';
protected $g0 = 'MakerNotes';
protected $g1 = 'FujiFilm';
protected $g2 = 'Image';
protected $Type = '?';
protected $Writable = false;
protected $Description = 'Face 7 Name';
protected $flag_Permanent = true;
}
| romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/FujiFilm/Face7Name.php | PHP | mit | 840 |
var gulp = require('gulp'),
concat = require('gulp-concat'),
compass = require('gulp-compass'),
notify = require('gulp-notify');
function swallowError(error) {
this.emit('end');
}
function reportError(error) {
notify.onError().apply(this, arguments);
this.emit('end');
}
// combine js into single file
//===========================================
gulp.task('scripts', function() {
gulp.src([
'./src/js/lib/jquery.min.js',
'./src/js/lib/cssbeautify.js',
'./src/js/lib/specificity.js',
'./src/js/lib/tablesorter.js',
'./src/js/local/helpers.js',
// './src/js/local/syntax-highlight.js',
'./src/js/local/build-html.js',
// './src/js/local/build-specificity.js',
'./src/js/local/button-control.js',
// './src/js/local/css-highlight.js',
'./src/js/local/tabs.js'
])
.pipe(concat('smprof.js'))
.pipe(gulp.dest('./ext/js/'))
});
// compass: compile sass to css
//===========================================
gulp.task('compass', function() {
gulp.src('./assets/sass/*.scss')
.pipe(compass({
config_file: './config.rb',
css: './ext/css/',
sass: './assets/sass'
}))
.on('error', reportError);
});
// watch: monitor html and static assets updates
//===========================================
gulp.task('watch', function() {
// watch task for sass
gulp.watch('./assets/sass/**/*.scss', ['compass']);
gulp.watch('./src/js/**/*.js', ['scripts']);
});
// Default Gulp Task
//===========================================
gulp.task('default', ['compass', 'scripts', 'watch']); | jalvarado91/searchMyProf | gulpfile.js | JavaScript | mit | 1,611 |
import { CustomVirtualAudioNodeFactory, VirtualAudioNode } from "../types";
export default abstract class VirtualAudioNodeBase {
public readonly node!: string | CustomVirtualAudioNodeFactory;
public cannotUpdateInPlace(newVirtualAudioNode: VirtualAudioNode): boolean {
return newVirtualAudioNode.node !== this.node;
}
}
| benji6/virtual-audio-graph | src/VirtualAudioNodes/VirtualAudioNodeBase.ts | TypeScript | mit | 332 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
from __future__ import absolute_import
from math import acos, cos, pi, radians, sin, sqrt
import auttitude as at
import numpy as np
def normalized_cross(a, b):
"""
Returns the normalized cross product between vectors.
Uses numpy.cross().
Parameters:
a: First vector.
b: Second vector.
"""
c = np.cross(a, b)
length = sqrt(c.dot(c))
return c/length if length > 0 else c
def general_plane_intersection(n_a, da, n_b, db):
"""
Returns a point and direction vector for the line of intersection
of two planes in space, or None if planes are parallel.
Parameters:
n_a: Normal vector to plane A
da: Point of plane A
n_b: Normal vector to plane B
db: Point of plane B
"""
# https://en.wikipedia.org/wiki/Intersection_curve
n_a = np.array(n_a)
n_b = np.array(n_b)
da = np.array(da)
db = np.array(db)
l_v = np.cross(n_a, n_b)
norm_l = sqrt(np.dot(l_v, l_v))
if norm_l == 0:
return None
else:
l_v /= norm_l
aa = np.dot(n_a, n_a)
bb = np.dot(n_b, n_b)
ab = np.dot(n_a, n_b)
d_ = 1./(aa*bb - ab*ab)
l_0 = (da*bb - db*ab)*d_*n_a + (db*aa - da*ab)*d_*n_b
return l_v, l_0
def small_circle_intersection(axis_a, angle_a, axis_b, angle_b):
"""
Finds the intersection between two small-circles returning zero, one or two
solutions as tuple.
Parameters:
axis_a: Vector defining first circle axis
angle_a: Small circle aperture angle (in radians) around axis_a
axis_b: Vector defining second circle axis
angle_b: Small circle aperture angle (in radians) around axis_b
"""
line = general_plane_intersection(axis_a, cos(angle_a),
axis_b, cos(angle_b))
if line is None:
return ()
l_v, l_0 = line
# https://en.wikipedia.org/wiki/Line%E2%80%93sphere_intersection
b = 2*l_v.dot(l_0)
delta = b*b - 4*(l_0.dot(l_0) - 1)
# Should the answers be normalized?
if delta < 0:
return ()
elif delta == 0:
return -b/2.,
else:
sqrt_delta = sqrt(delta)
return l_0 + l_v*(-b - sqrt_delta)/2., l_0 + l_v*(-b + sqrt_delta)/2.
def build_rotation_matrix(azim, plng, rake):
"""
Returns the rotation matrix that rotates the North vector to the line given
by Azimuth and Plunge and East and Up vectors are rotate clock-wise by Rake
around the rotated North vector.
Parameters:
azim: Line Azimuth from North (degrees).
plng: Line Plunge measured from horizontal (degrees).
rake: Rotation angle around rotated axis (degrees).
"""
# pylint: disable=bad-whitespace
azim, plng, rake = radians(azim), radians(plng), radians(rake)
R1 = np.array((( cos(rake), 0., sin(rake)),
( 0., 1., 0. ),
(-sin(rake), 0., cos(rake))))
R2 = np.array((( 1., 0., 0. ),
( 0., cos(plng), sin(plng)),
( 0., -sin(plng), cos(plng))))
R3 = np.array((( cos(azim), sin(azim), 0. ),
(-sin(azim), cos(azim), 0. ),
( 0., 0., 1. )))
return R3.dot(R2).dot(R1)
def adjust_lines_to_planes(lines, planes):
"""
Project each given line to it's respective plane. Returns the projected
lines as a new LineSet and the angle (in radians) between each line and
plane prior to projection.
Parameters:
lines: A LineSet like object with an array of n Lines
planes: A PlaseSet like object with an array of n Planes
"""
lines = at.LineSet(lines)
planes = at.PlaneSet(planes)
angles = np.zeros(len(lines))
adjusted_lines = np.zeros_like(lines)
for i, (line, plane) in enumerate(zip(lines, planes)):
cos_theta = np.dot(line, plane)
angles[i] = pi/2. - acos(cos_theta)
adjusted_line = line - line*cos_theta
adjusted_lines[i] = adjusted_line/sqrt(np.dot(adjusted_line,
adjusted_line))
return adjusted_lines, angles
| endarthur/autti | auttitude/math.py | Python | mit | 4,348 |
#!/usr/bin/env bash
set -e
function hr {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
while getopts ":u" opt; do
case $opt in
u)
docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; }
hr
echo 'Pulled the GenAMap docker image'
hr
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
if [ ! -d ./mongodbpath ]; then
mkdir mongodbpath
fi
if [ ! -d ./postgresdbpath ]; then
mkdir postgresdbpath
fi
# Run MongoDB Container
m_name="genamap_mongo"
if ! docker ps --format "{{.Names}}"| grep -q ${m_name}; then
if ! docker ps -a --format "{{.Names}}"| grep -q ${m_name}; then
docker run -v "$(pwd)/mongodbpath":/data -p 27017:27017 --name ${m_name} -d mongo mongod --smallfiles \
|| { echo 'starting mongo failed' >&2; exit 1; }
else
docker start ${m_name} || { echo "starting mongo failed" >&2; exit 1; }
fi
hr
echo "MongoDB container has been successfully launched!"
hr
else
hr
echo "MongoDB container is already running..."
hr
fi
# Run PostgresSQL container
p_name="genamap_postgres"
if ! docker ps --format "{{.Names}}"| grep -q ${p_name}; then
if ! docker ps -a --format "{{.Names}}"| grep -q ${p_name}; then
docker run --name ${p_name} -p 5432:5432 -v "$(pwd)/postgresdbpath":/var/lib/postgresql/data \
-e POSTGRES_PASSWORD='!!GeNaMaPnew00' -e POSTGRES_USER='postgres' -d postgres \
|| { echo "starting postgres failed" >&2; exit 1; }
else
docker start ${p_name} || { echo "starting postgres failed" >&2; exit 1; }
fi
hr
echo "PostgreSQL container has been successfully launched!"
hr
else
hr
echo "PostgreSQL container is already running..."
hr
fi
# Enter the GenAMap container
g_name="genamap_development_server"
hr
echo "Entering the GenAMap development server container..."
hr
echo $1
echo $2
#docker run -ti -p 3000:3000 -p 3001:3001 --name ${g_name} --link ${m_name}:mongo --link ${p_name}:postgres \
# -w /usr/src/genamap \-v ${PWD}/../src/:/usr/src/genamap -v $1:/usr/src/genamap2 -v $2:/usr/src/genamap3 blengerich/genamap
if ! docker ps --format "{{.Names}}" | grep -q ${g_name}; then
if docker ps -a --format "{{.Names}}"| grep -q ${g_name}; then
docker start ${g_name} \
|| { echo "starting genamap failed" >&2; exit 1; }
docker exec -it ${g_name} bash \
|| { echo "starting genamap failed" >&2; exit 1; }
else
docker run -ti -p 3000:3000 -p 3001:3001 --name ${g_name} --link ${m_name}:mongo --link ${p_name}:postgres \
-w /usr/src/genamap \-v ${PWD}/../src/:/usr/src/genamap -v $1:/usr/src/genamap_data -v $2:/usr/src/genamap_config blengerich/genamap \
|| { echo "starting genamap failed" >&2; exit 1; }
fi
else
docker exec -it ${g_name} bash
fi
| blengerich/GenAMap | scripts/dev_genamap.sh | Shell | mit | 2,991 |
c ----------------------------------------------------------------------
c
c Gaussian wake model applied to offshore wind farms (WindFarm object)
c by Juan P. Murcia <[email protected]>
c
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c ----------------------------------------------------------------------
c ----------------------------------------------------------------------
c get_RW(x,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the wake radius at a location
c
c Inputs
c ----------
c x (float): Distance between turbines in the stream-wise direction
c D (float): Wind turbine diameter
c CT (float): Outputs WindTurbine object's thrust coefficient
c ks (float): Wake (linear) expansion coefficient
c
c Outputs
c ----------
c Rw (float): Wake radius at a location
subroutine get_RW(n,x,D,CT,RW,ks)
implicit none
integer :: n
real(kind=8) :: x(n),D,CT,RW(n),ks
cf2py integer intent(hide),depend(x) :: n=len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in) :: D,CT
cf2py real(kind=8) optional,intent(in) :: ks = 0.030
cf2py real(kind=8) intent(out), depend(n),dimension(n) :: RW
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i
real(kind=8) :: Area,a,k
Area=pi*D*D/4.0d0
! axial velocity deficit at rotor disc
a=(1.0d0-(sqrt(1.0d0-CT)))/2.0d0
! Near wake expansion ratio: k = D0/D from momentum balance
k=sqrt((1.0d0-a)/(1.0d0-2.0d0*a))
do i = 1, n
! Linear wake expansion:
! RW is defined as the sigma of the Gaussian wake deficit
RW(i)=0.2d0*k*D + ks*x(i)
end do
end subroutine get_RW
c ----------------------------------------------------------------------
c get_dU(x,r,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the wake velocity deficit at a location
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x (float): Distance between turbines in the stream-wise direction
c r (array): Radial distance between the turbine and the location
c D (float): Wind turbine diameter
c ks (float): Wake (linear) expansion coefficient [-]
c CT (float): Outputs WindTurbine object's thrust coefficient
c
c Outputs
c ----------
c dU (float): Wake velocity deficit at a location normalized
c by rotor averaged (equivalent) inflow velocity
subroutine get_dU(n,x,r,D,CT,ks,dU)
implicit none
integer :: n
real(kind=8) :: x(n),r(n),D,CT,ks,dU(n)
cf2py integer intent(hide),depend(x) :: n=len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: r
cf2py real(kind=8) intent(in) :: D,CT,ks
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: dU
! internal variables
integer :: i
real(kind=8), dimension(n) :: RW, tm0, tm10,tm20
call get_RW(n,x,D,CT,RW,ks)
do i = 1, n
tm0(i) = (RW(i)/D)**(2.0d0)
if ( (x(i)<=2.d0*D).or.(1.0d0<=(CT/(8.0d0*tm0(i)))) ) then
! Null wake radius for locations in front of the rotor disc
dU(i) = 0.0d0
else
tm10(i)=1.0d0 - ( (1.0d0 - (CT/(8.0d0*tm0(i))))**(0.5d0) )
tm20(i)=exp(-(1.0d0/(2.0d0*tm0(i)))*((r(i)/D)**(2.0d0)))
dU(i)=-tm10(i)*tm20(i)
end if
end do
end subroutine get_dU
c ----------------------------------------------------------------------
c get_dUeq(x,y,z,DT,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the rotor averaged (equivalent) wake velocity deficit at
c different turbine locations and diameters
c
c Inputs
c ----------
c x (array): Distance between turbines in the stream-wise direction
c y (array): Distance between turbines in the cross-flow direction
c z (array): Distance between turbines in the vertical direction
c DT (array): Wake operating turbines diameter
c D (float): Wake generating turbine diameter
c ks (float): Wake (linear) expansion coefficient [-]
c CT (float): Outputs WindTurbine object's thrust coefficient
c Ng (int): Polynomial order for Gauss-Legendre quadrature integration
c in both radial and angular positions
c
c Outputs
c ----------
c dUeq (float): Wake velocity deficit at a location normalized by
c inflow velocity
subroutine get_dUeq(n,x,y,z,DT,D,CT,ks,Ng,dUeq)
implicit none
integer :: n,Ng
real(kind=8) :: x(n),y(n),z(n),DT(n),D,CT,ks
real(kind=8) :: dUeq(n)
cf2py integer intent(hide),depend(x) :: n = len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: y,z,DT
cf2py real(kind=8) intent(in) :: D,CT,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: dUeq
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j,k
real(kind=8) :: tm1,tm2,tm3,tm4
real(kind=8), dimension(Ng) :: root,weight,r_pr,th_pr
real(kind=8), dimension(1) :: x_e,r_e,dU
real(kind=8), dimension(n) :: RT,r_R,th_R
RT = DT/2.0d0
! Gauss-Legendre quadrature points and weights
select case (ng)
case ( 4 )
root(1) = -0.3399810435848563d0
root(2) = 0.3399810435848563d0
root(3) = -0.8611363115940526d0
root(4) = 0.8611363115940526d0
weight(1) = 0.6521451548625461d0
weight(2) = 0.6521451548625461d0
weight(3) = 0.3478548451374538d0
weight(4) = 0.3478548451374538d0
case (5)
root(1) = 0.0000000000000000d0
root(2) = -0.5384693101056831d0
root(3) = 0.5384693101056831d0
root(4) = -0.9061798459386640d0
root(5) = 0.9061798459386640d0
weight(1) = 0.5688888888888889d0
weight(2) = 0.4786286704993665d0
weight(3) = 0.4786286704993665d0
weight(4) = 0.2369268850561891d0
weight(5) = 0.2369268850561891d0
case (6)
root(1) = 0.6612093864662645d0
root(2) = -0.6612093864662645d0
root(3) = -0.2386191860831969d0
root(4) = 0.2386191860831969d0
root(5) = -0.9324695142031521d0
root(6) = 0.9324695142031521d0
weight(1) = 0.3607615730481386d0
weight(2) = 0.3607615730481386d0
weight(3) = 0.4679139345726910d0
weight(4) = 0.4679139345726910d0
weight(5) = 0.1713244923791704d0
weight(6) = 0.1713244923791704d0
case (7)
root(1) = 0.0000000000000000d0
root(2) = 0.4058451513773972d0
root(3) = -0.4058451513773972d0
root(4) = -0.7415311855993945d0
root(5) = 0.7415311855993945d0
root(6) = -0.9491079123427585d0
root(7) = 0.9491079123427585d0
weight(1) = 0.4179591836734694d0
weight(2) = 0.3818300505051189d0
weight(3) = 0.3818300505051189d0
weight(4) = 0.2797053914892766d0
weight(5) = 0.2797053914892766d0
weight(6) = 0.1294849661688697d0
weight(7) = 0.1294849661688697d0
case ( 8 )
root(1) = -0.960289856497536d0
root(2) = -0.796666477413627d0
root(3) = -0.525532409916329d0
root(4) = -0.183434642495650d0
root(5) = 0.183434642495650d0
root(6) = 0.525532409916329d0
root(7) = 0.796666477413627d0
root(8) = 0.960289856497536d0
weight(1) = 0.101228536290374d0
weight(2) = 0.222381034453375d0
weight(3) = 0.313706645877888d0
weight(4) = 0.362683783378363d0
weight(5) = 0.362683783378363d0
weight(6) = 0.313706645877888d0
weight(7) = 0.222381034453375d0
weight(8) = 0.101228536290374d0
end select
! Location of the turbines in wake coordinates
r_R = (y**(2.0d0) + z**(2.0d0))**(0.5d0)
th_R = modulo(atan2(z,y),2.0d0*pi)
do i = 1, n
dUeq(i) = 0.0d0
if (x(i) > 0.0) then
! Location of evaluation points in the local rotor coordinates
r_pr = RT(i)*(root+1d0)/2.0d0!uniform in [0, RT]
!th_pr = pi*(root+1d0) !uniform in [0,2*pi]
th_pr = pi*(root+1d0)-pi/2.d0 !uniform in [-pi/2,3/2*pi]
! Location of evaluation points in wake coordinates
! Evaluation of wake and sum of quadrature
do j = 1, Ng
do k = 1, Ng
x_e = x(i)
tm1 = (r_R(i))**(2.0d0)
tm2 = (r_pr(k))**(2.0d0)
tm3 = 2d0*r_R(i)*r_pr(k)*cos(th_R(i) - th_pr(j))
r_e = sqrt( tm1+tm2+tm3)
call get_dU(1,x_e,r_e,D,CT,ks,dU)
tm4 = weight(j)*weight(k)*dU(1)*(root(k)+1d0)/4d0
dUeq(i)=dUeq(i)+tm4
end do
end do
end if
end do
end subroutine get_dUeq
c ----------------------------------------------------------------------
c gau_s(x,y,z,DT,P_c,CT_c,WS,ks)
c ----------------------------------------------------------------------
c SINGLE FLOW CASE
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (float): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (float): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (float): Wake (linear) expansion coefficient [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,Ng,rho,
&WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,Ng
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),WS,WD,ks
real(kind=8) :: rho,WS_CI(n),WS_CO(n),CT_idle(n),P(n),T(n),U(n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in) :: WS,WD,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: P,T,U
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j,k,nDownstream(n),idT(n)
real(kind=8) :: x(n),y(n),z(n),D,CT,dUeq(n),angle
real(kind=8) :: x_l(n,n),y_l(n,n)
! Rotates the global coordinates to local flow coordinates
angle = pi*(270.0d0-WD)/180.0d0
do i=1,n
do j=1,n
x_l(i,j) = cos(angle)*x_g(i,j)+sin(angle)*y_g(i,j)
y_l(i,j) = -sin(angle)*x_g(i,j)+cos(angle)*y_g(i,j)
end do
! counts the number of turbines in front of turbine
nDownstream(i) = count(x_l(i,:).lt.0)
end do
! Indexes of ordered turbines from most upstream turbine
call order_id(n,nDownstream,idT)
! Initializes the rotor averaged (equivalent) velocity
U = WS
! Computes the rotor averaged (equivalent) velocity deficit
do j=1,n
i=idT(j)
x = x_l(i,:)
y = y_l(i,:)
z = z_g(i,:)
D = DT(i)
if ((U(i) >= WS_CI(i)).and.(U(i) <= WS_CO(i))) then
call interp_l(CT_c(i,:,1),CT_c(i,:,2),nCT,U(i),CT)
else
CT = CT_idle(i)
end if
call get_dUeq(n,x,y,z,DT,D,CT,ks,Ng,dUeq)
U = U + U(i)*dUeq
end do
! Calculates the power and thrust
do k=1,n
if ((U(k) >= WS_CI(k)).and.(U(k) <= WS_CO(k))) then
call interp_l(P_c(k,:,1),P_c(k,:,2),nP,U(k),P(k))
call interp_l(CT_c(k,:,1),CT_c(k,:,2),nCT,U(k),CT)
else
P(k)=0.0d0
CT = CT_idle(k)
end if
T(k) = CT*0.5d0*rho*U(k)*U(k)*pi*DT(k)*DT(k)/4.0d0
end do
end subroutine gau_s
c ----------------------------------------------------------------------
c gau(x,y,z,DT,P_c,CT_c,WS,WD,ks)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,
&Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,WD,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i
do i=1,nF
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD(i),ks(i),
& Ng,rho,WS_CI,WS_CO,CT_idle,P(i,:),T(i,:),U(i,:))
end do
end subroutine gau
c ----------------------------------------------------------------------
c gau_av(x,y,z,DT,P_c,CT_c,WS,WD,ks,AV)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES with wt available
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c AV (array): Wind turbine available per flow [nF,n]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_av(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,AV,
&Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,AV(nf,n)
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,WD,ks
cf2py integer intent(in),dimension(nF,n) :: AV
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i,j
real(kind=8) :: CT_c_AV(n,nCT,2), P_c_AV(n,nCT,2)
do i=1,nF
CT_c_AV = CT_c
P_c_AV = P_c
! Re-defines the trust curve for non available turbines
do j=1,n
if (AV(i,j)==0) then
CT_c_AV(j,:,2) = CT_idle(j)
P_c_AV(j,:,2) = 0.0d0
end if
end do
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c_AV,CT_c_AV,WS(i),WD(i),
& ks(i),Ng,rho,WS_CI,WS_CO,CT_idle,P(i,:),T(i,:),U(i,:))
end do
end subroutine gau_av
c ----------------------------------------------------------------------
c gau_GA(x,y,z,DT,P_c,CT_c,WS,WD,ks,STD_WD,Nga)
c ----------------------------------------------------------------------
c GAUSSIAN AVERAGE
c Gauss-Hermite quadrature for normally distributed wind direction
c uncertainty (inside Reynolds averaging time), for a global/unique wind
c direction uncertainty
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c STD_WD(array): Standard deviation of wind direction uncertainty
c Nga (int): Number of quadrature points for Gaussian averaging
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_GA(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,
&ks,STD_WD,Nga,Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,Nga
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks,STD_WD
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,ks,WD,STD_WD
cf2py integer optional,intent(in) :: Nga = 4
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j
real(kind=8) :: WD_aux
real(kind=8), dimension(n) :: P_aux,T_aux,U_aux
real(kind=8), dimension(Nga) :: root,weight
! Gauss-Hermite quadrature points and weights
select case (Nga)
case ( 1 )
root(1) = 0.0d0
weight(1) = sqrt(pi)
case ( 4 )
root(1) = -1.650680123885785d0
root(2) = -0.524647623275290d0
root(3) = 0.524647623275290d0
root(4) = 1.650680123885785d0
weight(1) = 0.081312835447245d0
weight(2) = 0.804914090005513d0
weight(3) = 0.804914090005513d0
weight(4) = 0.081312835447245d0
case ( 5 )
root(1) = -2.020182870456086d0
root(2) = -0.958572464613819d0
root(3) = 0.000000000000000d0
root(4) = 0.958572464613819d0
root(5) = 2.020182870456086d0
weight(1) = 0.019953242059046d0
weight(2) = 0.393619323152241d0
weight(3) = 0.945308720482942d0
weight(4) = 0.393619323152241d0
weight(5) = 0.019953242059046d0
case ( 6 )
root(1) = -2.350604973674492d0
root(2) = -1.335849074013697d0
root(3) = -0.436077411927617d0
root(4) = 0.436077411927617d0
root(5) = 1.335849074013697d0
root(6) = 2.350604973674492d0
weight(1) = 0.004530009905509d0
weight(2) = 0.157067320322856d0
weight(3) = 0.724629595224392d0
weight(4) = 0.724629595224392d0
weight(5) = 0.157067320322856d0
weight(6) = 0.004530009905509d0
case ( 7 )
root(1) = -2.651961356835233d0
root(2) = -1.673551628767471d0
root(3) = -0.816287882858965d0
root(4) = 0.000000000000000d0
root(5) = 0.816287882858965d0
root(6) = 1.673551628767471d0
root(7) = 2.651961356835233d0
weight(1) = 0.000971781245100d0
weight(2) = 0.054515582819127d0
weight(3) = 0.425607252610128d0
weight(4) = 0.810264617556807d0
weight(5) = 0.425607252610128d0
weight(6) = 0.054515582819127d0
weight(7) = 0.000971781245100d0
case ( 8 )
root(1) = -2.930637420257244d0
root(2) = -1.981656756695843d0
root(3) = -1.157193712446780d0
root(4) = -0.381186990207322d0
root(5) = 0.381186990207322d0
root(6) = 1.157193712446780d0
root(7) = 1.981656756695843d0
root(8) = 2.930637420257244d0
weight(1) = 0.000199604072211d0
weight(2) = 0.017077983007413d0
weight(3) = 0.207802325814892d0
weight(4) = 0.661147012558241d0
weight(5) = 0.661147012558241d0
weight(6) = 0.207802325814892d0
weight(7) = 0.017077983007413d0
weight(8) = 0.000199604072211d0
end select
do i=1,nF
P(i,:)=0.0d0
T(i,:)=0.0d0
U(i,:)=0.0d0
do j=1,Nga
WD_aux = WD(i)+sqrt(2.0d0)*STD_WD(i)*root(j)
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD_aux,
& ks(i),Ng,rho,WS_CI,WS_CO,CT_idle,P_aux,T_aux,U_aux)
P(i,:)=P(i,:)+weight(j)*P_aux*(1.0d0/sqrt(pi))
T(i,:)=T(i,:)+weight(j)*T_aux*(1.0d0/sqrt(pi))
U(i,:)=U(i,:)+weight(j)*U_aux*(1.0d0/sqrt(pi))
end do
end do
end subroutine gau_GA
c ----------------------------------------------------------------------
c gau_mult_wd(x,y,z,DT,P_c,CT_c,WS,WD,ks)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES with individual wind direction for each turbine
c and optional individual Gaussian averaging
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_mult_wd(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,
&ks,STD_WD,Nga,Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,Nga
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,ks
real(kind=8),dimension(nF,n) :: WD,STD_WD
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,ks
cf2py real(kind=8) intent(in),dimension(nF,n) :: WD
cf2py real(kind=8) optional,intent(in),dimension(nF,n) :: STD_WD = 0.0
cf2py integer optional intent(in) :: Nga = 1
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i,j
real(kind=8), dimension(n) :: P_aux,T_aux,U_aux
do j=1,n
do i=1,nF
call gau_GA(n,nP,nCT,1,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD(i,j),
&ks(i),STD_WD(i,j),Nga,Ng,rho,
&WS_CI,WS_CO,CT_idle,P_aux,T_aux,U_aux)
P(i,j)=P_aux(j)
T(i,j)=T_aux(j)
U(i,j)=U_aux(j)
end do
end do
end subroutine gau_mult_wd
c ----------------------------------------------------------------------
c Additional routines
c ----------------------------------------------------------------------
c ----------------------------------------------------------------------
c Find the lower location index of a point in an ordered array
c ----------------------------------------------------------------------
subroutine loc_in_list(n,xa,x,j)
implicit none
integer j,n
real(kind=8) x,xa(n)
cf2py integer intent(hide),depend(xa) :: n = len(xa)
cf2py real(kind=8) intent(in),dimension(n) :: xa
cf2py real(kind=8) intent(in) :: x
cf2py integer intent(out) :: j
! internal variables
integer j_low,j_mid,j_up
j_low=0
j_up=n+1
! bisecting loop
do while (j_up-j_low.gt.1)
j_mid=(j_up+j_low)/2
if((xa(n).ge.xa(1)).eqv.(x.ge.xa(j_mid)))then
j_low=j_mid
else
j_up=j_mid
end if
end do
! check for cases
if(x.eq.xa(1))then
j=1
else if(x.eq.xa(n))then
j=n-1
else
j=j_low
end if
end subroutine loc_in_list
c ----------------------------------------------------------------------
c Linear interpolation
c ----------------------------------------------------------------------
subroutine interp_l(xa,ya,n,x,y)
implicit none
integer n
real(kind=8) x,y,xa(n),ya(n)
cf2py integer intent(hide),depend(xa) :: n = len(xa)
cf2py real(kind=8) intent(in),dimension(n) :: xa
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: ya
cf2py real(kind=8) intent(in) :: x
cf2py real(kind=8) intent(out) :: y
! internal variables
integer j
call loc_in_list(n,xa,x,j)
y = ((ya(j+1)-ya(j))/(xa(j+1)-xa(j)))*(x-xa(j)) + ya(j)
end subroutine interp_l
c ----------------------------------------------------------------------
c Finds the index that order an array from lower to higher values
c only for integers
c
c Knuth, D. E. "Sorting and Searching, vol. 3 of The Art of Computer
c Programming, section 6.2. 2." (1997): 430-31.
c ----------------------------------------------------------------------
subroutine order_id(n,a,id)
integer n,a(n),id(n)
cf2py integer intent(hide),depend(a) :: n = len(a)
cf2py integer intent(in),dimension(n) :: a
cf2py integer intent(out),depend(n),dimension(n) :: id
! internal variables
integer i,j,inc,v,w
do i=1,n
id(i)=i
end do
! Determine starting increment
inc=1
do while (inc.le.n)
inc=3*inc+1
end do
! Partial sorts loop
do while (inc.gt.1)
inc=inc/3
do i=inc+1,n
v=a(i)
w=id(i)
j=i
do while (a(j-inc).gt.v)
a(j)=a(j-inc)
id(j)=id(j-inc)
j=j-inc
if(j.le.inc) exit
end do
a(j)=v
id(j)=w
end do
end do
end subroutine order_id
| DTUWindEnergy/FUSED-Wake | fusedwake/gau/fortran/GAU.f | FORTRAN | mit | 32,442 |
{% extends path+"/_layout-case-action.html" %}
{% block citizen_content %}
{{ data.nuggets | log }}
<p class="no-kdBar"><a href="javascript: history.go(-1)" class="link-back">Back</a></p>
<h1 class="heading-large mt10
">
<span class="heading-secondary">Mental state examination</span>
Insight</h1>
<div class="grid-row">
<div class="column-two-thirds">
<p>Things you should be assessing</p>
<ul class="list list-bullet">
<li>Insight</li>
<li>Awareness of danger</li>
</ul>
{% if data['lcwra']==='lcwra1'%}
{% elif data['lcwra']==='lcwra2' or data['lcwra']==='lcwra3' or data['lcwra']==='lcwra4' or data['lcwra']==='lcwra6' or data['lcwra']==='lcwra7' or data['lcwra']==='lcwra8' or data['lcwra']==='lcwra9' or data['lcwra']==='lcwra10' or data['lcwra']==='lcwra11' or data['lcwra']==='lcwra12' or data['lcwra']==='lcwra13' or data['lcwra']==='lcwra14' or data['lcwra']==='lcwra15' or data['lcwra']==='lcwra16' or data['lcwra']==='lcwra17' or data['lcwra']==='lcwra18' or data['lcwra']==='lcwra19' or data['lcwra']==='lcwra20'%}
<form action="mentalHealthAssessmentCurtail" method="POST" class="form">
{% else %}<form action="mentalHealthAssessment" method="POST" class="form">{% endif %}
<div class="form-group">
<label class="form-label-bold" for="mh-insight">Observation</label>
<textarea class="form-control form-control-3-4" name="mhinsight" id="mh-insight" rows="8">{{mhinsight}}</textarea>
</div>
<input type="submit" class="button" value="Save">
<div class="multiple-choice" style="display:none">
<input id="radio-inline-4" type="radio" name="Insight" value="Insight" checked>
<label for="radio-4">hidden radio one</label>
</div>
</form>
</div><!-- column -->
</div><!-- row -->
{% endblock %}
{% block footer_top %}
{% endblock %}
{% block page_scripts %}
{% endblock %}
| dwpdigitaltech/healthanddisability | app/views/fha/v8/assessment/evidence/mh-insight.html | HTML | mit | 1,924 |
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% for column in widget.columns %}
<span class="icon-admin {{ column }}"></span>
{% endfor %}
<br/>
{% include "django/forms/widgets/input.html" %} {{ widget.label }}</label> | Blueshoe/djangocms-layouter | layouter/templates/layouter/radio_option.html | HTML | mit | 245 |
# frozen_string_literal: true
require 'spec_helper'
module Pathway
describe Result do
describe ".success" do
let(:result) { Result.success("VALUE") }
it "returns a Success object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).to eq("VALUE")
end
end
describe ".failure" do
let(:result) { Result.failure("ERROR!") }
it "returns a Failure object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Failure)
expect(result.error).to eq("ERROR!")
end
end
describe ".result" do
let(:result) { Result.result(object) }
context "when passing a Result object" do
let(:object) { Result.failure(:something_went_wrong) }
it "returns the object itsef" do
expect(result).to eq(object)
end
end
context "when passing a regular object" do
let(:object) { "SOME VALUE" }
it "returns the object wrapped in a result", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).to eq("SOME VALUE")
end
end
end
context "when is a success" do
subject(:prev_result) { Result.success("VALUE") }
describe "#success?" do
it { expect(prev_result.success?).to be true }
end
describe "#failure?" do
it { expect(prev_result.failure?).to be false }
end
describe "#then" do
let(:callable) { double }
let(:next_result) { Result.success("NEW VALUE")}
before { expect(callable).to receive(:call).with("VALUE").and_return(next_result) }
it "if a block is given it executes it and returns the new result" do
expect(prev_result.then { |prev| callable.call(prev) }).to eq(next_result)
end
it "if a callable is given it executes it and returns the new result" do
expect(prev_result.then(callable)).to eq(next_result)
end
end
describe "#tee" do
let(:callable) { double }
let(:next_result) { Result.success("NEW VALUE")}
before { expect(callable).to receive(:call).with("VALUE").and_return(next_result) }
it "if a block is given it executes it and keeps the previous result" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
context "when a block wich returns an unwrapped result is given" do
let(:next_result) { "NEW VALUE" }
it "it executes it and keeps the previous result" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
end
it "if a callable is given it executes it and keeps the previous result" do
expect(prev_result.tee(callable)).to eq(prev_result)
end
end
end
context "when is a failure" do
subject(:prev_result) { Result.failure(:something_wrong) }
describe "#success?" do
it { expect(prev_result.success?).to be false }
end
describe "#failure?" do
it { expect(prev_result.failure?).to be true }
end
describe "#tee" do
let(:callable) { double }
before { expect(callable).to_not receive(:call) }
it "if a block is given it ignores it and returns itself" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
it "if a callable is given it ignores it and returns itself" do
expect(prev_result.tee(callable)).to eq(prev_result)
end
end
describe "#then" do
let(:callable) { double }
before { expect(callable).to_not receive(:call) }
it "if a block is given it ignores it and returns itself" do
expect(prev_result.then { |prev| callable.call(prev) }).to eq(prev_result)
end
it "if a callable is given it ignores it and returns itself" do
expect(prev_result.then(callable)).to eq(prev_result)
end
end
end
end
end
| pabloh/pathway | spec/result_spec.rb | Ruby | mit | 4,096 |
package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;
}
public void insertDB(Board2Vo vo){
SqlSession ss= FactoryService.getFatory().openSession(true);
ss.insert("board2.in_board",vo);
ss.close();
}
public List<Board2Vo> getList(){
SqlSession ss= FactoryService.getFatory().openSession();
List<Board2Vo> list=ss.selectList("board2.gList");
ss.close();
return list;
}
public Board2Vo view(int no){
SqlSession ss= FactoryService.getFatory().openSession();
Board2Vo vo =ss.selectOne("board2.view_board",no);
ss.close();
return vo;
}
// 댓글에 해당 되는 메소드
public void commin(Bbs_CommmVo vo){
SqlSession ss= FactoryService.getFatory().openSession(true);
ss.insert("board2.bbscomin",vo);
ss.close();
}
public List<Bbs_CommmVo> bbs_view(int no){
SqlSession ss= FactoryService.getFatory().openSession();
List<Bbs_CommmVo> list=ss.selectList("board2.comL",no);
ss.close();
return list;
}
public void replayInsert(Board2Vo vo){
System.out.println("LOG replayInsert 메소드 시작 ");
SqlSession ss= FactoryService.getFatory().openSession();
try {
ss.update("board2.replay_Update",vo);
System.out.println("LOG replayUpdate");
ss.insert("board2.replay_Insert",vo);
System.out.println("LOG replayInsert");
ss.commit();
} catch (Exception e) {
e.printStackTrace();
ss.rollback();
} finally{
ss.close();
System.out.println("LOG replayInsert 메소드 끝 ");
}
}
} | ByeongGi/Koata_Java | Jsp1012-13_struts2-04/src/dao/BoardDao2.java | Java | mit | 1,753 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.