diff --git a/.env.example b/.env.example index d4e0cc656..d612cf20d 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,25 @@ APP_ENV=local +APP_KEY= APP_DEBUG=true +APP_LOG_LEVEL=debug +APP_URL=http://lio.app -DB_HOST=localhost -DB_DATABASE=laravelio +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret +BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 @@ -17,13 +27,12 @@ MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null -NOCAPTCHA_SITEKEY= -NOCAPTCHA_SECRET= +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= + GITHUB_ID= GITHUB_SECRET= -GITHUB_URL= +GITHUB_URL=http://lio.app/auth/github -SNAPPY_ENABLED=false -SNAPPY_DEBUG=true -SNAPPY_EMBED_URL= -SNAPPY_DOMAIN= +AKISMET_API_KEY= diff --git a/.gitattributes b/.gitattributes index 212566614..a8763f8ef 100755 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ -* text=auto \ No newline at end of file +* text=auto +*.css linguist-vendored +*.scss linguist-vendored diff --git a/.gitignore b/.gitignore index 230669b94..1e4291576 100755 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,11 @@ -.DS_Store -.idea -/vendor /node_modules +/public/build +/public/fonts +/public/storage +/public/hot +/public/mix-manifest.json +/storage/*.key +/vendor +Homestead.json Homestead.yaml .env diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 000000000..0285f1790 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1 @@ +preset: laravel diff --git a/.travis.yml b/.travis.yml index 0d41f4cf2..c8a34b1c6 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,33 @@ language: php -php: - - 5.6 - - 7.0 - - hhvm +php: 7.1 sudo: false -before_script: +cache: + yarn: true + directories: + - node_modules + - vendor + +before_install: - composer self-update + - nvm install 6 + - npm install -g yarn + +before_script: - composer install --prefer-source --no-interaction --dev + - yarn install + - yarn production script: - vendor/bin/phpspec run --verbose + - vendor/bin/parallel-lint --exclude vendor . - vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml after_script: - vendor/bin/test-reporter -matrix: - allow_failures: - - php: 7.0 - - php: hhvm - addons: code_climate: repo_token: $CODE_CLIMATE_TOKEN diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 000000000..25e0fd1f4 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,44 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +require 'json' +require 'yaml' + +VAGRANTFILE_API_VERSION ||= "2" +confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__)) + +homesteadYamlPath = File.expand_path("Homestead.yaml", File.dirname(__FILE__)) +homesteadJsonPath = File.expand_path("Homestead.json", File.dirname(__FILE__)) +afterScriptPath = "after.sh" +aliasesPath = "aliases" + +require File.expand_path(confDir + '/scripts/homestead.rb') + +Vagrant.require_version '>= 1.9.0' + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + if File.exist? aliasesPath then + config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases" + config.vm.provision "shell" do |s| + s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases" + end + end + + if File.exist? homesteadYamlPath then + settings = YAML::load(File.read(homesteadYamlPath)) + elsif File.exist? homesteadJsonPath then + settings = JSON.parse(File.read(homesteadJsonPath)) + else + abort "Homestead settings file not found in #{confDir}" + end + + Homestead.configure(config, settings) + + if File.exist? afterScriptPath then + config.vm.provision "shell", path: afterScriptPath, privileged: false + end + + if defined? VagrantPlugins::HostsUpdater + config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] } + end +end diff --git a/app/Accounts/InvalidRoleException.php b/app/Accounts/InvalidRoleException.php deleted file mode 100644 index 78487a4c5..000000000 --- a/app/Accounts/InvalidRoleException.php +++ /dev/null @@ -1,4 +0,0 @@ - 'required', - ]; - - public function users() - { - $this->belongsToMany(User::class); - } -} diff --git a/app/Accounts/RoleRepository.php b/app/Accounts/RoleRepository.php deleted file mode 100644 index 7f2cacb60..000000000 --- a/app/Accounts/RoleRepository.php +++ /dev/null @@ -1,17 +0,0 @@ -model = $model; - } - - public function getRoleList() - { - return $this->model->lists('name', 'id'); - } -} diff --git a/app/Accounts/SendConfirmationEmail.php b/app/Accounts/SendConfirmationEmail.php deleted file mode 100644 index b0587d888..000000000 --- a/app/Accounts/SendConfirmationEmail.php +++ /dev/null @@ -1,45 +0,0 @@ -mailer = $mailer; - } - - /** - * Send a confirmation email to the user to verify his email address - * - * @param \Lio\Accounts\User $user - */ - public function send(User $user) - { - $this->mailer->send( - $this->view, - ['confirmationCode' => $user->confirmation_code], - function (Message $message) use ($user) { - $message->to($user->email); - $message->subject('Verify your email address for your Laravel.io account'); - } - ); - } -} diff --git a/app/Accounts/User.php b/app/Accounts/User.php deleted file mode 100644 index 538c49920..000000000 --- a/app/Accounts/User.php +++ /dev/null @@ -1,184 +0,0 @@ - 'unique:users,github_id,', - 'email' => 'required|email|unique:users,email,', - 'name' => 'required|alpha_num|unique:users,name,', - ]; - - private $rolesCache; - - public function roles() - { - return $this->belongsToMany(Role::class); - } - - public function getRoles() - { - if (! isset($this->rolesCache)) { - $this->rolesCache = $this->roles; - } - - return $this->rolesCache; - } - - public function isForumAdmin() - { - return $this->hasRole('manage_forum'); - } - - public function setRolesAttribute($roles) - { - $this->roles()->sync((array) $roles); - } - - public function hasRole($roleName) - { - return $this->hasRoles($roleName); - } - - public function hasRoles($roleNames = []) - { - $roleList = app(RoleRepository::class)->getRoleList(); - - foreach ((array) $roleNames as $allowedRole) { - // validate that the role exists - if (! $roleList->contains($allowedRole)) { - throw new InvalidRoleException("Unidentified role: {$allowedRole}"); - } - - // validate that the user has the role - if (! $this->roleCollectionHasRole($allowedRole)) { - return false; - } - } - - return true; - } - - private function roleCollectionHasRole($allowedRole) - { - $roles = $this->getRoles(); - - if (! $roles) { - return false; - } - - foreach ($roles as $role) { - if (strtolower($role->name) == strtolower($allowedRole)) { - return true; - } - } - - return false; - } - - // Forum - public function forumPosts() - { - return $this->hasMany('Lio\Comments\Comment', 'author_id')->where('type', '=', \Lio\Comments\Comment::TYPE_FORUM)->orderBy('created_at', 'desc'); - } - - public function forumThreads() - { - return $this->hasMany('Lio\Forum\Threads\Thread', 'author_id')->orderBy('created_at', 'desc'); - } - - public function forumReplies() - { - return $this->hasMany('Lio\Forum\Replies\Reply', 'author_id')->orderBy('created_at', 'desc'); - } - - public function mostRecentFiveForumPosts() - { - return $this->forumPosts()->take(5); - } - - public function getLatestThreadsPaginated($max = 5) - { - return $this->forumThreads()->paginate($max); - } - - public function getLatestRepliesPaginated($max = 5) - { - return $this->forumReplies()->with('thread')->paginate($max); - } - - public function hasCreatedAThreadRecently() - { - if ($thread = $this->forumThreads()->first()) { - return $thread->created_at->gte(new Carbon('10 minutes ago')); - } - - return false; - } - - /** - * @return bool - */ - public function isConfirmed() - { - return (bool) $this->confirmed; - } - - /** - * @return bool - */ - public function isBanned() - { - return (bool) $this->is_banned; - } - - /** - * Get the presenter class. - * - * @return string - */ - public function getPresenterClass() - { - return UserPresenter::class; - } -} diff --git a/app/Accounts/UserCreator.php b/app/Accounts/UserCreator.php deleted file mode 100644 index b383311c5..000000000 --- a/app/Accounts/UserCreator.php +++ /dev/null @@ -1,69 +0,0 @@ -users = $users; - $this->confirmation = $confirmation; - } - - public function create(UserCreatorListener $listener, $data, $validator = null) - { - // check the passed in validator - if ($validator && ! $validator->isValid()) { - return $listener->userValidationError($validator->getErrors()); - } - - return $this->createValidUserRecord($listener, $data); - } - - private function createValidUserRecord($listener, $data) - { - $user = $this->users->getNew($data); - - // Set a confirmation code for the user. He'll need to verify his email address - // with this code before he can use certain sections on the website. - $confirmationCode = Str::random(30); - - // We'll generate a new one if we find a user with the same code. - while ($this->users->getByConfirmationCode($confirmationCode) !== null) { - $confirmationCode = Str::random(30); - } - - $user->confirmation_code = $confirmationCode; - - // check the model validation - if (! $this->users->save($user)) { - return $listener->userValidationError($user->getErrors()); - } - - // Send a confirmation email to the user. - $this->confirmation->send($user); - - return $listener->userCreated($user); - } -} diff --git a/app/Accounts/UserCreatorListener.php b/app/Accounts/UserCreatorListener.php deleted file mode 100644 index a139eca82..000000000 --- a/app/Accounts/UserCreatorListener.php +++ /dev/null @@ -1,8 +0,0 @@ -roles; - - if (! $roles->count()) { - return 'none'; - } - - $roleArray = []; - - foreach ($roles as $role) { - $roleArray[] = $role->name; - } - - return implode(', ', $roleArray); - } - - public function profileUrl() - { - return action('UsersController@getProfile', [$this->getWrappedObject()->name]); - } - - public function thumbnail() - { - return '' . $this->getWrappedObject()->name . ''; - } - - public function imageMedium() - { - return ''; - } -} diff --git a/app/Accounts/UserRepository.php b/app/Accounts/UserRepository.php deleted file mode 100644 index ea7695e09..000000000 --- a/app/Accounts/UserRepository.php +++ /dev/null @@ -1,82 +0,0 @@ -model = $model; - } - - public function getByGithubId($id) - { - return $this->model->where('github_id', '=', $id)->first(); - } - - public function requireByName($name) - { - $model = $this->getByName($name); - - if (! $model) { - throw new EntityNotFoundException("User with name {$name} could not be found."); - } - - return $model; - } - - public function getByName($name) - { - return $this->model->where('name', '=', $name)->first(); - } - - /** - * @param mixed $value - * @return \Lio\Accounts\User[] - */ - public function search($value) - { - return $this->model - ->where('name', $value) - ->orWhere('id', $value) - ->orWhere('email', $value) - ->paginate(); - } - - public function getFirstX($count) - { - return $this->model->take($count)->get(); - } - - /** - * Find a user by its confirmation code - * - * @param string $code - * @return \Lio\Accounts\User - */ - public function getByConfirmationCode($code) - { - return $this->model->where('confirmation_code', $code)->first(); - } - - /** - * Determine if an email already exists for a user - * - * @param string $email - * @return bool - */ - public function emailExists($email) - { - return (bool) User::where('email', $email)->count(); - } -} diff --git a/app/Accounts/UserUpdater.php b/app/Accounts/UserUpdater.php deleted file mode 100644 index f41344c88..000000000 --- a/app/Accounts/UserUpdater.php +++ /dev/null @@ -1,86 +0,0 @@ -users = $users; - $this->confirmation = $confirmation; - } - - /** - * @param \Lio\Accounts\UserUpdaterListener $listener - * @param \Lio\Accounts\User $user - * @param array $data - * @param \Illuminate\Validation\Validator $validator - * @return mixed - */ - public function update(UserUpdaterListener $listener, User $user, array $data, Validator $validator = null) - { - // check the passed in validator - if ($validator && ! $validator->isValid()) { - return $listener->userValidationError($validator->getErrors()); - } - - return $this->updateUser($user, $listener, $data); - } - - /** - * @param \Lio\Accounts\User $user - * @param \Lio\Accounts\UserUpdaterListener $listener - * @param array $data - * @return mixed - */ - private function updateUser(User $user, UserUpdaterListener $listener, array $data) - { - $oldEmail = $user->email; - - $user->fill($data); - - // If the email changed, the user will need to re-confirm it. - if ($data['email'] !== $oldEmail) { - $user->confirmed = false; - - // Set a confirmation code for the user. He'll need to verify his email address - // with this code before he can use certain sections on the website. - $confirmationCode = Str::random(30); - - // We'll generate a new one if we find a user with the same code. - while ($this->users->getByConfirmationCode($confirmationCode) !== null) { - $confirmationCode = Str::random(30); - } - - $user->confirmation_code = $confirmationCode; - } - - // check the model validation - if (! $this->users->save($user)) { - return $listener->userValidationError($user->getErrors()); - } - - // Send a confirmation email to the user. - if ($data['email'] !== $oldEmail) { - $this->confirmation->send($user); - } - - return $listener->userUpdated($user, $data['email'] !== $oldEmail); - } -} diff --git a/app/Accounts/UserUpdaterListener.php b/app/Accounts/UserUpdaterListener.php deleted file mode 100644 index f6cdce6f4..000000000 --- a/app/Accounts/UserUpdaterListener.php +++ /dev/null @@ -1,8 +0,0 @@ - 'required', - ]; - - public function author() - { - return $this->belongsTo('Lio\Accounts\User', 'author_id'); - } - - public function parent() - { - return $this->belongsTo('Lio\Bin\Paste', 'parent_id'); - } - - public function comments() - { - return $this->morphMany('Lio\Comments\Comment', 'owner'); - } - - public function setAuthorAttribute($user) - { - if ( ! $user) return false; - $this->author()->associate($user); - } - - public function setParentAttribute($paste) - { - if ( ! $paste) return false; - $this->parent()->associate($paste); - } - - public function hasComments() - { - return (bool) $this->comments->count() > 0; - } - - /** - * Get the presenter class. - * - * @return string - */ - public function getPresenterClass() - { - return PastePresenter::class; - } -} diff --git a/app/Bin/PasteCreator.php b/app/Bin/PasteCreator.php deleted file mode 100644 index 8bff76634..000000000 --- a/app/Bin/PasteCreator.php +++ /dev/null @@ -1,42 +0,0 @@ -pastes = $pastes; - $this->hashids = $hashids; - } - - public function create($observer, $code, $user, $validator = null) - { - if ($validator && ! $validator->isValid()) { - return $observer->pasteValidationError($validator->getErrors()); - } - - $paste = $this->createPaste($code, $user); - if ( ! $this->pastes->save($paste)) { - return $observer->pasteValidationError($paste->getErrors()); - } - $this->addHash($paste); - return $observer->pasteCreated($paste); - } - - protected function createPaste($code, $user) - { - return $this->pastes->getNew(['code' => $code, 'author' => $user, 'ip' => Request::getClientIp()]); - } - - protected function addHash($paste) - { - $paste->hash = $this->hashids->encode($paste->id); - $this->pastes->save($paste); - } -} diff --git a/app/Bin/PasteCreatorListener.php b/app/Bin/PasteCreatorListener.php deleted file mode 100644 index d4da0bda2..000000000 --- a/app/Bin/PasteCreatorListener.php +++ /dev/null @@ -1,7 +0,0 @@ -pastes = $pastes; - } - - public function setListener($listener) - { - $this->listener = $listener; - } - - public function setParentPaste($parent) - { - $this->parent = $parent; - } - - public function pasteCreated($paste) - { - $paste->parent = $this->parent; - if ( ! $this->pastes->save($paste)) { - return $this->pasteValidationError($paste->getErrors()); - } - return $this->listener->pasteCreated($paste); - } - - public function pasteValidationError($errors) - { - return $this->listener->pasteValidationError($errors); - } -} diff --git a/app/Bin/PasteForm.php b/app/Bin/PasteForm.php deleted file mode 100644 index f5439ebe0..000000000 --- a/app/Bin/PasteForm.php +++ /dev/null @@ -1,12 +0,0 @@ - 'required', - 'password' => 'size:0', - ]; -} diff --git a/app/Bin/PastePresenter.php b/app/Bin/PastePresenter.php deleted file mode 100644 index 23bfdf2b7..000000000 --- a/app/Bin/PastePresenter.php +++ /dev/null @@ -1,32 +0,0 @@ -getWrappedObject()->code; - } - - public function createUrl() - { - return action('PastesController@getCreate'); - } - - public function showUrl() - { - return action('PastesController@getShow', $this->hash); - } - - public function forkUrl() - { - return action('PastesController@getFork', $this->hash); - } - - public function rawUrl() - { - return action('PastesController@getRaw', $this->hash); - } -} diff --git a/app/Bin/PasteRepository.php b/app/Bin/PasteRepository.php deleted file mode 100755 index 7462d0c42..000000000 --- a/app/Bin/PasteRepository.php +++ /dev/null @@ -1,22 +0,0 @@ -model = $model; - } - - public function getRecentPaginated($perPage = 20) - { - return $this->model->orderBy('created_at', 'desc')->paginate($perPage); - } - - public function getByHash($hash) - { - return $this->model->whereRaw('hash = BINARY ?', [$hash])->first(); - } -} diff --git a/app/Comments/Comment.php b/app/Comments/Comment.php deleted file mode 100644 index a1ea3d337..000000000 --- a/app/Comments/Comment.php +++ /dev/null @@ -1,144 +0,0 @@ - 'required', - 'author_id' => 'required|exists:users,id', - ]; - - protected $laravelVersions = [ - 0 => "Doesn't Matter", - 3 => "Laravel 3.x", - 4 => "Laravel 4.x", - 5 => "Laravel 5.x", - ]; - - const TYPE_FORUM = 0; - const TYPE_PASTE = 1; - - public function owner() - { - return $this->morphTo('owner'); - } - - public function author() - { - return $this->belongsTo('Lio\Accounts\User', 'author_id'); - } - - public function parent() - { - return $this->belongsTo('Lio\Comments\Comment', 'parent_id'); - } - - public function children() - { - return $this->hasMany('Lio\Comments\Comment', 'parent_id'); - } - - public function tags() - { - return $this->belongsToMany('Lio\Tags\Tag', 'comment_tag', 'comment_id', 'tag_id'); - } - - public function mostRecentChild() - { - return $this->belongsTo('Lio\Comments\Comment', 'most_recent_child_id'); - } - - public function setBodyAttribute($content) - { - //$body = \App::make('Lio\Markdown\HtmlMarkdownConvertor')->convertHtmlToMarkdown($content); - $this->attributes['body'] = $content; - } - - public function getLaravelVersions() - { - return $this->laravelVersions; - } - - public function isManageableBy(\Lio\Accounts\User $user) - { - return $user->id == $thread->author_id; - } - - public function setMostRecentChild(Comment $comment) - { - $this->most_recent_child_id = $comment->id; - $this->updateChildCount(); - $this->save(); - } - - public function updateChildCount() - { - if ($this->exists) { - $this->child_count = $this->children()->count(); - $this->save(); - } - } - - public function hasTag($tagId) - { - return $this->tags->contains($tagId); - } - - public function isMainComment() - { - if(! $this->parent_id) return true; - } - - public function getSlugString() - { - if ($this->type == static::TYPE_FORUM && is_null($this->parent_id)) { - return $this->getForumPostSlugString(); - } - } - - // - protected function getForumPostSlugString() - { - if (empty($this->title)) return ''; - - $date = date("m-d-Y", strtotime($this->created_at)); - - return Str::slug("{$date} - {$this->title}"); - } - - // - public function delete() - { - if ($this->exists && $this->isMainComment()) { - $this->children()->delete(); - } - parent::delete(); - } - - public function isNewerThan($timestamp) - { - return strtotime($this->updated_at) > $timestamp; - } - - /** - * Get the presenter class. - * - * @return string - */ - public function getPresenterClass() - { - return CommentPresenter::class; - } -} diff --git a/app/Comments/CommentObserver.php b/app/Comments/CommentObserver.php deleted file mode 100644 index 7b0f508fe..000000000 --- a/app/Comments/CommentObserver.php +++ /dev/null @@ -1,17 +0,0 @@ -updateForumThreadDetails($comment); - } - - private function updateForumThreadDetails($comment) - { - if ($comment->type == Comment::TYPE_FORUM && $comment->parent) { - $comment->parent->setMostRecentChild($comment); - } - } -} diff --git a/app/Comments/CommentPresenter.php b/app/Comments/CommentPresenter.php deleted file mode 100644 index 06cf4ec33..000000000 --- a/app/Comments/CommentPresenter.php +++ /dev/null @@ -1,100 +0,0 @@ -getWrappedObject()->slug; - if ( ! $slug) return ''; - return action('Forum\ForumThreadsController@getShowThread', [$slug->slug]); - } - - public function commentUrl() - { - $pagination = null; - $slug = $this->getWrappedObject()->parent->slug; - if ( ! $slug) return ''; - - $url = action('Forum\ForumRepliesController@getCommentRedirect', [$slug->slug, $this->id]); - return $url; - } - - public function child_count_label() - { - if ($this->getWrappedObject()->child_count == 0) { - return '0 Responses'; - } elseif($this->getWrappedObject()->child_count == 1) { - return '1 Response'; - } - - return $this->getWrappedObject()->child_count . ' Responses'; - } - - public function created_ago() - { - return $this->getWrappedObject()->created_at->diffForHumans(); - } - - public function updated_ago() - { - return $this->getWrappedObject()->updated_at->diffForHumans(); - } - - public function body() - { - $body = $this->getWrappedObject()->body; - $body = $this->convertMarkdown($body); - $body = $this->convertNewlines($body); - $body = $this->formatGists($body); - $body = $this->linkify($body); - return $body; - } - - public function bodySummary() - { - $summary = Str::words($this->getWrappedObject()->body, 50); - - return App::make('Lio\Markdown\HtmlMarkdownConvertor')->convertMarkdownToHtml($summary); - } - - public function laravel_version() - { - if ($this->getWrappedObject()->laravel_version == 3) { - return '[L3]'; - } - - if ($this->getWrappedObject()->laravel_version == 4) { - return '[L4]'; - } - - if ($this->getWrappedObject()->laravel_version == 5) { - return '[L5]'; - } - } - - private function convertMarkdown($content) - { - return App::make('Lio\Markdown\HtmlMarkdownConvertor')->convertMarkdownToHtml($content); - } - - private function convertNewlines($content) - { - return str_replace("\n\n", '
', $content); - } - - private function formatGists($content) - { - return App::make('Lio\Github\GistEmbedFormatter')->format($content); - } - - private function linkify($content) - { - $linkify = new \Misd\Linkify\Linkify(); - return $linkify->process($content); - } -} diff --git a/app/Comments/ReplyForm.php b/app/Comments/ReplyForm.php deleted file mode 100644 index 05cfadf70..000000000 --- a/app/Comments/ReplyForm.php +++ /dev/null @@ -1,11 +0,0 @@ - 'required', - ]; -} diff --git a/app/Console/Commands/Inspire.php b/app/Console/Commands/Inspire.php deleted file mode 100755 index e2a682ced..000000000 --- a/app/Console/Commands/Inspire.php +++ /dev/null @@ -1,32 +0,0 @@ -comment(PHP_EOL.Inspiring::quote().PHP_EOL); - } -} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php old mode 100755 new mode 100644 index 3d94e4bef..9e26cb2bd --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,7 +1,9 @@ command('inspire') - ->hourly(); + require base_path('routes/console.php'); } } diff --git a/app/Content/ForeignLanguageSpamDetector.php b/app/Content/ForeignLanguageSpamDetector.php deleted file mode 100644 index 573839a6f..000000000 --- a/app/Content/ForeignLanguageSpamDetector.php +++ /dev/null @@ -1,16 +0,0 @@ -detectors = $detectors; - } - - /** @inheritdoc */ - public function detectsSpam($value, User $user = null) - { - return collect($this->detectors) - ->contains(function ($key, SpamDetector $detector) use ($value, $user) { - return $detector->detectsSpam($value, $user); - }); - } -} diff --git a/app/Core/EloquentRepository.php b/app/Core/EloquentRepository.php deleted file mode 100644 index 34d1321bd..000000000 --- a/app/Core/EloquentRepository.php +++ /dev/null @@ -1,88 +0,0 @@ -model = $model; - } - - public function getModel() - { - return $this->model; - } - - public function setModel($model) - { - $this->model = $model; - } - - public function getAll() - { - return $this->model->all(); - } - - public function getAllPaginated($count) - { - return $this->model->paginate($count); - } - - public function getById($id) - { - return $this->model->find($id); - } - - public function requireById($id) - { - $model = $this->getById($id); - - if ( ! $model) { - throw new EntityNotFoundException; - } - - return $model; - } - - public function getNew($attributes = []) - { - return $this->model->newInstance($attributes); - } - - public function save($data) - { - if ($data instanceOf Model) { - return $this->storeEloquentModel($data); - } elseif (is_array($data)) { - return $this->storeArray($data); - } - } - - public function delete($model) - { - return $model->delete(); - } - - protected function storeEloquentModel($model) - { - if ($model->getDirty()) { - return $model->save(); - } else { - return $model->touch(); - } - } - - protected function storeArray($data) - { - $model = $this->getNew($data); - return $this->storeEloquentModel($model); - } -} diff --git a/app/Core/Entity.php b/app/Core/Entity.php deleted file mode 100644 index 68cef0177..000000000 --- a/app/Core/Entity.php +++ /dev/null @@ -1,63 +0,0 @@ -validationRules)) { - throw new NoValidationRulesFoundException('no validation rule array defined in class ' . get_called_class()); - } - $this->validator = Validator::make($this->getAttributes(), $this->getPreparedRules()); - - return $this->validator->passes(); - } - - public function getErrors() - { - if ( ! $this->validator) { - throw new NoValidatorInstantiatedException; - } - - return $this->validator->errors(); - } - - public function save(array $options = []) - { - if ( ! $this->isValid()) { - return false; - } - return parent::save($options); - } - - protected function getPreparedRules() - { - return $this->replaceIdsIfExists($this->validationRules); - } - - protected function replaceIdsIfExists($rules) - { - $newRules = []; - - foreach ($rules as $key => $rule) { - if (str_contains($rule, '')) { - $replacement = $this->exists ? $this->getAttribute($this->primaryKey) : ''; - - $rule = str_replace('', $replacement, $rule); - } - - array_set($newRules, $key, $rule); - } - - return $newRules; - } - -} diff --git a/app/Core/Exceptions/EntityNotFoundException.php b/app/Core/Exceptions/EntityNotFoundException.php deleted file mode 100644 index aa04beade..000000000 --- a/app/Core/Exceptions/EntityNotFoundException.php +++ /dev/null @@ -1,4 +0,0 @@ -inputData = App::make('request')->all(); - } - - public function getInputData() - { - return $this->inputData; - } - - public function isValid() - { - $this->beforeValidation(); - - if ( ! isset($this->validationRules)) { - throw new NoValidationRulesFoundException('no validation rules found in class ' . get_called_class()); - } - - $this->validator = Validator::make($this->getInputData(), $this->getPreparedRules()); - - return $this->validator->passes(); - } - - public function getErrors() - { - return $this->validator->errors(); - } - - protected function getPreparedRules() - { - return $this->validationRules; - } - - protected function beforeValidation() {} -} diff --git a/app/Events/Event.php b/app/Events/Event.php deleted file mode 100755 index 7b17b2e69..000000000 --- a/app/Events/Event.php +++ /dev/null @@ -1,7 +0,0 @@ -id()} is not linked to a thread.]"); + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php old mode 100755 new mode 100644 index 796c617b8..53d1ea422 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -1,10 +1,15 @@ check()) { - Bugsnag::setUser([ - 'name' => auth()->user()->name, - 'email' => auth()->user()->email, - ]); - } - - return parent::report($e); + parent::report($exception); } /** * Render an exception into an HTTP response. * - * @param \Illuminate\Http\Request $request - * @param \Exception $e + * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ - public function render($request, Exception $e) + public function render($request, Exception $exception) { - return parent::render($request, $e); + return parent::render($request, $exception); + } + + /** + * Convert an authentication exception into an unauthenticated response. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + protected function unauthenticated($request, AuthenticationException $exception) + { + if ($request->expectsJson()) { + return response()->json(['error' => 'Unauthenticated.'], 401); + } + + return redirect()->guest(route('login')); } } diff --git a/app/Forum/Replies/Reply.php b/app/Forum/Replies/Reply.php deleted file mode 100644 index 2fe7d9011..000000000 --- a/app/Forum/Replies/Reply.php +++ /dev/null @@ -1,58 +0,0 @@ - 'required|min:6', - 'author_id' => 'required|exists:users,id', - ]; - - public function author() - { - return $this->belongsTo('Lio\Accounts\User', 'author_id'); - } - - public function thread() - { - return $this->belongsTo('Lio\Forum\Threads\Thread', 'thread_id'); - } - - public function isManageableBy($user) - { - if ( ! $user) return false; - return $this->isOwnedBy($user) || $user->isForumAdmin(); - } - - public function isOwnedBy($user) - { - if ( ! $user) return false; - return $user->id == $this->author_id; - } - - public function getPrecedingReplyCount() - { - return $this->newQuery()->where('thread_id', $this->thread_id)->where('created_at', '<', $this->created_at)->count(); - } - - /** - * Get the presenter class. - * - * @return string - */ - public function getPresenterClass() - { - return ReplyPresenter::class; - } -} diff --git a/app/Forum/Replies/ReplyCreator.php b/app/Forum/Replies/ReplyCreator.php deleted file mode 100644 index a454de4b8..000000000 --- a/app/Forum/Replies/ReplyCreator.php +++ /dev/null @@ -1,59 +0,0 @@ -replies = $replies; - } - - public function create(ReplyCreatorListener $listener, $data, $threadId, $validator = null) - { - if ($validator && ! $validator->isValid()) { - return $listener->replyCreationError($validator->getErrors()); - } - - $reply = $this->getNew($data, $threadId); - - return $this->validateAndSave($listener, $reply); - } - - private function getNew($data, $threadId) - { - return $this->replies->getNew($data + [ - 'thread_id' => $threadId, - 'author_id' => $data['author']->id, - ]); - } - - private function validateAndSave($listener, $reply) - { - if (! $this->replies->save($reply)) { - return $listener->replyCreationError($reply->getErrors()); - } - - $this->updateThreadCounts($reply->thread); - $this->setThreadMostRecentReply($reply); - - return $listener->replyCreated($reply); - } - - private function updateThreadCounts($thread) - { - $thread->updateReplyCount(); - } - - private function setThreadMostRecentReply($reply) - { - $reply->thread->setMostRecentReply($reply); - } -} diff --git a/app/Forum/Replies/ReplyCreatorListener.php b/app/Forum/Replies/ReplyCreatorListener.php deleted file mode 100644 index ff45e5751..000000000 --- a/app/Forum/Replies/ReplyCreatorListener.php +++ /dev/null @@ -1,8 +0,0 @@ -thread; - $reply->delete(); - - $thread->updateReplyCount(); - - return $observer->replyDeleted($thread); - } -} diff --git a/app/Forum/Replies/ReplyDeleterListener.php b/app/Forum/Replies/ReplyDeleterListener.php deleted file mode 100644 index 07dcf020f..000000000 --- a/app/Forum/Replies/ReplyDeleterListener.php +++ /dev/null @@ -1,7 +0,0 @@ - 'required', - ]; -} diff --git a/app/Forum/Replies/ReplyPresenter.php b/app/Forum/Replies/ReplyPresenter.php deleted file mode 100644 index a4712901f..000000000 --- a/app/Forum/Replies/ReplyPresenter.php +++ /dev/null @@ -1,55 +0,0 @@ -getWrappedObject()->thread->slug; - $threadUrl = action('Forum\ForumThreadsController@getShowThread', $slug); - - return $threadUrl . app(ReplyQueryStringGenerator::class)->generate($this->getWrappedObject()); - } - - public function created_ago() - { - return $this->getWrappedObject()->created_at->diffForHumans(); - } - - public function updated_ago() - { - return $this->getWrappedObject()->updated_at->diffForHumans(); - } - - public function body() - { - $body = $this->getWrappedObject()->body; - $body = $this->convertMarkdown($body); - $body = $this->formatGists($body); - $body = $this->linkify($body); - - return $body; - } - - private function convertMarkdown($content) - { - return app('Lio\Markdown\HtmlMarkdownConvertor')->convertMarkdownToHtml($content); - } - - private function formatGists($content) - { - return app('Lio\Github\GistEmbedFormatter')->format($content); - } - - private function linkify($content) - { - $linkify = new Linkify(); - - return $linkify->process($content); - } -} diff --git a/app/Forum/Replies/ReplyQueryStringGenerator.php b/app/Forum/Replies/ReplyQueryStringGenerator.php deleted file mode 100644 index 2e31c9fc2..000000000 --- a/app/Forum/Replies/ReplyQueryStringGenerator.php +++ /dev/null @@ -1,18 +0,0 @@ -getPrecedingReplyCount(); - $pageNumber = $this->getPageNumber($precedingReplyCount, $perPage); - - return "?page={$pageNumber}#reply-{$reply->id}"; - } - - private function getPageNumber($count, $perPage) - { - return floor($count / $perPage) + 1; - } -} diff --git a/app/Forum/Replies/ReplyRepository.php b/app/Forum/Replies/ReplyRepository.php deleted file mode 100644 index c3b299cc4..000000000 --- a/app/Forum/Replies/ReplyRepository.php +++ /dev/null @@ -1,12 +0,0 @@ -model = $model; - } -} diff --git a/app/Forum/Replies/ReplyUpdater.php b/app/Forum/Replies/ReplyUpdater.php deleted file mode 100644 index 2b158e4e6..000000000 --- a/app/Forum/Replies/ReplyUpdater.php +++ /dev/null @@ -1,39 +0,0 @@ -replies = $replies; - } - - public function update($reply, ReplyUpdaterListener $observer, $data, $validator = null) - { - // check the passed in validator - if ($validator && ! $validator->isValid()) { - return $observer->replyUpdateError($validator->getErrors()); - } - return $this->updateRecord($reply, $observer, $data); - } - - private function updateRecord($reply, $observer, $data) - { - $reply->fill($data); - - // check the model validation - if ( ! $this->replies->save($reply)) { - return $observer->replyUpdateError($reply->getErrors()); - } - - return $observer->replyUpdated($reply); - } -} diff --git a/app/Forum/Replies/ReplyUpdaterListener.php b/app/Forum/Replies/ReplyUpdaterListener.php deleted file mode 100644 index 95cc4c405..000000000 --- a/app/Forum/Replies/ReplyUpdaterListener.php +++ /dev/null @@ -1,8 +0,0 @@ -sections = Config::get('forum.sections'); - } - - public function createSidebar($selectedSection = null) - { - if(! is_array($selectedSection)) { - $selectedSection = explode(',', $selectedSection); - } - - foreach($this->sections as $title => $attributes) { - if($this->isCurrentSection($attributes['tags'], $selectedSection)) { - $this->setCurrentSection($title); - } - } - - return $this->sections; - } - - protected function isCurrentSection($sectionTags, $selectedSection) - { - $sectionTags = explode(',', $sectionTags); - foreach($sectionTags as $sectionTag) { - if(in_array(strtolower($sectionTag), array_map('strtolower', $selectedSection))) { - return true; - } - } - } - - protected function setCurrentSection($section) - { - $this->sections[$section]['active'] = true; - } -} diff --git a/app/Forum/Threads/Thread.php b/app/Forum/Threads/Thread.php deleted file mode 100644 index 36edd9e6d..000000000 --- a/app/Forum/Threads/Thread.php +++ /dev/null @@ -1,178 +0,0 @@ - 'required', - 'author_id' => 'required|exists:users,id', - ]; - - protected $laravelVersions = [ - 5 => 'Laravel 5.x', - 4 => 'Laravel 4.x', - 3 => 'Laravel 3.x', - 0 => 'Doesn\'t Matter', - ]; - - public function author() - { - return $this->belongsTo('Lio\Accounts\User', 'author_id'); - } - - public function replies() - { - return $this->hasMany('Lio\Forum\Replies\Reply', 'thread_id'); - } - - public function acceptedSolution() - { - return $this->belongsTo('Lio\Forum\Replies\Reply', 'solution_reply_id'); - } - - public function tags() - { - return $this->belongsToMany('Lio\Tags\Tag', 'tagged_items', 'thread_id', 'tag_id'); - } - - public function mostRecentReply() - { - return $this->belongsTo('Lio\Forum\Replies\Reply', 'most_recent_reply_id'); - } - - public function setSubjectAttribute($subject) - { - $this->attributes['subject'] = $subject; - $this->attributes['slug'] = $this->generateNewSlug(); - } - - public function scopeSolvedQuestions($q) - { - return $q->where('is_question', '=', 1)->whereNull('solution_reply_id'); - } - - public function scopeUnsolvedQuestions($q) - { - return $q->where('is_question', '=', 1)->whereNotNull('solution_reply_id'); - } - - private function generateNewSlug() - { - $i = 0; - - do { - $slug = $this->generateSlugByIncrementer($i++); - } while ($this->getCountBySlug($slug) > 0); - - return $slug; - } - - private function getCountBySlug($slug) - { - $query = static::where('slug', '=', $slug); - - if ($this->exists) { - $query->where('id', '!=', $this->id); - } - - return $query->count(); - } - - private function generateSlugByIncrementer($i) - { - if ($i == 0) $i = ''; - - if ($this->created_at) { - $date = date('m-d-Y', strtotime($this->created_at)); - } else { - $date = date('m-d-Y'); - } - - return Str::slug("{$date} - {$this->subject}" . $i); - } - - public function getLaravelVersions() - { - return $this->laravelVersions; - } - - public function isQuestion() - { - return $this->is_question; - } - - public function isSolved() - { - return $this->isQuestion() && ! is_null($this->solution_reply_id); - } - - public function isManageableBy($user) - { - if ( ! $user) return false; - return $this->isOwnedBy($user) || $user->isForumAdmin(); - } - - public function isOwnedBy($user) - { - if ( ! $user) return false; - return $user->id == $this->author_id; - } - - public function isReplyTheSolution($reply) - { - return $reply->id == $this->solution_reply_id; - } - - public function setMostRecentReply(Reply $reply) - { - $this->most_recent_reply_id = $reply->id; - $this->updateReplyCount(); - $this->save(); - } - - public function updateReplyCount() - { - if ($this->exists) { - $this->reply_count = $this->replies()->count(); - $this->save(); - } - } - - public function setTags($tagIds) - { - $this->tags()->sync($tagIds); - } - - public function hasTag($tagId) - { - return $this->tags->contains($tagId); - } - - public function getTags() - { - return $this->tags->lists('slug'); - } - - /** - * Get the presenter class. - * - * @return string - */ - public function getPresenterClass() - { - return ThreadPresenter::class; - } -} diff --git a/app/Forum/Threads/ThreadCreator.php b/app/Forum/Threads/ThreadCreator.php deleted file mode 100644 index 1e5e9c07b..000000000 --- a/app/Forum/Threads/ThreadCreator.php +++ /dev/null @@ -1,124 +0,0 @@ -threads = $threads; - $this->spamDetector = $spamDetector; - $this->logger = $logger; - } - - // an additional validator is optional and will be run first, an example of a usage for - // this is a form validator - public function create(ThreadCreatorListener $listener, $data, $validator = null) - { - if ($validator && ! $validator->isValid()) { - return $listener->threadCreationError($validator->getErrors()); - } - - return $this->createValidRecord($listener, $data); - } - - private function createValidRecord($listener, $data) - { - $thread = $this->getNew($data); - - return $this->validateAndSave($thread, $listener, $data); - } - - private function getNew($data) - { - return $this->threads->getNew($data + [ - 'author_id' => $data['author']->id, - ]); - } - - private function validateAndSave($thread, $listener, $data) - { - if ($this->spamDetector->detectsSpam($thread->subject, $thread->author)) { - $this->logSpam($thread->subject, $thread->author); - - $this->increaseUserSpamCount($thread->author); - - return $listener->threadCreationError( - new MessageBag(['subject' => 'Title contains spam. Your account has been flagged.']) - ); - } - - if ($this->spamDetector->detectsSpam($thread->body, $thread->author)) { - $this->logSpam($thread->body, $thread->author); - - $this->increaseUserSpamCount($thread->author); - - return $listener->threadCreationError( - new MessageBag(['body' => 'Body contains spam. Your account has been flagged.']) - ); - } - - // check the model validation - if (! $this->threads->save($thread)) { - return $listener->threadCreationError($thread->getErrors()); - } - - // attach any tags that were passed through - if (isset($data['tags'])) { - $thread->setTags($data['tags']); - } - - return $listener->threadCreated($thread); - } - - /** - * Increases a user's spam count - * - * @param \Lio\Accounts\User $user - */ - private function increaseUserSpamCount(User $user) - { - $user->spam_count = $user->spam_count + 1; - - // If the user reaches a spam threshold of 3 or more, automatically ban him - if ($user->spam_count >= 3) { - $user->is_banned = true; - } - - $user->save(); - } - - /** - * @param string $spam - * @param \Lio\Accounts\User $author - */ - private function logSpam($spam, User $author) - { - $this->logger->warning("Warning: attempted spam posted by [#{$author->id}] {$author->name}:"); - $this->logger->warning($spam); - } -} diff --git a/app/Forum/Threads/ThreadCreatorListener.php b/app/Forum/Threads/ThreadCreatorListener.php deleted file mode 100644 index e2cf27954..000000000 --- a/app/Forum/Threads/ThreadCreatorListener.php +++ /dev/null @@ -1,8 +0,0 @@ -threads = $threads; - } - - public function delete(ThreadDeleterListener $observer, $thread) - { - $this->deleteReplies($thread); - - $this->threads->delete($thread); - return $observer->threadDeleted(); - } - - private function deleteReplies(Thread $thread) - { - $thread->replies()->delete(); - } -} diff --git a/app/Forum/Threads/ThreadDeleterListener.php b/app/Forum/Threads/ThreadDeleterListener.php deleted file mode 100644 index 800826ef1..000000000 --- a/app/Forum/Threads/ThreadDeleterListener.php +++ /dev/null @@ -1,7 +0,0 @@ - 'required|min:10', - 'body' => 'required', - 'tags' => 'required|max_tags:3', - 'is_question' => 'in:0,1', - 'laravel_version' => 'required|in:0,3,4,5', - ]; - - protected function beforeValidation() - { - Validator::extend('max_tags', function ($attribute, $tagIds, $params) { - $maxCount = $params[0]; - - $tagRepo = App::make('Lio\Tags\TagRepository'); - $tags = $tagRepo->getTagsByIds($tagIds); - - if ($tags->count() > $maxCount) { - return false; - } - - return true; - }); - } -} diff --git a/app/Forum/Threads/ThreadPresenter.php b/app/Forum/Threads/ThreadPresenter.php deleted file mode 100644 index dd42fe563..000000000 --- a/app/Forum/Threads/ThreadPresenter.php +++ /dev/null @@ -1,120 +0,0 @@ -slug) { - return ''; - } - return action('Forum\ForumThreadsController@getShowThread', [$this->slug]); - } - - public function created_ago() - { - return $this->created_at->diffForHumans(); - } - - public function updated_ago() - { - return $this->updated_at->diffForHumans(); - } - - public function body() - { - $body = $this->getWrappedObject()->body; - $body = $this->convertMarkdown($body); - $body = $this->formatGists($body); - $body = $this->linkify($body); - return $body; - } - - public function versionSubjectPrefix() - { - if ($this->laravel_version == 3) { - return '[L3] '; - } - } - - public function subject() - { - $prefix = $this->versionSubjectPrefix(); - $subject = Str::limit($this->getWrappedObject()->subject, 80); - - return $prefix ? $prefix .' '. $subject : $subject; - } - - public function mostRecentReplier() - { - return $this->replies->last()->author; - } - - public function latestReplyUrl() - { - if (! count($this->replies)) { - return $this->url; - } - - return $this->url . App::make('Lio\Forum\Replies\ReplyQueryStringGenerator')->generate($this->replies->last()); - } - - public function lastReplyDiff() - { - if (count($this->replies)) { - return $this->replies->last()->created_at->diffForHumans(); - } - - return $this->updated_ago(); - } - - public function acceptedSolutionUrl() - { - if ( ! $this->acceptedSolution) { - return null; - } - - return action('Forum\ForumRepliesController@getReplyRedirect', [$this->getWrappedObject()->slug, $this->acceptedSolution->id]); - } - - public function editUrl() - { - return action('Forum\ForumThreadsController@getEditThread', [$this->id]); - } - - public function deleteUrl() - { - return action('Forum\ForumThreadsController@getDelete', [$this->id]); - } - - public function markAsSolutionUrl($replyId) - { - return action('Forum\ForumThreadsController@getMarkQuestionSolved', [$this->getWrappedObject()->id, $replyId]); - } - - public function markAsUnsolvedUrl() - { - return action('Forum\ForumThreadsController@getMarkQuestionUnsolved', $this->getWrappedObject()->id); - } - - private function convertMarkdown($content) - { - return App::make('Lio\Markdown\HtmlMarkdownConvertor')->convertMarkdownToHtml($content); - } - - private function formatGists($content) - { - return App::make('Lio\Github\GistEmbedFormatter')->format($content); - } - - private function linkify($content) - { - $linkify = new Linkify(); - return $linkify->process($content); - } -} diff --git a/app/Forum/Threads/ThreadRepository.php b/app/Forum/Threads/ThreadRepository.php deleted file mode 100644 index a430655e2..000000000 --- a/app/Forum/Threads/ThreadRepository.php +++ /dev/null @@ -1,84 +0,0 @@ -model = $model; - } - - public function getByTagsPaginated(Collection $tags, $perPage = 20) - { - $query = $this->model->with(['mostRecentReply', 'mostRecentReply.author', 'tags']); - - if ($tags->count() > 0) { - $query->join('tagged_items', 'forum_threads.id', '=', 'tagged_items.thread_id') - ->whereIn('tagged_items.tag_id', $tags->lists('id')); - } - - $query->groupBy('forum_threads.id') - ->orderBy('pinned', 'desc') - ->orderBy('updated_at', 'desc'); - - return $query->paginate($perPage, ['forum_threads.*']); - } - - public function getByTagsAndStatusPaginated(Collection $tags, $status, $perPage = 20) - { - $query = $this->model->with(['author', 'mostRecentReply', 'acceptedSolution']); - - if ($tags->count() > 0) { - $query->join('tagged_items', 'forum_threads.id', '=', 'tagged_items.thread_id') - ->whereIn('tagged_items.tag_id', $tags->lists('id')); - $query->groupBy('forum_threads.id'); - } - - if ($status) { - if ($status == 'solved') { - $query->where('solution_reply_id', '>', 0); - } - if ($status == 'open') { - $query->whereNull('solution_reply_id'); - } - } - - $query->orderBy('pinned', 'desc'); - $query->orderBy('updated_at', 'desc'); - - return $query->paginate($perPage, ['forum_threads.*']); - } - - public function getThreadRepliesPaginated(Thread $thread, $perPage = 20) - { - return $thread->replies()->paginate($perPage); - } - - public function requireBySlug($slug) - { - $model = $this->getBySlug($slug); - - if ( ! $model) { - throw new EntityNotFoundException; - } - - return $model; - } - - public function getBySlug($slug) - { - return $this->model->with('author')->where('slug', '=', $slug)->first(); - } - - /** - * @param int $userId - * @return mixed - */ - public function deleteByAuthorId($userId) - { - return $this->model->where('author_id', $userId)->delete(); - } -} diff --git a/app/Forum/Threads/ThreadSearch.php b/app/Forum/Threads/ThreadSearch.php deleted file mode 100644 index 627f5f460..000000000 --- a/app/Forum/Threads/ThreadSearch.php +++ /dev/null @@ -1,27 +0,0 @@ -model = $model; - } - - // this stuff is just a placeholder until we implement - // a real search system - public function searchPaginated($query, $perPage) - { - return $this->model->with(['mostRecentReply', 'tags']) - ->where(function($q) use ($query) { - $q->where('subject', 'like', '%' . $query . '%') - ->orWhere('body', 'like', '%' . $query . '%'); - }) - ->orderBy('updated_at', 'desc') - ->paginate($perPage, ['forum_threads.*']); - } -} diff --git a/app/Forum/Threads/ThreadUpdater.php b/app/Forum/Threads/ThreadUpdater.php deleted file mode 100644 index 7f3ac3e31..000000000 --- a/app/Forum/Threads/ThreadUpdater.php +++ /dev/null @@ -1,48 +0,0 @@ -threads = $threads; - } - - public function update(ThreadUpdaterListener $observer, $thread, $data, $validator = null) - { - // check the passed in validator - if ($validator && ! $validator->isValid()) { - return $observer->threadUpdateError($validator->getErrors()); - } - return $this->updateRecord($thread, $observer, $data); - } - - private function updateRecord($thread, $observer, $data) - { - $thread->fill($data); - - // check the model validation - if ( ! $this->threads->save($thread)) { - return $observer->threadUpdateError($thread->getErrors()); - } - - if (isset($data['tags'])) { - $this->attachTags($thread, $data['tags']); - } - - return $observer->threadUpdated($thread); - } - - private function attachTags($thread, $tags) - { - $thread->tags()->sync($tags); - } -} diff --git a/app/Forum/Threads/ThreadUpdaterListener.php b/app/Forum/Threads/ThreadUpdaterListener.php deleted file mode 100644 index 952b74b52..000000000 --- a/app/Forum/Threads/ThreadUpdaterListener.php +++ /dev/null @@ -1,8 +0,0 @@ - 'required|exists:users,id', - 'thread_id' => 'required|exists:forum_threads,id', - 'visited_at' => 'required', - ]; -} diff --git a/app/Forum/Threads/ThreadVisitationUpdater.php b/app/Forum/Threads/ThreadVisitationUpdater.php deleted file mode 100644 index afd4e4ccb..000000000 --- a/app/Forum/Threads/ThreadVisitationUpdater.php +++ /dev/null @@ -1,19 +0,0 @@ -getVisitation($thread, $user); - - if ( ! $visitation) { - return $this->createVisitation($thread, $user); - } - - $visitation->visited_at = strtotime('now'); - $visitation->save(); - } -} diff --git a/app/Github/GistEmbedFormatter.php b/app/Github/GistEmbedFormatter.php deleted file mode 100644 index 60dbdb18b..000000000 --- a/app/Github/GistEmbedFormatter.php +++ /dev/null @@ -1,12 +0,0 @@ -pattern, '', $html); - } -} diff --git a/app/Github/GithubAuthenticator.php b/app/Github/GithubAuthenticator.php deleted file mode 100644 index 5f6b35e95..000000000 --- a/app/Github/GithubAuthenticator.php +++ /dev/null @@ -1,89 +0,0 @@ -socialite = $socialite; - $this->users = $users; - $this->guzzle = $guzzle; - } - - /** - * @param \Lio\Github\GithubAuthenticatorListener $listener - * @return \Illuminate\Http\RedirectResponse - */ - public function authBySocialite(GithubAuthenticatorListener $listener) - { - try { - $githubUser = $this->socialite->user(); - } catch (Exception $e) { - return $listener->invalidLogin(); - } - - if ($user = $this->users->getByGithubId($githubUser->getId())) { - return $this->loginUser($listener, $user); - } - - return $listener->userNotFound($this->githubUserToArray($githubUser)); - } - - /** - * @param \Lio\Github\GithubAuthenticatorListener $listener - * @param \Lio\Accounts\User $user - * @return \Illuminate\Http\RedirectResponse - */ - private function loginUser(GithubAuthenticatorListener $listener, User $user) - { - if ($user->isBanned()) { - return $listener->userIsBanned($user); - } - - return $listener->userFound($user); - } - - /** - * @param \Laravel\Socialite\Contracts\User $user - * @return array - */ - private function githubUserToArray(GithubUser $user) - { - $data = json_decode($this->guzzle->get('https://api.github.com/users/'.$user->getNickname())->send()->getBody(true), true); - - return array_merge($data, [ - 'id' => $user->getId(), - 'name' => $user->getNickname(), - 'email' => $user->getEmail(), - 'github_id' => $user->getId(), - 'github_url' => 'https://github.com/' . $user->getNickname(), - 'image_url' => $user->getAvatar(), - ]); - } -} diff --git a/app/Github/GithubAuthenticatorListener.php b/app/Github/GithubAuthenticatorListener.php deleted file mode 100644 index bfa3d86e7..000000000 --- a/app/Github/GithubAuthenticatorListener.php +++ /dev/null @@ -1,29 +0,0 @@ -readFromGithub($code); - - return $this->formatData($data); - } - - private function readFromGithub($code) - { - $github = OAuth::consumer('GitHub'); - $github->requestAccessToken($code); - - $githubData = json_decode($github->request('user'), true); - $githubData['email'] = last(json_decode($github->request('user/emails'), true)); - - return $githubData; - } - - private function formatData($data) - { - return [ - 'id' => $data['id'], - 'name' => $data['login'], - 'email' => $data['email'], - 'github_id' => $data['id'], - 'github_url' => $data['html_url'], - 'image_url' => $data['avatar_url'], - ]; - } -} diff --git a/app/Helpers/HasAuthor.php b/app/Helpers/HasAuthor.php new file mode 100644 index 000000000..03366b65e --- /dev/null +++ b/app/Helpers/HasAuthor.php @@ -0,0 +1,29 @@ +authorRelation; + } + + public function authoredBy(User $author) + { + $this->authorRelation()->associate($author); + } + + public function authorRelation(): BelongsTo + { + return $this->belongsTo(User::class, 'author_id'); + } + + public function isAuthoredBy(User $user): bool + { + return $this->author()->matches($user); + } +} diff --git a/app/Helpers/HasSlug.php b/app/Helpers/HasSlug.php new file mode 100644 index 000000000..823c6a81d --- /dev/null +++ b/app/Helpers/HasSlug.php @@ -0,0 +1,45 @@ +slug; + } + + public function setSlugAttribute(string $slug) + { + $this->attributes['slug'] = $this->generateUniqueSlug($slug); + } + + public static function findBySlug(string $slug): self + { + return static::where('slug', $slug)->firstOrFail(); + } + + private function generateUniqueSlug(string $value): string + { + $slug = $originalSlug = str_slug($value); + $counter = 0; + + while ($this->slugExists($slug, $this->exists ? $this->id() : null)) { + $counter++; + $slug = $originalSlug.'-'.$counter; + } + + return $slug; + } + + private function slugExists(string $slug, int $ignoreId = null): bool + { + $query = $this->where('slug', $slug); + + if ($ignoreId) { + $query->where('id', '!=', $ignoreId); + } + + return $query->count(); + } +} diff --git a/app/Helpers/HasTags.php b/app/Helpers/HasTags.php new file mode 100644 index 000000000..7441aec1b --- /dev/null +++ b/app/Helpers/HasTags.php @@ -0,0 +1,36 @@ +tagsRelation; + } + + /** + * @param \App\Models\Tag[]|int[] $tags + */ + public function syncTags(array $tags) + { + $this->save(); + $this->tagsRelation()->sync($tags); + } + + public function removeTags() + { + $this->tagsRelation()->detach(); + } + + public function tagsRelation(): MorphToMany + { + return $this->morphToMany(Tag::class, 'taggable')->withTimestamps(); + } +} diff --git a/app/Helpers/HasTimestamps.php b/app/Helpers/HasTimestamps.php new file mode 100644 index 000000000..395f9c8aa --- /dev/null +++ b/app/Helpers/HasTimestamps.php @@ -0,0 +1,18 @@ +created_at; + } + + public function updatedAt(): Carbon + { + return $this->updated_at; + } +} diff --git a/app/Helpers/ModelHelpers.php b/app/Helpers/ModelHelpers.php new file mode 100644 index 000000000..85dca85a7 --- /dev/null +++ b/app/Helpers/ModelHelpers.php @@ -0,0 +1,18 @@ +paginate($perPage); + } + + public function matches(self $model): bool + { + return $this->id() === $model->id(); + } +} diff --git a/app/Helpers/ReceivesReplies.php b/app/Helpers/ReceivesReplies.php new file mode 100644 index 000000000..21a118b77 --- /dev/null +++ b/app/Helpers/ReceivesReplies.php @@ -0,0 +1,35 @@ +repliesRelation; + } + + /** + * @return \App\Models\Reply[] + */ + public function latestReplies(int $amount = 5) + { + return $this->repliesRelation()->latest()->limit($amount)->get(); + } + + public function removeReplies() + { + $this->repliesRelation()->delete(); + } + + public function repliesRelation(): MorphMany + { + return $this->morphMany(Reply::class, 'replyable'); + } +} diff --git a/app/Helpers/SendsAlerts.php b/app/Helpers/SendsAlerts.php new file mode 100644 index 000000000..acd55c30b --- /dev/null +++ b/app/Helpers/SendsAlerts.php @@ -0,0 +1,21 @@ +sendAlert('success', $id, $parameters); + } + + protected function error(string $id = null, $parameters = []) + { + $this->sendAlert('error', $id, $parameters); + } + + private function sendAlert(string $type, string $id = null, $parameters = []) + { + session([$type => trans($id, (array) $parameters)]); + } +} diff --git a/app/Http/Controllers/Admin/AdminController.php b/app/Http/Controllers/Admin/AdminController.php new file mode 100644 index 000000000..5cb82f566 --- /dev/null +++ b/app/Http/Controllers/Admin/AdminController.php @@ -0,0 +1,23 @@ +middleware([Authenticate::class, VerifyAdmins::class]); + } + + public function index() + { + $users = User::findAllPaginated(); + + return view('admin.overview', compact('users')); + } +} diff --git a/app/Http/Controllers/Admin/OverviewController.php b/app/Http/Controllers/Admin/OverviewController.php deleted file mode 100644 index a688b69e1..000000000 --- a/app/Http/Controllers/Admin/OverviewController.php +++ /dev/null @@ -1,15 +0,0 @@ -route('admin.users'); - } -} diff --git a/app/Http/Controllers/Admin/UsersController.php b/app/Http/Controllers/Admin/UsersController.php index 2ba888334..a46bf1a1c 100644 --- a/app/Http/Controllers/Admin/UsersController.php +++ b/app/Http/Controllers/Admin/UsersController.php @@ -1,90 +1,58 @@ users = $users; - $this->roles = $roles; - $this->threads = $threads; + $this->middleware([Authenticate::class, VerifyAdmins::class]); } - public function getIndex() + public function show(User $user) { - $users = $this->users->getAllPaginated(100); - - return view('admin.users.index', compact('users')); + return view('admin.users.show', compact('user')); } - public function search() + public function ban(User $user) { - $users = $this->users->search(Input::get('q')); + $this->authorize(UserPolicy::BAN, $user); - return view('admin.users.index', compact('users')); - } + $this->dispatchNow(new BanUser($user)); - public function getEdit($userId) - { - $user = $this->users->requireById($userId); - $roles = $this->roles->getAll(); + $this->success('admin.users.banned', $user->name()); - return view('admin.users.edit', compact('user', 'roles')); + return redirect()->route('admin.users.show', $user->username()); } - public function postEdit($userId) + public function unban(User $user) { - $user = $this->users->requireById($userId); - - $user->fill(Input::all()); - - if (! Input::has('is_banned')) { - $user->is_banned = 0; - } + $this->authorize(UserPolicy::BAN, $user); - if (! $user->isValid()) { - return $this->redirectBack(['errors' => $user->getErrors()]); - } + $this->dispatchNow(new UnbanUser($user)); - $this->users->save($user); - $user->roles = Input::get('roles'); + $this->success('admin.users.unbanned', $user->name()); - return $this->redirectAction('Admin\UsersController@getIndex', ['success' => 'The user has been saved.']); + return redirect()->route('admin.users.show', $user->username()); } - public function putBanAndDeleteThreads($userId) + public function delete(User $user) { - // Ban the user - $user = $this->users->requireById($userId); - $user->is_banned = 1; + $this->authorize(UserPolicy::DELETE, $user); - $this->users->save($user); + $this->dispatchNow(new DeleteUser($user)); - // Remove all threads by the user - $this->threads->deleteByAuthorId($userId); + $this->success('admin.users.deleted', $user->name()); - return $this->redirectAction('Admin\UsersController@getIndex', ['success' => 'The user has been banned and its threads have been removed.']); + return redirect()->route('admin'); } } diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php deleted file mode 100755 index 16db3b8ca..000000000 --- a/app/Http/Controllers/Auth/AuthController.php +++ /dev/null @@ -1,243 +0,0 @@ -github = $github; - $this->users = $users; - $this->userCreator = $userCreator; - $this->confirmation = $confirmation; - - $this->middleware('guest', ['except' => ['logout', 'confirmEmail', 'resendEmailConfirmation']]); - $this->middleware('auth', ['only' => ['logout', 'resendEmailConfirmation']]); - } - - /** - * Redirect the user to the GitHub authentication page. - * - * @return \Illuminate\Http\RedirectResponse - */ - public function login() - { - return Socialite::driver('github')->redirect(); - } - - /** - * Obtain the user information from GitHub. - * - * @return \Illuminate\Http\RedirectResponse - */ - public function authByGithub() - { - return $this->github->authBySocialite($this); - } - - /** - * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View - */ - public function signup() - { - if (! Session::has('githubData')) { - return redirect()->route('login'); - } - - $githubData = Session::get('githubData'); - $createdAt = new Carbon($githubData['created_at']); - - if ($createdAt > Carbon::now()->subDays(14)) { - session(['success' => 'Your Github account needs to be older than 2 weeks in order to signup.']); - - return redirect()->route('home'); - } - - return view('auth.signup', compact('githubData')); - } - - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function register() - { - if (! Session::has('githubData')) { - return redirect()->route('login'); - } - - /** @var \Illuminate\Validation\Validator $validator */ - $validator = Validator::make(Input::only('g-recaptcha-response'), [ - 'g-recaptcha-response' => 'required|captcha' - ]); - - if ($validator->fails()) { - return redirect()->route('signup') - ->exceptInput('g-recaptcha-response') - ->withErrors($validator->errors()); - } - - $data = Session::get('githubData'); - $data['ip'] = Request::ip(); - $data['name'] = Input::get('name'); - $data['email'] = Input::get('email'); - - return $this->userCreator->create($this, $data); - } - - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function logout() - { - Auth::logout(); - - return redirect()->home(); - } - - /** - * Confirms a user's email address - * - * @param string $code - * @return \Illuminate\Http\RedirectResponse - */ - public function confirmEmail($code) - { - if (! $user = $this->users->getByConfirmationCode($code)) { - abort(404); - } - - $user->confirmed = 1; - $user->confirmation_code = null; - $user->save(); - - Auth::login($user, true); - - session(['success' => 'Your email was successfully confirmed.']); - - return redirect()->home(); - } - - /** - * Re-sends the confirmation email - * - * @return \Illuminate\Http\RedirectResponse - */ - public function resendEmailConfirmation() - { - $this->confirmation->send(Auth::user()); - - session(['success' => 'A new email confirmation was sent to ' . Auth::user()->email]); - - return redirect()->home(); - } - - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function invalidLogin() - { - Session::put('error', 'Invalid login'); - - return redirect()->home(); - } - - /** - * @param \Lio\Accounts\User $user - * @return \Illuminate\Http\RedirectResponse - */ - public function userFound(User $user) - { - Auth::login($user, true); - - return $this->redirectIntended(route('home')); - } - - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function userIsBanned() - { - Session::put('error', 'Your account has been banned. If you\'d like to appeal, please contact us through the support widget below.'); - - return redirect()->home(); - } - - /** - * @param array $githubData - * @return \Illuminate\Http\RedirectResponse - */ - public function userNotFound($githubData) - { - Session::put('githubData', $githubData); - - return redirect()->route('signup'); - } - - /** - * @param $errors - * @return \Illuminate\Http\RedirectResponse - */ - public function userValidationError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - /** - * @param \Lio\Accounts\User $user - * @return \Illuminate\Http\RedirectResponse - */ - public function userCreated($user) - { - Session::forget('githubData'); - Session::put('success', 'Account created. An email confirmation was sent to ' . $user->email); - - Auth::login($user, true); - - return $this->redirectIntended(route('home')); - } -} diff --git a/app/Http/Controllers/Auth/EmailConfirmationController.php b/app/Http/Controllers/Auth/EmailConfirmationController.php new file mode 100644 index 000000000..580234f01 --- /dev/null +++ b/app/Http/Controllers/Auth/EmailConfirmationController.php @@ -0,0 +1,44 @@ +middleware(Authenticate::class, ['only' => 'send']); + } + + public function send() + { + if (Auth::user()->isConfirmed()) { + $this->error('auth.confirmation.already_confirmed'); + } else { + $this->dispatchNow(new SendEmailConfirmation(Auth::user())); + + $this->success('auth.confirmation.sent', Auth::user()->emailAddress()); + } + + return redirect()->route('dashboard'); + } + + public function confirm(User $user, string $code) + { + if ($user->matchesConfirmationCode($code)) { + $this->dispatchNow(new ConfirmUser($user)); + + $this->success('auth.confirmation.success'); + } else { + $this->error('auth.confirmation.no_match'); + } + + return Auth::check() ? redirect()->route('dashboard') : redirect()->home(); + } +} diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php new file mode 100644 index 000000000..7e93ba3a9 --- /dev/null +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -0,0 +1,33 @@ +middleware(RedirectIfAuthenticated::class); + } +} diff --git a/app/Http/Controllers/Auth/GithubController.php b/app/Http/Controllers/Auth/GithubController.php new file mode 100644 index 000000000..ffbeee350 --- /dev/null +++ b/app/Http/Controllers/Auth/GithubController.php @@ -0,0 +1,63 @@ +redirect(); + } + + /** + * Obtain the user information from GitHub. + */ + public function handleProviderCallback() + { + $socialiteUser = Socialite::driver('github')->user(); + + try { + $user = User::findByGithubId($socialiteUser->getId()); + + return $this->userFound($user); + } catch (ModelNotFoundException $exception) { + return $this->userNotFound(new GithubUser($socialiteUser->user)); + } + } + + private function userFound(User $user): RedirectResponse + { + Auth::login($user); + + return redirect()->route('dashboard'); + } + + private function userNotFound(GithubUser $user): RedirectResponse + { + if ($user->isTooYoung()) { + $this->error('errors.github_account_too_young'); + + return redirect()->home(); + } + + return $this->redirectUserToRegistrationPage($user); + } + + private function redirectUserToRegistrationPage(GithubUser $user): RedirectResponse + { + session(['githubData' => $user->toArray()]); + + return redirect()->route('register'); + } +} diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php new file mode 100644 index 000000000..583c30fec --- /dev/null +++ b/app/Http/Controllers/Auth/LoginController.php @@ -0,0 +1,50 @@ +middleware(RedirectIfAuthenticated::class, ['except' => 'logout']); + } + + /** + * Get the login username to be used by the controller. + * + * @return string + */ + public function username() + { + return 'username'; + } +} diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php new file mode 100644 index 000000000..6d3a16781 --- /dev/null +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -0,0 +1,66 @@ +middleware(RedirectIfAuthenticated::class); + } + + /** + * Get a validator for an incoming registration request. + */ + protected function validator(array $data): ValidatorContract + { + return Validator::make($data, app(RegisterRequest::class)->rules()); + } + + /** + * Create a new user instance after a valid registration. + */ + protected function create(array $data): User + { + $user = $this->dispatchNow(RegisterUser::fromRequest(app(RegisterRequest::class))); + + $this->dispatchNow(new SendEmailConfirmation($user)); + + return $user; + } +} diff --git a/app/Http/Controllers/Auth/PasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php old mode 100755 new mode 100644 similarity index 59% rename from app/Http/Controllers/Auth/PasswordController.php rename to app/Http/Controllers/Auth/ResetPasswordController.php index d76386f93..2018602cc --- a/app/Http/Controllers/Auth/PasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -1,10 +1,12 @@ middleware('guest'); + $this->middleware(RedirectIfAuthenticated::class); } } diff --git a/app/Http/Controllers/ChatController.php b/app/Http/Controllers/ChatController.php deleted file mode 100644 index d29010a9d..000000000 --- a/app/Http/Controllers/ChatController.php +++ /dev/null @@ -1,10 +0,0 @@ -withInput($input)->with($data); - } - - protected function redirectIntended($default = null) - { - if ($intended = Session::get('auth.intended_redirect_url')) { - return $this->redirectTo($intended); - } - - return Redirect::to($default); - } + use AuthorizesRequests, DispatchesJobs, SendsAlerts, ValidatesRequests; } diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php new file mode 100644 index 000000000..95ffbc996 --- /dev/null +++ b/app/Http/Controllers/DashboardController.php @@ -0,0 +1,18 @@ +middleware(Authenticate::class); + } + + public function show() + { + return view('users.dashboard'); + } +} diff --git a/app/Http/Controllers/Forum/ForumRepliesController.php b/app/Http/Controllers/Forum/ForumRepliesController.php deleted file mode 100644 index 7e11694c6..000000000 --- a/app/Http/Controllers/Forum/ForumRepliesController.php +++ /dev/null @@ -1,146 +0,0 @@ -threads = $threads; - $this->replies = $replies; - $this->tags = $tags; - - $this->prepareViewData(); - } - - // bounces the user to the correct page of a thread for the indicated comment - public function getReplyRedirect($threadSlug, $replyId) - { - $reply = $this->replies->requireById($replyId); - - if (! $reply->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - $generator = app('Lio\Forum\Replies\ReplyQueryStringGenerator'); - $queryString = $generator->generate($reply, $this->repliesPerPage); - - return redirect(action('Forum\ForumThreadsController@getShowThread', $threadSlug) . $queryString); - } - - // reply to a thread - public function postCreateReply($threadSlug) - { - $thread = $this->threads->requireBySlug($threadSlug); - - return app('Lio\Forum\Replies\ReplyCreator')->create($this, [ - 'body' => Input::get('body'), - 'author' => Auth::user(), - 'ip' => Request::ip(), - ], $thread->id, new ReplyForm); - } - - public function replyCreationError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - public function replyCreated($reply) - { - $replyPresenter = new ReplyPresenter($reply); - - return $this->redirectTo($replyPresenter->url); - } - - // edit a reply - public function getEditReply($replyId) - { - $reply = $this->replies->requireById($replyId); - - if (! $reply->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return view('forum.replies.edit', compact('reply')); - } - - public function postEditReply($replyId) - { - $reply = $this->replies->requireById($replyId); - - if (! $reply->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return app('Lio\Forum\Replies\ReplyUpdater')->update($reply, $this, [ - 'body' => Input::get('body'), - ], new ReplyForm); - } - - // observer methods - public function replyUpdateError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - public function replyUpdated($reply) - { - $replyPresenter = new ReplyPresenter($reply); - - return $this->redirectTo($replyPresenter->url); - } - - // reply deletion - public function getDelete($replyId) - { - $reply = $this->replies->requireById($replyId); - - if (! $reply->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return view('forum.replies.delete', compact('reply')); - } - - public function postDelete($replyId) - { - $reply = $this->replies->requireById($replyId); - - if (! $reply->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return app('Lio\Forum\Replies\ReplyDeleter')->delete($this, $reply); - } - - // observer methods - public function replyDeleted($thread) - { - return redirect()->action('Forum\ForumThreadsController@getShowThread', $thread->slug); - } - - private function prepareViewData() - { - $forumSections = Config::get('forum.sections'); - - View::share(compact('forumSections')); - } -} diff --git a/app/Http/Controllers/Forum/ForumThreadsController.php b/app/Http/Controllers/Forum/ForumThreadsController.php deleted file mode 100644 index 9a33e8926..000000000 --- a/app/Http/Controllers/Forum/ForumThreadsController.php +++ /dev/null @@ -1,255 +0,0 @@ -threads = $threads; - $this->tags = $tags; - $this->threadCreator = $threadCreator; - $this->replies = $replies; - } - - // show thread list - clean this method - public function getIndex($status = '') - { - // query tags and retrieve the appropriate threads - $tags = $this->tags->getAllTagsBySlug(Input::get('tags')); - $threads = $this->threads->getByTagsAndStatusPaginated($tags, $status, $this->threadsPerPage); - - // add the tag string to each pagination link - $tagAppends = ['tags' => Input::get('tags')]; - $queryString = ! empty($tagAppends['tags']) ? '?tags=' . implode(',', (array) $tagAppends['tags']) : ''; - $threads->appends($tagAppends); - $this->createSections(Input::get('tags')); - - return view('forum.threads.index', compact('threads', 'tags', 'queryString')); - } - - // show a thread - public function getShowThread($threadSlug) - { - $thread = $this->threads->getBySlug($threadSlug); - - if (! $thread) { - return $this->redirectAction('Forum\ForumThreadsController@getIndex'); - } - - $replies = $this->threads->getThreadRepliesPaginated($thread, $this->repliesPerPage); - - $this->createSections($thread->getTags()); - - return view('forum.threads.show', compact('thread', 'replies')); - } - - // create a thread - public function getCreateThread() - { - $this->createSections(Input::get('tags')); - - if (App::environment('production') && Auth::user()->hasCreatedAThreadRecently()) { - return view('forum.threads.throttle'); - } - - $tags = $this->tags->getAllForForum(); - $versions = $this->threads->getNew()->getLaravelVersions(); - - return view('forum.threads.create', compact('tags', 'versions')); - } - - public function postCreateThread() - { - if (App::environment('production') && Auth::user()->hasCreatedAThreadRecently()) { - return redirect()->action('Forum\ForumThreadsController@getCreateThread'); - } - - /** @var \Illuminate\Validation\Validator $validator */ - $validator = Validator::make(Input::only('g-recaptcha-response'), [ - 'g-recaptcha-response' => 'required|captcha' - ]); - - if ($validator->fails()) { - return redirect()->action('Forum\ForumThreadsController@getCreateThread') - ->exceptInput('g-recaptcha-response') - ->withErrors($validator->errors()); - } - - return $this->threadCreator->create($this, [ - 'subject' => Input::get('subject'), - 'body' => Input::get('body'), - 'author' => Auth::user(), - 'laravel_version' => Input::get('laravel_version'), - 'is_question' => Input::get('is_question'), - 'tags' => $this->tags->getTagsByIds(Input::get('tags')), - 'ip' => Request::ip(), - ], new ThreadForm); - } - - public function threadCreationError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - public function threadCreated($thread) - { - return $this->redirectAction('Forum\ForumThreadsController@getShowThread', [$thread->slug]); - } - - // edit a thread - public function getEditThread($threadId) - { - $thread = $this->threads->requireById($threadId); - - if (! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - $tags = $this->tags->getAllForForum(); - $versions = $thread->getLaravelVersions(); - - $this->createSections(Input::get('tags')); - - return view('forum.threads.edit', compact('thread', 'tags', 'versions')); - } - - public function postEditThread($threadId) - { - $thread = $this->threads->requireById($threadId); - - if ( ! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return app('Lio\Forum\Threads\ThreadUpdater')->update($this, $thread, [ - 'subject' => Input::get('subject'), - 'body' => Input::get('body'), - 'is_question' => Input::get('is_question', 0), - 'laravel_version' => Input::get('laravel_version'), - 'tags' => $this->tags->getTagsByIds(Input::get('tags')), - ], new ThreadForm); - } - - public function getMarkQuestionSolved($threadId, $solvedByReplyId) - { - $thread = $this->threads->requireById($threadId); - - if ( ! $thread->isQuestion() || ! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - $reply = $this->replies->requireById($solvedByReplyId); - - if ( ! $reply || $reply->thread_id != $thread->id) { - return redirect()->home(); - } - - return app('Lio\Forum\Threads\ThreadUpdater')->update($this, $thread, [ - 'solution_reply_id' => $reply->id, - ]); - } - - public function getMarkQuestionUnsolved($threadId) - { - $thread = $this->threads->requireById($threadId); - - if ( ! $thread->isQuestion() || ! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return app('Lio\Forum\Threads\ThreadUpdater')->update($this, $thread, [ - 'solution_reply_id' => null, - ]); - } - - // observer methods - public function threadUpdateError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - public function threadUpdated($thread) - { - return $this->redirectAction('Forum\ForumThreadsController@getShowThread', [$thread->slug]); - } - - // thread deletion - public function getDelete($threadId) - { - $thread = $this->threads->requireById($threadId); - - if ( ! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - $this->createSections(Input::get('tags')); - - return view('forum.threads.delete', compact('thread')); - } - - public function postDelete($threadId) - { - $thread = $this->threads->requireById($threadId); - - if ( ! $thread->isManageableBy(Auth::user())) { - return redirect()->home(); - } - - return app('Lio\Forum\Threads\ThreadDeleter')->delete($this, $thread); - } - - // observer methods - public function threadDeleted() - { - return redirect()->action('Forum\ForumThreadsController@getIndex'); - } - - // forum thread search - public function getSearch() - { - $query = Input::get('query'); - $results = app('Lio\Forum\Threads\ThreadSearch')->searchPaginated($query, $this->threadsPerPage); - $results->appends(['query' => $query]); - - $this->createSections(Input::get('tags')); - - return view('forum.search', compact('query', 'results')); - } - - // ------------------------- // - private function createSections($currentSection = null) - { - $forumSections = app('Lio\Forum\SectionSidebarCreator')->createSidebar($currentSection); - - View::share(compact('forumSections')); - } -} diff --git a/app/Http/Controllers/Forum/TagsController.php b/app/Http/Controllers/Forum/TagsController.php new file mode 100644 index 000000000..95b54a9b6 --- /dev/null +++ b/app/Http/Controllers/Forum/TagsController.php @@ -0,0 +1,15 @@ + Thread::feedByTagPaginated($tag), 'activeTag' => $tag]); + } +} diff --git a/app/Http/Controllers/Forum/ThreadsController.php b/app/Http/Controllers/Forum/ThreadsController.php new file mode 100644 index 000000000..8d561c5ba --- /dev/null +++ b/app/Http/Controllers/Forum/ThreadsController.php @@ -0,0 +1,98 @@ +middleware([Authenticate::class, RedirectIfUnconfirmed::class], ['except' => ['overview', 'show']]); + } + + public function overview() + { + $threads = request()->has('search') ? Thread::search(request('search')) : Thread::feedPaginated(); + + return view('forum.overview', compact('threads')); + } + + public function show(Thread $thread) + { + return view('forum.threads.show', compact('thread')); + } + + public function create() + { + return view('forum.threads.create', ['tags' => Tag::all()]); + } + + public function store(ThreadRequest $request) + { + $thread = $this->dispatchNow(CreateThread::fromRequest($request)); + + $this->success('forum.threads.created'); + + return redirect()->route('thread', $thread->slug()); + } + + public function edit(Thread $thread) + { + $this->authorize(ThreadPolicy::UPDATE, $thread); + + return view('forum.threads.edit', ['thread' => $thread, 'tags' => Tag::all()]); + } + + public function update(ThreadRequest $request, Thread $thread) + { + $this->authorize(ThreadPolicy::UPDATE, $thread); + + $thread = $this->dispatchNow(UpdateThread::fromRequest($thread, $request)); + + $this->success('forum.threads.updated'); + + return redirect()->route('thread', $thread->slug()); + } + + public function delete(Thread $thread) + { + $this->authorize(ThreadPolicy::DELETE, $thread); + + $this->dispatchNow(new DeleteThread($thread)); + + $this->success('forum.threads.deleted'); + + return redirect()->route('forum'); + } + + public function markSolution(Thread $thread, Reply $reply) + { + $this->authorize(ThreadPolicy::UPDATE, $thread); + + $this->dispatchNow(new MarkThreadSolution($thread, $reply)); + + return redirect()->route('thread', $thread->slug()); + } + + public function unmarkSolution(Thread $thread) + { + $this->authorize(ThreadPolicy::UPDATE, $thread); + + $this->dispatchNow(new UnmarkThreadSolution($thread)); + + return redirect()->route('thread', $thread->slug()); + } +} diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index af07331f1..07b4d0db0 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -1,29 +1,16 @@ action('Forum\ForumThreadsController@getIndex'); - } - - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function rss() + public function show() { - return redirect()->home(); + return view('home'); } - /** - * @return \Illuminate\Http\RedirectResponse - */ - public function redirectToMainWebsite() + public function rules() { - return redirect('https://laravel.io/'); + return view('rules'); } } diff --git a/app/Http/Controllers/PastesController.php b/app/Http/Controllers/PastesController.php deleted file mode 100644 index 2c95aea2d..000000000 --- a/app/Http/Controllers/PastesController.php +++ /dev/null @@ -1,28 +0,0 @@ -middleware([Authenticate::class, RedirectIfUnconfirmed::class]); + } + + public function store(CreateReplyRequest $request) + { + $this->authorize(ReplyPolicy::CREATE, Reply::class); + + $reply = $this->dispatchNow(CreateReply::fromRequest($request)); + + $this->success('replies.created'); + + return $this->redirectToReplyAble($reply->replyAble()); + } + + public function edit(Reply $reply) + { + $this->authorize(ReplyPolicy::UPDATE, $reply); + + return view('replies.edit', compact('reply')); + } + + public function update(UpdateReplyRequest $request, Reply $reply) + { + $this->authorize(ReplyPolicy::UPDATE, $reply); + + $this->dispatchNow(new UpdateReply($reply, $request->body())); + + $this->success('replies.updated'); + + return $this->redirectToReplyAble($reply->replyAble()); + } + + public function delete(Reply $reply) + { + $this->authorize(ReplyPolicy::DELETE, $reply); + + $this->dispatchNow(new DeleteReply($reply)); + + $this->success('replies.deleted'); + + return $this->redirectToReplyAble($reply->replyAble()); + } + + private function redirectToReplyAble(ReplyAble $replyAble): RedirectResponse + { + if ($replyAble instanceof Thread) { + return redirect()->route('thread', $replyAble->slug()); + } + + abort(500, 'Redirect not implemented for given replyable.'); + } +} diff --git a/app/Http/Controllers/Settings/PasswordController.php b/app/Http/Controllers/Settings/PasswordController.php new file mode 100644 index 000000000..03043e0d5 --- /dev/null +++ b/app/Http/Controllers/Settings/PasswordController.php @@ -0,0 +1,31 @@ +middleware(Authenticate::class); + } + + public function edit() + { + return view('users.settings.password'); + } + + public function update(UpdatePasswordRequest $request) + { + $this->dispatchNow(new UpdatePassword(Auth::user(), $request->newPassword())); + + $this->success('settings.password.updated'); + + return redirect()->route('settings.password'); + } +} diff --git a/app/Http/Controllers/Settings/ProfileController.php b/app/Http/Controllers/Settings/ProfileController.php new file mode 100644 index 000000000..9dd7ed0f6 --- /dev/null +++ b/app/Http/Controllers/Settings/ProfileController.php @@ -0,0 +1,31 @@ +middleware(Authenticate::class); + } + + public function edit() + { + return view('users.settings.profile'); + } + + public function update(UpdateProfileRequest $request) + { + $this->dispatchNow(UpdateProfile::fromRequest(Auth::user(), $request)); + + $this->success('settings.updated'); + + return redirect()->route('settings.profile'); + } +} diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php deleted file mode 100644 index 6b3c4d8d5..000000000 --- a/app/Http/Controllers/UsersController.php +++ /dev/null @@ -1,100 +0,0 @@ -users = $users; - $this->updater = $updater; - } - - public function getProfile($userName) - { - $user = $this->users->requireByName($userName); - - $threads = $user->getLatestThreadsPaginated(5); - $replies = $user->getLatestRepliesPaginated(5); - - return view('users.profile', compact('user', 'threads', 'replies')); - } - - public function getSettings($userName) - { - $user = $this->users->requireByName($userName); - - // Make sure that the user which is updated is the one who is currently logged in. - if (Auth::user()->id !== $user->id) { - abort(403); - } - - return view('users.settings', compact('user')); - } - - public function putSettings($userName) - { - $user = $this->users->requireByName($userName); - - // Make sure that the user which is updated is the one who is currently logged in. - if (Auth::user()->id !== $user->id) { - abort(403); - } - - return $this->updater->update($this, $user, Input::only('name', 'email')); - } - - public function getThreads($userName) - { - $user = $this->users->requireByName($userName); - - $threads = $user->getLatestThreadsPaginated(10); - - return view('users.threads', compact('user', 'threads')); - } - - public function getReplies($userName) - { - $user = $this->users->requireByName($userName); - - $replies = $user->getLatestRepliesPaginated(10); - - return view('users.replies', compact('user', 'replies')); - } - - public function userValidationError($errors) - { - return $this->redirectBack(['errors' => $errors]); - } - - public function userUpdated($user, $emailChanged = false) - { - if ($emailChanged) { - Session::put('success', 'Settings updated. An email confirmation was sent to ' . $user->email); - } else { - Session::put('success', 'Settings updated'); - } - - return redirect()->route('user.settings', $user->name); - } -} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 3ac47d0af..4c2a25b87 100755 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -1,43 +1,77 @@ [ + EncryptCookies::class, + AddQueuedCookiesToResponse::class, + StartSession::class, + ShareErrorsFromSession::class, + VerifyCsrfToken::class, + SubstituteBindings::class, + RedirectIfBanned::class, + ], + 'api' => [ + 'throttle:60,1', + 'bindings', + ], ]; /** * The application's route middleware. * + * These middleware may be assigned to groups or used individually. + * * @var array */ protected $routeMiddleware = [ 'auth' => Authenticate::class, 'auth.basic' => AuthenticateWithBasicAuth::class, + 'bindings' => SubstituteBindings::class, + 'can' => Authorize::class, 'guest' => RedirectIfAuthenticated::class, - 'confirmed' => EmailConfirmed::class, + 'throttle' => ThrottleRequests::class, ]; } diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php deleted file mode 100755 index bd8a22be0..000000000 --- a/app/Http/Middleware/Authenticate.php +++ /dev/null @@ -1,54 +0,0 @@ -auth = $auth; - } - - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed - */ - public function handle($request, Closure $next) - { - if ($this->auth->guest()) { - if ($request->ajax()) { - return response('Unauthorized.', 401); - } else { - return redirect()->guest(route('login')); - } - } - - if ($this->auth->user()->is_banned) { - // Don't allow people who are banned to log in. - session()->put('error', 'Your account has been banned. If you\'d like to appeal, please contact us through the support widget below.'); - - $this->auth->logout(); - - return redirect()->home(); - } - - return $next($request); - } -} diff --git a/app/Http/Middleware/EmailConfirmed.php b/app/Http/Middleware/EmailConfirmed.php deleted file mode 100644 index bde7aab83..000000000 --- a/app/Http/Middleware/EmailConfirmed.php +++ /dev/null @@ -1,52 +0,0 @@ -auth = $auth; - $this->session = $session; - } - - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure $next - * @return mixed - */ - public function handle($request, Closure $next) - { - if (! $this->auth->user()->isConfirmed()) { - // Don't let people who haven't confirmed their email use the authed sections on the website. - $this->session->put('error', 'Please confirm your email address (' . $this->auth->user()->email . ') before you try to use this section. - Re-send confirmation email. - Change e-mail address.'); - - return redirect()->home(); - } - - return $next($request); - } -} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php old mode 100755 new mode 100644 index 207469bd0..3aa15f8dd --- a/app/Http/Middleware/EncryptCookies.php +++ b/app/Http/Middleware/EncryptCookies.php @@ -1,5 +1,6 @@ auth = $auth; - } - /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next + * @param \Illuminate\Http\Request $request + * @param \Closure $next + * @param string|null $guard * @return mixed */ - public function handle($request, Closure $next) + public function handle($request, Closure $next, $guard = null) { - if ($this->auth->check()) { - return redirect()->home(); + if (Auth::guard($guard)->check()) { + return redirect()->route('home'); } return $next($request); diff --git a/app/Http/Middleware/RedirectIfBanned.php b/app/Http/Middleware/RedirectIfBanned.php new file mode 100644 index 000000000..abe54b789 --- /dev/null +++ b/app/Http/Middleware/RedirectIfBanned.php @@ -0,0 +1,25 @@ +isBanned()) { + $this->error('errors.banned'); + + Auth::logout(); + + return redirect()->home(); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/RedirectIfUnconfirmed.php b/app/Http/Middleware/RedirectIfUnconfirmed.php new file mode 100644 index 000000000..df9a080f0 --- /dev/null +++ b/app/Http/Middleware/RedirectIfUnconfirmed.php @@ -0,0 +1,23 @@ +isUnconfirmed()) { + $this->error('errors.unconfirmed'); + + return redirect()->home(); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/SiteIndexing.php b/app/Http/Middleware/SiteIndexing.php new file mode 100644 index 000000000..c1f48108d --- /dev/null +++ b/app/Http/Middleware/SiteIndexing.php @@ -0,0 +1,17 @@ +environment('production'); + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 000000000..943e9a4da --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,18 @@ +user()->can(UserPolicy::ADMIN, User::class)) { + throw new HttpException(403, 'Forbidden'); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php old mode 100755 new mode 100644 index ae2bb77f6..a2c354141 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -1,5 +1,6 @@ 'required|'.SpamRule::NAME, + 'replyable_id' => 'required', + 'replyable_type' => 'required|in:'.Thread::TABLE, + ]; + } + + public function replyAble() + { + return $this->findReplyAble($this->get('replyable_id'), $this->get('replyable_type')); + } + + private function findReplyAble(int $id, string $type) + { + switch ($type) { + case Thread::TABLE: + return Thread::find($id); + } + + abort(404); + } + + public function author(): User + { + return $this->user(); + } + + public function body(): string + { + return $this->get('body'); + } +} diff --git a/app/Http/Requests/RegisterRequest.php b/app/Http/Requests/RegisterRequest.php new file mode 100644 index 000000000..eea76a2a2 --- /dev/null +++ b/app/Http/Requests/RegisterRequest.php @@ -0,0 +1,72 @@ + 'required|max:255', + 'email' => 'required|email|max:255|unique:users', + 'username' => 'required|max:40|unique:users', + 'rules' => 'accepted', + ]; + + if (Session::has('githubData')) { + $rules['password'] = 'confirmed|min:6'; + } else { + $rules['password'] = 'required|confirmed|min:6'; + } + + return $rules; + } + + public function name(): string + { + return $this->get('name'); + } + + public function emailAddress(): string + { + return $this->get('email'); + } + + public function username(): string + { + return $this->get('username'); + } + + public function password(): string + { + return $this->get('password', ''); + } + + public function githubId(): string + { + return session('githubData.id', ''); + } + + public function githubUsername(): string + { + return session('githubData.username', ''); + } +} diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php old mode 100755 new mode 100644 index b15cc6362..46694fa06 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -1,9 +1,25 @@ error('errors.fields'); + + parent::failedValidation($validator); + } } diff --git a/app/Http/Requests/ThreadRequest.php b/app/Http/Requests/ThreadRequest.php new file mode 100644 index 000000000..e15aa394a --- /dev/null +++ b/app/Http/Requests/ThreadRequest.php @@ -0,0 +1,40 @@ + 'required|'.DoesNotContainUrlRule::NAME.'|'.SpamRule::NAME, + 'body' => 'required|'.SpamRule::NAME, + 'tags' => 'array', + 'tags.*' => 'exists:tags,id', + ]; + } + + public function author(): User + { + return $this->user(); + } + + public function subject(): string + { + return $this->get('subject'); + } + + public function body(): string + { + return $this->get('body'); + } + + public function tags(): array + { + return $this->get('tags', []); + } +} diff --git a/app/Http/Requests/UpdatePasswordRequest.php b/app/Http/Requests/UpdatePasswordRequest.php new file mode 100644 index 000000000..88bf99868 --- /dev/null +++ b/app/Http/Requests/UpdatePasswordRequest.php @@ -0,0 +1,21 @@ + 'required|'.PasscheckRule::NAME, + 'password' => 'required|confirmed|min:6', + ]; + } + + public function newPassword(): string + { + return $this->get('password'); + } +} diff --git a/app/Http/Requests/UpdateProfileRequest.php b/app/Http/Requests/UpdateProfileRequest.php new file mode 100644 index 000000000..9fb2fc5b5 --- /dev/null +++ b/app/Http/Requests/UpdateProfileRequest.php @@ -0,0 +1,32 @@ + 'required|max:255', + 'email' => 'required|email|max:255|unique:users,email,'.Auth::id(), + 'username' => 'required|max:255|unique:users,username,'.Auth::id(), + ]; + } + + public function name(): string + { + return $this->get('name'); + } + + public function email(): string + { + return $this->get('email'); + } + + public function username(): string + { + return $this->get('username'); + } +} diff --git a/app/Http/Requests/UpdateReplyRequest.php b/app/Http/Requests/UpdateReplyRequest.php new file mode 100644 index 000000000..971f5a916 --- /dev/null +++ b/app/Http/Requests/UpdateReplyRequest.php @@ -0,0 +1,20 @@ + 'required|'.SpamRule::NAME, + ]; + } + + public function body(): string + { + return $this->get('body'); + } +} diff --git a/app/Http/routes.php b/app/Http/routes.php deleted file mode 100644 index d032c246f..000000000 --- a/app/Http/routes.php +++ /dev/null @@ -1,87 +0,0 @@ - 'wiki.laravel.io'], function() { - Route::get('{wildcard}', 'HomeController@redirectToMainWebsite'); -}); -Route::group(['domain' => 'forum.laravel.io'], function() { - Route::get('{wildcard}', 'HomeController@redirectToMainWebsite'); -}); -Route::group(['domain' => 'forums.laravel.io'], function() { - Route::get('{wildcard}', 'HomeController@redirectToMainWebsite'); -}); - -Route::get('/', ['as' => 'home', 'uses' => 'HomeController@index']); -Route::get('rss', 'HomeController@rss'); - -// Auth -Route::group(['namespace' => 'Auth'], function () { - Route::get('login', ['as' => 'login', 'uses' => 'AuthController@login']); - Route::get('auth/github', 'AuthController@authByGithub'); - Route::get('signup', ['as' => 'signup', 'uses' => 'AuthController@signup']); - Route::post('signup', 'AuthController@register'); - Route::get('logout', ['as' => 'logout', 'uses' => 'AuthController@logout']); - - Route::get('confirm-email/{confirmation_code}', ['as' => 'auth.confirm', 'uses' => 'AuthController@confirmEmail']); - Route::get('resend-email-confirmation', ['as' => 'auth.reconfirm', 'uses' => 'AuthController@resendEmailConfirmation']); -}); - -// Users -Route::get('user/{username}', ['as' => 'user', 'uses' => 'UsersController@getProfile']); -Route::get('user/{username}/threads', 'UsersController@getThreads'); -Route::get('user/{username}/replies', 'UsersController@getReplies'); - -Route::group(['middleware' => 'auth'], function () { - Route::get('user/{username}/settings', ['as' => 'user.settings', 'uses' => 'UsersController@getSettings']); - Route::put('user/{username}/settings', ['as' => 'user.settings.update', 'uses' => 'UsersController@putSettings']); -}); - -// Chat -Route::get('chat', 'ChatController@getIndex'); - -// Paste Bin -Route::get('bin', 'PastesController@getCreate'); -Route::get('bin/fork/{hash}', 'PastesController@getFork'); -Route::get('bin/{hash}/raw', 'PastesController@getRaw'); -Route::get('bin/{hash}', 'PastesController@getShow'); - -// Forum -Route::group(['namespace' => 'Forum'], function() { - Route::group(['middleware' => ['auth', 'confirmed']], function() { - Route::get('forum/create-thread', 'ForumThreadsController@getCreateThread'); - Route::post('forum/create-thread', 'ForumThreadsController@postCreateThread'); - - Route::get('forum/mark-as-solved/{thread}/{reply}', 'ForumThreadsController@getMarkQuestionSolved'); - Route::get('forum/mark-as-unsolved/{thread}', 'ForumThreadsController@getMarkQuestionUnsolved'); - - Route::get('forum/edit-thread/{thread}', 'ForumThreadsController@getEditThread'); - Route::post('forum/edit-thread/{thread}', 'ForumThreadsController@postEditThread'); - Route::get('forum/edit-reply/{reply}', 'ForumRepliesController@getEditReply'); - Route::post('forum/edit-reply/{reply}', 'ForumRepliesController@postEditReply'); - - Route::get('forum/delete/reply/{reply}', 'ForumRepliesController@getDelete'); - Route::post('forum/delete/reply/{reply}', 'ForumRepliesController@postDelete'); - Route::get('forum/delete/thread/{thread}', 'ForumThreadsController@getDelete'); - Route::post('forum/delete/thread/{thread}', 'ForumThreadsController@postDelete'); - - Route::post('forum/{slug}', 'ForumRepliesController@postCreateReply'); - }); - - Route::get('forum/{status?}', 'ForumThreadsController@getIndex') - ->where(['status' => '(open|solved)']); - - Route::get('forum/search', 'ForumThreadsController@getSearch'); - Route::get('forum/{slug}/reply/{reply}', 'ForumRepliesController@getReplyRedirect'); - Route::get('forum/{slug}', 'ForumThreadsController@getShowThread'); -}); - -// Admin -Route::group(['middleware' => ['auth', 'confirmed'], 'before' => 'has_role:manage_users', 'prefix' => 'admin', 'namespace' => 'Admin'], function() { - Route::get('/', 'OverviewController@overview'); - - Route::get('users', ['as' => 'admin.users', 'uses' => 'UsersController@getIndex']); - Route::get('users/search', ['as' => 'admin.users.search', 'uses' => 'UsersController@search']); - Route::get('edit/{user}', 'UsersController@getEdit'); - Route::post('edit/{user}', 'UsersController@postEdit'); - Route::put('ban-and-delete-threads/{user}', 'UsersController@putBanAndDeleteThreads'); -}); diff --git a/app/Jobs/BanUser.php b/app/Jobs/BanUser.php new file mode 100644 index 000000000..1aef3e420 --- /dev/null +++ b/app/Jobs/BanUser.php @@ -0,0 +1,23 @@ +user = $user; + } + + public function handle() + { + $this->user->ban(); + } +} diff --git a/app/Jobs/ConfirmUser.php b/app/Jobs/ConfirmUser.php new file mode 100644 index 000000000..88041095b --- /dev/null +++ b/app/Jobs/ConfirmUser.php @@ -0,0 +1,23 @@ +user = $user; + } + + public function handle() + { + $this->user->confirm(); + } +} diff --git a/app/Jobs/CreateReply.php b/app/Jobs/CreateReply.php new file mode 100644 index 000000000..99285d9c0 --- /dev/null +++ b/app/Jobs/CreateReply.php @@ -0,0 +1,54 @@ +body = $body; + $this->ip = $ip; + $this->author = $author; + $this->replyAble = $replyAble; + } + + public static function fromRequest(CreateReplyRequest $request): self + { + return new static($request->body(), $request->ip(), $request->author(), $request->replyAble()); + } + + public function handle(): Reply + { + $reply = new Reply(['body' => $this->body, 'ip' => $this->ip]); + $reply->authoredBy($this->author); + $reply->to($this->replyAble); + $reply->save(); + + return $reply; + } +} diff --git a/app/Jobs/CreateThread.php b/app/Jobs/CreateThread.php new file mode 100644 index 000000000..ef36abeb8 --- /dev/null +++ b/app/Jobs/CreateThread.php @@ -0,0 +1,70 @@ +subject = $subject; + $this->body = $body; + $this->ip = $ip; + $this->author = $author; + $this->tags = $tags; + } + + public static function fromRequest(ThreadRequest $request): self + { + return new static( + $request->subject(), + $request->body(), + $request->ip(), + $request->author(), + $request->tags() + ); + } + + public function handle(): Thread + { + $thread = new Thread([ + 'subject' => $this->subject, + 'body' => $this->body, + 'ip' => $this->ip, + 'slug' => $this->subject, + ]); + $thread->authoredBy($this->author); + $thread->syncTags($this->tags); + $thread->save(); + + return $thread; + } +} diff --git a/app/Jobs/DeleteReply.php b/app/Jobs/DeleteReply.php new file mode 100644 index 000000000..77a288e0f --- /dev/null +++ b/app/Jobs/DeleteReply.php @@ -0,0 +1,23 @@ +reply = $reply; + } + + public function handle() + { + $this->reply->delete(); + } +} diff --git a/app/Jobs/DeleteThread.php b/app/Jobs/DeleteThread.php new file mode 100644 index 000000000..9e2400f60 --- /dev/null +++ b/app/Jobs/DeleteThread.php @@ -0,0 +1,23 @@ +thread = $thread; + } + + public function handle() + { + $this->thread->delete(); + } +} diff --git a/app/Jobs/DeleteUser.php b/app/Jobs/DeleteUser.php new file mode 100644 index 000000000..401158ba0 --- /dev/null +++ b/app/Jobs/DeleteUser.php @@ -0,0 +1,23 @@ +user = $user; + } + + public function handle() + { + $this->user->delete(); + } +} diff --git a/app/Jobs/Job.php b/app/Jobs/Job.php deleted file mode 100755 index dc48f1412..000000000 --- a/app/Jobs/Job.php +++ /dev/null @@ -1,20 +0,0 @@ -thread = $thread; + $this->solution = $solution; + } + + public function handle() + { + $this->thread->markSolution($this->solution); + } +} diff --git a/app/Jobs/RegisterUser.php b/app/Jobs/RegisterUser.php new file mode 100644 index 000000000..370dd4ade --- /dev/null +++ b/app/Jobs/RegisterUser.php @@ -0,0 +1,106 @@ +name = $name; + $this->email = $email; + $this->username = $username; + $this->ip = $ip; + $this->password = $password; + $this->attributes = array_only($attributes, ['github_id', 'github_username']); + } + + public static function fromRequest(RegisterRequest $request): self + { + return new static( + $request->name(), + $request->emailAddress(), + $request->username(), + $request->ip(), + $request->password(), + ['github_id' => $request->githubId(), 'github_username' => $request->githubUsername()] + ); + } + + public function handle(Hasher $hasher): User + { + $this->assertEmailAddressIsUnique($this->email); + $this->assertUsernameIsUnique($this->username); + + $user = new User(array_merge([ + 'name' => $this->name, + 'email' => $this->email, + 'username' => strtolower($this->username), + 'ip' => $this->ip, + 'password' => $this->password ? $hasher->make($this->password) : '', + 'confirmation_code' => str_random(60), + 'type' => User::DEFAULT, + 'remember_token' => '', + ], $this->attributes)); + $user->save(); + + return $user; + } + + private function assertEmailAddressIsUnique(string $emailAddress) + { + try { + User::findByEmailAddress($emailAddress); + } catch (ModelNotFoundException $exception) { + return true; + } + + throw CannotCreateUser::duplicateEmailAddress($emailAddress); + } + + private function assertUsernameIsUnique(string $username) + { + try { + User::findByUsername($username); + } catch (ModelNotFoundException $exception) { + return true; + } + + throw CannotCreateUser::duplicateUsername($username); + } +} diff --git a/app/Jobs/SendEmailConfirmation.php b/app/Jobs/SendEmailConfirmation.php new file mode 100644 index 000000000..e8cd3816f --- /dev/null +++ b/app/Jobs/SendEmailConfirmation.php @@ -0,0 +1,29 @@ +user = $user; + } + + public function handle(Mailer $mailer) + { + $mailer->to($this->user->emailAddress()) + ->send(new EmailConfirmation($this->user)); + } +} diff --git a/app/Jobs/UnbanUser.php b/app/Jobs/UnbanUser.php new file mode 100644 index 000000000..00a1c2ef8 --- /dev/null +++ b/app/Jobs/UnbanUser.php @@ -0,0 +1,23 @@ +user = $user; + } + + public function handle() + { + $this->user->unban(); + } +} diff --git a/app/Jobs/UnmarkThreadSolution.php b/app/Jobs/UnmarkThreadSolution.php new file mode 100644 index 000000000..6ec186d56 --- /dev/null +++ b/app/Jobs/UnmarkThreadSolution.php @@ -0,0 +1,23 @@ +thread = $thread; + } + + public function handle() + { + $this->thread->unmarkSolution(); + } +} diff --git a/app/Jobs/UpdatePassword.php b/app/Jobs/UpdatePassword.php new file mode 100644 index 000000000..ab8049e73 --- /dev/null +++ b/app/Jobs/UpdatePassword.php @@ -0,0 +1,30 @@ +user = $user; + $this->newPassword = $newPassword; + } + + public function handle(Hasher $hasher) + { + $this->user->update(['password' => $hasher->make($this->newPassword)]); + } +} diff --git a/app/Jobs/UpdateProfile.php b/app/Jobs/UpdateProfile.php new file mode 100644 index 000000000..838b3df10 --- /dev/null +++ b/app/Jobs/UpdateProfile.php @@ -0,0 +1,39 @@ +user = $user; + $this->attributes = array_only($attributes, ['name', 'email', 'username']); + } + + public static function fromRequest(User $user, UpdateProfileRequest $request): self + { + return new static($user, [ + 'name' => $request->name(), + 'email' => $request->email(), + 'username' => strtolower($request->username()), + ]); + } + + public function handle() + { + $this->user->update($this->attributes); + } +} diff --git a/app/Jobs/UpdateReply.php b/app/Jobs/UpdateReply.php new file mode 100644 index 000000000..7a8b2ffdf --- /dev/null +++ b/app/Jobs/UpdateReply.php @@ -0,0 +1,29 @@ +reply = $reply; + $this->body = $body; + } + + public function handle() + { + $this->reply->update(['body' => $this->body]); + } +} diff --git a/app/Jobs/UpdateThread.php b/app/Jobs/UpdateThread.php new file mode 100644 index 000000000..d394c6d61 --- /dev/null +++ b/app/Jobs/UpdateThread.php @@ -0,0 +1,48 @@ +thread = $thread; + $this->attributes = array_only($attributes, ['subject', 'body', 'slug', 'tags']); + } + + public static function fromRequest(Thread $thread, ThreadRequest $request): self + { + return new static($thread, [ + 'subject' => $request->subject(), + 'body' => $request->body(), + 'slug' => $request->subject(), + 'tags' => $request->tags(), + ]); + } + + public function handle(): Thread + { + $this->thread->update($this->attributes); + + if (array_has($this->attributes, 'tags')) { + $this->thread->syncTags($this->attributes['tags']); + } + + $this->thread->save(); + + return $this->thread; + } +} diff --git a/app/Listeners/.gitkeep b/app/Listeners/.gitkeep deleted file mode 100755 index e69de29bb..000000000 diff --git a/app/Mail/EmailConfirmation.php b/app/Mail/EmailConfirmation.php new file mode 100644 index 000000000..f70a43d63 --- /dev/null +++ b/app/Mail/EmailConfirmation.php @@ -0,0 +1,33 @@ +user = $user; + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + return $this->subject('Confirm your Laravel.io email address') + ->markdown('emails.email_confirmation'); + } +} diff --git a/app/Markdown/Converter.php b/app/Markdown/Converter.php new file mode 100644 index 000000000..63779c2ea --- /dev/null +++ b/app/Markdown/Converter.php @@ -0,0 +1,8 @@ +htmlParser = new HTML_To_markdown; - $this->htmlParser->set_option('header_style', 'atx'); - - $this->markdownParser = new MarkdownExtra; - $this->markdownParser->no_markup = true; - } - - public function convertHtmlToMarkdown($html) - { - return $this->htmlParser->convert($html); - } - - public function convertMarkdownToHtml($markdown) - { - $html = $this->markdownParser->transform($markdown); - return Purifier::clean($html, 'markdown'); - } -} diff --git a/app/Markdown/LeagueConverter.php b/app/Markdown/LeagueConverter.php new file mode 100644 index 000000000..ab7adce1a --- /dev/null +++ b/app/Markdown/LeagueConverter.php @@ -0,0 +1,23 @@ +converter = $converter; + } + + public function toHtml(string $markdown): string + { + return $this->converter->convertToHtml($markdown); + } +} diff --git a/app/Markdown/MarkdownServiceProvider.php b/app/Markdown/MarkdownServiceProvider.php new file mode 100644 index 000000000..993e80c12 --- /dev/null +++ b/app/Markdown/MarkdownServiceProvider.php @@ -0,0 +1,16 @@ +app->bind(Converter::class, function () { + return new LeagueConverter(new CommonMarkConverter(['html_input' => 'escape'])); + }); + } +} diff --git a/app/Models/Reply.php b/app/Models/Reply.php new file mode 100644 index 000000000..15473c205 --- /dev/null +++ b/app/Models/Reply.php @@ -0,0 +1,54 @@ +id; + } + + public function body(): string + { + return $this->body; + } + + public function excerpt(int $limit = 100): string + { + return str_limit(strip_tags(md_to_html($this->body())), $limit); + } + + public function to(ReplyAble $replyAble) + { + $this->replyAbleRelation()->associate($replyAble); + } + + public function replyAble(): ReplyAble + { + return $this->replyAbleRelation; + } + + public function replyAbleRelation(): MorphTo + { + return $this->morphTo('replyable'); + } +} diff --git a/app/Models/ReplyAble.php b/app/Models/ReplyAble.php new file mode 100644 index 000000000..4d31b4b60 --- /dev/null +++ b/app/Models/ReplyAble.php @@ -0,0 +1,25 @@ +id; + } + + public function name(): string + { + return $this->name; + } +} diff --git a/app/Models/Thread.php b/app/Models/Thread.php new file mode 100644 index 000000000..f5afc61dc --- /dev/null +++ b/app/Models/Thread.php @@ -0,0 +1,159 @@ +id; + } + + public function subject(): string + { + return $this->subject; + } + + public function body(): string + { + return $this->body; + } + + public function excerpt(int $limit = 100): string + { + return str_limit(strip_tags(md_to_html($this->body())), $limit); + } + + public function solutionReply(): ?Reply + { + return $this->solutionReplyRelation; + } + + public function solutionReplyRelation(): BelongsTo + { + return $this->belongsTo(Reply::class, 'solution_reply_id'); + } + + public function isSolutionReply(Reply $reply): bool + { + if ($solution = $this->solutionReply()) { + return $solution->matches($reply); + } + + return false; + } + + public function markSolution(Reply $reply) + { + $thread = $reply->replyAble(); + + if (! $thread instanceof self) { + throw CouldNotMarkReplyAsSolution::replyAbleIsNotAThread($reply); + } + + $this->solutionReplyRelation()->associate($reply); + $this->save(); + } + + public function unmarkSolution() + { + $this->solutionReplyRelation()->dissociate(); + $this->save(); + } + + public function delete() + { + $this->removeTags(); + $this->removeReplies(); + + parent::delete(); + } + + /** + * @return \App\Models\Thread[] + */ + public static function search(string $keyword, int $perPage = 20): Paginator + { + return static::feedQuery() + ->where('threads.subject', 'LIKE', "%$keyword%") + ->orWhere('threads.body', 'LIKE', "%$keyword%") + ->paginate($perPage); + } + + /** + * @return \App\Models\Thread[] + */ + public static function feed(int $limit = 20): Collection + { + return static::feedQuery()->limit($limit)->get(); + } + + /** + * @return \App\Models\Thread[] + */ + public static function feedPaginated(int $perPage = 20): Paginator + { + return static::feedQuery()->paginate($perPage); + } + + /** + * @return \App\Models\Thread[] + */ + public static function feedByTagPaginated(Tag $tag, int $perPage = 20): Paginator + { + return static::feedQuery() + ->join('taggables', function ($join) use ($tag) { + $join->on('threads.id', 'taggables.taggable_id') + ->where('taggable_type', static::TABLE); + }) + ->where('taggables.tag_id', $tag->id()) + ->paginate($perPage); + } + + /** + * This will order the threads by creation date and latest reply. + */ + private static function feedQuery(): Builder + { + return static::leftJoin('replies', function ($join) { + $join->on('threads.id', 'replies.replyable_id') + ->where('replies.replyable_type', static::TABLE); + }) + ->orderBy('latest_creation', 'DESC') + ->groupBy('threads.id') + ->select('threads.*', DB::raw(' + CASE WHEN COALESCE(MAX(replies.created_at), 0) > threads.created_at + THEN COALESCE(MAX(replies.created_at), 0) + ELSE threads.created_at + END AS latest_creation + ')); + } +} diff --git a/app/Policies/ReplyPolicy.php b/app/Policies/ReplyPolicy.php new file mode 100644 index 000000000..ac6c88a7a --- /dev/null +++ b/app/Policies/ReplyPolicy.php @@ -0,0 +1,38 @@ +isAuthoredBy($user) || $user->isModerator() || $user->isAdmin(); + } + + /** + * Determine if the given reply can be deleted by the user. + */ + public function delete(User $user, Reply $reply): bool + { + return $reply->isAuthoredBy($user) || $user->isModerator() || $user->isAdmin(); + } +} diff --git a/app/Policies/ThreadPolicy.php b/app/Policies/ThreadPolicy.php new file mode 100644 index 000000000..93caa26ae --- /dev/null +++ b/app/Policies/ThreadPolicy.php @@ -0,0 +1,28 @@ +isAuthoredBy($user) || $user->isModerator() || $user->isAdmin(); + } + + /** + * Determine if the given thread can be deleted by the user. + */ + public function delete(User $user, Thread $thread): bool + { + return $thread->isAuthoredBy($user) || $user->isModerator() || $user->isAdmin(); + } +} diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php new file mode 100644 index 000000000..77ea6606b --- /dev/null +++ b/app/Policies/UserPolicy.php @@ -0,0 +1,37 @@ +isAdmin() || $user->isModerator(); + } + + /** + * Determine if the current logged in user can ban a user. + */ + public function ban(User $user, User $subject): bool + { + return ($user->isAdmin() && ! $subject->isAdmin()) || + ($user->isModerator() && ! $subject->isAdmin() && ! $subject->isModerator()); + } + + /** + * Determine if the current logged in user can delete a user. + */ + public function delete(User $user, User $subject): bool + { + return $user->isAdmin() && ! $subject->isAdmin(); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php old mode 100755 new mode 100644 index 102fee834..2ca4f7035 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -1,8 +1,10 @@ bootEloquentMorphs(); + $this->bootMacros(); } - /** - * Register any application services. - * - * @return void - */ - public function register() + private function bootEloquentMorphs() + { + Relation::morphMap([ + Thread::TABLE => Thread::class, + ]); + } + + public function bootMacros() { - // + require base_path('resources/macros/blade.php'); } } diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php new file mode 100644 index 000000000..e4982a470 --- /dev/null +++ b/app/Providers/AuthServiceProvider.php @@ -0,0 +1,33 @@ + ReplyPolicy::class, + Thread::class => ThreadPolicy::class, + User::class => UserPolicy::class, + ]; + + /** + * Register any authentication / authorization services. + */ + public function boot() + { + $this->registerPolicies(); + } +} diff --git a/app/Providers/CommentServiceProvider.php b/app/Providers/CommentServiceProvider.php deleted file mode 100644 index 53c7c378b..000000000 --- a/app/Providers/CommentServiceProvider.php +++ /dev/null @@ -1,19 +0,0 @@ -app->singleton(AkismetSpamDetector::class, function ($app) { - $config = $app['config']; - $apiKey = $config['services']['akismet']['api_key']; - $url = $config['app']['url']; - - return new AkismetSpamDetector(new Akismet($apiKey, $url)); - }); - - $this->app->singleton(SpamDetector::class, function ($app) { - return new SpamFilter([ - new PhoneNumberSpamDetector, - new ForeignLanguageSpamDetector, - $app[AkismetSpamDetector::class] - ]); - }); - } - - public function provides() - { - return [AkismetSpamDetector::class, SpamDetector::class]; - } -} diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php deleted file mode 100755 index 816828cec..000000000 --- a/app/Providers/EventServiceProvider.php +++ /dev/null @@ -1,32 +0,0 @@ - [ - 'Lio\Listeners\EventListener', - ], - ]; - - /** - * Register any other events for your application. - * - * @param \Illuminate\Contracts\Events\Dispatcher $events - * @return void - */ - public function boot(DispatcherContract $events) - { - parent::boot($events); - - // - } -} diff --git a/app/Providers/GithubServiceProvider.php b/app/Providers/GithubServiceProvider.php deleted file mode 100644 index f161038d5..000000000 --- a/app/Providers/GithubServiceProvider.php +++ /dev/null @@ -1,42 +0,0 @@ -registerGistEmbedFormatter(); - $this->registerGithubAuthenticator(); - } - - private function registerGistEmbedFormatter() - { - $this->app->singleton(GistEmbedFormatter::class, function () { - return new GistEmbedFormatter; - }); - } - - private function registerGithubAuthenticator() - { - $this->app->singleton(GithubAuthenticator::class, function ($app) { - return new GithubAuthenticator($app[Factory::class]->driver('github'), $app[UserRepository::class], new Client()); - }); - } - - public function provides() - { - return [ - GistEmbedFormatter::class, - GithubAuthenticator::class, - ]; - } -} diff --git a/app/Providers/HashidsServiceProvider.php b/app/Providers/HashidsServiceProvider.php deleted file mode 100644 index a99dc40d4..000000000 --- a/app/Providers/HashidsServiceProvider.php +++ /dev/null @@ -1,17 +0,0 @@ -app->bind([Hashids::class => 'hashids'], function($app) { - $key = $app['config']->get('app.key'); - - return new Hashids($key, 2); - }); - } -} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php old mode 100755 new mode 100644 index 285d42aa9..d8900b934 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -1,51 +1,73 @@ guest() || (auth()->check() && ! auth()->user()->hasRoles($allowedRoles))) { - abort(403); - } - }); + require base_path('routes/bindings.php'); - parent::boot($router); + parent::boot(); } /** * Define the routes for the application. * - * @param \Illuminate\Routing\Router $router * @return void */ - public function map(Router $router) + public function map() + { + $this->mapApiRoutes(); + + $this->mapWebRoutes(); + + // + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + * + * @return void + */ + protected function mapWebRoutes() + { + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + * + * @return void + */ + protected function mapApiRoutes() { - $router->group(['namespace' => $this->namespace], function ($router) { - require app_path('Http/routes.php'); - }); + Route::prefix('api') + ->middleware('api') + ->namespace($this->namespace) + ->group(base_path('routes/api.php')); } } diff --git a/app/Social/GithubUser.php b/app/Social/GithubUser.php new file mode 100644 index 000000000..bee48ccb0 --- /dev/null +++ b/app/Social/GithubUser.php @@ -0,0 +1,49 @@ +attributes = $attributes; + } + + public function isTooYoung(): bool + { + return $this->createdAt() > $this->twoWeeksAgo(); + } + + public function createdAt(): Carbon + { + return new Carbon($this->get('created_at')); + } + + private function twoWeeksAgo(): Carbon + { + return Carbon::now()->subDays(14); + } + + private function get($name) + { + return array_get($this->attributes, $name); + } + + public function toArray(): array + { + return [ + 'id' => $this->get('id'), + 'name' => $this->get('name'), + 'email' => $this->get('email'), + 'username' => $this->get('login'), + ]; + } +} diff --git a/app/Content/AkismetSpamDetector.php b/app/Spam/AkismetSpamDetector.php similarity index 61% rename from app/Content/AkismetSpamDetector.php rename to app/Spam/AkismetSpamDetector.php index 6eb8e561d..2941e5b37 100644 --- a/app/Content/AkismetSpamDetector.php +++ b/app/Spam/AkismetSpamDetector.php @@ -1,14 +1,14 @@ akismet = $akismet; } - /** @inheritdoc */ - public function detectsSpam($value, User $user = null) + public function detectsSpam($value, User $user = null): bool { - $name = $user ? $user->name : null; - $email = $user ? $user->email : null; + $name = $user ? $user->name() : null; + $email = $user ? $user->emailAddress() : null; if (! $this->akismet->verifyKey()) { return false; diff --git a/app/Spam/DummySpamDetector.php b/app/Spam/DummySpamDetector.php new file mode 100644 index 000000000..9cc5f70e9 --- /dev/null +++ b/app/Spam/DummySpamDetector.php @@ -0,0 +1,33 @@ +hasSpam = $hasSpam; + } + + public static function withSpam(): self + { + return new static(true); + } + + public static function withoutSpam(): self + { + return new static(false); + } + + public function detectsSpam($value, User $user = null): bool + { + return $this->hasSpam; + } +} diff --git a/app/Spam/SpamDetector.php b/app/Spam/SpamDetector.php new file mode 100644 index 000000000..23088893c --- /dev/null +++ b/app/Spam/SpamDetector.php @@ -0,0 +1,10 @@ +detectors = $detectors; + } + + public function detectsSpam($value, User $user = null): bool + { + return collect($this->detectors) + ->contains(function (SpamDetector $detector) use ($value, $user) { + return $detector->detectsSpam($value, $user); + }); + } +} diff --git a/app/Spam/SpamServiceProvider.php b/app/Spam/SpamServiceProvider.php new file mode 100644 index 000000000..39db691c5 --- /dev/null +++ b/app/Spam/SpamServiceProvider.php @@ -0,0 +1,27 @@ +app->singleton(SpamDetector::class, function () { + $detectors = []; + + if ($apiKey = config('services.akismet.api_key')) { + $detectors[] = $this->akismetSpamDetector($apiKey); + } + + return new SpamFilter(...$detectors); + }); + } + + private function akismetSpamDetector($apiKey): AkismetSpamDetector + { + return new AkismetSpamDetector(new Akismet($apiKey, config('app.url'))); + } +} diff --git a/app/Tags/Tag.php b/app/Tags/Tag.php deleted file mode 100644 index 480f3eaec..000000000 --- a/app/Tags/Tag.php +++ /dev/null @@ -1,22 +0,0 @@ - 'required', - 'slug' => 'required', - ]; - - public function newCollection(array $models = []) - { - return new TagCollection($models); - } -} diff --git a/app/Tags/TagCollection.php b/app/Tags/TagCollection.php deleted file mode 100644 index e44390f08..000000000 --- a/app/Tags/TagCollection.php +++ /dev/null @@ -1,16 +0,0 @@ -items as $item) { - $tagLinks[] = '' . $item->name . ''; - } - - return implode(', ', $tagLinks); - } -} diff --git a/app/Tags/TagRepository.php b/app/Tags/TagRepository.php deleted file mode 100644 index 908b84886..000000000 --- a/app/Tags/TagRepository.php +++ /dev/null @@ -1,44 +0,0 @@ -model = $model; - } - - public function getAllTagsBySlug($slugString) - { - if (is_null($slugString)) { - return new Collection; - } - - if (stristr($slugString, ',')) { - $slugSlugs = explode(',', $slugString); - } else { - $slugSlugs = (array) $slugString; - } - - return $this->model->whereIn('slug', (array) $slugSlugs)->get(); - } - - public function getTagIdList() - { - return $this->model->lists('id'); - } - - public function getTagsByIds($ids) - { - if ( ! $ids) return null; - return $this->model->whereIn('id', $ids)->get(); - } - - public function getAllForForum() - { - return $this->model->where('forum', '=', 1)->get(); - } -} diff --git a/app/User.php b/app/User.php new file mode 100644 index 000000000..c1746b6e1 --- /dev/null +++ b/app/User.php @@ -0,0 +1,246 @@ +id; + } + + public function name(): string + { + return $this->name; + } + + public function emailAddress(): string + { + return $this->email; + } + + public function username(): string + { + return $this->username; + } + + public function githubUsername(): string + { + return $this->github_username; + } + + public function gratavarUrl($size = 100): string + { + $hash = md5(strtolower(trim($this->email))); + + return "https://www.gravatar.com/avatar/$hash?s=$size"; + } + + public function intercomHash(): string + { + return hash_hmac('sha256', $this->id(), config('services.intercom.secret')); + } + + public function isConfirmed(): bool + { + return (bool) $this->confirmed; + } + + public function isUnconfirmed(): bool + { + return ! $this->isConfirmed(); + } + + public function confirm() + { + $this->update(['confirmed' => true, 'confirmation_code' => null]); + } + + public function confirmationCode(): string + { + return (string) $this->confirmation_code; + } + + public function matchesConfirmationCode(string $code): bool + { + return $this->confirmation_code === $code; + } + + public function ban() + { + $this->is_banned = true; + + $this->save(); + } + + public function unban() + { + $this->is_banned = false; + + $this->save(); + } + + public function isBanned(): bool + { + return (bool) $this->is_banned; + } + + public function type(): int + { + return (int) $this->type; + } + + public function isModerator(): bool + { + return $this->type() === self::MODERATOR; + } + + public function isAdmin(): bool + { + return $this->type() === self::ADMIN; + } + + /** + * @return \App\Models\Thread[] + */ + public function threads() + { + return $this->threadsRelation; + } + + /** + * @return \App\Models\Thread[] + */ + public function latestThreads(int $amount = 3) + { + return $this->threadsRelation->take($amount); + } + + public function deleteThreads() + { + // We need to explicitly iterate over the threads and delete them + // separately because all related models need to be deleted. + foreach ($this->threads() as $thread) { + $thread->delete(); + } + } + + public function threadsRelation(): HasMany + { + return $this->hasMany(Thread::class, 'author_id'); + } + + public function countThreads(): int + { + return $this->threadsRelation()->count(); + } + + /** + * @return \App\Models\Reply[] + */ + public function replies() + { + return $this->replyAble; + } + + /** + * @return \App\Models\Reply[] + */ + public function latestReplies(int $amount = 3) + { + return $this->replyAble()->latest()->limit($amount)->get(); + } + + public function deleteReplies() + { + $this->replyAble()->delete(); + } + + public function countReplies(): int + { + return $this->replyAble()->count(); + } + + public function replyAble(): HasMany + { + return $this->hasMany(Reply::class, 'author_id'); + } + + /** + * @todo Make this work with Eloquent instead of a collection + */ + public function countSolutions(): int + { + return $this->replies()->filter(function (Reply $reply) { + if ($reply->replyAble() instanceof Thread) { + return $reply->replyAble()->isSolutionReply($reply); + } + + return false; + })->count(); + } + + public static function findByUsername(string $username): User + { + return static::where('username', $username)->firstOrFail(); + } + + public static function findByEmailAddress(string $emailAddress): User + { + return static::where('email', $emailAddress)->firstOrFail(); + } + + public static function findByGithubId(string $githubId): User + { + return static::where('github_id', $githubId)->firstOrFail(); + } + + public function delete() + { + $this->deleteThreads(); + $this->deleteReplies(); + + parent::delete(); + } +} diff --git a/app/Validation/DoesNotContainUrlRule.php b/app/Validation/DoesNotContainUrlRule.php new file mode 100644 index 000000000..a4f5a22ca --- /dev/null +++ b/app/Validation/DoesNotContainUrlRule.php @@ -0,0 +1,29 @@ +validator = $validator; + } + + public function validate($attribute, $value): bool + { + return ! collect(explode(' ', $value))->contains(function ($word) { + return $this->validator + ->make(compact('word'), ['word' => 'url']) + ->passes(); + }); + } +} diff --git a/app/Validation/PasscheckRule.php b/app/Validation/PasscheckRule.php new file mode 100644 index 000000000..143dad06a --- /dev/null +++ b/app/Validation/PasscheckRule.php @@ -0,0 +1,16 @@ +getAuthPassword()); + } +} diff --git a/app/Validation/SpamRule.php b/app/Validation/SpamRule.php new file mode 100644 index 000000000..5a489d04b --- /dev/null +++ b/app/Validation/SpamRule.php @@ -0,0 +1,32 @@ +spamDetector = $spamDetector; + $this->guard = $guard; + } + + public function validate($attribute, $value): bool + { + return ! $this->spamDetector->detectsSpam($value, $this->guard->user()); + } +} diff --git a/app/Validation/ValidationServiceProvider.php b/app/Validation/ValidationServiceProvider.php new file mode 100644 index 000000000..3082a2891 --- /dev/null +++ b/app/Validation/ValidationServiceProvider.php @@ -0,0 +1,16 @@ +toHtml($markdown); + } +} + +if (! function_exists('route_to_reply_able')) { + /** + * Returns the route for the replyAble. + */ + function route_to_reply_able($replyAble): string + { + if ($replyAble instanceof App\Models\Thread) { + return route('thread', $replyAble->slug()); + } + } +} diff --git a/bootstrap/app.php b/bootstrap/app.php index 992a96051..f2801adf6 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -28,17 +28,17 @@ $app->singleton( Illuminate\Contracts\Http\Kernel::class, - Lio\Http\Kernel::class + App\Http\Kernel::class ); $app->singleton( Illuminate\Contracts\Console\Kernel::class, - Lio\Console\Kernel::class + App\Console\Kernel::class ); $app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, - Lio\Exceptions\Handler::class + App\Exceptions\Handler::class ); /* diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 383013796..94adc9977 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -15,20 +15,3 @@ */ require __DIR__.'/../vendor/autoload.php'; - -/* -|-------------------------------------------------------------------------- -| Include The Compiled Class File -|-------------------------------------------------------------------------- -| -| To dramatically increase your application's performance, you may use a -| compiled class file which contains all of the classes commonly used -| by a request. The Artisan "optimize" is used to create this file. -| -*/ - -$compiledPath = __DIR__.'/cache/compiled.php'; - -if (file_exists($compiledPath)) { - require $compiledPath; -} diff --git a/code_of_conduct.md b/code_of_conduct.md new file mode 100644 index 000000000..ef0d3c1d8 --- /dev/null +++ b/code_of_conduct.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at dries.vints@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/composer.json b/composer.json index 919896d7a..9b7e22ba2 100644 --- a/composer.json +++ b/composer.json @@ -1,64 +1,69 @@ { - "name": "laravelio/laravelio", + "name": "laravelio/portal", "description": "The source code for the Laravel.io community portal.", "license": "MIT", "type": "project", "require": { - "php": ">=5.5.9", - "laravel/framework": "5.1.*", - "laravelcollective/html": "5.1.*", - "laravel/socialite": "^2.0", - "mccool/laravel-auto-presenter": "~3.1", - "michelf/php-markdown": "1.4.*", - "nickcernis/html-to-markdown": "2.1.*", - "misd/linkify": "1.1.*", - "hashids/hashids": "1.0.*", - "mews/purifier": "~2.0", - "bugsnag/bugsnag-laravel": "1.*", - "anhskohbo/no-captcha": "^2.0", - "tijsverkoyen/akismet": "^1.1", - "guzzlehttp/guzzle": "^6.2" + "php": "^7.1", + "bugsnag/bugsnag-laravel": "^2.4", + "doctrine/dbal": "^2.5", + "laravel/framework": "5.4.*", + "laravel/socialite": "^3.0", + "laravel/tinker": "^1.0", + "laravelcollective/html": "5.4.*", + "league/commonmark": "^0.15.2", + "spatie/laravel-migrate-fresh": "^1.4", + "spatie/laravel-robots-middleware": "^1.0", + "tijsverkoyen/akismet": "^1.1" }, "require-dev": { - "fzaninotto/faker": "~1.4", - "mockery/mockery": "0.9.*", - "phpunit/phpunit": "~4.0", - "phpspec/phpspec": "~2.1", - "codeclimate/php-test-reporter": "^0.1.2", - "doctrine/dbal": "^2.5" + "fzaninotto/faker": "^1.6", + "jakub-onderka/php-console-highlighter": "^0.3.2", + "jakub-onderka/php-parallel-lint": "^0.9.2", + "laravel/browser-kit-testing": "^1.0", + "laravel/homestead": "^5.0", + "mockery/mockery": "^0.9.5", + "phpspec/phpspec": "^3.2", + "phpunit/phpunit": "^5.7", + "symfony/css-selector": "^3.1", + "symfony/dom-crawler": "^3.1" }, "autoload": { "classmap": [ "database" ], + "files": [ + "app/helpers.php" + ], "psr-4": { - "Lio\\": "app/" + "App\\": "app/" } }, "autoload-dev": { "psr-4": { - "Lio\\Tests\\": "tests/" + "Tests\\": "tests/" } }, "scripts": { + "post-root-package-install": [ + "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "php artisan key:generate" + ], "post-install-cmd": [ - "php artisan clear-compiled", + "Illuminate\\Foundation\\ComposerScripts::postInstall", "php artisan optimize" ], - "pre-update-cmd": [ - "php artisan clear-compiled" - ], "post-update-cmd": [ + "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan optimize" ], - "post-root-package-install": [ - "php -r \"copy('.env.example', '.env');\"" - ], - "post-create-project-cmd": [ - "php artisan key:generate" - ] + "test": "phpunit --stop-on-failure", + "spec": "phpspec run" }, "config": { - "preferred-install": "dist" + "preferred-install": "dist", + "sort-packages": true } } diff --git a/composer.lock b/composer.lock index 8c3e9bad2..d4d8a8b72 100644 --- a/composer.lock +++ b/composer.lock @@ -4,78 +4,41 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "6e8671a2f41b429184f6f1f97dd8b02c", - "content-hash": "a9e4e4cdc07d70967d431ca683ca3ece", + "content-hash": "3a6fc680f19492795f5357effeed7a78", "packages": [ - { - "name": "anhskohbo/no-captcha", - "version": "2.0.5", - "source": { - "type": "git", - "url": "https://github.com/anhskohbo/no-captcha.git", - "reference": "ae2c86af4ae956d5d68c0e56697cd447d5789b3f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/anhskohbo/no-captcha/zipball/ae2c86af4ae956d5d68c0e56697cd447d5789b3f", - "reference": "ae2c86af4ae956d5d68c0e56697cd447d5789b3f", - "shasum": "" - }, - "require": { - "illuminate/support": "5.0.*|5.1.*", - "php": ">=5.4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Anhskohbo\\NoCaptcha\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "anhskohbo", - "email": "anhskohbo@gmail.com" - } - ], - "description": "No CAPTCHA reCAPTCHA For Laravel.", - "keywords": [ - "captcha", - "laravel", - "laravel4", - "laravel5", - "no-captcha", - "recaptcha" - ], - "time": "2015-06-10 05:09:18" - }, { "name": "bugsnag/bugsnag", - "version": "v2.5.5", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/bugsnag/bugsnag-php.git", - "reference": "30af9dfc67c42bd3c392c7917b4b35d08a53da74" + "reference": "ba743434ab6bfbbd2a7f9bc0572bf82628e9fdc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bugsnag/bugsnag-php/zipball/30af9dfc67c42bd3c392c7917b4b35d08a53da74", - "reference": "30af9dfc67c42bd3c392c7917b4b35d08a53da74", + "url": "https://api.github.com/repos/bugsnag/bugsnag-php/zipball/ba743434ab6bfbbd2a7f9bc0572bf82628e9fdc1", + "reference": "ba743434ab6bfbbd2a7f9bc0572bf82628e9fdc1", "shasum": "" }, "require": { - "php": ">=5.2.0" + "composer/ca-bundle": "^1.0", + "guzzlehttp/guzzle": "^5.0|^6.0", + "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit": "3.7.*" + "mtdowling/burgomaster": "dev-master#72151eddf5f0cf101502b94bf5031f9c53501a04", + "php-mock/php-mock-phpunit": "^1.1", + "phpunit/phpunit": "^4.8|^5.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4-dev" + } + }, "autoload": { - "psr-0": { - "Bugsnag_": "src/" + "psr-4": { + "Bugsnag\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -98,30 +61,42 @@ "logging", "tracking" ], - "time": "2015-07-01 02:43:15" + "time": "2017-04-06T17:03:50+00:00" }, { "name": "bugsnag/bugsnag-laravel", - "version": "v1.5.1", + "version": "v2.5.0", "source": { "type": "git", "url": "https://github.com/bugsnag/bugsnag-laravel.git", - "reference": "09015a989ec63f73af23af1918088f55bf0fb896" + "reference": "e8aee99936694bae40d0d7713afeeb882b11383a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bugsnag/bugsnag-laravel/zipball/09015a989ec63f73af23af1918088f55bf0fb896", - "reference": "09015a989ec63f73af23af1918088f55bf0fb896", + "url": "https://api.github.com/repos/bugsnag/bugsnag-laravel/zipball/e8aee99936694bae40d0d7713afeeb882b11383a", + "reference": "e8aee99936694bae40d0d7713afeeb882b11383a", "shasum": "" }, "require": { - "bugsnag/bugsnag": ">=2.5.0", - "illuminate/support": "4.*|5.*", - "php": ">=5.3.0" + "bugsnag/bugsnag": "^3.5", + "bugsnag/bugsnag-psr-logger": "^1.1", + "illuminate/contracts": "^5.0", + "illuminate/support": "^5.0", + "php": ">=5.5" + }, + "require-dev": { + "graham-campbell/testbench": "^3.1", + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.8|^5.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, "autoload": { - "psr-0": { + "psr-4": { "Bugsnag\\BugsnagLaravel\\": "src/" } }, @@ -145,38 +120,41 @@ "logging", "tracking" ], - "time": "2015-07-01 02:40:06" + "time": "2017-04-06T17:24:56+00:00" }, { - "name": "classpreloader/classpreloader", - "version": "2.0.0", + "name": "bugsnag/bugsnag-psr-logger", + "version": "v1.1.0", "source": { "type": "git", - "url": "https://github.com/ClassPreloader/ClassPreloader.git", - "reference": "8c3c14b10309e3b40bce833913a6c0c0b8c8f962" + "url": "https://github.com/bugsnag/bugsnag-psr-logger.git", + "reference": "355989a16373936a7854ac26cea46d9dd80f0371" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ClassPreloader/ClassPreloader/zipball/8c3c14b10309e3b40bce833913a6c0c0b8c8f962", - "reference": "8c3c14b10309e3b40bce833913a6c0c0b8c8f962", + "url": "https://api.github.com/repos/bugsnag/bugsnag-psr-logger/zipball/355989a16373936a7854ac26cea46d9dd80f0371", + "reference": "355989a16373936a7854ac26cea46d9dd80f0371", "shasum": "" }, "require": { - "nikic/php-parser": "~1.3", - "php": ">=5.5.9" + "bugsnag/bugsnag": "^3.2", + "php": ">=5.5", + "psr/log": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "graham-campbell/testbench-core": "^1.1", + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.8|^5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "1.1-dev" } }, "autoload": { "psr-4": { - "ClassPreloader\\": "src/" + "Bugsnag\\PsrLogger\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -185,51 +163,60 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com" - }, - { - "name": "Graham Campbell", - "email": "graham@alt-three.com" + "name": "James Smith", + "email": "notifiers@bugsnag.com", + "homepage": "https://bugsnag.com" } ], - "description": "Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case", + "description": "Official Bugsnag PHP PSR Logger.", + "homepage": "https://github.com/bugsnag/bugsnag-psr", "keywords": [ - "autoload", - "class", - "preload" + "bugsnag", + "errors", + "exceptions", + "logging", + "psr", + "tracking" ], - "time": "2015-06-28 21:39:13" + "time": "2016-08-09T08:02:38+00:00" }, { - "name": "danielstjules/stringy", - "version": "1.9.0", + "name": "composer/ca-bundle", + "version": "1.0.7", "source": { "type": "git", - "url": "https://github.com/danielstjules/Stringy.git", - "reference": "3cf18e9e424a6dedc38b7eb7ef580edb0929461b" + "url": "https://github.com/composer/ca-bundle.git", + "reference": "b17e6153cb7f33c7e44eb59578dc12eee5dc8e12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/danielstjules/Stringy/zipball/3cf18e9e424a6dedc38b7eb7ef580edb0929461b", - "reference": "3cf18e9e424a6dedc38b7eb7ef580edb0929461b", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/b17e6153cb7f33c7e44eb59578dc12eee5dc8e12", + "reference": "b17e6153cb7f33c7e44eb59578dc12eee5dc8e12", "shasum": "" }, "require": { - "ext-mbstring": "*", - "php": ">=5.3.0" + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "^4.5", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0" + }, + "suggest": { + "symfony/process": "This is necessary to reliably check whether openssl_x509_parse is vulnerable on older php versions, but can be ignored on PHP 5.5.6+" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, "autoload": { "psr-4": { - "Stringy\\": "src/" - }, - "files": [ - "src/Create.php" - ] + "Composer\\CaBundle\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -237,25 +224,20 @@ ], "authors": [ { - "name": "Daniel St. Jules", - "email": "danielst.jules@gmail.com", - "homepage": "http://www.danielstjules.com" + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" } ], - "description": "A string manipulation library with multibyte support", - "homepage": "https://github.com/danielstjules/Stringy", + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", "keywords": [ - "UTF", - "helpers", - "manipulation", - "methods", - "multibyte", - "string", - "utf-8", - "utility", - "utils" - ], - "time": "2015-02-10 06:19:18" + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "time": "2017-03-06T11:59:08+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -288,37 +270,39 @@ "MIT" ], "description": "implementation of xdg base directory specification for php", - "time": "2014-10-24 07:27:01" + "time": "2014-10-24T07:27:01+00:00" }, { - "name": "doctrine/inflector", - "version": "v1.0.1", + "name": "doctrine/annotations", + "version": "v1.4.0", "source": { "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "0bcb2e79d8571787f18b7eb036ed3d004908e604" + "url": "https://github.com/doctrine/annotations.git", + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/0bcb2e79d8571787f18b7eb036ed3d004908e604", - "reference": "0bcb2e79d8571787f18b7eb036ed3d004908e604", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97", + "reference": "54cacc9b81758b14e3ce750f205a393d52339e97", "shasum": "" }, "require": { - "php": ">=5.3.2" + "doctrine/lexer": "1.*", + "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "4.*" + "doctrine/cache": "1.*", + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.4.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" } }, "notification-url": "https://packagist.org/downloads/", @@ -347,125 +331,115 @@ "email": "schmittjoh@gmail.com" } ], - "description": "Common String Manipulations with regard to casing and singular/plural rules.", + "description": "Docblock Annotations Parser", "homepage": "http://www.doctrine-project.org", "keywords": [ - "inflection", - "pluralize", - "singularize", - "string" + "annotations", + "docblock", + "parser" ], - "time": "2014-12-20 21:24:13" + "time": "2017-02-24T16:22:25+00:00" }, { - "name": "ezyang/htmlpurifier", - "version": "v4.6.0", + "name": "doctrine/cache", + "version": "v1.6.1", "source": { "type": "git", - "url": "https://github.com/ezyang/htmlpurifier.git", - "reference": "6f389f0f25b90d0b495308efcfa073981177f0fd" + "url": "https://github.com/doctrine/cache.git", + "reference": "b6f544a20f4807e81f7044d31e679ccbb1866dc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/6f389f0f25b90d0b495308efcfa073981177f0fd", - "reference": "6f389f0f25b90d0b495308efcfa073981177f0fd", + "url": "https://api.github.com/repos/doctrine/cache/zipball/b6f544a20f4807e81f7044d31e679ccbb1866dc3", + "reference": "b6f544a20f4807e81f7044d31e679ccbb1866dc3", "shasum": "" }, "require": { - "php": ">=5.2" + "php": "~5.5|~7.0" + }, + "conflict": { + "doctrine/common": ">2.2,<2.4" + }, + "require-dev": { + "phpunit/phpunit": "~4.8|~5.0", + "predis/predis": "~1.0", + "satooshi/php-coveralls": "~0.6" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, "autoload": { - "psr-0": { - "HTMLPurifier": "library/" - }, - "files": [ - "library/HTMLPurifier.composer.php" - ] + "psr-4": { + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "LGPL" + "MIT" ], "authors": [ { - "name": "Edward Z. Yang", - "email": "admin@htmlpurifier.org", - "homepage": "http://ezyang.com" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "description": "Standards compliant HTML filter written in PHP", - "homepage": "http://htmlpurifier.org/", + "description": "Caching library offering an object-oriented API for many cache backends", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "html" + "cache", + "caching" ], - "time": "2013-11-30 08:25:19" + "time": "2016-10-29T11:16:17+00:00" }, { - "name": "guzzle/guzzle", - "version": "v3.9.3", + "name": "doctrine/collections", + "version": "v1.4.0", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle3.git", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9" + "url": "https://github.com/doctrine/collections.git", + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9", - "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9", + "url": "https://api.github.com/repos/doctrine/collections/zipball/1a4fb7e902202c33cce8c55989b945612943c2ba", + "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba", "shasum": "" }, "require": { - "ext-curl": "*", - "php": ">=5.3.3", - "symfony/event-dispatcher": "~2.1" - }, - "replace": { - "guzzle/batch": "self.version", - "guzzle/cache": "self.version", - "guzzle/common": "self.version", - "guzzle/http": "self.version", - "guzzle/inflection": "self.version", - "guzzle/iterator": "self.version", - "guzzle/log": "self.version", - "guzzle/parser": "self.version", - "guzzle/plugin": "self.version", - "guzzle/plugin-async": "self.version", - "guzzle/plugin-backoff": "self.version", - "guzzle/plugin-cache": "self.version", - "guzzle/plugin-cookie": "self.version", - "guzzle/plugin-curlauth": "self.version", - "guzzle/plugin-error-response": "self.version", - "guzzle/plugin-history": "self.version", - "guzzle/plugin-log": "self.version", - "guzzle/plugin-md5": "self.version", - "guzzle/plugin-mock": "self.version", - "guzzle/plugin-oauth": "self.version", - "guzzle/service": "self.version", - "guzzle/stream": "self.version" + "php": "^5.6 || ^7.0" }, "require-dev": { - "doctrine/cache": "~1.3", - "monolog/monolog": "~1.0", - "phpunit/phpunit": "3.7.*", - "psr/log": "~1.0", - "symfony/class-loader": "~2.1", - "zendframework/zend-cache": "2.*,<2.3", - "zendframework/zend-log": "2.*,<2.3" - }, - "suggest": { - "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated." + "doctrine/coding-standard": "~0.1@dev", + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.9-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { "psr-0": { - "Guzzle": "src/", - "Guzzle\\Tests": "tests/" + "Doctrine\\Common\\Collections\\": "lib/" } }, "notification-url": "https://packagist.org/downloads/", @@ -474,65 +448,69 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" }, { - "name": "Guzzle Community", - "homepage": "https://github.com/guzzle/guzzle/contributors" + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle", - "homepage": "http://guzzlephp.org/", + "description": "Collections Abstraction library", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" + "array", + "collections", + "iterator" ], - "abandoned": "guzzlehttp/guzzle", - "time": "2015-03-18 18:23:50" + "time": "2017-01-03T10:49:41+00:00" }, { - "name": "guzzlehttp/guzzle", - "version": "6.2.0", + "name": "doctrine/common", + "version": "v2.7.2", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "d094e337976dff9d8e2424e8485872194e768662" + "url": "https://github.com/doctrine/common.git", + "reference": "930297026c8009a567ac051fd545bf6124150347" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d094e337976dff9d8e2424e8485872194e768662", - "reference": "d094e337976dff9d8e2424e8485872194e768662", + "url": "https://api.github.com/repos/doctrine/common/zipball/930297026c8009a567ac051fd545bf6124150347", + "reference": "930297026c8009a567ac051fd545bf6124150347", "shasum": "" }, "require": { - "guzzlehttp/promises": "~1.0", - "guzzlehttp/psr7": "~1.1", - "php": ">=5.5.0" + "doctrine/annotations": "1.*", + "doctrine/cache": "1.*", + "doctrine/collections": "1.*", + "doctrine/inflector": "1.*", + "doctrine/lexer": "1.*", + "php": "~5.6|~7.0" }, "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "~4.0", - "psr/log": "~1.0" + "phpunit/phpunit": "^5.4.6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.2-dev" + "dev-master": "2.7.x-dev" } }, "autoload": { - "files": [ - "src/functions_include.php" - ], "psr-4": { - "GuzzleHttp\\": "src/" + "Doctrine\\Common\\": "lib/Doctrine/Common" } }, "notification-url": "https://packagist.org/downloads/", @@ -541,57 +519,75 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "description": "Guzzle is a PHP HTTP client library", - "homepage": "http://guzzlephp.org/", + "description": "Common Library for Doctrine projects", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "client", - "curl", - "framework", - "http", - "http client", - "rest", - "web service" + "annotations", + "collections", + "eventmanager", + "persistence", + "spl" ], - "time": "2016-03-21 20:02:09" + "time": "2017-01-13T14:02:13+00:00" }, { - "name": "guzzlehttp/promises", - "version": "1.0.1", + "name": "doctrine/dbal", + "version": "v2.5.12", "source": { "type": "git", - "url": "https://github.com/guzzle/promises.git", - "reference": "2ee5bc7f1a92efecc90da7f6711a53a7be26b5b7" + "url": "https://github.com/doctrine/dbal.git", + "reference": "7b9e911f9d8b30d43b96853dab26898c710d8f44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/2ee5bc7f1a92efecc90da7f6711a53a7be26b5b7", - "reference": "2ee5bc7f1a92efecc90da7f6711a53a7be26b5b7", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/7b9e911f9d8b30d43b96853dab26898c710d8f44", + "reference": "7b9e911f9d8b30d43b96853dab26898c710d8f44", "shasum": "" }, "require": { - "php": ">=5.5.0" + "doctrine/common": ">=2.4,<2.8-dev", + "php": ">=5.3.2" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "4.*", + "symfony/console": "2.*||^3.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5.x-dev" } }, "autoload": { - "psr-4": { - "GuzzleHttp\\Promise\\": "src/" - }, - "files": [ - "src/functions.php" - ] + "psr-0": { + "Doctrine\\DBAL\\": "lib/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -599,54 +595,62 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" } ], - "description": "Guzzle promises library", + "description": "Database Abstraction Layer", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "promise" + "database", + "dbal", + "persistence", + "queryobject" ], - "time": "2015-06-24 16:16:25" + "time": "2017-02-08T12:53:47+00:00" }, { - "name": "guzzlehttp/psr7", - "version": "1.1.0", + "name": "doctrine/inflector", + "version": "v1.1.0", "source": { "type": "git", - "url": "https://github.com/guzzle/psr7.git", - "reference": "af0e1758de355eb113917ad79c3c0e3604bce4bd" + "url": "https://github.com/doctrine/inflector.git", + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/af0e1758de355eb113917ad79c3c0e3604bce4bd", - "reference": "af0e1758de355eb113917ad79c3c0e3604bce4bd", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", + "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", "shasum": "" }, "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0" - }, - "provide": { - "psr/http-message-implementation": "1.0" + "php": ">=5.3.2" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "4.*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { - "psr-4": { - "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions.php" - ] + "psr-0": { + "Doctrine\\Common\\Inflector\\": "lib/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -654,49 +658,62 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "description": "PSR-7 message implementation", + "description": "Common String Manipulations with regard to casing and singular/plural rules.", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "http", - "message", - "stream", - "uri" + "inflection", + "pluralize", + "singularize", + "string" ], - "time": "2015-06-24 19:55:15" + "time": "2015-11-06T14:35:42+00:00" }, { - "name": "hashids/hashids", - "version": "1.0.5", + "name": "doctrine/lexer", + "version": "v1.0.1", "source": { "type": "git", - "url": "https://github.com/ivanakimov/hashids.php.git", - "reference": "991a88b01b01b053fbd39a56780a66e572f1dc1a" + "url": "https://github.com/doctrine/lexer.git", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ivanakimov/hashids.php/zipball/991a88b01b01b053fbd39a56780a66e572f1dc1a", - "reference": "991a88b01b01b053fbd39a56780a66e572f1dc1a", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", "shasum": "" }, "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "3.7.*" + "php": ">=5.3.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { "psr-0": { - "Hashids": "lib/" + "Doctrine\\Common\\Lexer\\": "lib/" } }, "notification-url": "https://packagist.org/downloads/", @@ -705,98 +722,104 @@ ], "authors": [ { - "name": "Ivan Akimov", - "email": "ivan@barreleye.com", - "homepage": "https://twitter.com/IvanAkimov" + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" } ], - "description": "Generate hashids like YouTube or Bitly from numbers to obfuscate your database primary ids, or navigate to the right shard.", - "homepage": "http://hashids.org/php", + "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "http://www.doctrine-project.org", "keywords": [ - "bitly", - "decrypt", - "encrypt", - "hash", - "hashid", - "hashids", - "ids", - "obfuscate", - "youtube" - ], - "time": "2015-01-21 00:49:41" + "lexer", + "parser" + ], + "time": "2014-09-09T13:34:57+00:00" }, { - "name": "jakub-onderka/php-console-color", - "version": "0.1", + "name": "erusev/parsedown", + "version": "1.6.2", "source": { "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" + "url": "https://github.com/erusev/parsedown.git", + "reference": "1bf24f7334fe16c88bf9d467863309ceaf285b01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/1bf24f7334fe16c88bf9d467863309ceaf285b01", + "reference": "1bf24f7334fe16c88bf9d467863309ceaf285b01", "shasum": "" }, "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "jakub-onderka/php-code-style": "1.0", - "jakub-onderka/php-parallel-lint": "0.*", - "jakub-onderka/php-var-dump-check": "0.*", - "phpunit/phpunit": "3.7.*", - "squizlabs/php_codesniffer": "1.*" + "php": ">=5.3.0" }, "type": "library", "autoload": { "psr-0": { - "JakubOnderka\\PhpConsoleColor": "src/" + "Parsedown": "" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-2-Clause" + "MIT" ], "authors": [ { - "name": "Jakub Onderka", - "email": "jakub.onderka@gmail.com", - "homepage": "http://www.acci.cz" + "name": "Emanuil Rusev", + "email": "hello@erusev.com", + "homepage": "http://erusev.com" } ], - "time": "2014-04-08 15:00:19" + "description": "Parser for Markdown.", + "homepage": "http://parsedown.org", + "keywords": [ + "markdown", + "parser" + ], + "time": "2017-03-29T16:04:15+00:00" }, { - "name": "jakub-onderka/php-console-highlighter", - "version": "v0.3.2", + "name": "guzzlehttp/guzzle", + "version": "6.2.3", "source": { "type": "git", - "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git", - "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5" + "url": "https://github.com/guzzle/guzzle.git", + "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5", - "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/8d6c6cc55186db87b7dc5009827429ba4e9dc006", + "reference": "8d6c6cc55186db87b7dc5009827429ba4e9dc006", "shasum": "" }, "require": { - "jakub-onderka/php-console-color": "~0.1", - "php": ">=5.3.0" + "guzzlehttp/promises": "^1.0", + "guzzlehttp/psr7": "^1.4", + "php": ">=5.5" }, "require-dev": { - "jakub-onderka/php-code-style": "~1.0", - "jakub-onderka/php-parallel-lint": "~0.5", - "jakub-onderka/php-var-dump-check": "~0.1", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5" + "ext-curl": "*", + "phpunit/phpunit": "^4.0", + "psr/log": "^1.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.2-dev" + } + }, "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleHighlighter": "src/" + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -805,45 +828,57 @@ ], "authors": [ { - "name": "Jakub Onderka", - "email": "acci@acci.cz", - "homepage": "http://www.acci.cz/" + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" } ], - "time": "2015-04-20 18:58:01" + "description": "Guzzle is a PHP HTTP client library", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "time": "2017-02-28T22:50:30+00:00" }, { - "name": "jeremeamia/SuperClosure", - "version": "2.1.0", + "name": "guzzlehttp/promises", + "version": "v1.3.1", "source": { "type": "git", - "url": "https://github.com/jeremeamia/super_closure.git", - "reference": "b712f39c671e5ead60c7ebfe662545456aade833" + "url": "https://github.com/guzzle/promises.git", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/b712f39c671e5ead60c7ebfe662545456aade833", - "reference": "b712f39c671e5ead60c7ebfe662545456aade833", + "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", "shasum": "" }, "require": { - "nikic/php-parser": "~1.0", - "php": ">=5.4" + "php": ">=5.5.0" }, "require-dev": { - "codeclimate/php-test-reporter": "~0.1.2", - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "^4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "1.4-dev" } }, "autoload": { "psr-4": { - "SuperClosure\\": "src/" - } + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -851,134 +886,54 @@ ], "authors": [ { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia", - "role": "developer" + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" } ], - "description": "Serialize Closure objects, including their context and binding", - "homepage": "https://github.com/jeremeamia/super_closure", + "description": "Guzzle promises library", "keywords": [ - "closure", - "function", - "lambda", - "parser", - "serializable", - "serialize", - "tokenizer" + "promise" ], - "time": "2015-03-11 20:06:43" + "time": "2016-12-20T10:07:11+00:00" }, { - "name": "laravel/framework", - "version": "v5.1.7", + "name": "guzzlehttp/psr7", + "version": "1.4.2", "source": { "type": "git", - "url": "https://github.com/laravel/framework.git", - "reference": "5e942882319845f71c681ce6e85831129bf66426" + "url": "https://github.com/guzzle/psr7.git", + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/5e942882319845f71c681ce6e85831129bf66426", - "reference": "5e942882319845f71c681ce6e85831129bf66426", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", "shasum": "" }, "require": { - "classpreloader/classpreloader": "~2.0", - "danielstjules/stringy": "~1.8", - "doctrine/inflector": "~1.0", - "ext-mbstring": "*", - "ext-openssl": "*", - "jeremeamia/superclosure": "~2.0", - "league/flysystem": "~1.0", - "monolog/monolog": "~1.11", - "mtdowling/cron-expression": "~1.0", - "nesbot/carbon": "~1.19", - "php": ">=5.5.9", - "psy/psysh": "~0.5.1", - "swiftmailer/swiftmailer": "~5.1", - "symfony/console": "2.7.*", - "symfony/css-selector": "2.7.*", - "symfony/debug": "2.7.*", - "symfony/dom-crawler": "2.7.*", - "symfony/finder": "2.7.*", - "symfony/http-foundation": "2.7.*", - "symfony/http-kernel": "2.7.*", - "symfony/process": "2.7.*", - "symfony/routing": "2.7.*", - "symfony/translation": "2.7.*", - "symfony/var-dumper": "2.7.*", - "vlucas/phpdotenv": "~1.0" + "php": ">=5.4.0", + "psr/http-message": "~1.0" }, - "replace": { - "illuminate/auth": "self.version", - "illuminate/broadcasting": "self.version", - "illuminate/bus": "self.version", - "illuminate/cache": "self.version", - "illuminate/config": "self.version", - "illuminate/console": "self.version", - "illuminate/container": "self.version", - "illuminate/contracts": "self.version", - "illuminate/cookie": "self.version", - "illuminate/database": "self.version", - "illuminate/encryption": "self.version", - "illuminate/events": "self.version", - "illuminate/exception": "self.version", - "illuminate/filesystem": "self.version", - "illuminate/foundation": "self.version", - "illuminate/hashing": "self.version", - "illuminate/http": "self.version", - "illuminate/log": "self.version", - "illuminate/mail": "self.version", - "illuminate/pagination": "self.version", - "illuminate/pipeline": "self.version", - "illuminate/queue": "self.version", - "illuminate/redis": "self.version", - "illuminate/routing": "self.version", - "illuminate/session": "self.version", - "illuminate/support": "self.version", - "illuminate/translation": "self.version", - "illuminate/validation": "self.version", - "illuminate/view": "self.version" + "provide": { + "psr/http-message-implementation": "1.0" }, "require-dev": { - "aws/aws-sdk-php": "~3.0", - "iron-io/iron_mq": "~2.0", - "mockery/mockery": "~0.9.1", - "pda/pheanstalk": "~3.0", - "phpunit/phpunit": "~4.0", - "predis/predis": "~1.0" - }, - "suggest": { - "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (~3.0).", - "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.4).", - "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).", - "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers (~5.3|~6.0).", - "iron-io/iron_mq": "Required to use the iron queue driver (~2.0).", - "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", - "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", - "pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).", - "predis/predis": "Required to use the redis cache and queue drivers (~1.0).", - "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0)." + "phpunit/phpunit": "~4.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-master": "1.4-dev" } }, "autoload": { - "classmap": [ - "src/Illuminate/Queue/IlluminateQueueClosure.php" - ], - "files": [ - "src/Illuminate/Foundation/helpers.php", - "src/Illuminate/Support/helpers.php" - ], "psr-4": { - "Illuminate\\": "src/Illuminate/" - } + "GuzzleHttp\\Psr7\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -986,105 +941,100 @@ ], "authors": [ { - "name": "Taylor Otwell", - "email": "taylorotwell@gmail.com" + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Schultze", + "homepage": "https://github.com/Tobion" } ], - "description": "The Laravel Framework.", - "homepage": "http://laravel.com", + "description": "PSR-7 message implementation that also provides common utility methods", "keywords": [ - "framework", - "laravel" + "http", + "message", + "request", + "response", + "stream", + "uri", + "url" ], - "time": "2015-07-12 02:27:36" + "time": "2017-03-20T17:10:46+00:00" }, { - "name": "laravel/socialite", - "version": "v2.0.8", + "name": "jakub-onderka/php-console-color", + "version": "0.1", "source": { "type": "git", - "url": "https://github.com/laravel/socialite.git", - "reference": "2f77e4f4bc16a7984ab6f30409bdd05c55f9159c" + "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", + "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/socialite/zipball/2f77e4f4bc16a7984ab6f30409bdd05c55f9159c", - "reference": "2f77e4f4bc16a7984ab6f30409bdd05c55f9159c", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", + "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", "shasum": "" }, "require": { - "guzzlehttp/guzzle": "~5.0|~6.0", - "illuminate/contracts": "~5.0", - "illuminate/http": "~5.0", - "illuminate/support": "~5.0", - "league/oauth1-client": "~1.0", - "php": ">=5.4.0" + "php": ">=5.3.2" }, "require-dev": { - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0" + "jakub-onderka/php-code-style": "1.0", + "jakub-onderka/php-parallel-lint": "0.*", + "jakub-onderka/php-var-dump-check": "0.*", + "phpunit/phpunit": "3.7.*", + "squizlabs/php_codesniffer": "1.*" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, "autoload": { - "psr-4": { - "Laravel\\Socialite\\": "src/" + "psr-0": { + "JakubOnderka\\PhpConsoleColor": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-2-Clause" ], "authors": [ { - "name": "Taylor Otwell", - "email": "taylorotwell@gmail.com" + "name": "Jakub Onderka", + "email": "jakub.onderka@gmail.com", + "homepage": "http://www.acci.cz" } ], - "description": "Laravel wrapper around OAuth 1 & OAuth 2 libraries.", - "keywords": [ - "laravel", - "oauth" - ], - "time": "2015-07-09 23:55:17" + "time": "2014-04-08T15:00:19+00:00" }, { - "name": "laravelcollective/html", - "version": "v5.1.1", + "name": "jakub-onderka/php-console-highlighter", + "version": "v0.3.2", "source": { "type": "git", - "url": "https://github.com/LaravelCollective/html.git", - "reference": "0918dac79ff8d294a92048f2d8b3c0c3078139b0" + "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git", + "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/LaravelCollective/html/zipball/0918dac79ff8d294a92048f2d8b3c0c3078139b0", - "reference": "0918dac79ff8d294a92048f2d8b3c0c3078139b0", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5", + "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5", "shasum": "" }, "require": { - "illuminate/http": "5.1.*", - "illuminate/routing": "5.1.*", - "illuminate/session": "5.1.*", - "illuminate/support": "5.1.*", - "php": ">=5.5.9" + "jakub-onderka/php-console-color": "~0.1", + "php": ">=5.3.0" }, "require-dev": { - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0" + "jakub-onderka/php-code-style": "~1.0", + "jakub-onderka/php-parallel-lint": "~0.5", + "jakub-onderka/php-var-dump-check": "~0.1", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~1.5" }, "type": "library", "autoload": { - "psr-4": { - "Collective\\Html\\": "src/" - }, - "files": [ - "src/helpers.php" - ] + "psr-0": { + "JakubOnderka\\PhpConsoleHighlighter": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1092,63 +1042,122 @@ ], "authors": [ { - "name": "Taylor Otwell", - "email": "taylorotwell@gmail.com" - }, - { - "name": "Adam Engebretson", - "email": "adam@laravelcollective.com" + "name": "Jakub Onderka", + "email": "acci@acci.cz", + "homepage": "http://www.acci.cz/" } ], - "time": "2015-06-18 02:16:50" + "time": "2015-04-20T18:58:01+00:00" }, { - "name": "league/flysystem", - "version": "1.0.9", + "name": "laravel/framework", + "version": "v5.4.24", "source": { "type": "git", - "url": "https://github.com/thephpleague/flysystem.git", - "reference": "c42bed650525ec9ea1a83b715e37f4fc690f99aa" + "url": "https://github.com/laravel/framework.git", + "reference": "ec8548db26c1b147570f661128649e98f3ac0f29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c42bed650525ec9ea1a83b715e37f4fc690f99aa", - "reference": "c42bed650525ec9ea1a83b715e37f4fc690f99aa", + "url": "https://api.github.com/repos/laravel/framework/zipball/ec8548db26c1b147570f661128649e98f3ac0f29", + "reference": "ec8548db26c1b147570f661128649e98f3ac0f29", "shasum": "" }, "require": { - "php": ">=5.4.0" + "doctrine/inflector": "~1.0", + "erusev/parsedown": "~1.6", + "ext-mbstring": "*", + "ext-openssl": "*", + "league/flysystem": "~1.0", + "monolog/monolog": "~1.11", + "mtdowling/cron-expression": "~1.0", + "nesbot/carbon": "~1.20", + "paragonie/random_compat": "~1.4|~2.0", + "php": ">=5.6.4", + "ramsey/uuid": "~3.0", + "swiftmailer/swiftmailer": "~5.4", + "symfony/console": "~3.2", + "symfony/debug": "~3.2", + "symfony/finder": "~3.2", + "symfony/http-foundation": "~3.2", + "symfony/http-kernel": "~3.2", + "symfony/process": "~3.2", + "symfony/routing": "~3.2", + "symfony/var-dumper": "~3.2", + "tijsverkoyen/css-to-inline-styles": "~2.2", + "vlucas/phpdotenv": "~2.2" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/exception": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "tightenco/collect": "self.version" }, "require-dev": { - "ext-fileinfo": "*", - "mockery/mockery": "~0.9", - "phpspec/phpspec": "^2.2", - "phpspec/prophecy-phpunit": "~1.0", - "phpunit/phpunit": "~4.1" + "aws/aws-sdk-php": "~3.0", + "doctrine/dbal": "~2.5", + "mockery/mockery": "~0.9.4", + "pda/pheanstalk": "~3.0", + "phpunit/phpunit": "~5.7", + "predis/predis": "~1.0", + "symfony/css-selector": "~3.2", + "symfony/dom-crawler": "~3.2" }, "suggest": { - "ext-fileinfo": "Required for MimeType", - "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", - "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", - "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", - "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", - "league/flysystem-copy": "Allows you to use Copy.com storage", - "league/flysystem-dropbox": "Allows you to use Dropbox storage", - "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", - "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", - "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", - "league/flysystem-webdav": "Allows you to use WebDAV storage", - "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter" + "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (~3.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.5).", + "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).", + "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).", + "laravel/tinker": "Required to use the tinker console command (~1.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", + "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", + "nexmo/client": "Required to use the Nexmo transport (~1.0).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).", + "predis/predis": "Required to use the redis cache and queue drivers (~1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0).", + "symfony/css-selector": "Required to use some of the crawler integration testing tools (~3.2).", + "symfony/dom-crawler": "Required to use most of the crawler integration testing tools (~3.2).", + "symfony/psr-http-message-bridge": "Required to psr7 bridging features (0.2.*)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "5.4-dev" } }, "autoload": { + "files": [ + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], "psr-4": { - "League\\Flysystem\\": "src/" + "Illuminate\\": "src/Illuminate/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1157,64 +1166,53 @@ ], "authors": [ { - "name": "Frank de Jonge", - "email": "info@frenky.net" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "description": "Filesystem abstraction: Many filesystems, one API.", + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", "keywords": [ - "Cloud Files", - "WebDAV", - "abstraction", - "aws", - "cloud", - "copy.com", - "dropbox", - "file systems", - "files", - "filesystem", - "filesystems", - "ftp", - "rackspace", - "remote", - "s3", - "sftp", - "storage" + "framework", + "laravel" ], - "time": "2015-07-13 09:25:28" + "time": "2017-05-30T12:44:32+00:00" }, { - "name": "league/oauth1-client", - "version": "1.5.0", + "name": "laravel/socialite", + "version": "v3.0.6", "source": { "type": "git", - "url": "https://github.com/thephpleague/oauth1-client.git", - "reference": "815b2dbd2b866409f3de6e4046a76e66b5af608e" + "url": "https://github.com/laravel/socialite.git", + "reference": "bca777a8526983e0ebdf3350f1b6e031923a473b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/oauth1-client/zipball/815b2dbd2b866409f3de6e4046a76e66b5af608e", - "reference": "815b2dbd2b866409f3de6e4046a76e66b5af608e", + "url": "https://api.github.com/repos/laravel/socialite/zipball/bca777a8526983e0ebdf3350f1b6e031923a473b", + "reference": "bca777a8526983e0ebdf3350f1b6e031923a473b", "shasum": "" }, "require": { - "guzzle/guzzle": "3.*", - "php": ">=5.3.0" + "guzzlehttp/guzzle": "~6.0", + "illuminate/contracts": "~5.4", + "illuminate/http": "~5.4", + "illuminate/support": "~5.4", + "league/oauth1-client": "~1.0", + "php": ">=5.4.0" }, "require-dev": { - "mockery/mockery": "0.7.2", - "phpunit/phpunit": "*", - "satooshi/php-coveralls": "dev-master" + "mockery/mockery": "~0.9", + "phpunit/phpunit": "~4.0|~5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { - "League\\OAuth1\\": "src/" + "Laravel\\Socialite\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1223,64 +1221,59 @@ ], "authors": [ { - "name": "Ben Corlett", - "email": "bencorlett@me.com", - "homepage": "http://www.webcomm.com.au", - "role": "Developer" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "description": "OAuth 1.0 Client Library", + "description": "Laravel wrapper around OAuth 1 & OAuth 2 libraries.", "keywords": [ - "Authentication", - "SSO", - "authorization", - "bitbucket", - "identity", - "idp", - "oauth", - "oauth1", - "single sign on", - "trello", - "tumblr", - "twitter" + "laravel", + "oauth" ], - "time": "2015-05-18 00:04:43" + "time": "2017-05-05T14:17:11+00:00" }, { - "name": "mccool/laravel-auto-presenter", - "version": "3.1.1", + "name": "laravel/tinker", + "version": "v1.0.1", "source": { "type": "git", - "url": "https://github.com/laravel-auto-presenter/laravel-auto-presenter.git", - "reference": "0f77299f7e4e5e017da175583c85bf24fa85c118" + "url": "https://github.com/laravel/tinker.git", + "reference": "7eb2e281395131897407285672ef5532e87e17f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-auto-presenter/laravel-auto-presenter/zipball/0f77299f7e4e5e017da175583c85bf24fa85c118", - "reference": "0f77299f7e4e5e017da175583c85bf24fa85c118", + "url": "https://api.github.com/repos/laravel/tinker/zipball/7eb2e281395131897407285672ef5532e87e17f9", + "reference": "7eb2e281395131897407285672ef5532e87e17f9", "shasum": "" }, "require": { - "illuminate/container": "~5.0", - "illuminate/contracts": "~5.0", - "illuminate/events": "~5.0", - "illuminate/pagination": "~5.0", - "illuminate/support": "~5.0", - "illuminate/view": "~5.0", - "php": ">=5.5.0" + "illuminate/console": "~5.1", + "illuminate/contracts": "~5.1", + "illuminate/support": "~5.1", + "php": ">=5.5.9", + "psy/psysh": "0.7.*|0.8.*", + "symfony/var-dumper": "~3.0" }, "require-dev": { - "graham-campbell/testbench": "~2.0" + "phpunit/phpunit": "~4.0|~5.0" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (~5.1)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] } }, "autoload": { "psr-4": { - "McCool\\LaravelAutoPresenter\\": "src/" + "Laravel\\Tinker\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1289,51 +1282,50 @@ ], "authors": [ { - "name": "Shawn McCool", - "email": "shawn@heybigname.com" - }, - { - "name": "Graham Campbell", - "email": "graham@alt-three.com" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "description": "A system for auto-decorating models with presenter objects.", + "description": "Powerful REPL for the Laravel framework.", "keywords": [ - "eloquent", + "REPL", + "Tinker", "laravel", - "lpm", - "presenter" + "psysh" ], - "time": "2015-06-26 09:15:40" + "time": "2017-06-01T16:31:26+00:00" }, { - "name": "mews/purifier", - "version": "2.0.0", + "name": "laravelcollective/html", + "version": "v5.4.8", "source": { "type": "git", - "url": "https://github.com/mewebstudio/Purifier.git", - "reference": "34b7d15002ce5f6fa28c6012e69f88181bab86b0" + "url": "https://github.com/LaravelCollective/html.git", + "reference": "9b8f51e7a2368911c896f5d42757886bae0717b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mewebstudio/Purifier/zipball/34b7d15002ce5f6fa28c6012e69f88181bab86b0", - "reference": "34b7d15002ce5f6fa28c6012e69f88181bab86b0", + "url": "https://api.github.com/repos/LaravelCollective/html/zipball/9b8f51e7a2368911c896f5d42757886bae0717b5", + "reference": "9b8f51e7a2368911c896f5d42757886bae0717b5", "shasum": "" }, "require": { - "ezyang/htmlpurifier": "4.6.*", - "illuminate/config": "~5.0", - "illuminate/filesystem": "~5.0", - "php": ">=5.4" + "illuminate/http": "5.4.*", + "illuminate/routing": "5.4.*", + "illuminate/session": "5.4.*", + "illuminate/support": "5.4.*", + "illuminate/view": "5.4.*", + "php": ">=5.6.4" }, "require-dev": { - "mockery/mockery": "dev-master", - "phpunit/phpunit": "~4.0" + "illuminate/database": "5.4.*", + "mockery/mockery": "~0.9.4", + "phpunit/phpunit": "~5.4" }, - "type": "package", + "type": "library", "autoload": { "psr-4": { - "Mews\\Purifier\\": "src/" + "Collective\\Html\\": "src/" }, "files": [ "src/helpers.php" @@ -1345,51 +1337,64 @@ ], "authors": [ { - "name": "Muharrem ERİN", - "email": "me@mewebstudio.com", - "homepage": "https://github.com/mewebstudio", - "role": "Developer" + "name": "Taylor Otwell", + "email": "taylorotwell@gmail.com" + }, + { + "name": "Adam Engebretson", + "email": "adam@laravelcollective.com" } ], - "description": "Laravel 5 HtmlPurifier Package", - "homepage": "https://github.com/mewebstudio/purifier", - "keywords": [ - "Purifier", - "htmlpurifier", - "laravel5 HtmlPurifier", - "laravel5 Purifier", - "laravel5 Security", - "security", - "xss" - ], - "time": "2015-04-11 13:35:46" + "description": "HTML and Form Builders for the Laravel Framework", + "homepage": "http://laravelcollective.com", + "time": "2017-05-22T06:35:07+00:00" }, { - "name": "michelf/php-markdown", - "version": "1.4.1", + "name": "league/commonmark", + "version": "0.15.4", "source": { "type": "git", - "url": "https://github.com/michelf/php-markdown.git", - "reference": "de9a19c7bf352d41cc99ed86c3c0ef17e87394b6" + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "c4c8e6bf99e62d9568875d9fc3ef473fe3e18e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/michelf/php-markdown/zipball/de9a19c7bf352d41cc99ed86c3c0ef17e87394b6", - "reference": "de9a19c7bf352d41cc99ed86c3c0ef17e87394b6", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/c4c8e6bf99e62d9568875d9fc3ef473fe3e18e0c", + "reference": "c4c8e6bf99e62d9568875d9fc3ef473fe3e18e0c", "shasum": "" }, "require": { - "php": ">=5.3.0" + "ext-mbstring": "*", + "php": ">=5.4.8" + }, + "replace": { + "colinodell/commonmark-php": "*" + }, + "require-dev": { + "cebe/markdown": "~1.0", + "erusev/parsedown": "~1.0", + "jgm/commonmark": "0.27", + "michelf/php-markdown": "~1.4", + "mikehaertl/php-shellcommand": "~1.2.0", + "phpunit/phpunit": "~4.3|~5.0", + "scrutinizer/ocular": "~1.1", + "symfony/finder": "~2.3|~3.0" }, + "suggest": { + "league/commonmark-extras": "Library of useful extensions including smart punctuation" + }, + "bin": [ + "bin/commonmark" + ], "type": "library", "extra": { "branch-alias": { - "dev-lib": "1.4.x-dev" + "dev-master": "0.16-dev" } }, "autoload": { - "psr-0": { - "Michelf": "" + "psr-4": { + "League\\CommonMark\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1398,52 +1403,136 @@ ], "authors": [ { - "name": "Michel Fortin", - "email": "michel.fortin@michelf.ca", - "homepage": "http://michelf.ca/", - "role": "Developer" - }, + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Markdown parser for PHP based on the CommonMark spec", + "homepage": "https://github.com/thephpleague/commonmark", + "keywords": [ + "commonmark", + "markdown", + "parser" + ], + "time": "2017-05-09T12:47:53+00:00" + }, + { + "name": "league/flysystem", + "version": "1.0.40", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "3828f0b24e2c1918bb362d57a53205d6dc8fde61" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/3828f0b24e2c1918bb362d57a53205d6dc8fde61", + "reference": "3828f0b24e2c1918bb362d57a53205d6dc8fde61", + "shasum": "" + }, + "require": { + "php": ">=5.5.9" + }, + "conflict": { + "league/flysystem-sftp": "<1.0.6" + }, + "require-dev": { + "ext-fileinfo": "*", + "mockery/mockery": "~0.9", + "phpspec/phpspec": "^2.2", + "phpunit/phpunit": "~4.8" + }, + "suggest": { + "ext-fileinfo": "Required for MimeType", + "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", + "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", + "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", + "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", + "league/flysystem-copy": "Allows you to use Copy.com storage", + "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", + "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", + "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", + "league/flysystem-webdav": "Allows you to use WebDAV storage", + "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", + "spatie/flysystem-dropbox": "Allows you to use Dropbox storage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ { - "name": "John Gruber", - "homepage": "http://daringfireball.net/" + "name": "Frank de Jonge", + "email": "info@frenky.net" } ], - "description": "PHP Markdown", - "homepage": "http://michelf.ca/projects/php-markdown/", + "description": "Filesystem abstraction: Many filesystems, one API.", "keywords": [ - "markdown" + "Cloud Files", + "WebDAV", + "abstraction", + "aws", + "cloud", + "copy.com", + "dropbox", + "file systems", + "files", + "filesystem", + "filesystems", + "ftp", + "rackspace", + "remote", + "s3", + "sftp", + "storage" ], - "time": "2014-05-05 02:43:50" + "time": "2017-04-28T10:15:08+00:00" }, { - "name": "misd/linkify", - "version": "v1.1.2", + "name": "league/oauth1-client", + "version": "1.7.0", "source": { "type": "git", - "url": "https://github.com/misd-service-development/php-linkify.git", - "reference": "4dbe3e9f966e446a257d0f60a91f39e0b7f4f4d6" + "url": "https://github.com/thephpleague/oauth1-client.git", + "reference": "fca5f160650cb74d23fc11aa570dd61f86dcf647" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/misd-service-development/php-linkify/zipball/4dbe3e9f966e446a257d0f60a91f39e0b7f4f4d6", - "reference": "4dbe3e9f966e446a257d0f60a91f39e0b7f4f4d6", + "url": "https://api.github.com/repos/thephpleague/oauth1-client/zipball/fca5f160650cb74d23fc11aa570dd61f86dcf647", + "reference": "fca5f160650cb74d23fc11aa570dd61f86dcf647", "shasum": "" }, "require": { - "php": ">=5.3.0" + "guzzlehttp/guzzle": "^6.0", + "php": ">=5.5.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9", + "phpunit/phpunit": "^4.0", + "squizlabs/php_codesniffer": "^2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.0-dev" } }, "autoload": { - "psr-0": { - "Misd\\Linkify\\": "src/" + "psr-4": { + "League\\OAuth1\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1452,32 +1541,41 @@ ], "authors": [ { - "name": "Chris Wilkinson", - "email": "chris.wilkinson@admin.cam.ac.uk" + "name": "Ben Corlett", + "email": "bencorlett@me.com", + "homepage": "http://www.webcomm.com.au", + "role": "Developer" } ], - "description": "Converts URLs and email addresses in text into HTML links", - "homepage": "https://github.com/misd-service-development/php-linkify", + "description": "OAuth 1.0 Client Library", "keywords": [ - "convert", - "email address", - "link", - "url" + "Authentication", + "SSO", + "authorization", + "bitbucket", + "identity", + "idp", + "oauth", + "oauth1", + "single sign on", + "trello", + "tumblr", + "twitter" ], - "time": "2014-05-12 11:52:18" + "time": "2016-08-17T00:36:58+00:00" }, { "name": "monolog/monolog", - "version": "1.15.0", + "version": "1.22.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "dc5150cc608f2334c72c3b6a553ec9668a4156b0" + "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/dc5150cc608f2334c72c3b6a553ec9668a4156b0", - "reference": "dc5150cc608f2334c72c3b6a553ec9668a4156b0", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0", + "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0", "shasum": "" }, "require": { @@ -1488,16 +1586,17 @@ "psr/log-implementation": "1.0.0" }, "require-dev": { - "aws/aws-sdk-php": "^2.4.9", + "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", "graylog2/gelf-php": "~1.0", + "jakub-onderka/php-parallel-lint": "0.9", + "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "phpunit/phpunit": "~4.5", "phpunit/phpunit-mock-objects": "2.3.0", - "raven/raven": "~0.8", "ruflin/elastica": ">=0.90 <3.0", - "swiftmailer/swiftmailer": "~5.3", - "videlalvaro/php-amqplib": "~2.4" + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "~5.3" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -1505,16 +1604,17 @@ "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", "php-console/php-console": "Allow sending log messages to Google Chrome", - "raven/raven": "Allow sending log messages to a Sentry server", "rollbar/rollbar": "Allow sending log messages to Rollbar", "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib" + "sentry/sentry": "Allow sending log messages to a Sentry server" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.15.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -1540,32 +1640,32 @@ "logging", "psr-3" ], - "time": "2015-07-12 13:54:09" + "time": "2017-03-13T07:08:03+00:00" }, { "name": "mtdowling/cron-expression", - "version": "v1.0.4", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/mtdowling/cron-expression.git", - "reference": "fd92e883195e5dfa77720b1868cf084b08be4412" + "reference": "9504fa9ea681b586028adaaa0877db4aecf32bad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mtdowling/cron-expression/zipball/fd92e883195e5dfa77720b1868cf084b08be4412", - "reference": "fd92e883195e5dfa77720b1868cf084b08be4412", + "url": "https://api.github.com/repos/mtdowling/cron-expression/zipball/9504fa9ea681b586028adaaa0877db4aecf32bad", + "reference": "9504fa9ea681b586028adaaa0877db4aecf32bad", "shasum": "" }, "require": { "php": ">=5.3.2" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "~4.0|~5.0" }, "type": "library", "autoload": { - "psr-0": { - "Cron": "src/" + "psr-4": { + "Cron\\": "src/Cron/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1584,33 +1684,39 @@ "cron", "schedule" ], - "time": "2015-01-11 23:07:46" + "time": "2017-01-23T04:29:33+00:00" }, { "name": "nesbot/carbon", - "version": "1.20.0", + "version": "1.22.1", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3" + "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bfd3eaba109c9a2405c92174c8e17f20c2b9caf3", - "reference": "bfd3eaba109c9a2405c92174c8e17f20c2b9caf3", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", + "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", "shasum": "" }, "require": { "php": ">=5.3.0", - "symfony/translation": "~2.6|~3.0" + "symfony/translation": "~2.6 || ~3.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "friendsofphp/php-cs-fixer": "~2", + "phpunit/phpunit": "~4.0 || ~5.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.23-dev" + } + }, "autoload": { - "psr-0": { - "Carbon": "src" + "psr-4": { + "Carbon\\": "src/Carbon/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1631,112 +1737,119 @@ "datetime", "time" ], - "time": "2015-06-25 04:19:39" + "time": "2017-01-16T07:55:07+00:00" }, { - "name": "nickcernis/html-to-markdown", - "version": "2.1.2", + "name": "nikic/php-parser", + "version": "v3.0.5", "source": { "type": "git", - "url": "https://github.com/nickcernis/html-to-markdown.git", - "reference": "c27833198b2777da43455829439cb24287597218" + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nickcernis/html-to-markdown/zipball/c27833198b2777da43455829439cb24287597218", - "reference": "c27833198b2777da43455829439cb24287597218", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2b9e2f71b722f7c53918ab0c25f7646c2013f17d", + "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d", "shasum": "" }, "require": { - "php": ">=5.2" + "ext-tokenizer": "*", + "php": ">=5.5" }, "require-dev": { - "php": ">=5.3.3", - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "~4.0|~5.0" }, + "bin": [ + "bin/php-parse" + ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { - "classmap": [ - "HTML_To_Markdown.php" - ] + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nick Cernis", - "email": "nick@cern.is", - "homepage": "http://modernnerd.net" + "name": "Nikita Popov" } ], - "description": "An HTML-to-markdown conversion helper for PHP", - "homepage": "https://github.com/nickcernis/html-to-markdown", + "description": "A PHP parser written in PHP", "keywords": [ - "html", - "markdown" + "parser", + "php" ], - "abandoned": "league/html-to-markdown", - "time": "2015-01-04 20:10:30" + "time": "2017-03-05T18:23:57+00:00" }, { - "name": "nikic/php-parser", - "version": "v1.3.0", + "name": "paragonie/random_compat", + "version": "v2.0.10", "source": { "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca" + "url": "https://github.com/paragonie/random_compat.git", + "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dff239267fd1befa1cd40430c9ed12591aa720ca", - "reference": "dff239267fd1befa1cd40430c9ed12591aa720ca", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d", + "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": ">=5.3" + "php": ">=5.2.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } + "require-dev": { + "phpunit/phpunit": "4.*|5.*" }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", "autoload": { "files": [ - "lib/bootstrap.php" + "lib/random.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Nikita Popov" + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" } ], - "description": "A PHP parser written in PHP", + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", "keywords": [ - "parser", - "php" + "csprng", + "pseudorandom", + "random" ], - "time": "2015-05-02 15:40:40" + "time": "2017-03-13T16:27:32+00:00" }, { "name": "psr/http-message", - "version": "1.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298" + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", - "reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "shasum": "" }, "require": { @@ -1764,6 +1877,7 @@ } ], "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", "keywords": [ "http", "http-message", @@ -1772,26 +1886,34 @@ "request", "response" ], - "time": "2015-05-04 20:22:00" + "time": "2016-08-06T14:39:51+00:00" }, { "name": "psr/log", - "version": "1.0.0", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "shasum": "" }, + "require": { + "php": ">=5.3.0" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { - "psr-0": { - "Psr\\Log\\": "" + "psr-4": { + "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1805,46 +1927,48 @@ } ], "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", "keywords": [ "log", "psr", "psr-3" ], - "time": "2012-12-21 11:40:51" + "time": "2016-10-10T12:19:37+00:00" }, { "name": "psy/psysh", - "version": "v0.5.1", + "version": "v0.8.6", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "e5a46a767928e85f1f47dda654beda8c680ddd94" + "reference": "7028d6d525fb183d50b249b7c07598e3d386b27d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/e5a46a767928e85f1f47dda654beda8c680ddd94", - "reference": "e5a46a767928e85f1f47dda654beda8c680ddd94", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/7028d6d525fb183d50b249b7c07598e3d386b27d", + "reference": "7028d6d525fb183d50b249b7c07598e3d386b27d", "shasum": "" }, "require": { "dnoegel/php-xdg-base-dir": "0.1", "jakub-onderka/php-console-highlighter": "0.3.*", - "nikic/php-parser": "^1.2.1", + "nikic/php-parser": "~1.3|~2.0|~3.0", "php": ">=5.3.9", "symfony/console": "~2.3.10|^2.4.2|~3.0", "symfony/var-dumper": "~2.7|~3.0" }, "require-dev": { - "fabpot/php-cs-fixer": "~1.5", - "phpunit/phpunit": "~3.7|~4.0", - "squizlabs/php_codesniffer": "~2.0", + "friendsofphp/php-cs-fixer": "~1.11", + "hoa/console": "~3.16|~1.14", + "phpunit/phpunit": "~4.4|~5.0", "symfony/finder": "~2.1|~3.0" }, "suggest": { "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", "ext-pdo-sqlite": "The doc command requires SQLite to work.", "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", - "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." + "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.", + "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit." }, "bin": [ "bin/psysh" @@ -1852,15 +1976,15 @@ "type": "library", "extra": { "branch-alias": { - "dev-develop": "0.6.x-dev" + "dev-develop": "0.8.x-dev" } }, "autoload": { "files": [ "src/Psy/functions.php" ], - "psr-0": { - "Psy\\": "src/" + "psr-4": { + "Psy\\": "src/Psy/" } }, "notification-url": "https://packagist.org/downloads/", @@ -1882,27 +2006,214 @@ "interactive", "shell" ], - "time": "2015-07-03 16:48:00" + "time": "2017-06-04T10:34:20+00:00" + }, + { + "name": "ramsey/uuid", + "version": "3.6.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "4ae32dd9ab8860a4bbd750ad269cba7f06f7934e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/4ae32dd9ab8860a4bbd750ad269cba7f06f7934e", + "reference": "4ae32dd9ab8860a4bbd750ad269cba7f06f7934e", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "^1.0|^2.0", + "php": "^5.4 || ^7.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "apigen/apigen": "^4.1", + "codeception/aspect-mock": "^1.0 | ^2.0", + "doctrine/annotations": "~1.2.0", + "goaop/framework": "1.0.0-alpha.2 | ^1.0 | ^2.1", + "ircmaxell/random-lib": "^1.1", + "jakub-onderka/php-parallel-lint": "^0.9.0", + "mockery/mockery": "^0.9.4", + "moontoast/math": "^1.1", + "php-mock/php-mock-phpunit": "^0.3|^1.1", + "phpunit/phpunit": "^4.7|>=5.0 <5.4", + "satooshi/php-coveralls": "^0.6.1", + "squizlabs/php_codesniffer": "^2.3" + }, + "suggest": { + "ext-libsodium": "Provides the PECL libsodium extension for use with the SodiumRandomGenerator", + "ext-uuid": "Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator", + "ircmaxell/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "moontoast/math": "Provides support for converting UUID to 128-bit integer (in string form).", + "ramsey/uuid-console": "A console application for generating UUIDs with ramsey/uuid", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marijn Huizendveld", + "email": "marijn.huizendveld@gmail.com" + }, + { + "name": "Thibaud Fabre", + "email": "thibaud@aztech.io" + }, + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).", + "homepage": "https://github.com/ramsey/uuid", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "time": "2017-03-26T20:37:53+00:00" + }, + { + "name": "spatie/laravel-migrate-fresh", + "version": "1.4.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-migrate-fresh.git", + "reference": "3c5ff10580c89255ec82eea61f6582f3e0a11ff3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-migrate-fresh/zipball/3c5ff10580c89255ec82eea61f6582f3e0a11ff3", + "reference": "3c5ff10580c89255ec82eea61f6582f3e0a11ff3", + "shasum": "" + }, + "require": { + "illuminate/console": "^5.3.28", + "illuminate/events": "^5.3.28", + "php": "^7.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.7", + "orchestra/testbench": "^3.3", + "phpunit/phpunit": "5.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\MigrateFresh\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A command to build up the database from scratch", + "homepage": "https://github.com/spatie/laravel-migrate-fresh", + "keywords": [ + "database", + "eloquent", + "fresh", + "laravel-migrate-fresh", + "migrate", + "spatie" + ], + "time": "2017-05-03T13:33:57+00:00" + }, + { + "name": "spatie/laravel-robots-middleware", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-robots-middleware.git", + "reference": "843d09705a581b1efb9377605381a439bacb3ad5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-robots-middleware/zipball/843d09705a581b1efb9377605381a439bacb3ad5", + "reference": "843d09705a581b1efb9377605381a439bacb3ad5", + "shasum": "" + }, + "require": { + "illuminate/http": "^5.1", + "php": "^7.0" + }, + "require-dev": { + "orchestra/testbench": "^3.2", + "phpunit/phpunit": "4.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\RobotsMiddleware\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian De Deyne", + "email": "sebastian@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Add an `all` or `none` robots header to your requests via a middleware in Laravel", + "homepage": "https://github.com/spatie/laravel-robots-middleware", + "keywords": [ + "index", + "robots", + "seo", + "spatie" + ], + "time": "2016-01-12T12:28:05+00:00" }, { "name": "swiftmailer/swiftmailer", - "version": "v5.4.1", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421" + "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/0697e6aa65c83edf97bb0f23d8763f94e3f11421", - "reference": "0697e6aa65c83edf97bb0f23d8763f94e3f11421", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/9a06dc570a0367850280eefd3f1dc2da45aef517", + "reference": "9a06dc570a0367850280eefd3f1dc2da45aef517", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "mockery/mockery": "~0.9.1,<0.9.4" + "mockery/mockery": "~0.9.1", + "symfony/phpunit-bridge": "~3.2" }, "type": "library", "extra": { @@ -1935,46 +2246,57 @@ "mail", "mailer" ], - "time": "2015-06-06 14:19:39" + "time": "2017-05-01T15:54:03+00:00" }, { "name": "symfony/console", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "8cf484449130cabfd98dcb4694ca9945802a21ed" + "reference": "c80e63f3f5e3a331bfc25e6e9332b10422eb9b05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/8cf484449130cabfd98dcb4694ca9945802a21ed", - "reference": "8cf484449130cabfd98dcb4694ca9945802a21ed", + "url": "https://api.github.com/repos/symfony/console/zipball/c80e63f3f5e3a331bfc25e6e9332b10422eb9b05", + "reference": "c80e63f3f5e3a331bfc25e6e9332b10422eb9b05", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/debug": "~2.8|~3.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/dependency-injection": "<3.3" }, "require-dev": { "psr/log": "~1.0", - "symfony/event-dispatcher": "~2.1", - "symfony/phpunit-bridge": "~2.7", - "symfony/process": "~2.1" + "symfony/dependency-injection": "~3.3", + "symfony/event-dispatcher": "~2.8|~3.0", + "symfony/filesystem": "~2.8|~3.0", + "symfony/http-kernel": "~2.8|~3.0", + "symfony/process": "~2.8|~3.0" }, "suggest": { "psr/log": "For using the console logger", "symfony/event-dispatcher": "", + "symfony/filesystem": "", "symfony/process": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Console\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1992,38 +2314,38 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-28T14:08:56+00:00" }, { "name": "symfony/css-selector", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "0b5c07b516226b7dd32afbbc82fe547a469c5092" + "reference": "4d882dced7b995d5274293039370148e291808f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/0b5c07b516226b7dd32afbbc82fe547a469c5092", - "reference": "0b5c07b516226b7dd32afbbc82fe547a469c5092", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/4d882dced7b995d5274293039370148e291808f2", + "reference": "4d882dced7b995d5274293039370148e291808f2", "shasum": "" }, "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\CssSelector\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2045,49 +2367,45 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2015-05-15 13:33:16" + "time": "2017-05-01T15:01:29+00:00" }, { "name": "symfony/debug", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "9daa1bf9f7e615fa2fba30357e479a90141222e3" + "reference": "ef5f19a7a68075a0bd05969a329ead3b0776fb7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/9daa1bf9f7e615fa2fba30357e479a90141222e3", - "reference": "9daa1bf9f7e615fa2fba30357e479a90141222e3", + "url": "https://api.github.com/repos/symfony/debug/zipball/ef5f19a7a68075a0bd05969a329ead3b0776fb7a", + "reference": "ef5f19a7a68075a0bd05969a329ead3b0776fb7a", "shasum": "" }, "require": { - "php": ">=5.3.9", + "php": ">=5.5.9", "psr/log": "~1.0" }, "conflict": { "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2" }, "require-dev": { - "symfony/class-loader": "~2.2", - "symfony/http-foundation": "~2.1", - "symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2", - "symfony/phpunit-bridge": "~2.7" - }, - "suggest": { - "symfony/http-foundation": "", - "symfony/http-kernel": "" + "symfony/http-kernel": "~2.8|~3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Debug\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2105,42 +2423,52 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-27T16:02:27+00:00" }, { - "name": "symfony/dom-crawler", - "version": "v2.7.2", + "name": "symfony/event-dispatcher", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/dom-crawler.git", - "reference": "9dabece63182e95c42b06967a0d929a5df78bc35" + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "a9f8b02b0ef07302eca92cd4bba73200b7980e9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/9dabece63182e95c42b06967a0d929a5df78bc35", - "reference": "9dabece63182e95c42b06967a0d929a5df78bc35", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a9f8b02b0ef07302eca92cd4bba73200b7980e9c", + "reference": "a9f8b02b0ef07302eca92cd4bba73200b7980e9c", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9" + }, + "conflict": { + "symfony/dependency-injection": "<3.3" }, "require-dev": { - "symfony/css-selector": "~2.3", - "symfony/phpunit-bridge": "~2.7" + "psr/log": "~1.0", + "symfony/config": "~2.8|~3.0", + "symfony/dependency-injection": "~3.3", + "symfony/expression-language": "~2.8|~3.0", + "symfony/stopwatch": "~2.8|~3.0" }, "suggest": { - "symfony/css-selector": "" + "symfony/dependency-injection": "", + "symfony/http-kernel": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\DomCrawler\\": "" - } + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2156,49 +2484,40 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony DomCrawler Component", + "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-04T12:23:07+00:00" }, { - "name": "symfony/event-dispatcher", - "version": "v2.7.2", + "name": "symfony/finder", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3" + "url": "https://github.com/symfony/finder.git", + "reference": "30cb2a2c09627823a7243638dd456de4e2748fed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9310b5f9a87ec2ea75d20fec0b0017c77c66dac3", - "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3", + "url": "https://api.github.com/repos/symfony/finder/zipball/30cb2a2c09627823a7243638dd456de4e2748fed", + "reference": "30cb2a2c09627823a7243638dd456de4e2748fed", "shasum": "" }, "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "psr/log": "~1.0", - "symfony/config": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.6", - "symfony/expression-language": "~2.6", - "symfony/phpunit-bridge": "~2.7", - "symfony/stopwatch": "~2.3" - }, - "suggest": { - "symfony/dependency-injection": "", - "symfony/http-kernel": "" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\EventDispatcher\\": "" - } + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2214,40 +2533,44 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony EventDispatcher Component", + "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2015-06-18 19:21:56" + "time": "2017-05-25T23:10:31+00:00" }, { - "name": "symfony/finder", - "version": "v2.7.2", + "name": "symfony/http-foundation", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/Finder.git", - "reference": "ae0f363277485094edc04c9f3cbe595b183b78e4" + "url": "https://github.com/symfony/http-foundation.git", + "reference": "a3272c06d538bd48261e7d83308e7f84992d4ec8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Finder/zipball/ae0f363277485094edc04c9f3cbe595b183b78e4", - "reference": "ae0f363277485094edc04c9f3cbe595b183b78e4", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/a3272c06d538bd48261e7d83308e7f84992d4ec8", + "reference": "a3272c06d538bd48261e7d83308e7f84992d4ec8", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "symfony/expression-language": "~2.8|~3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Finder\\": "" - } + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2263,43 +2586,75 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Finder Component", + "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-25T13:39:26+00:00" }, { - "name": "symfony/http-foundation", - "version": "v2.7.2", + "name": "symfony/http-kernel", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/http-foundation.git", - "reference": "88903c0531b90d4ecd90282b18f08c0c77bde0b2" + "url": "https://github.com/symfony/http-kernel.git", + "reference": "4ad34a0d20a5848c0fcbf6ff6a2ff1cd9cf4b9ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/88903c0531b90d4ecd90282b18f08c0c77bde0b2", - "reference": "88903c0531b90d4ecd90282b18f08c0c77bde0b2", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4ad34a0d20a5848c0fcbf6ff6a2ff1cd9cf4b9ed", + "reference": "4ad34a0d20a5848c0fcbf6ff6a2ff1cd9cf4b9ed", "shasum": "" }, - "require": { - "php": ">=5.3.9" + "require": { + "php": ">=5.5.9", + "psr/log": "~1.0", + "symfony/debug": "~2.8|~3.0", + "symfony/event-dispatcher": "~2.8|~3.0", + "symfony/http-foundation": "~3.3" + }, + "conflict": { + "symfony/config": "<2.8", + "symfony/dependency-injection": "<3.3", + "symfony/var-dumper": "<3.3" }, "require-dev": { - "symfony/expression-language": "~2.4", - "symfony/phpunit-bridge": "~2.7" + "psr/cache": "~1.0", + "symfony/browser-kit": "~2.8|~3.0", + "symfony/class-loader": "~2.8|~3.0", + "symfony/config": "~2.8|~3.0", + "symfony/console": "~2.8|~3.0", + "symfony/css-selector": "~2.8|~3.0", + "symfony/dependency-injection": "~3.3", + "symfony/dom-crawler": "~2.8|~3.0", + "symfony/expression-language": "~2.8|~3.0", + "symfony/finder": "~2.8|~3.0", + "symfony/process": "~2.8|~3.0", + "symfony/routing": "~2.8|~3.0", + "symfony/stopwatch": "~2.8|~3.0", + "symfony/templating": "~2.8|~3.0", + "symfony/translation": "~2.8|~3.0", + "symfony/var-dumper": "~3.3" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/class-loader": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "", + "symfony/finder": "", + "symfony/var-dumper": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\HttpFoundation\\": "" + "Symfony\\Component\\HttpKernel\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -2316,71 +2671,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony HttpFoundation Component", + "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-29T21:02:12+00:00" }, { - "name": "symfony/http-kernel", - "version": "v2.7.2", + "name": "symfony/polyfill-mbstring", + "version": "v1.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/http-kernel.git", - "reference": "4a8a6f2a847475b3a38da50363a07f69b5cbf37e" + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4a8a6f2a847475b3a38da50363a07f69b5cbf37e", - "reference": "4a8a6f2a847475b3a38da50363a07f69b5cbf37e", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", "shasum": "" }, "require": { - "php": ">=5.3.9", - "psr/log": "~1.0", - "symfony/debug": "~2.6,>=2.6.2", - "symfony/event-dispatcher": "~2.5.9|~2.6,>=2.6.2", - "symfony/http-foundation": "~2.5,>=2.5.4" - }, - "conflict": { - "symfony/config": "<2.7" - }, - "require-dev": { - "symfony/browser-kit": "~2.3", - "symfony/class-loader": "~2.1", - "symfony/config": "~2.7", - "symfony/console": "~2.3", - "symfony/css-selector": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.2", - "symfony/dom-crawler": "~2.0,>=2.0.5", - "symfony/expression-language": "~2.4", - "symfony/finder": "~2.0,>=2.0.5", - "symfony/phpunit-bridge": "~2.7", - "symfony/process": "~2.0,>=2.0.5", - "symfony/routing": "~2.2", - "symfony/stopwatch": "~2.3", - "symfony/templating": "~2.2", - "symfony/translation": "~2.0,>=2.0.5", - "symfony/var-dumper": "~2.6" + "php": ">=5.3.3" }, "suggest": { - "symfony/browser-kit": "", - "symfony/class-loader": "", - "symfony/config": "", - "symfony/console": "", - "symfony/dependency-injection": "", - "symfony/finder": "", - "symfony/var-dumper": "" + "ext-mbstring": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "1.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\HttpKernel\\": "" - } + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2388,48 +2715,55 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony HttpKernel Component", + "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", - "time": "2015-07-13 19:27:49" + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-11-14T01:06:16+00:00" }, { "name": "symfony/process", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/Process.git", - "reference": "48aeb0e48600321c272955132d7606ab0a49adb3" + "url": "https://github.com/symfony/process.git", + "reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Process/zipball/48aeb0e48600321c272955132d7606ab0a49adb3", - "reference": "48aeb0e48600321c272955132d7606ab0a49adb3", + "url": "https://api.github.com/repos/symfony/process/zipball/8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", + "reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", "shasum": "" }, "require": { - "php": ">=5.3.9" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "php": ">=5.5.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Process\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2447,54 +2781,61 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2015-07-01 11:25:50" + "time": "2017-05-22T12:32:03+00:00" }, { "name": "symfony/routing", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "ea9134f277162b02e5f80ac058b75a77637b0d26" + "reference": "3aa0c7d759a2c88f4dff47c3d6776e7380bb2c9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/ea9134f277162b02e5f80ac058b75a77637b0d26", - "reference": "ea9134f277162b02e5f80ac058b75a77637b0d26", + "url": "https://api.github.com/repos/symfony/routing/zipball/3aa0c7d759a2c88f4dff47c3d6776e7380bb2c9a", + "reference": "3aa0c7d759a2c88f4dff47c3d6776e7380bb2c9a", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9" }, "conflict": { - "symfony/config": "<2.7" + "symfony/config": "<2.8", + "symfony/dependency-injection": "<3.3", + "symfony/yaml": "<3.3" }, "require-dev": { "doctrine/annotations": "~1.0", "doctrine/common": "~2.2", "psr/log": "~1.0", - "symfony/config": "~2.7", - "symfony/expression-language": "~2.4", - "symfony/http-foundation": "~2.3", - "symfony/phpunit-bridge": "~2.7", - "symfony/yaml": "~2.0,>=2.0.5" + "symfony/config": "~2.8|~3.0", + "symfony/dependency-injection": "~3.3", + "symfony/expression-language": "~2.8|~3.0", + "symfony/http-foundation": "~2.8|~3.0", + "symfony/yaml": "~3.3" }, "suggest": { "doctrine/annotations": "For using the annotation loader", "symfony/config": "For using the all-in-one router or any loader", + "symfony/dependency-injection": "For loading routes from a service", "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", "symfony/yaml": "For using the YAML loader" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Routing\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2518,34 +2859,35 @@ "uri", "url" ], - "time": "2015-07-09 16:07:40" + "time": "2017-05-24T11:35:23+00:00" }, { "name": "symfony/translation", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/Translation.git", - "reference": "c8dc34cc936152c609cdd722af317e4239d10dd6" + "url": "https://github.com/symfony/translation.git", + "reference": "dc3b2a0c6cfff60327ba1c043a82092735397543" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Translation/zipball/c8dc34cc936152c609cdd722af317e4239d10dd6", - "reference": "c8dc34cc936152c609cdd722af317e4239d10dd6", + "url": "https://api.github.com/repos/symfony/translation/zipball/dc3b2a0c6cfff60327ba1c043a82092735397543", + "reference": "dc3b2a0c6cfff60327ba1c043a82092735397543", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/config": "<2.7" + "symfony/config": "<2.8", + "symfony/yaml": "<3.3" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.7", - "symfony/intl": "~2.3", - "symfony/phpunit-bridge": "~2.7", - "symfony/yaml": "~2.2" + "symfony/config": "~2.8|~3.0", + "symfony/intl": "^2.8.18|^3.2.5", + "symfony/yaml": "~3.3" }, "suggest": { "psr/log": "To use logging capability in translator", @@ -2555,13 +2897,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\Translation\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2579,35 +2924,41 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-22T07:42:36+00:00" }, { "name": "symfony/var-dumper", - "version": "v2.7.2", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "fde603d9f4b2418ff0f0315b93eb039c9aa41205" + "reference": "568ce40d88b14f6b42aa48f50572cc4427be9757" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/fde603d9f4b2418ff0f0315b93eb039c9aa41205", - "reference": "fde603d9f4b2418ff0f0315b93eb039c9aa41205", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/568ce40d88b14f6b42aa48f50572cc4427be9757", + "reference": "568ce40d88b14f6b42aa48f50572cc4427be9757", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "ext-iconv": "*", + "twig/twig": "~1.20|~2.0" }, "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", "ext-symfony_debug": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { @@ -2616,7 +2967,10 @@ ], "psr-4": { "Symfony\\Component\\VarDumper\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2638,20 +2992,20 @@ "debug", "dump" ], - "time": "2015-07-01 12:07:40" + "time": "2017-05-22T17:32:12+00:00" }, { "name": "tijsverkoyen/akismet", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/tijsverkoyen/Akismet.git", - "reference": "0c5185956e11824ed310d134d38d0b2c936f3d3a" + "reference": "6f7987fe181fd0fddbc9832f2ddeaf088425c83f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/Akismet/zipball/0c5185956e11824ed310d134d38d0b2c936f3d3a", - "reference": "0c5185956e11824ed310d134d38d0b2c936f3d3a", + "url": "https://api.github.com/repos/tijsverkoyen/Akismet/zipball/6f7987fe181fd0fddbc9832f2ddeaf088425c83f", + "reference": "6f7987fe181fd0fddbc9832f2ddeaf088425c83f", "shasum": "" }, "require": { @@ -2664,6 +3018,7 @@ "" ] }, + "notification-url": "https://packagist.org/downloads/", "license": [ "BSD" ], @@ -2676,147 +3031,140 @@ ], "description": "Akismet is a wrapper-class to communicate with the Akismet API.", "homepage": "https://github.com/tijsverkoyen/Akismet", - "support": { - "source": "https://github.com/xuwaters/Akismet/tree/1.1.0" - }, - "time": "2012-10-13 17:59:41" + "time": "2016-07-19T13:50:18+00:00" }, { - "name": "vlucas/phpdotenv", - "version": "v1.1.1", + "name": "tijsverkoyen/css-to-inline-styles", + "version": "2.2.0", "source": { "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa" + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "ab03919dfd85a74ae0372f8baf9f3c7d5c03b04b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa", - "reference": "0cac554ce06277e33ddf9f0b7ade4b8bbf2af3fa", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/ab03919dfd85a74ae0372f8baf9f3c7d5c03b04b", + "reference": "ab03919dfd85a74ae0372f8baf9f3c7d5c03b04b", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^5.5 || ^7", + "symfony/css-selector": "^2.7|~3.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~4.8|5.1.*" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { - "psr-0": { - "Dotenv": "src/" + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD" + "BSD-3-Clause" ], "authors": [ { - "name": "Vance Lucas", - "email": "vance@vancelucas.com", - "homepage": "http://www.vancelucas.com" + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" } ], - "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", - "homepage": "http://github.com/vlucas/phpdotenv", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "time": "2015-05-30 15:59:26" - } - ], - "packages-dev": [ + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "time": "2016-09-20T12:50:39+00:00" + }, { - "name": "codeclimate/php-test-reporter", - "version": "v0.1.2", + "name": "vlucas/phpdotenv", + "version": "v2.4.0", "source": { "type": "git", - "url": "https://github.com/codeclimate/php-test-reporter.git", - "reference": "8ed24ff30f3663ecf40f1c12d6c97eb56c69e646" + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "3cc116adbe4b11be5ec557bf1d24dc5e3a21d18c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/codeclimate/php-test-reporter/zipball/8ed24ff30f3663ecf40f1c12d6c97eb56c69e646", - "reference": "8ed24ff30f3663ecf40f1c12d6c97eb56c69e646", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/3cc116adbe4b11be5ec557bf1d24dc5e3a21d18c", + "reference": "3cc116adbe4b11be5ec557bf1d24dc5e3a21d18c", "shasum": "" }, "require": { - "ext-curl": "*", - "php": ">=5.3", - "satooshi/php-coveralls": "0.6.*", - "symfony/console": ">=2.0" + "php": ">=5.3.9" }, "require-dev": { - "phpunit/phpunit": "3.7.*@stable" + "phpunit/phpunit": "^4.8 || ^5.0" }, - "bin": [ - "composer/bin/test-reporter" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "0.1.x-dev" + "dev-master": "2.4-dev" } }, "autoload": { - "psr-0": { - "CodeClimate\\Component": "src/", - "CodeClimate\\Bundle": "src/" + "psr-4": { + "Dotenv\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause-Attribution" ], "authors": [ { - "name": "Code Climate", - "email": "hello@codeclimate.com", - "homepage": "https://codeclimate.com" + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "http://www.vancelucas.com" } ], - "description": "PHP client for reporting test coverage to Code Climate", - "homepage": "https://github.com/codeclimate/php-test-reporter", + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", "keywords": [ - "codeclimate", - "coverage" + "dotenv", + "env", + "environment" ], - "time": "2014-07-23 13:42:41" - }, + "time": "2016-09-01T10:05:43+00:00" + } + ], + "packages-dev": [ { - "name": "doctrine/annotations", - "version": "v1.2.7", + "name": "doctrine/instantiator", + "version": "1.0.5", "source": { "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535" + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535", - "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", - "php": ">=5.3.2" + "php": ">=5.3,<8.0-DEV" }, "require-dev": { - "doctrine/cache": "1.*", - "phpunit/phpunit": "4.*" + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Annotations\\": "lib/" + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2825,69 +3173,48 @@ ], "authors": [ { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" } ], - "description": "Docblock Annotations Parser", - "homepage": "http://www.doctrine-project.org", + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", "keywords": [ - "annotations", - "docblock", - "parser" + "constructor", + "instantiate" ], - "time": "2015-08-31 12:32:49" + "time": "2015-06-14T21:17:01+00:00" }, { - "name": "doctrine/cache", - "version": "v1.4.2", + "name": "fzaninotto/faker", + "version": "v1.6.0", "source": { "type": "git", - "url": "https://github.com/doctrine/cache.git", - "reference": "8c434000f420ade76a07c64cbe08ca47e5c101ca" + "url": "https://github.com/fzaninotto/Faker.git", + "reference": "44f9a286a04b80c76a4e5fb7aad8bb539b920123" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/8c434000f420ade76a07c64cbe08ca47e5c101ca", - "reference": "8c434000f420ade76a07c64cbe08ca47e5c101ca", + "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/44f9a286a04b80c76a4e5fb7aad8bb539b920123", + "reference": "44f9a286a04b80c76a4e5fb7aad8bb539b920123", "shasum": "" }, "require": { - "php": ">=5.3.2" - }, - "conflict": { - "doctrine/common": ">2.2,<2.4" + "php": "^5.3.3|^7.0" }, "require-dev": { - "phpunit/phpunit": ">=3.7", - "predis/predis": "~1.0", - "satooshi/php-coveralls": "~0.6" + "ext-intl": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~1.5" }, "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.5.x-dev" - } + "branch-alias": [] }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Cache\\": "lib/" + "psr-4": { + "Faker\\": "src/Faker/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2896,210 +3223,137 @@ ], "authors": [ { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "François Zaninotto" } ], - "description": "Caching library offering an object-oriented API for many cache backends", - "homepage": "http://www.doctrine-project.org", + "description": "Faker is a PHP library that generates fake data for you.", "keywords": [ - "cache", - "caching" + "data", + "faker", + "fixtures" ], - "time": "2015-08-31 12:36:41" + "time": "2016-04-29T12:21:54+00:00" }, { - "name": "doctrine/collections", - "version": "v1.3.0", + "name": "hamcrest/hamcrest-php", + "version": "v1.2.2", "source": { "type": "git", - "url": "https://github.com/doctrine/collections.git", - "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a" + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a", - "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c", + "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c", "shasum": "" }, "require": { "php": ">=5.3.2" }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/php-file-iterator": "1.3.3", + "satooshi/php-coveralls": "dev-master" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Collections\\": "lib/" - } + "classmap": [ + "hamcrest" + ], + "files": [ + "hamcrest/Hamcrest.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } + "BSD" ], - "description": "Collections Abstraction library", - "homepage": "http://www.doctrine-project.org", + "description": "This is the PHP port of Hamcrest Matchers", "keywords": [ - "array", - "collections", - "iterator" + "test" ], - "time": "2015-04-14 22:21:58" + "time": "2015-05-11T14:41:42+00:00" }, { - "name": "doctrine/common", - "version": "v2.5.1", + "name": "jakub-onderka/php-parallel-lint", + "version": "v0.9.2", "source": { "type": "git", - "url": "https://github.com/doctrine/common.git", - "reference": "0009b8f0d4a917aabc971fb089eba80e872f83f9" + "url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git", + "reference": "2ead2e4043ab125bee9554f356e0a86742c2d4fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/0009b8f0d4a917aabc971fb089eba80e872f83f9", - "reference": "0009b8f0d4a917aabc971fb089eba80e872f83f9", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/2ead2e4043ab125bee9554f356e0a86742c2d4fa", + "reference": "2ead2e4043ab125bee9554f356e0a86742c2d4fa", "shasum": "" }, "require": { - "doctrine/annotations": "1.*", - "doctrine/cache": "1.*", - "doctrine/collections": "1.*", - "doctrine/inflector": "1.*", - "doctrine/lexer": "1.*", - "php": ">=5.3.2" + "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~3.7" + "jakub-onderka/php-console-highlighter": "~0.3", + "nette/tester": "~1.3" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.6.x-dev" - } + "suggest": { + "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet" }, + "bin": [ + "parallel-lint" + ], + "type": "library", "autoload": { - "psr-0": { - "Doctrine\\Common\\": "lib/" - } + "classmap": [ + "./" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-2-Clause" ], "authors": [ { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Jakub Onderka", + "email": "jakub.onderka@gmail.com" } ], - "description": "Common Library for Doctrine projects", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "annotations", - "collections", - "eventmanager", - "persistence", - "spl" - ], - "time": "2015-08-31 13:00:22" + "description": "This tool check syntax of PHP files about 20x faster than serial check.", + "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint", + "time": "2015-12-15T10:42:16+00:00" }, { - "name": "doctrine/dbal", - "version": "v2.5.1", + "name": "laravel/browser-kit-testing", + "version": "v1.0.3", "source": { "type": "git", - "url": "https://github.com/doctrine/dbal.git", - "reference": "628c2256b646ae2417d44e063bce8aec5199d48d" + "url": "https://github.com/laravel/browser-kit-testing.git", + "reference": "0adfb725147815bff5516d157577f375a6e66ebd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/628c2256b646ae2417d44e063bce8aec5199d48d", - "reference": "628c2256b646ae2417d44e063bce8aec5199d48d", + "url": "https://api.github.com/repos/laravel/browser-kit-testing/zipball/0adfb725147815bff5516d157577f375a6e66ebd", + "reference": "0adfb725147815bff5516d157577f375a6e66ebd", "shasum": "" }, "require": { - "doctrine/common": ">=2.4,<2.6-dev", - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*", - "symfony/console": "2.*" - }, - "suggest": { - "symfony/console": "For helpful console commands such as SQL execution and import of files." + "php": ">=5.5.9", + "symfony/css-selector": "~3.1", + "symfony/dom-crawler": "~3.1" }, - "bin": [ - "bin/doctrine-dbal" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5.x-dev" + "dev-master": "1.0-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\DBAL\\": "lib/" + "psr-4": { + "Laravel\\BrowserKitTesting\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3108,65 +3362,52 @@ ], "authors": [ { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "description": "Database Abstraction Layer", - "homepage": "http://www.doctrine-project.org", + "description": "Provides backwards compatibility for BrowserKit testing in Laravel 5.4.", "keywords": [ - "database", - "dbal", - "persistence", - "queryobject" + "laravel", + "testing" ], - "time": "2015-01-12 21:52:47" + "time": "2017-02-08T22:32:37+00:00" }, { - "name": "doctrine/instantiator", - "version": "1.0.5", + "name": "laravel/homestead", + "version": "v5.3.2", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "url": "https://github.com/laravel/homestead.git", + "reference": "65fb7c5cba2847fcb95eb0758ac2696b19d06277" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/laravel/homestead/zipball/65fb7c5cba2847fcb95eb0758ac2696b19d06277", + "reference": "65fb7c5cba2847fcb95eb0758ac2696b19d06277", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^5.6 || ^7.0", + "symfony/console": "~2.3|~3.0", + "symfony/process": "~2.3|~3.0", + "symfony/yaml": "~2.3|~3.0" }, "require-dev": { - "athletic/athletic": "~0.1.8", - "ext-pdo": "*", - "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^5.7 || ^6.0" }, + "bin": [ + "bin/homestead" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + "Laravel\\Homestead\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3175,268 +3416,250 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "name": "Taylor Otwell", + "email": "taylorotwell@gmail.com" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2015-06-14 21:17:01" + "description": "A virtual machine for web artisans.", + "time": "2017-05-19T08:20:56+00:00" }, { - "name": "doctrine/lexer", - "version": "v1.0.1", + "name": "mockery/mockery", + "version": "0.9.9", "source": { "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" + "url": "https://github.com/mockery/mockery.git", + "reference": "6fdb61243844dc924071d3404bb23994ea0b6856" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", - "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", + "url": "https://api.github.com/repos/mockery/mockery/zipball/6fdb61243844dc924071d3404bb23994ea0b6856", + "reference": "6fdb61243844dc924071d3404bb23994ea0b6856", "shasum": "" }, "require": { + "hamcrest/hamcrest-php": "~1.1", + "lib-pcre": ">=7.0", "php": ">=5.3.2" }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "0.9.x-dev" } }, "autoload": { "psr-0": { - "Doctrine\\Common\\Lexer\\": "lib/" + "Mockery": "library/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "http://blog.astrumfutura.com" }, { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "http://davedevelopment.co.uk" } ], - "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "http://www.doctrine-project.org", + "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.", + "homepage": "http://github.com/padraic/mockery", "keywords": [ - "lexer", - "parser" + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" ], - "time": "2014-09-09 13:34:57" + "time": "2017-02-28T12:52:32+00:00" }, { - "name": "fzaninotto/faker", - "version": "v1.5.0", + "name": "myclabs/deep-copy", + "version": "1.6.1", "source": { "type": "git", - "url": "https://github.com/fzaninotto/Faker.git", - "reference": "d0190b156bcca848d401fb80f31f504f37141c8d" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/d0190b156bcca848d401fb80f31f504f37141c8d", - "reference": "d0190b156bcca848d401fb80f31f504f37141c8d", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5" - }, - "suggest": { - "ext-intl": "*" + "doctrine/collections": "1.*", + "phpunit/phpunit": "~4.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.5.x-dev" - } - }, "autoload": { "psr-4": { - "Faker\\": "src/Faker/" + "DeepCopy\\": "src/DeepCopy/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "François Zaninotto" - } - ], - "description": "Faker is a PHP library that generates fake data for you.", + "description": "Create deep copies (clones) of your objects", + "homepage": "https://github.com/myclabs/DeepCopy", "keywords": [ - "data", - "faker", - "fixtures" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], - "time": "2015-05-29 06:29:14" + "time": "2017-04-12T18:52:22+00:00" }, { - "name": "hamcrest/hamcrest-php", - "version": "v1.2.2", + "name": "phpdocumentor/reflection-common", + "version": "1.0", "source": { "type": "git", - "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c" + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c", - "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", "shasum": "" }, "require": { - "php": ">=5.3.2" - }, - "replace": { - "cordoval/hamcrest-php": "*", - "davedevelopment/hamcrest-php": "*", - "kodova/hamcrest-php": "*" + "php": ">=5.5" }, "require-dev": { - "phpunit/php-file-iterator": "1.3.3", - "satooshi/php-coveralls": "dev-master" + "phpunit/phpunit": "^4.6" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { - "classmap": [ - "hamcrest" - ], - "files": [ - "hamcrest/Hamcrest.php" - ] + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD" + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } ], - "description": "This is the PHP port of Hamcrest Matchers", + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", "keywords": [ - "test" + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" ], - "time": "2015-05-11 14:41:42" + "time": "2015-12-27T11:43:31+00:00" }, { - "name": "mockery/mockery", - "version": "0.9.4", + "name": "phpdocumentor/reflection-docblock", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/padraic/mockery.git", - "reference": "70bba85e4aabc9449626651f48b9018ede04f86b" + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/padraic/mockery/zipball/70bba85e4aabc9449626651f48b9018ede04f86b", - "reference": "70bba85e4aabc9449626651f48b9018ede04f86b", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e", "shasum": "" }, "require": { - "hamcrest/hamcrest-php": "~1.1", - "lib-pcre": ">=7.0", - "php": ">=5.3.2" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.2.0", + "webmozart/assert": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.9.x-dev" - } - }, "autoload": { - "psr-0": { - "Mockery": "library/" + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Pádraic Brady", - "email": "padraic.brady@gmail.com", - "homepage": "http://blog.astrumfutura.com" - }, - { - "name": "Dave Marshall", - "email": "dave.marshall@atstsolutions.co.uk", - "homepage": "http://davedevelopment.co.uk" + "name": "Mike van Riel", + "email": "me@mikevanriel.com" } ], - "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.", - "homepage": "http://github.com/padraic/mockery", - "keywords": [ - "BDD", - "TDD", - "library", - "mock", - "mock objects", - "mockery", - "stub", - "test", - "test double", - "testing" - ], - "time": "2015-04-02 19:54:00" + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2016-09-30T07:12:33+00:00" }, { - "name": "phpdocumentor/reflection-docblock", - "version": "2.0.4", + "name": "phpdocumentor/type-resolver", + "version": "0.2.1", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "phpDocumentor": [ + "psr-4": { + "phpDocumentor\\Reflection\\": [ "src/" ] } @@ -3448,26 +3671,31 @@ "authors": [ { "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" + "email": "me@mikevanriel.com" } ], - "time": "2015-02-03 12:10:50" + "time": "2016-11-25T06:54:22+00:00" }, { "name": "phpspec/php-diff", - "version": "v1.0.2", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/phpspec/php-diff.git", - "reference": "30e103d19519fe678ae64a60d77884ef3d71b28a" + "reference": "0464787bfa7cd13576c5a1e318709768798bec6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/php-diff/zipball/30e103d19519fe678ae64a60d77884ef3d71b28a", - "reference": "30e103d19519fe678ae64a60d77884ef3d71b28a", + "url": "https://api.github.com/repos/phpspec/php-diff/zipball/0464787bfa7cd13576c5a1e318709768798bec6a", + "reference": "0464787bfa7cd13576c5a1e318709768798bec6a", "shasum": "" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { "psr-0": { "Diff": "lib/" @@ -3480,48 +3708,47 @@ "authors": [ { "name": "Chris Boulton", - "homepage": "http://github.com/chrisboulton", - "role": "Original developer" + "homepage": "http://github.com/chrisboulton" } ], "description": "A comprehensive library for generating differences between two hashable objects (strings or arrays).", - "time": "2013-11-01 13:02:21" + "time": "2016-04-07T12:29:16+00:00" }, { "name": "phpspec/phpspec", - "version": "2.2.1", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/phpspec/phpspec.git", - "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8" + "reference": "2e969c7d8c6437490b7aa0ab51a3302d15bb7211" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/phpspec/zipball/e9a40577323e67f1de2e214abf32976a0352d8f8", - "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8", + "url": "https://api.github.com/repos/phpspec/phpspec/zipball/2e969c7d8c6437490b7aa0ab51a3302d15bb7211", + "reference": "2e969c7d8c6437490b7aa0ab51a3302d15bb7211", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.1", - "php": ">=5.3.3", - "phpspec/php-diff": "~1.0.0", - "phpspec/prophecy": "~1.4", - "sebastian/exporter": "~1.0", - "symfony/console": "~2.3", - "symfony/event-dispatcher": "~2.1", - "symfony/finder": "~2.1", - "symfony/process": "~2.1", - "symfony/yaml": "~2.1" + "ext-tokenizer": "*", + "php": "^5.6 || ^7.0", + "phpspec/php-diff": "^1.0.0", + "phpspec/prophecy": "^1.5", + "sebastian/exporter": "^1.0 || ^2.0 || ^3.0", + "symfony/console": "^2.7 || ^3.0", + "symfony/event-dispatcher": "^2.7 || ^3.0", + "symfony/finder": "^2.7 || ^3.0", + "symfony/process": "^2.7 || ^3.0", + "symfony/yaml": "^2.7 || ^3.0" }, "require-dev": { - "behat/behat": "^3.0.11", - "bossa/phpspec2-expect": "~1.0", - "phpunit/phpunit": "~4.4", - "symfony/filesystem": "~2.1", - "symfony/process": "~2.1" + "behat/behat": "^3.3", + "ciaranmcnulty/versionbasedtestskipper": "^0.2.1", + "phpunit/phpunit": "^5.5|^6.0", + "symfony/filesystem": "^3.0" }, "suggest": { - "phpspec/nyan-formatters": "~1.0 – Adds Nyan formatters" + "phpspec/nyan-formatters": "Adds Nyan formatters" }, "bin": [ "bin/phpspec" @@ -3529,7 +3756,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -3550,9 +3777,13 @@ { "name": "Marcello Duarte", "homepage": "http://marcelloduarte.net/" + }, + { + "name": "Ciaran McNulty", + "homepage": "https://ciaranmcnulty.com/" } ], - "description": "Specification-oriented BDD framework for PHP 5.3+", + "description": "Specification-oriented BDD framework for PHP 5.6+", "homepage": "http://phpspec.net/", "keywords": [ "BDD", @@ -3563,34 +3794,37 @@ "testing", "tests" ], - "time": "2015-05-30 15:21:40" + "time": "2017-05-12T06:16:46+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.4.1", + "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "3132b1f44c7bf2ec4c7eb2d3cb78fdeca760d373" + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/3132b1f44c7bf2ec4c7eb2d3cb78fdeca760d373", - "reference": "3132b1f44c7bf2ec4c7eb2d3cb78fdeca760d373", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", - "phpdocumentor/reflection-docblock": "~2.0", - "sebastian/comparator": "~1.1" + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { - "phpspec/phpspec": "~2.0" + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8 || ^5.6.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { @@ -3623,43 +3857,44 @@ "spy", "stub" ], - "time": "2015-04-27 22:15:08" + "time": "2017-03-02T20:05:34+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "2.1.8", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "6044546998c7627ab997501a3d0db972b3db9790" + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6044546998c7627ab997501a3d0db972b3db9790", - "reference": "6044546998c7627ab997501a3d0db972b3db9790", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", "shasum": "" }, "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "~1.0", - "sebastian/version": "~1.0" + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" }, "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" + "ext-xdebug": "^2.5.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1.x-dev" + "dev-master": "4.0.x-dev" } }, "autoload": { @@ -3685,20 +3920,20 @@ "testing", "xunit" ], - "time": "2015-07-13 11:25:58" + "time": "2017-04-02T07:44:40+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "1.4.0", + "version": "1.4.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "a923bb15680d0089e2316f7a4af8f437046e96bb" + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a923bb15680d0089e2316f7a4af8f437046e96bb", - "reference": "a923bb15680d0089e2316f7a4af8f437046e96bb", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", "shasum": "" }, "require": { @@ -3732,7 +3967,7 @@ "filesystem", "iterator" ], - "time": "2015-04-02 05:19:05" + "time": "2016-10-03T07:40:28+00:00" }, { "name": "phpunit/php-text-template", @@ -3773,26 +4008,34 @@ "keywords": [ "template" ], - "time": "2015-06-21 13:50:34" + "time": "2015-06-21T13:50:34+00:00" }, { "name": "phpunit/php-timer", - "version": "1.0.6", + "version": "1.0.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "83fe1bdc5d47658b727595c14da140da92b3d66d" + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/83fe1bdc5d47658b727595c14da140da92b3d66d", - "reference": "83fe1bdc5d47658b727595c14da140da92b3d66d", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -3814,20 +4057,20 @@ "keywords": [ "timer" ], - "time": "2015-06-13 07:35:30" + "time": "2017-02-26T11:10:40+00:00" }, { "name": "phpunit/php-token-stream", - "version": "1.4.3", + "version": "1.4.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9" + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/7a9b0969488c3c54fd62b4d504b3ec758fd005d9", - "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", "shasum": "" }, "require": { @@ -3863,44 +4106,54 @@ "keywords": [ "tokenizer" ], - "time": "2015-06-19 03:43:16" + "time": "2017-02-27T10:12:30+00:00" }, { "name": "phpunit/phpunit", - "version": "4.7.7", + "version": "5.7.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "9b97f9d807b862c2de2a36e86690000801c85724" + "reference": "3cb94a5f8c07a03c8b7527ed7468a2926203f58b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9b97f9d807b862c2de2a36e86690000801c85724", - "reference": "9b97f9d807b862c2de2a36e86690000801c85724", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3cb94a5f8c07a03c8b7527ed7468a2926203f58b", + "reference": "3cb94a5f8c07a03c8b7527ed7468a2926203f58b", "shasum": "" }, "require": { "ext-dom": "*", "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "~1.3,>=1.3.1", - "phpunit/php-code-coverage": "~2.1", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": ">=1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.1", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.2", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "^1.4.3", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "~1.0.3|~2.0", "symfony/yaml": "~2.1|~3.0" }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, "suggest": { + "ext-xdebug": "*", "phpunit/php-invoker": "~1.1" }, "bin": [ @@ -3909,7 +4162,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.7.x-dev" + "dev-master": "5.7.x-dev" } }, "autoload": { @@ -3935,29 +4188,33 @@ "testing", "xunit" ], - "time": "2015-07-13 11:28:34" + "time": "2017-05-22T07:42:55+00:00" }, { "name": "phpunit/phpunit-mock-objects", - "version": "2.3.5", + "version": "3.4.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "1c330b1b6e1ea8fd15f2fbea46770576e366855c" + "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/1c330b1b6e1ea8fd15f2fbea46770576e366855c", - "reference": "1c330b1b6e1ea8fd15f2fbea46770576e366855c", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", + "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", "shasum": "" }, "require": { - "doctrine/instantiator": "~1.0,>=1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2" + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^5.4" }, "suggest": { "ext-soap": "*" @@ -3965,7 +4222,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3.x-dev" + "dev-master": "3.2.x-dev" } }, "autoload": { @@ -3990,94 +4247,71 @@ "mock", "xunit" ], - "time": "2015-07-04 05:41:32" + "time": "2016-12-08T20:27:08+00:00" }, { - "name": "satooshi/php-coveralls", - "version": "v0.6.1", + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/satooshi/php-coveralls.git", - "reference": "dd0df95bd37a7cf5c5c50304dfe260ffe4b50760" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/dd0df95bd37a7cf5c5c50304dfe260ffe4b50760", - "reference": "dd0df95bd37a7cf5c5c50304dfe260ffe4b50760", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", "shasum": "" }, "require": { - "ext-curl": "*", - "ext-json": "*", - "ext-simplexml": "*", - "guzzle/guzzle": ">=3.0", - "php": ">=5.3", - "psr/log": "1.0.0", - "symfony/config": ">=2.0", - "symfony/console": ">=2.0", - "symfony/stopwatch": ">=2.2", - "symfony/yaml": ">=2.0" + "php": "^5.6 || ^7.0" }, "require-dev": { - "apigen/apigen": "2.8.*@stable", - "pdepend/pdepend": "dev-master", - "phpmd/phpmd": "dev-master", - "phpunit/php-invoker": ">=1.1.0,<1.2.0", - "phpunit/phpunit": "3.7.*@stable", - "sebastian/finder-facade": "dev-master", - "sebastian/phpcpd": "1.4.*@stable", - "squizlabs/php_codesniffer": "1.4.*@stable", - "theseer/fdomdocument": "dev-master" + "phpunit/phpunit": "^5.7 || ^6.0" }, - "bin": [ - "composer/bin/coveralls" - ], "type": "library", - "autoload": { - "psr-0": { - "Contrib\\Component": "src/", - "Contrib\\Bundle": "src/" + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Kitamura Satoshi", - "email": "with.no.parachute@gmail.com", - "homepage": "https://www.facebook.com/satooshi.jp" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "PHP client library for Coveralls API", - "homepage": "https://github.com/satooshi/php-coveralls", - "keywords": [ - "ci", - "coverage", - "github", - "test" - ], - "time": "2013-05-04 08:07:33" + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" }, { "name": "sebastian/comparator", - "version": "1.1.1", + "version": "1.2.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1dd8869519a225f7f2b9eb663e225298fade819e" + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dd8869519a225f7f2b9eb663e225298fade819e", - "reference": "1dd8869519a225f7f2b9eb663e225298fade819e", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", "shasum": "" }, "require": { "php": ">=5.3.3", "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2" + "sebastian/exporter": "~1.2 || ~2.0" }, "require-dev": { "phpunit/phpunit": "~4.4" @@ -4085,7 +4319,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -4122,32 +4356,32 @@ "compare", "equality" ], - "time": "2015-01-29 16:28:08" + "time": "2017-01-29T09:50:25+00:00" }, { "name": "sebastian/diff", - "version": "1.3.0", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -4170,36 +4404,36 @@ } ], "description": "Diff implementation", - "homepage": "http://www.github.com/sebastianbergmann/diff", + "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ "diff" ], - "time": "2015-02-22 15:13:53" + "time": "2017-05-22T07:24:03+00:00" }, { "name": "sebastian/environment", - "version": "1.2.2", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "5a8c7d31914337b69923db26c4221b81ff5a196e" + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5a8c7d31914337b69923db26c4221b81ff5a196e", - "reference": "5a8c7d31914337b69923db26c4221b81ff5a196e", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^5.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -4224,33 +4458,34 @@ "environment", "hhvm" ], - "time": "2015-01-01 10:01:08" + "time": "2016-11-26T07:53:53+00:00" }, { "name": "sebastian/exporter", - "version": "1.2.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "84839970d05254c73cde183a721c7af13aede943" + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/84839970d05254c73cde183a721c7af13aede943", - "reference": "84839970d05254c73cde183a721c7af13aede943", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", "shasum": "" }, "require": { "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" + "sebastian/recursion-context": "~2.0" }, "require-dev": { + "ext-mbstring": "*", "phpunit/phpunit": "~4.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -4290,20 +4525,20 @@ "export", "exporter" ], - "time": "2015-01-27 07:23:06" + "time": "2016-11-19T08:54:04+00:00" }, { "name": "sebastian/global-state", - "version": "1.0.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01" + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/c7428acdb62ece0a45e6306f1ae85e1c05b09c01", - "reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", "shasum": "" }, "require": { @@ -4341,20 +4576,66 @@ "keywords": [ "global state" ], - "time": "2014-10-06 09:23:50" + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-02-18T15:18:39+00:00" }, { "name": "sebastian/recursion-context", - "version": "1.0.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "3989662bbb30a29d20d9faa04a846af79b276252" + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/3989662bbb30a29d20d9faa04a846af79b276252", - "reference": "3989662bbb30a29d20d9faa04a846af79b276252", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", "shasum": "" }, "require": { @@ -4366,7 +4647,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -4394,23 +4675,31 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-01-24 09:48:32" + "time": "2016-11-19T07:33:16+00:00" }, { - "name": "sebastian/version", - "version": "1.0.6", + "name": "sebastian/resource-operations", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", "shasum": "" }, + "require": { + "php": ">=5.6.0" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -4423,94 +4712,93 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21 13:59:46" + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" }, { - "name": "symfony/config", - "version": "v2.7.2", + "name": "sebastian/version", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/symfony/Config.git", - "reference": "6c905bbed1e728226de656e4c07d620dfe9e80d9" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Config/zipball/6c905bbed1e728226de656e4c07d620dfe9e80d9", - "reference": "6c905bbed1e728226de656e4c07d620dfe9e80d9", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", "shasum": "" }, "require": { - "php": ">=5.3.9", - "symfony/filesystem": "~2.3" - }, - "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "php": ">=5.6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { - "psr-4": { - "Symfony\\Component\\Config\\": "" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Symfony Config Component", - "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" }, { - "name": "symfony/filesystem", - "version": "v2.7.2", + "name": "symfony/dom-crawler", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/Filesystem.git", - "reference": "2d7b2ddaf3f548f4292df49a99d19c853d43f0b8" + "url": "https://github.com/symfony/dom-crawler.git", + "reference": "fc2c588ce376e9fe04a7b8c79e3ec62fe32d95b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Filesystem/zipball/2d7b2ddaf3f548f4292df49a99d19c853d43f0b8", - "reference": "2d7b2ddaf3f548f4292df49a99d19c853d43f0b8", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/fc2c588ce376e9fe04a7b8c79e3ec62fe32d95b1", + "reference": "fc2c588ce376e9fe04a7b8c79e3ec62fe32d95b1", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "symfony/css-selector": "~2.8|~3.0" + }, + "suggest": { + "symfony/css-selector": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Filesystem\\": "" - } + "Symfony\\Component\\DomCrawler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4526,40 +4814,46 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Filesystem Component", + "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2015-07-09 16:07:40" + "time": "2017-05-25T23:10:31+00:00" }, { - "name": "symfony/stopwatch", - "version": "v2.7.2", + "name": "symfony/yaml", + "version": "v3.3.0", "source": { "type": "git", - "url": "https://github.com/symfony/Stopwatch.git", - "reference": "b07a866719bbac5294c67773340f97b871733310" + "url": "https://github.com/symfony/yaml.git", + "reference": "885db865f6b2b918404a1fae28f9ac640f71f994" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Stopwatch/zipball/b07a866719bbac5294c67773340f97b871733310", - "reference": "b07a866719bbac5294c67773340f97b871733310", + "url": "https://api.github.com/repos/symfony/yaml/zipball/885db865f6b2b918404a1fae28f9ac640f71f994", + "reference": "885db865f6b2b918404a1fae28f9ac640f71f994", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "symfony/console": "~2.8|~3.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Stopwatch\\": "" - } + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -4575,39 +4869,40 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Stopwatch Component", + "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2015-07-01 18:23:16" + "time": "2017-05-28T10:56:20+00:00" }, { - "name": "symfony/yaml", - "version": "v2.7.2", + "name": "webmozart/assert", + "version": "1.2.0", "source": { "type": "git", - "url": "https://github.com/symfony/Yaml.git", - "reference": "4bfbe0ed3909bfddd75b70c094391ec1f142f860" + "url": "https://github.com/webmozart/assert.git", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Yaml/zipball/4bfbe0ed3909bfddd75b70c094391ec1f142f860", - "reference": "4bfbe0ed3909bfddd75b70c094391ec1f142f860", + "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "1.3-dev" } }, "autoload": { "psr-4": { - "Symfony\\Component\\Yaml\\": "" + "Webmozart\\Assert\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -4616,17 +4911,17 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "time": "2015-07-01 11:25:50" + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2016-11-23T20:04:58+00:00" } ], "aliases": [], @@ -4635,7 +4930,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.5.9" + "php": "^7.1" }, "platform-dev": [] } diff --git a/config/app.php b/config/app.php index 87d971c11..ee5e9bf63 100644 --- a/config/app.php +++ b/config/app.php @@ -2,6 +2,31 @@ return [ + /* + |-------------------------------------------------------------------------- + | Application Name + |-------------------------------------------------------------------------- + | + | This value is the name of your application. This value is used when the + | framework needs to place the application's name in a notification or + | any other location as required by the application or its packages. + */ + + 'name' => 'Laravel.io', + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services your application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + /* |-------------------------------------------------------------------------- | Application Debug Mode @@ -78,7 +103,7 @@ | */ - 'key' => env('APP_KEY', 'rqQspyH5heatcKFK84ZFFPT3wHZhMN3q'), + 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', @@ -95,7 +120,9 @@ | */ - 'log' => 'single', + 'log' => env('APP_LOG', 'single'), + + 'log_level' => env('APP_LOG_LEVEL', 'debug'), /* |-------------------------------------------------------------------------- @@ -113,13 +140,11 @@ /* * Laravel Framework Service Providers... */ - Illuminate\Foundation\Providers\ArtisanServiceProvider::class, Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, - Illuminate\Routing\ControllerServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class, @@ -127,6 +152,7 @@ Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class, Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, @@ -140,23 +166,20 @@ /* * Package Service Providers... */ - Laravel\Socialite\SocialiteServiceProvider::class, + Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class, Collective\Html\HtmlServiceProvider::class, - McCool\LaravelAutoPresenter\LaravelAutoPresenterServiceProvider::class, - Mews\Purifier\PurifierServiceProvider::class, - Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider::class, - Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class, + Laravel\Socialite\SocialiteServiceProvider::class, + Laravel\Tinker\TinkerServiceProvider::class, /* * Application Service Providers... */ - Lio\Providers\AppServiceProvider::class, - Lio\Providers\EventServiceProvider::class, - Lio\Providers\RouteServiceProvider::class, - Lio\Providers\GithubServiceProvider::class, - Lio\Providers\CommentServiceProvider::class, - Lio\Providers\ContentServiceProvider::class, - Lio\Providers\HashidsServiceProvider::class, + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + App\Providers\RouteServiceProvider::class, + App\Markdown\MarkdownServiceProvider::class, + App\Spam\SpamServiceProvider::class, + App\Validation\ValidationServiceProvider::class, ], @@ -177,6 +200,7 @@ 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, + 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::class, @@ -186,12 +210,12 @@ 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, + 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, - 'Input' => Illuminate\Support\Facades\Input::class, - 'Inspiring' => Illuminate\Foundation\Inspiring::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, + 'Notification' => Illuminate\Support\Facades\Notification::class, 'Password' => Illuminate\Support\Facades\Password::class, 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, @@ -206,11 +230,12 @@ 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, - 'Socialite' => Laravel\Socialite\Facades\Socialite::class, - 'GitHub' => Lio\GitHub\GitHubFacade::class, - 'Purifier' => Mews\Purifier\Facades\Purifier::class, - 'Bugsnag' => Bugsnag\BugsnagLaravel\BugsnagFacade::class, + /* + * Package Aliases... + */ + 'Bugsnag' => Bugsnag\BugsnagLaravel\Facades\Bugsnag::class, 'Form' => Collective\Html\FormFacade::class, + 'Socialite' => Laravel\Socialite\Facades\Socialite::class, ], diff --git a/config/auth.php b/config/auth.php index 0ffeedc75..781750102 100644 --- a/config/auth.php +++ b/config/auth.php @@ -4,53 +4,86 @@ /* |-------------------------------------------------------------------------- - | Default Authentication Driver + | Authentication Defaults |-------------------------------------------------------------------------- | - | This option controls the authentication driver that will be utilized. - | This driver manages the retrieval and authentication of the users - | attempting to get access to protected areas of your application. - | - | Supported: "database", "eloquent" + | This option controls the default authentication "guard" and password + | reset options for your application. You may change these defaults + | as required, but they're a perfect start for most applications. | */ - 'driver' => 'eloquent', + 'defaults' => [ + 'guard' => 'web', + 'passwords' => 'users', + ], /* |-------------------------------------------------------------------------- - | Authentication Model + | Authentication Guards |-------------------------------------------------------------------------- | - | When using the "Eloquent" authentication driver, we need to know which - | Eloquent model should be used to retrieve your users. Of course, it - | is often just the "User" model but you may use whatever you like. + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session", "token" | */ - 'model' => Lio\Accounts\User::class, + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + + 'api' => [ + 'driver' => 'token', + 'provider' => 'users', + ], + ], /* |-------------------------------------------------------------------------- - | Authentication Table + | User Providers |-------------------------------------------------------------------------- | - | When using the "Database" authentication driver, we need to know which - | table should be used to retrieve your users. We have chosen a basic - | default value but you may easily change it to any table you like. + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" | */ - 'table' => 'users', + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], /* |-------------------------------------------------------------------------- - | Password Reset Settings + | Resetting Passwords |-------------------------------------------------------------------------- | - | Here you may set the options for resetting passwords including the view - | that is your password reset e-mail. You can also set the name of the - | table that maintains all of the reset tokens for your application. + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. | | The expire time is the number of minutes that the reset token should be | considered valid. This security feature keeps tokens short-lived so @@ -58,10 +91,12 @@ | */ - 'password' => [ - 'email' => 'emails.password', - 'table' => 'password_reminders', - 'expire' => 60, + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + ], ], ]; diff --git a/config/broadcasting.php b/config/broadcasting.php index 36f9b3c14..5eecd2b26 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -11,9 +11,11 @@ | framework when an event needs to be broadcast. You may set this to | any of the connections defined in the "connections" array below. | + | Supported: "pusher", "redis", "log", "null" + | */ - 'default' => env('BROADCAST_DRIVER', 'pusher'), + 'default' => env('BROADCAST_DRIVER', 'null'), /* |-------------------------------------------------------------------------- @@ -30,9 +32,12 @@ 'pusher' => [ 'driver' => 'pusher', - 'key' => env('PUSHER_KEY'), - 'secret' => env('PUSHER_SECRET'), + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + // + ], ], 'redis' => [ @@ -44,6 +49,10 @@ 'driver' => 'log', ], + 'null' => [ + 'driver' => 'null', + ], + ], ]; diff --git a/config/bugsnag.php b/config/bugsnag.php deleted file mode 100644 index 8b5641911..000000000 --- a/config/bugsnag.php +++ /dev/null @@ -1,6 +0,0 @@ - env('BUGSNAG_API_KEY', ''), - 'notify_release_stages' => ['production'], -]; diff --git a/config/cache.php b/config/cache.php index 379135b0e..e87f0320f 100644 --- a/config/cache.php +++ b/config/cache.php @@ -11,6 +11,8 @@ | using this caching library. This connection is used when another is | not explicitly specified when executing a given caching function. | + | Supported: "apc", "array", "database", "file", "memcached", "redis" + | */ 'default' => env('CACHE_DRIVER', 'file'), @@ -38,20 +40,30 @@ 'database' => [ 'driver' => 'database', - 'table' => 'cache', + 'table' => 'cache', 'connection' => null, ], 'file' => [ 'driver' => 'file', - 'path' => storage_path('framework/cache'), + 'path' => storage_path('framework/cache/data'), ], 'memcached' => [ - 'driver' => 'memcached', + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], 'servers' => [ [ - 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100, + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, ], ], ], diff --git a/config/compile.php b/config/compile.php deleted file mode 100644 index 04807eac4..000000000 --- a/config/compile.php +++ /dev/null @@ -1,35 +0,0 @@ - [ - // - ], - - /* - |-------------------------------------------------------------------------- - | Compiled File Providers - |-------------------------------------------------------------------------- - | - | Here you may list service providers which define a "compiles" function - | that returns additional files that should be compiled, providing an - | easy way to get common files from any packages you are utilizing. - | - */ - - 'providers' => [ - // - ], - -]; diff --git a/config/database.php b/config/database.php index 426f6a7eb..a196943f5 100644 --- a/config/database.php +++ b/config/database.php @@ -2,19 +2,6 @@ return [ - /* - |-------------------------------------------------------------------------- - | PDO Fetch Style - |-------------------------------------------------------------------------- - | - | By default, database results will be returned as instances of the PHP - | stdClass object; however, you may desire to retrieve records in an - | array format for simplicity. Here you can tweak the fetch style. - | - */ - - 'fetch' => PDO::FETCH_CLASS, - /* |-------------------------------------------------------------------------- | Default Database Connection Name @@ -47,42 +34,37 @@ 'connections' => [ 'sqlite' => [ - 'driver' => 'sqlite', - 'database' => ':memory:', - 'prefix' => '', + 'driver' => 'sqlite', + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', ], 'mysql' => [ - 'driver' => 'mysql', - 'host' => env('DB_HOST', 'localhost'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - 'strict' => false, - ], - - 'pgsql' => [ - 'driver' => 'pgsql', - 'host' => env('DB_HOST', 'localhost'), + 'driver' => 'mysql', + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'strict' => true, + 'engine' => null, ], - 'sqlsrv' => [ - 'driver' => 'sqlsrv', - 'host' => env('DB_HOST', 'localhost'), + 'pgsql' => [ + 'driver' => 'pgsql', + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), - 'charset' => 'utf8', - 'prefix' => '', + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + 'sslmode' => 'prefer', ], ], @@ -113,11 +95,12 @@ 'redis' => [ - 'cluster' => false, + 'client' => 'predis', 'default' => [ - 'host' => '127.0.0.1', - 'port' => 6379, + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), 'database' => 0, ], diff --git a/config/filesystems.php b/config/filesystems.php index 3fffcf0a2..f59cf9e99 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -8,10 +8,8 @@ |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used - | by the framework. A "local" driver, as well as a variety of cloud - | based drivers are available for your choosing. Just store away! - | - | Supported: "local", "ftp", "s3", "rackspace" + | by the framework. The "local" disk, as well as a variety of cloud + | based disks are available to your application. Just store away! | */ @@ -39,45 +37,30 @@ | may even configure multiple disks of the same driver. Defaults have | been setup for each driver as an example of the required options. | + | Supported Drivers: "local", "ftp", "s3", "rackspace" + | */ 'disks' => [ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => storage_path('app'), ], - 'ftp' => [ - 'driver' => 'ftp', - 'host' => 'ftp.example.com', - 'username' => 'your-username', - 'password' => 'your-password', - - // Optional FTP Settings... - // 'port' => 21, - // 'root' => '', - // 'passive' => true, - // 'ssl' => true, - // 'timeout' => 30, + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', - 'key' => 'your-key', - 'secret' => 'your-secret', - 'region' => 'your-region', - 'bucket' => 'your-bucket', - ], - - 'rackspace' => [ - 'driver' => 'rackspace', - 'username' => 'your-username', - 'key' => 'your-key', - 'container' => 'your-container', - 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', - 'region' => 'IAD', - 'url_type' => 'publicURL', + 'key' => env('AWS_KEY'), + 'secret' => env('AWS_SECRET'), + 'region' => env('AWS_REGION'), + 'bucket' => env('AWS_BUCKET'), ], ], diff --git a/config/forum.php b/config/forum.php deleted file mode 100644 index b66ccdb25..000000000 --- a/config/forum.php +++ /dev/null @@ -1,39 +0,0 @@ - [ - 'All Threads' => [ - 'tags' => '', - ], - 'Installation / Configuration' => [ - 'tags' => 'installation,configuration' - ], - 'Authentication / Security' => [ - 'tags' => 'authentication,security' - ], - 'Requests / Input / Responses' => [ - 'tags' => 'requests,input' - ], - 'Session / Cache' => [ - 'tags' => 'session,cache' - ], - 'Database / Eloquent' => [ - 'tags' => 'database,eloquent' - ], - 'Packages / IoC ' => [ - 'tags' => 'packages,ioc' - ], - 'Views / Blade / Forms' => [ - 'tags' => 'views,blade,forms' - ], - 'Mail / Queues' => [ - 'tags' => 'mail,queues' - ], - 'Local Community Meetups' => [ - 'tags' => 'meetups' - ], - 'Laravel.io Site and Community' => [ - 'tags' => 'laravelio', - ] - ], -]; \ No newline at end of file diff --git a/config/mail.php b/config/mail.php index 8842a4c62..6d0f8ad71 100644 --- a/config/mail.php +++ b/config/mail.php @@ -11,7 +11,8 @@ | sending of e-mail. You may specify which one you're using throughout | your application here. By default, Laravel is setup for SMTP mail. | - | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log" + | Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses", + | "sparkpost", "log", "array" | */ @@ -54,7 +55,10 @@ | */ - 'from' => ['address' => env('MAIL_FROM_ADDRESS', 'lio@example.com'), 'name' => 'Laravel.io'], + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Laravel.io'), + ], /* |-------------------------------------------------------------------------- @@ -82,17 +86,6 @@ 'username' => env('MAIL_USERNAME'), - /* - |-------------------------------------------------------------------------- - | SMTP Server Password - |-------------------------------------------------------------------------- - | - | Here you may set the password required by your SMTP server to send out - | messages from your application. This will be given to the server on - | connection so that the application will be able to send messages. - | - */ - 'password' => env('MAIL_PASSWORD'), /* @@ -110,15 +103,21 @@ /* |-------------------------------------------------------------------------- - | Mail "Pretend" + | Markdown Mail Settings |-------------------------------------------------------------------------- | - | When this option is enabled, e-mail will not actually be sent over the - | web and will instead be written to your application's logs files so - | you may inspect the message. This is great for local development. + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! | */ - 'pretend' => env('MAIL_PRETEND', false), + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], ]; diff --git a/config/purifier.php b/config/purifier.php deleted file mode 100644 index f1ee8527d..000000000 --- a/config/purifier.php +++ /dev/null @@ -1,32 +0,0 @@ - 'UTF-8', - 'finalize' => true, - 'preload' => false, - 'cachePath' => storage_path('purifier'), - 'settings' => [ - 'default' => [ - 'HTML.Doctype' => 'XHTML 1.0 Strict', - 'HTML.Allowed' => 'div,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src]', - 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align', - 'AutoFormat.AutoParagraph' => true, - 'AutoFormat.RemoveEmpty' => true, - ], - 'markdown' => [ - 'HTML.Doctype' => 'XHTML 1.0 Strict', - 'HTML.Allowed' => 'div,b,strong,i,em,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src],*[style|class],pre,code,h1,h2,h3,h4,h5,h6,blockquote', - 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align', - 'AutoFormat.AutoParagraph' => true, - 'AutoFormat.RemoveEmpty' => true, - ], - 'test' => [ - 'Attr.EnableID' => true - ], - "youtube" => [ - "HTML.SafeIframe" => 'true', - "URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%", - ], - ], -]; diff --git a/config/queue.php b/config/queue.php index cf9b09da0..4d83ebd0c 100644 --- a/config/queue.php +++ b/config/queue.php @@ -7,12 +7,11 @@ | Default Queue Driver |-------------------------------------------------------------------------- | - | The Laravel queue API supports a variety of back-ends via an unified + | Laravel's queue API supports an assortment of back-ends via a single | API, giving you convenient access to each back-end using the same | syntax for each one. Here you may set the default queue driver. | - | Supported: "null", "sync", "database", "beanstalkd", - | "sqs", "iron", "redis" + | Supported: "sync", "database", "beanstalkd", "sqs", "redis", "null" | */ @@ -39,38 +38,30 @@ 'driver' => 'database', 'table' => 'jobs', 'queue' => 'default', - 'expire' => 60, + 'retry_after' => 90, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', - 'ttr' => 60, + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, ], 'sqs' => [ 'driver' => 'sqs', - 'key' => 'your-public-key', + 'key' => 'your-public-key', 'secret' => 'your-secret-key', - 'queue' => 'your-queue-url', + 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', + 'queue' => 'your-queue-name', 'region' => 'us-east-1', ], - 'iron' => [ - 'driver' => 'iron', - 'host' => 'mq-aws-us-east-1.iron.io', - 'token' => 'your-token', - 'project' => 'your-project-id', - 'queue' => 'your-queue-name', - 'encrypt' => true, - ], - 'redis' => [ 'driver' => 'redis', 'connection' => 'default', - 'queue' => 'default', - 'expire' => 60, + 'queue' => 'default', + 'retry_after' => 90, ], ], @@ -87,7 +78,8 @@ */ 'failed' => [ - 'database' => 'mysql', 'table' => 'failed_jobs', + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', ], ]; diff --git a/config/services.php b/config/services.php index def7eae71..9e59aa4d6 100644 --- a/config/services.php +++ b/config/services.php @@ -8,31 +8,31 @@ |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such - | as Stripe, Mailgun, Mandrill, and others. This file provides a sane + | as Stripe, Mailgun, SparkPost and others. This file provides a sane | default location for this type of information, allowing packages | to have a conventional place to find your various credentials. | */ 'mailgun' => [ - 'domain' => '', - 'secret' => '', - ], - - 'mandrill' => [ - 'secret' => env('MANDRILL_API_KEY'), + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), ], 'ses' => [ - 'key' => '', - 'secret' => '', + 'key' => env('SES_KEY'), + 'secret' => env('SES_SECRET'), 'region' => 'us-east-1', ], + 'sparkpost' => [ + 'secret' => env('SPARKPOST_SECRET'), + ], + 'stripe' => [ - 'model' => Lio\Accounts\User::class, - 'key' => '', - 'secret' => '', + 'model' => App\User::class, + 'key' => env('STRIPE_KEY'), + 'secret' => env('STRIPE_SECRET'), ], 'github' => [ @@ -41,15 +41,13 @@ 'redirect' => env('GITHUB_URL'), ], - 'snappy' => [ - 'enabled' => env('SNAPPY_ENABLED', false), - 'debug' => env('SNAPPY_DEBUG', false), - 'embed_url' => env('SNAPPY_EMBED_URL'), - 'domain' => env('SNAPPY_DOMAIN'), - ], - 'akismet' => [ 'api_key' => env('AKISMET_API_KEY'), ], + 'intercom' => [ + 'app_id' => env('INTERCOM_APP_ID'), + 'secret' => env('INTERCOM_SECRET'), + ], + ]; diff --git a/config/session.php b/config/session.php index f1b004214..e2779ad8d 100644 --- a/config/session.php +++ b/config/session.php @@ -85,6 +85,19 @@ 'table' => 'sessions', + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using the "apc" or "memcached" session drivers, you may specify a + | cache store that should be used for these sessions. This value must + | correspond with one of the application's configured cache stores. + | + */ + + 'store' => null, + /* |-------------------------------------------------------------------------- | Session Sweeping Lottery @@ -135,7 +148,7 @@ | */ - 'domain' => null, + 'domain' => env('SESSION_DOMAIN', null), /* |-------------------------------------------------------------------------- @@ -148,6 +161,19 @@ | */ - 'secure' => false, + 'secure' => env('SESSION_SECURE_COOKIE', false), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, ]; diff --git a/config/view.php b/config/view.php index e193ab61d..2acfd9cc9 100644 --- a/config/view.php +++ b/config/view.php @@ -14,7 +14,7 @@ */ 'paths' => [ - realpath(base_path('resources/views')), + resource_path('views'), ], /* diff --git a/contributing.md b/contributing.md index d595b71df..824560282 100644 --- a/contributing.md +++ b/contributing.md @@ -1,10 +1,16 @@ # Contributing Guide -We welcome contributions to the Laravel.io project. Please read the following guide on how to send in pull requests. +We welcome contributions to the Laravel.io project. Please read the following guide before posting an issue or sending in pull requests. Please also read our [Code of Conduct](code_of_conduct.md) before contributing or engaging in discussions. + +## Issues + +- **Feature requests** need to describe as thoroughly as possible and perhaps contain some info on how you would implement it +- **Bug reports** need to be described in detail what the problem is, how it was triggered and perhaps contain a possible solution +- **Questions** are free to be asked about the internals of the codebase and about the project ## Pull Requests -- **Feature requests** first need to be discussed and accepted [through an issue](https://github.com/LaravelIO/laravel.io/issues/new) before sending in a pull request +- **Feature requests** first need to be discussed and accepted [through an issue](https://github.com/laravelio/laravel.io/issues/new) before sending in a pull request - **Bug fixes** should contain [regression tests](https://laracasts.com/lessons/regression-testing) - All pull requests should follow the [coding standards](#coding-standards) - Pull requests will be merged after being reviewed by [the maintainers](readme.md#maintainers) @@ -12,13 +18,13 @@ We welcome contributions to the Laravel.io project. Please read the following gu ## Coding Standards -- Follow the [PSR-2 Coding Standard](http://www.php-fig.org/psr/psr-2/) - It's a good practice to write tests for your contribution - Write the full namespace in DocBlocks for `@param`, `@var` or `@return` tags +- The rest of the coding standards will be checked by [StyleCI](https://styleci.io/) ## Testing All tests can be run with the following commands. Make sure to run this inside the Homestead box. - $ vendor/bin/phpspec run - $ vendor/bin/phpunit + $ composer spec + $ composer test diff --git a/database/.gitignore b/database/.gitignore index 6a91a439e..9b1dffd90 100644 --- a/database/.gitignore +++ b/database/.gitignore @@ -1 +1 @@ -*.sqlite \ No newline at end of file +*.sqlite diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index b51b42433..000000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,21 +0,0 @@ -define(Lio\Accounts\User::class, function (Faker\Generator $faker) { - return [ - 'name' => $faker->name, - 'email' => $faker->email, - 'password' => str_random(10), - 'remember_token' => str_random(10), - ]; -}); diff --git a/database/factories/ReplyFactory.php b/database/factories/ReplyFactory.php new file mode 100644 index 000000000..7b74165c1 --- /dev/null +++ b/database/factories/ReplyFactory.php @@ -0,0 +1,15 @@ +define(Reply::class, function (Faker\Generator $faker) { + return [ + 'body' => $faker->text(), + 'author_id' => factory(User::class)->create()->id(), + 'replyable_id' => factory(Thread::class)->create()->id(), + 'replyable_type' => Thread::TABLE, + 'ip' => $faker->ipv4, + ]; +}); diff --git a/database/factories/TagFactory.php b/database/factories/TagFactory.php new file mode 100644 index 000000000..eeb978491 --- /dev/null +++ b/database/factories/TagFactory.php @@ -0,0 +1,10 @@ +define(Tag::class, function (Faker\Generator $faker) { + return [ + 'name' => $faker->text(15), + 'slug' => $faker->slug, + ]; +}); diff --git a/database/factories/ThreadFactory.php b/database/factories/ThreadFactory.php new file mode 100644 index 000000000..647571d4e --- /dev/null +++ b/database/factories/ThreadFactory.php @@ -0,0 +1,14 @@ +define(Thread::class, function (Faker\Generator $faker) { + return [ + 'subject' => $faker->text(20), + 'body' => $faker->text, + 'slug' => $faker->slug, + 'author_id' => factory(User::class)->create()->id(), + 'ip' => $faker->ipv4, + ]; +}); diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 000000000..8fc92a236 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,22 @@ +define(User::class, function (Faker\Generator $faker) { + static $password; + + return [ + 'name' => $faker->name, + 'email' => $faker->unique()->safeEmail, + 'username' => $faker->userName, + 'password' => $password ?: $password = bcrypt('secret'), + 'remember_token' => str_random(10), + 'confirmed' => true, + 'confirmation_code' => $faker->md5, + 'github_id' => $faker->numberBetween(10000, 99999), + 'github_username' => $faker->userName, + 'ip' => $faker->ipv4, + 'is_banned' => false, + 'type' => User::DEFAULT, + ]; +}); diff --git a/database/migrations/2013_09_17_113019_create_users_table.php b/database/migrations/2013_09_17_113019_create_users_table.php index e95c03135..f69fd48cd 100644 --- a/database/migrations/2013_09_17_113019_create_users_table.php +++ b/database/migrations/2013_09_17_113019_create_users_table.php @@ -1,7 +1,7 @@ increments('id'); - $table->string('github_id'); - $table->string('github_url'); - $table->string('email')->nullable(); + $table->string('github_id')->default(''); + $table->string('github_url')->default(''); + $table->string('email'); $table->string('name'); $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('users'); - } } diff --git a/database/migrations/2013_09_17_121043_create_session_table.php b/database/migrations/2013_09_17_121043_create_session_table.php index 8cded5ade..46bfe1afd 100644 --- a/database/migrations/2013_09_17_121043_create_session_table.php +++ b/database/migrations/2013_09_17_121043_create_session_table.php @@ -1,7 +1,7 @@ string('id')->unique(); $table->text('payload'); $table->integer('last_activity'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('sessions'); - } } diff --git a/database/migrations/2013_09_17_160916_create_roles_table.php b/database/migrations/2013_09_17_160916_create_roles_table.php index abd56eb19..136bc0079 100644 --- a/database/migrations/2013_09_17_160916_create_roles_table.php +++ b/database/migrations/2013_09_17_160916_create_roles_table.php @@ -1,7 +1,7 @@ increments('id'); $table->string('name'); $table->string('description'); $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('roles'); - } } diff --git a/database/migrations/2013_09_17_164244_create_role_user_table.php b/database/migrations/2013_09_17_164244_create_role_user_table.php index a33e54641..94fc0d485 100644 --- a/database/migrations/2013_09_17_164244_create_role_user_table.php +++ b/database/migrations/2013_09_17_164244_create_role_user_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('user_id'); $table->integer('role_id'); $table->index('user_id'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('role_user'); - } } diff --git a/database/migrations/2013_09_17_170055_add_is_banned_field_to_users.php b/database/migrations/2013_09_17_170055_add_is_banned_field_to_users.php index d33254960..d6c36cac8 100644 --- a/database/migrations/2013_09_17_170055_add_is_banned_field_to_users.php +++ b/database/migrations/2013_09_17_170055_add_is_banned_field_to_users.php @@ -1,7 +1,7 @@ integer('is_banned')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function(Blueprint $table) { - $table->dropColumn('is_banned'); - }); - } } diff --git a/database/migrations/2013_09_18_115103_create_pastes_table.php b/database/migrations/2013_09_18_115103_create_pastes_table.php index ccbeb7868..6c2941a34 100644 --- a/database/migrations/2013_09_18_115103_create_pastes_table.php +++ b/database/migrations/2013_09_18_115103_create_pastes_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('author_id')->nullable(); $table->integer('parent_id')->nullable(); @@ -24,14 +24,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('pastes'); - } } diff --git a/database/migrations/2013_09_19_101701_create_comments_table.php b/database/migrations/2013_09_19_101701_create_comments_table.php index f1f467959..0e78fa5cb 100644 --- a/database/migrations/2013_09_19_101701_create_comments_table.php +++ b/database/migrations/2013_09_19_101701_create_comments_table.php @@ -1,7 +1,7 @@ increments('id'); $table->string('title')->nullable(); @@ -30,14 +30,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('comments'); - } } diff --git a/database/migrations/2013_09_19_104855_create_activity_table.php b/database/migrations/2013_09_19_104855_create_activity_table.php index 970835dd3..175d1ab55 100644 --- a/database/migrations/2013_09_19_104855_create_activity_table.php +++ b/database/migrations/2013_09_19_104855_create_activity_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('user_id'); $table->integer('activity_type'); @@ -22,14 +22,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('activity'); - } } diff --git a/database/migrations/2013_09_22_130010_add_image_url_field_to_users.php b/database/migrations/2013_09_22_130010_add_image_url_field_to_users.php index 54555f0a7..bf0f23799 100644 --- a/database/migrations/2013_09_22_130010_add_image_url_field_to_users.php +++ b/database/migrations/2013_09_22_130010_add_image_url_field_to_users.php @@ -1,7 +1,7 @@ string('image_url')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function(Blueprint $table) { - $table->dropColumn('image_url'); - }); - } } diff --git a/database/migrations/2013_09_22_130711_add_type_field_to_comments.php b/database/migrations/2013_09_22_130711_add_type_field_to_comments.php index 427c26b44..cabbe36db 100644 --- a/database/migrations/2013_09_22_130711_add_type_field_to_comments.php +++ b/database/migrations/2013_09_22_130711_add_type_field_to_comments.php @@ -1,7 +1,7 @@ integer('type')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('comments', function(Blueprint $table) { - $table->dropColumn('type'); - }); - } } diff --git a/database/migrations/2013_09_22_163103_create_articles_table.php b/database/migrations/2013_09_22_163103_create_articles_table.php index 8c86d4f63..7bae3bce1 100644 --- a/database/migrations/2013_09_22_163103_create_articles_table.php +++ b/database/migrations/2013_09_22_163103_create_articles_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('author_id'); $table->string('title'); @@ -22,14 +22,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('articles'); - } } diff --git a/database/migrations/2013_09_22_163347_create_tags_table.php b/database/migrations/2013_09_22_163347_create_tags_table.php index 5b2ca98c8..11688f355 100644 --- a/database/migrations/2013_09_22_163347_create_tags_table.php +++ b/database/migrations/2013_09_22_163347_create_tags_table.php @@ -1,7 +1,7 @@ increments('id'); $table->string('name'); $table->string('slug'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('tags'); - } } diff --git a/database/migrations/2013_09_22_163816_create_article_tag_table.php b/database/migrations/2013_09_22_163816_create_article_tag_table.php index 61c7ee164..a6973189a 100644 --- a/database/migrations/2013_09_22_163816_create_article_tag_table.php +++ b/database/migrations/2013_09_22_163816_create_article_tag_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('article_id')->index(); $table->integer('tag_id')->index(); @@ -20,14 +20,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('article_tag'); - } } diff --git a/database/migrations/2013_09_23_111349_add_description_field_to_tags.php b/database/migrations/2013_09_23_111349_add_description_field_to_tags.php index e6a908357..998970308 100644 --- a/database/migrations/2013_09_23_111349_add_description_field_to_tags.php +++ b/database/migrations/2013_09_23_111349_add_description_field_to_tags.php @@ -1,7 +1,7 @@ text('description')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('tags', function(Blueprint $table) { - $table->dropColumn('description'); - }); - } } diff --git a/database/migrations/2013_09_23_121454_add_published_at_field_to_articles.php b/database/migrations/2013_09_23_121454_add_published_at_field_to_articles.php index 1e915da4e..f4dbd1bb0 100644 --- a/database/migrations/2013_09_23_121454_add_published_at_field_to_articles.php +++ b/database/migrations/2013_09_23_121454_add_published_at_field_to_articles.php @@ -1,7 +1,7 @@ integer('status')->default(0); $table->dateTime('published_at')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('articles', function(Blueprint $table) { - $table->dropColumn('status', 'published_at'); - }); - } } diff --git a/database/migrations/2013_09_23_160937_add_comment_counter_cache_to_articles.php b/database/migrations/2013_09_23_160937_add_comment_counter_cache_to_articles.php index 9d1872690..9dfdce248 100644 --- a/database/migrations/2013_09_23_160937_add_comment_counter_cache_to_articles.php +++ b/database/migrations/2013_09_23_160937_add_comment_counter_cache_to_articles.php @@ -1,7 +1,7 @@ integer('comment_count')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('articles', function(Blueprint $table) { - $table->dropColumn('comment_count'); - }); - } } diff --git a/database/migrations/2013_09_24_145833_create_contributors_table.php b/database/migrations/2013_09_24_145833_create_contributors_table.php index 7dbfcd12d..11c0f2eaf 100644 --- a/database/migrations/2013_09_24_145833_create_contributors_table.php +++ b/database/migrations/2013_09_24_145833_create_contributors_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('user_id')->nullable(); $table->string('github_id'); @@ -24,14 +24,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('contributors'); - } } diff --git a/database/migrations/2013_09_27_014229_add_soft_delete_to_articles.php b/database/migrations/2013_09_27_014229_add_soft_delete_to_articles.php index 56464ba5c..e938c1aa0 100644 --- a/database/migrations/2013_09_27_014229_add_soft_delete_to_articles.php +++ b/database/migrations/2013_09_27_014229_add_soft_delete_to_articles.php @@ -1,7 +1,7 @@ softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('articles', function(Blueprint $table) { - $table->dropSoftDeletes(); - }); - } } diff --git a/database/migrations/2013_09_27_015000_add_soft_delete_to_users.php b/database/migrations/2013_09_27_015000_add_soft_delete_to_users.php index 47822b166..8568a0d3d 100644 --- a/database/migrations/2013_09_27_015000_add_soft_delete_to_users.php +++ b/database/migrations/2013_09_27_015000_add_soft_delete_to_users.php @@ -1,7 +1,7 @@ softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function(Blueprint $table) { - $table->dropSoftDeletes(); - }); - } } diff --git a/database/migrations/2013_09_27_015109_add_soft_delete_to_comments.php b/database/migrations/2013_09_27_015109_add_soft_delete_to_comments.php index fa718cea7..b65be2d81 100644 --- a/database/migrations/2013_09_27_015109_add_soft_delete_to_comments.php +++ b/database/migrations/2013_09_27_015109_add_soft_delete_to_comments.php @@ -1,7 +1,7 @@ softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('comments', function(Blueprint $table) { - $table->dropSoftDeletes(); - }); - } } diff --git a/database/migrations/2013_09_27_021650_add_soft_delete_to_pastes.php b/database/migrations/2013_09_27_021650_add_soft_delete_to_pastes.php index c3c74e397..121570cc1 100644 --- a/database/migrations/2013_09_27_021650_add_soft_delete_to_pastes.php +++ b/database/migrations/2013_09_27_021650_add_soft_delete_to_pastes.php @@ -1,7 +1,7 @@ softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('pastes', function(Blueprint $table) { - $table->dropSoftDeletes(); - }); - } } diff --git a/database/migrations/2013_10_24_131412_create_comment_tag_table.php b/database/migrations/2013_10_24_131412_create_comment_tag_table.php index e78bc3a71..27e36ed59 100644 --- a/database/migrations/2013_10_24_131412_create_comment_tag_table.php +++ b/database/migrations/2013_10_24_131412_create_comment_tag_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('comment_id')->index(); $table->integer('tag_id')->index(); @@ -20,14 +20,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('comment_tag'); - } } diff --git a/database/migrations/2013_10_30_104107_add_tag_section_fields.php b/database/migrations/2013_10_30_104107_add_tag_section_fields.php index a6b83f30e..053b7a08f 100644 --- a/database/migrations/2013_10_30_104107_add_tag_section_fields.php +++ b/database/migrations/2013_10_30_104107_add_tag_section_fields.php @@ -1,7 +1,7 @@ smallInteger('forum')->default(0); $table->smallInteger('articles')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('tags', function(Blueprint $table) { - $table->dropColumn('forum', 'articles'); - }); - } } diff --git a/database/migrations/2013_12_08_161643_comments_add_laravel_version.php b/database/migrations/2013_12_08_161643_comments_add_laravel_version.php index ffaf3dc41..9f1740fb8 100644 --- a/database/migrations/2013_12_08_161643_comments_add_laravel_version.php +++ b/database/migrations/2013_12_08_161643_comments_add_laravel_version.php @@ -1,7 +1,7 @@ integer('laravel_version')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('comments', function(Blueprint $table) { - $table->dropColumn('laravel_version'); - }); - } } diff --git a/database/migrations/2013_12_14_151829_articles_add_laravel_verion_field.php b/database/migrations/2013_12_14_151829_articles_add_laravel_verion_field.php index b40f97277..3fe2a02f3 100644 --- a/database/migrations/2013_12_14_151829_articles_add_laravel_verion_field.php +++ b/database/migrations/2013_12_14_151829_articles_add_laravel_verion_field.php @@ -1,7 +1,7 @@ integer('laravel_version')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('articles', function(Blueprint $table) { - $table->dropColumn('laravel_version'); - }); - } } diff --git a/database/migrations/2014_01_27_135001_forum_threads_create_table.php b/database/migrations/2014_01_27_135001_forum_threads_create_table.php index 5b526db91..419eca1c1 100644 --- a/database/migrations/2014_01_27_135001_forum_threads_create_table.php +++ b/database/migrations/2014_01_27_135001_forum_threads_create_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('author_id'); $table->string('subject'); @@ -26,14 +26,4 @@ public function up() $table->softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('forum_threads'); - } } diff --git a/database/migrations/2014_01_27_141317_forum_replies_create_table.php b/database/migrations/2014_01_27_141317_forum_replies_create_table.php index 7bd6a2cb6..ebab991d4 100644 --- a/database/migrations/2014_01_27_141317_forum_replies_create_table.php +++ b/database/migrations/2014_01_27_141317_forum_replies_create_table.php @@ -1,7 +1,7 @@ increments('id'); $table->text('body'); $table->integer('author_id'); @@ -21,14 +21,4 @@ public function up() $table->softDeletes(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('forum_replies'); - } } diff --git a/database/migrations/2014_01_31_140118_tagged_items_create_table.php b/database/migrations/2014_01_31_140118_tagged_items_create_table.php index fe7cc6808..91be1a09e 100644 --- a/database/migrations/2014_01_31_140118_tagged_items_create_table.php +++ b/database/migrations/2014_01_31_140118_tagged_items_create_table.php @@ -1,7 +1,7 @@ increments('id'); $table->integer('thread_id'); $table->integer('tag_id'); @@ -20,14 +20,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('tagged_items'); - } } diff --git a/database/migrations/2014_02_01_022633_pastes_add_hash_field.php b/database/migrations/2014_02_01_022633_pastes_add_hash_field.php index 006ee553f..a95e923ab 100644 --- a/database/migrations/2014_02_01_022633_pastes_add_hash_field.php +++ b/database/migrations/2014_02_01_022633_pastes_add_hash_field.php @@ -12,20 +12,8 @@ class PastesAddHashField extends Migration */ public function up() { - Schema::table('pastes', function(Blueprint $table) { + Schema::table('pastes', function (Blueprint $table) { $table->string('hash')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('pastes', function(Blueprint $table) { - $table->dropColumn('hash'); - }); - } } diff --git a/database/migrations/2014_02_07_125035_forum_threads_add_question_fields.php b/database/migrations/2014_02_07_125035_forum_threads_add_question_fields.php index 62b62690b..43650bba3 100644 --- a/database/migrations/2014_02_07_125035_forum_threads_add_question_fields.php +++ b/database/migrations/2014_02_07_125035_forum_threads_add_question_fields.php @@ -12,20 +12,8 @@ class ForumThreadsAddQuestionFields extends Migration */ public function up() { - Schema::table('forum_threads', function(Blueprint $table) { + Schema::table('forum_threads', function (Blueprint $table) { $table->boolean('is_question')->default(true); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('forum_threads', function(Blueprint $table) { - $table->dropColumn('is_question'); - }); - } } diff --git a/database/migrations/2014_02_07_144708_forum_threads_add_solution_reply_id.php b/database/migrations/2014_02_07_144708_forum_threads_add_solution_reply_id.php index e85edf5cf..9f8c73835 100644 --- a/database/migrations/2014_02_07_144708_forum_threads_add_solution_reply_id.php +++ b/database/migrations/2014_02_07_144708_forum_threads_add_solution_reply_id.php @@ -12,20 +12,8 @@ class ForumThreadsAddSolutionReplyId extends Migration */ public function up() { - Schema::table('forum_threads', function(Blueprint $table) { - $table->integer('solution_reply_id')->nullable()->default(null); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('forum_threads', function(Blueprint $table) { - $table->dropColumn('solution_reply_id'); + Schema::table('forum_threads', function (Blueprint $table) { + $table->integer('solution_reply_id')->nullable()->default(null); }); } } diff --git a/database/migrations/2014_02_07_155103_forum_thread_visitation_timestamps_create_table.php b/database/migrations/2014_02_07_155103_forum_thread_visitation_timestamps_create_table.php index 80170203b..2ce7b070f 100644 --- a/database/migrations/2014_02_07_155103_forum_thread_visitation_timestamps_create_table.php +++ b/database/migrations/2014_02_07_155103_forum_thread_visitation_timestamps_create_table.php @@ -12,7 +12,7 @@ class ForumThreadVisitationTimestampsCreateTable extends Migration */ public function up() { - Schema::table('forum_thread_visitations', function(Blueprint $table) { + Schema::table('forum_thread_visitations', function (Blueprint $table) { $table->create(); $table->increments('id'); $table->integer('user_id'); @@ -21,14 +21,4 @@ public function up() $table->timestamps(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('forum_thread_visitations'); - } } diff --git a/database/migrations/2014_05_30_115728_users_add_remember_me_token.php b/database/migrations/2014_05_30_115728_users_add_remember_me_token.php index f06f0199e..45371e3d9 100644 --- a/database/migrations/2014_05_30_115728_users_add_remember_me_token.php +++ b/database/migrations/2014_05_30_115728_users_add_remember_me_token.php @@ -12,20 +12,8 @@ class UsersAddRememberMeToken extends Migration */ public function up() { - Schema::table('users', function(Blueprint $table) { + Schema::table('users', function (Blueprint $table) { $table->string('remember_token')->default(''); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function(Blueprint $table) { - $table->dropColumn('remember_token'); - }); - } } diff --git a/database/migrations/2014_09_10_112330_add_ip_to_pastes_table.php b/database/migrations/2014_09_10_112330_add_ip_to_pastes_table.php index 7ba07078f..16858b894 100644 --- a/database/migrations/2014_09_10_112330_add_ip_to_pastes_table.php +++ b/database/migrations/2014_09_10_112330_add_ip_to_pastes_table.php @@ -1,7 +1,7 @@ string('ip')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('pastes', function (Blueprint $table) { - $table->dropColumn('ip'); - }); - } } diff --git a/database/migrations/2014_11_09_185116_pinned_threads.php b/database/migrations/2014_11_09_185116_pinned_threads.php index 6b2411c9b..bc4115a71 100644 --- a/database/migrations/2014_11_09_185116_pinned_threads.php +++ b/database/migrations/2014_11_09_185116_pinned_threads.php @@ -16,16 +16,4 @@ public function up() $table->boolean('pinned')->default(false); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('forum_threads', function (Blueprint $table) { - $table->dropColumn('pinned'); - }); - } } diff --git a/database/migrations/2014_12_07_143131_add_user_confirmation_columns.php b/database/migrations/2014_12_07_143131_add_user_confirmation_columns.php index aa5a1e4b0..c33c876db 100644 --- a/database/migrations/2014_12_07_143131_add_user_confirmation_columns.php +++ b/database/migrations/2014_12_07_143131_add_user_confirmation_columns.php @@ -17,16 +17,4 @@ public function up() $table->string('confirmation_code')->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function (Blueprint $table) { - $table->dropColumn('confirmed', 'confirmation_code'); - }); - } } diff --git a/database/migrations/2014_12_13_164931_create_ip_columns.php b/database/migrations/2014_12_13_164931_create_ip_columns.php index 88bf5cb4f..6755f8d20 100644 --- a/database/migrations/2014_12_13_164931_create_ip_columns.php +++ b/database/migrations/2014_12_13_164931_create_ip_columns.php @@ -24,24 +24,4 @@ public function up() $table->string('ip', 100)->default(''); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function (Blueprint $table) { - $table->dropColumn('ip'); - }); - - Schema::table('forum_threads', function (Blueprint $table) { - $table->dropColumn('ip'); - }); - - Schema::table('forum_replies', function (Blueprint $table) { - $table->dropColumn('ip'); - }); - } } diff --git a/database/migrations/2014_12_13_210738_add_spam_counter_to_users_table.php b/database/migrations/2014_12_13_210738_add_spam_counter_to_users_table.php index 1a4887abe..28e17fc3d 100644 --- a/database/migrations/2014_12_13_210738_add_spam_counter_to_users_table.php +++ b/database/migrations/2014_12_13_210738_add_spam_counter_to_users_table.php @@ -16,16 +16,4 @@ public function up() $table->tinyInteger('spam_count')->default(0); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('users', function (Blueprint $table) { - $table->dropColumn('spam_count'); - }); - } } diff --git a/database/migrations/2014_12_21_212154_remove_contributors_table.php b/database/migrations/2014_12_21_212154_remove_contributors_table.php index 425a3bcd1..3dfa4eac7 100644 --- a/database/migrations/2014_12_21_212154_remove_contributors_table.php +++ b/database/migrations/2014_12_21_212154_remove_contributors_table.php @@ -1,6 +1,5 @@ increments('id'); - $table->integer('user_id')->nullable(); - $table->string('github_id'); - $table->string('name'); - $table->string('avatar_url'); - $table->string('github_url'); - $table->integer('contribution_count')->default(0); - - $table->timestamps(); - }); + Schema::dropIfExists('contributors'); } } diff --git a/database/migrations/2015_04_12_171949_add_indexes.php b/database/migrations/2015_04_12_171949_add_indexes.php index 70db8f79d..b84615e55 100644 --- a/database/migrations/2015_04_12_171949_add_indexes.php +++ b/database/migrations/2015_04_12_171949_add_indexes.php @@ -27,27 +27,4 @@ public function up() $table->index('author_id'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('forum_threads', function (Blueprint $table) { - $table->dropIndex(['author_id']); - $table->dropIndex(['most_recent_reply_id']); - $table->dropIndex(['solution_reply_id']); - }); - - Schema::table('forum_replies', function (Blueprint $table) { - $table->dropIndex(['author_id']); - $table->dropIndex(['thread_id']); - }); - - Schema::table('comments', function (Blueprint $table) { - $table->dropIndex(['author_id']); - }); - } } diff --git a/database/migrations/2015_04_12_172949_add_indexes_to_tagged_items.php b/database/migrations/2015_04_12_172949_add_indexes_to_tagged_items.php index 4ac33f345..0cb28f781 100644 --- a/database/migrations/2015_04_12_172949_add_indexes_to_tagged_items.php +++ b/database/migrations/2015_04_12_172949_add_indexes_to_tagged_items.php @@ -17,17 +17,4 @@ public function up() $table->index('tag_id'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('tagged_items', function (Blueprint $table) { - $table->dropIndex(['thread_id']); - $table->dropIndex(['tag_id']); - }); - } } diff --git a/database/migrations/2015_07_26_160128_l5_cleanup.php b/database/migrations/2015_07_26_160128_l5_cleanup.php index 25742085e..b22f180eb 100644 --- a/database/migrations/2015_07_26_160128_l5_cleanup.php +++ b/database/migrations/2015_07_26_160128_l5_cleanup.php @@ -12,48 +12,11 @@ class L5Cleanup extends Migration */ public function up() { - Schema::drop('articles'); - Schema::drop('article_tag'); + Schema::dropIfExists('articles'); + Schema::dropIfExists('article_tag'); Schema::table('tags', function (Blueprint $table) { $table->dropColumn('articles'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::create('articles', function(Blueprint $table) { - $table->increments('id'); - $table->integer('author_id'); - $table->string('title'); - $table->text('content'); - $table->boolean('featured')->default(0); - $table->integer('status')->default(0); - $table->dateTime('published_at')->nullable(); - $table->integer('comment_count')->default(0); - $table->integer('laravel_version')->default(0); - - $table->timestamps(); - $table->softDeletes(); - }); - - Schema::table('article_tag', function(Blueprint $table) { - $table->create(); - - $table->increments('id'); - $table->integer('article_id')->index(); - $table->integer('tag_id')->index(); - - $table->timestamps(); - }); - - Schema::table('tags', function (Blueprint $table) { - $table->boolean('articles')->default(0); - }); - } } diff --git a/database/migrations/2015_08_26_191523_drop_unused_tables.php b/database/migrations/2015_08_26_191523_drop_unused_tables.php index 99a0bc53c..cc99d5f52 100644 --- a/database/migrations/2015_08_26_191523_drop_unused_tables.php +++ b/database/migrations/2015_08_26_191523_drop_unused_tables.php @@ -1,6 +1,5 @@ create(); - - $table->increments('id'); - $table->integer('user_id'); - $table->integer('activity_type'); - $table->integer('activity_id'); - $table->text('description'); - - $table->timestamps(); - }); - - Schema::table('forum_thread_visitations', function(Blueprint $table) { - $table->create(); - $table->increments('id'); - $table->integer('user_id'); - $table->integer('thread_id'); - $table->timestamp('visited_at'); - $table->timestamps(); - }); - - Schema::create('sessions', function(Blueprint $table) { - $table->string('id')->unique(); - $table->text('payload'); - $table->integer('last_activity'); - }); + Schema::dropIfExists('activity'); + Schema::dropIfExists('forum_thread_visitations'); + Schema::dropIfExists('sessions'); } } diff --git a/database/migrations/2017_04_08_104959_next_version.php b/database/migrations/2017_04_08_104959_next_version.php new file mode 100644 index 000000000..8b6843696 --- /dev/null +++ b/database/migrations/2017_04_08_104959_next_version.php @@ -0,0 +1,212 @@ +runningUnitTests()) { + DB::table('forum_replies') + ->join('forum_threads', 'forum_replies.thread_id', '=', 'forum_threads.id') + ->whereNotNull('forum_threads.deleted_at') + ->delete(); + DB::table('tagged_items') + ->join('forum_threads', 'tagged_items.thread_id', '=', 'forum_threads.id') + ->whereNotNull('forum_threads.deleted_at') + ->delete(); + DB::table('forum_threads')->whereNotNull('deleted_at')->delete(); + DB::table('forum_replies')->whereNotNull('deleted_at')->delete(); + DB::table('users')->whereNotNull('deleted_at')->delete(); + DB::table('tagged_items')->whereRaw('thread_id NOT IN (SELECT id FROM forum_threads)')->delete(); + DB::table('forum_threads') + ->whereRaw('solution_reply_id NOT IN (SELECT id FROM forum_replies)') + ->update(['solution_reply_id' => null]); + } + + // Create password_resets table + Schema::create('password_resets', function (Blueprint $table) { + $table->string('email')->index(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + + // Clean up users + Schema::table('users', function (Blueprint $table) { + $table->string('email')->unique()->change(); + $table->string('username', 40)->default(''); + $table->string('password')->default(''); + $table->smallInteger('type', false, true)->default(1); + $table->dateTime('created_at')->nullable()->default(null)->change(); + $table->dateTime('updated_at')->nullable()->default(null)->change(); + }); + Schema::table('users', function (Blueprint $table) { + $table->dropSoftDeletes(); + }); + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('image_url', 'spam_count'); + }); + Schema::table('users', function (Blueprint $table) { + $table->renameColumn('github_url', 'github_username'); + }); + + if (! app()->runningUnitTests()) { + DB::statement('UPDATE users SET username = LOWER(name), github_username = name'); + } + + Schema::table('users', function (Blueprint $table) { + $table->unique('username'); + $table->index('email'); + $table->index('username'); + }); + + if (! app()->runningUnitTests()) { + // Migrate moderators + DB::statement('UPDATE users SET type = 2 WHERE id IN ( + SELECT user_id FROM role_user WHERE role_id = 2 + )'); + + // Migrate admins + DB::statement('UPDATE users SET type = 3 WHERE id IN ( + SELECT user_id FROM role_user WHERE role_id = 3 + )'); + } + + // Refactor replies + Schema::rename('forum_replies', 'replies'); + Schema::table('replies', function (Blueprint $table) { + $table->string('replyable_type')->default(''); + $table->dateTime('created_at')->nullable()->default(null)->change(); + $table->dateTime('updated_at')->nullable()->default(null)->change(); + }); + + if (! app()->runningUnitTests()) { + DB::table('replies')->update(['replyable_type' => 'threads']); + } + + Schema::table('replies', function (Blueprint $table) { + $table->dropIndex('forum_replies_author_id_index'); + $table->dropIndex('forum_replies_thread_id_index'); + }); + Schema::table('replies', function (Blueprint $table) { + $table->renameColumn('thread_id', 'replyable_id'); + }); + Schema::table('replies', function (Blueprint $table) { + $table->dropSoftDeletes(); + }); + Schema::table('replies', function (Blueprint $table) { + $table->index('author_id'); + $table->index('replyable_id'); + $table->integer('author_id')->unsigned()->change(); + $table->foreign('author_id') + ->references('id')->on('users') + ->onDelete('CASCADE'); + }); + + // Clean up forum threads + Schema::rename('forum_threads', 'threads'); + Schema::table('threads', function (Blueprint $table) { + $table->unique('slug'); + $table->dateTime('created_at')->nullable()->default(null)->change(); + $table->dateTime('updated_at')->nullable()->default(null)->change(); + }); + Schema::table('threads', function (Blueprint $table) { + $table->dropIndex('forum_threads_author_id_index'); + $table->dropIndex('forum_threads_most_recent_reply_id_index'); + $table->dropIndex('forum_threads_solution_reply_id_index'); + }); + Schema::table('threads', function (Blueprint $table) { + $table->integer('solution_reply_id')->unsigned()->change(); + $table->foreign('solution_reply_id') + ->references('id')->on('replies') + ->onDelete('SET NULL'); + $table->integer('author_id')->unsigned()->change(); + $table->foreign('author_id') + ->references('id')->on('users') + ->onDelete('CASCADE'); + }); + Schema::table('threads', function (Blueprint $table) { + $table->dropColumn( + 'category_slug', 'most_recent_reply_id', 'reply_count', 'is_question', 'pinned', 'laravel_version' + ); + }); + Schema::table('threads', function (Blueprint $table) { + $table->dropSoftDeletes(); + }); + Schema::table('threads', function (Blueprint $table) { + $table->index('author_id'); + $table->index('slug'); + $table->index('solution_reply_id'); + }); + + // Refactor tags + Schema::rename('tagged_items', 'taggables'); + + // Fix timestamps on taggables + if (! app()->runningUnitTests()) { + DB::statement('UPDATE taggables, threads SET taggables.created_at = threads.created_at, taggables.updated_at = threads.updated_at WHERE taggables.thread_id = threads.id'); + } + + // Make slugs lowercase + if (! app()->runningUnitTests()) { + DB::statement('UPDATE tags SET slug = LOWER(slug)'); + } + + Schema::table('taggables', function (Blueprint $table) { + $table->string('taggable_type')->default(''); + $table->dateTime('created_at')->nullable()->default(null)->change(); + $table->dateTime('updated_at')->nullable()->default(null)->change(); + }); + Schema::table('taggables', function (Blueprint $table) { + $table->dropIndex('tagged_items_thread_id_index'); + $table->dropIndex('tagged_items_tag_id_index'); + }); + Schema::table('taggables', function (Blueprint $table) { + $table->renameColumn('thread_id', 'taggable_id'); + }); + + if (! app()->runningUnitTests()) { + DB::table('taggables')->update(['taggable_type' => 'threads']); + } + + Schema::table('taggables', function (Blueprint $table) { + $table->index('taggable_id'); + $table->index('tag_id'); + $table->integer('tag_id')->unsigned()->change(); + $table->foreign('tag_id') + ->references('id')->on('tags') + ->onDelete('CASCADE'); + }); + Schema::table('tags', function (Blueprint $table) { + $table->dropColumn('forum', 'description'); + $table->unique('name'); + $table->unique('slug'); + $table->index('slug'); + }); + + // Add new tags + if (! app()->runningUnitTests()) { + DB::table('tags')->insert([ + ['name' => 'Laravel', 'slug' => 'laravel'], + ['name' => 'Lumen', 'slug' => 'lumen'], + ['name' => 'Spark', 'slug' => 'spark'], + ['name' => 'Forge', 'slug' => 'Forge'], + ['name' => 'Envoyer', 'slug' => 'envoyer'], + ['name' => 'Homestead', 'slug' => 'homestead'], + ['name' => 'Valet', 'slug' => 'valet'], + ['name' => 'Socialite', 'slug' => 'socialite'], + ['name' => 'Mix', 'slug' => 'mix'], + ['name' => 'Dusk', 'slug' => 'dusk'], + ]); + } + + // Remove unused tables + Schema::drop('comments'); + Schema::drop('comment_tag'); + Schema::drop('pastes'); + Schema::drop('role_user'); + Schema::drop('roles'); + } +} diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index 403e4db80..a9a364cd6 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -1,7 +1,6 @@ call(RoleSeeder::class); $this->call(UserSeeder::class); $this->call(TagSeeder::class); - - Model::reguard(); + $this->call(ThreadSeeder::class); } } diff --git a/database/seeds/RoleSeeder.php b/database/seeds/RoleSeeder.php deleted file mode 100644 index 27de7bd94..000000000 --- a/database/seeds/RoleSeeder.php +++ /dev/null @@ -1,29 +0,0 @@ -createRoles(); - } - } - - private function createRoles() - { - $roles = [ - 'manage_forum' => 'manage the forum', - 'manage_users' => 'manage user roles and accounts', - ]; - - foreach ($roles as $role => $description) { - Role::create([ - 'name' => $role, - 'description' => $description, - ]); - } - } -} diff --git a/database/seeds/TagSeeder.php b/database/seeds/TagSeeder.php index 901a9d26b..a9ecb46af 100644 --- a/database/seeds/TagSeeder.php +++ b/database/seeds/TagSeeder.php @@ -1,51 +1,19 @@ createTags(); - } + $this->createTag('Installation', 'installation'); + $this->createTag('Blade', 'blade'); + $this->createTag('Cache', 'cache'); } - private function createTags() + private function createTag($name, $slug) { - $commonTags = [ - 'Installation' => 'framework installation, package installation, application installation', - 'Configuration' => 'framework configuration, web-server configuration, application configuration', - 'Authentication' => 'topics related to authentication, including user logins, oauth, etc', - 'Security' => 'code safety, user roles and authorization', - 'Requests' => 'information related to handling requests', - 'Input' => 'handling user input', - 'Session' => 'persisting data between requests using PHP or Laravel sessions', - 'Cache' => 'performance caching or any use of Laravel\'s cache system', - 'Database' => 'query-building, connections, or drivers', - 'Eloquent' => 'Eloquent modeling, relationships, etc', - 'Ioc' => 'binding to and resolving from the IoC container', - 'Views' => 'topics related to the rendering of views', - 'Blade' => 'topics related to Blade templating', - 'Forms' => 'topics related to forms', - 'Validation' => 'topics related to the validation of data', - 'Mail' => 'topics related to compiling and sending email', - 'Queues' => 'topics related to queues', - 'LaravelIO' => 'topics that relate to the Laravel.io site or community', - 'Packages' => 'topics related to creating, discussing, and importing packages', - 'Meetups' => 'topics related to community meetups or user groups', - 'OOP' => 'topics related to writing good object-oriented code', - 'Testing' => 'topics related to automated testing', - ]; - - foreach ($commonTags as $name => $description) { - Tag::create([ - 'name' => $name, - 'slug' => $name, - 'description' => $description, - 'forum' => 1, - ]); - } + factory(Tag::class)->create(compact('name', 'slug')); } } diff --git a/database/seeds/ThreadSeeder.php b/database/seeds/ThreadSeeder.php new file mode 100644 index 000000000..da0eece19 --- /dev/null +++ b/database/seeds/ThreadSeeder.php @@ -0,0 +1,17 @@ +create(['author_id' => 1]); + + factory(Reply::class)->create(['author_id' => 1, 'replyable_id' => 1]); + factory(Reply::class)->create(['author_id' => 1, 'replyable_id' => 1]); + factory(Reply::class)->create(['author_id' => 1, 'replyable_id' => 2]); + } +} diff --git a/database/seeds/UserSeeder.php b/database/seeds/UserSeeder.php index 596e4f9f5..dc81522e6 100644 --- a/database/seeds/UserSeeder.php +++ b/database/seeds/UserSeeder.php @@ -1,22 +1,17 @@ createUsers(); - } - } - - private function createUsers() - { - User::create([ - 'email' => 'account@account.com', - 'name' => 'Big Ole User Name', + factory(User::class)->create([ + 'name' => 'John Doe', + 'email' => 'john@example.com', + 'username' => 'johndoe', + 'password' => bcrypt('password'), ]); } } diff --git a/package.json b/package.json new file mode 100644 index 000000000..bafdc3d3f --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "private": true, + "scripts": { + "dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch-poll": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", + "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + }, + "dependencies": { + "bootstrap-markdown": "^2.10.0", + "bootstrap-sass": "^3.3.7", + "bootswatch": "^3.3.7", + "jquery": "^3.1.1", + "lodash": "^4.17.2", + "markdown": "^0.5.0", + "selectize": "^0.12.4", + "selectize-scss": "^0.9.2", + "to-markdown": "^3.0.3", + "vue": "^2.1.3", + "vue-resource": "^1.0.3" + }, + "devDependencies": { + "axios": "^0.15.3", + "cross-env": "^3.2.3", + "laravel-mix": "^0.8.3", + "lodash": "^4.17.4", + "vue": "^2.1.10" + } +} diff --git a/phpspec.yml b/phpspec.yml index ced0f2340..d931e5030 100644 --- a/phpspec.yml +++ b/phpspec.yml @@ -1,5 +1,6 @@ suites: - lio: - namespace: Lio - psr4_prefix: Lio + app: + namespace: App + psr4_prefix: App + src_path: app formatter.name: dot diff --git a/phpunit.xml b/phpunit.xml index c2fa89a74..f9cc0a676 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -7,24 +7,25 @@ convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" - stopOnFailure="false" - syntaxCheck="false"> + stopOnFailure="false"> - ./tests/ + ./tests - - app/ + + ./app + - - + + + diff --git a/public/.gitignore b/public/.gitignore deleted file mode 100644 index 0d3101985..000000000 --- a/public/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.sass-cache/ diff --git a/public/.htaccess b/public/.htaccess deleted file mode 100755 index 8eb2dd0dd..000000000 --- a/public/.htaccess +++ /dev/null @@ -1,16 +0,0 @@ - - - Options -MultiViews - - - RewriteEngine On - - # Redirect Trailing Slashes If Not A Folder... - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^(.*)/$ /$1 [L,R=301] - - # Handle Front Controller... - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^ index.php [L] - diff --git a/public/config.rb b/public/config.rb deleted file mode 100644 index 58c45f3b2..000000000 --- a/public/config.rb +++ /dev/null @@ -1,26 +0,0 @@ -# require 'zurb-foundation' -# Require any additional compass plugins here. -Encoding.default_external = "utf-8" - -# Set this to the root of your project when deployed: -http_path = "/" -css_dir = "stylesheets" -sass_dir = "scss" -images_dir = "images" -javascripts_dir = "javascripts" - -# You can select your preferred output style here (can be overridden via the command line): -output_style = :compressed - -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true - -# To disable debugging comments that display the original location of your selectors. Uncomment: -# line_comments = false - - -# If you prefer the indented syntax, you might want to regenerate this -# project again passing --syntax sass, or you can uncomment this: -# preferred_syntax = :sass -# and then run: -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass diff --git a/public/favicon.ico b/public/favicon.ico index 11303fc43..e69de29bb 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/images/cartalyst-logo.png b/public/images/cartalyst-logo.png deleted file mode 100644 index 197eaf116..000000000 Binary files a/public/images/cartalyst-logo.png and /dev/null differ diff --git a/public/images/fortrabbit.png b/public/images/fortrabbit.png new file mode 100644 index 000000000..35b5aefcc Binary files /dev/null and b/public/images/fortrabbit.png differ diff --git a/public/images/helpspot.png b/public/images/helpspot.png new file mode 100644 index 000000000..ce5e03872 Binary files /dev/null and b/public/images/helpspot.png differ diff --git a/public/images/jquery.fs.naver-icon.png b/public/images/jquery.fs.naver-icon.png deleted file mode 100644 index 16efd9cb3..000000000 Binary files a/public/images/jquery.fs.naver-icon.png and /dev/null differ diff --git a/public/images/laravel-io-logo-dark-v2.png b/public/images/laravel-io-logo-dark-v2.png deleted file mode 100644 index e37a72d64..000000000 Binary files a/public/images/laravel-io-logo-dark-v2.png and /dev/null differ diff --git a/public/images/laravel-io-logo-dark-v3.png b/public/images/laravel-io-logo-dark-v3.png deleted file mode 100644 index 8a1f8f3ed..000000000 Binary files a/public/images/laravel-io-logo-dark-v3.png and /dev/null differ diff --git a/public/images/laravel-io-logo-dark.png b/public/images/laravel-io-logo-dark.png deleted file mode 100644 index d9f55ac7d..000000000 Binary files a/public/images/laravel-io-logo-dark.png and /dev/null differ diff --git a/public/images/laravel-io-logo-small.png b/public/images/laravel-io-logo-small.png deleted file mode 100644 index c5f962938..000000000 Binary files a/public/images/laravel-io-logo-small.png and /dev/null differ diff --git a/public/images/laravel-io-logo.png b/public/images/laravel-io-logo.png deleted file mode 100644 index 9fe5f261f..000000000 Binary files a/public/images/laravel-io-logo.png and /dev/null differ diff --git a/public/images/pattern.png b/public/images/pattern.png deleted file mode 100644 index 3b75106a5..000000000 Binary files a/public/images/pattern.png and /dev/null differ diff --git a/public/index.php b/public/index.php index c5820533b..423684557 100644 --- a/public/index.php +++ b/public/index.php @@ -1,10 +1,9 @@ + * @author Taylor Otwell */ /* @@ -15,7 +14,7 @@ | Composer provides a convenient, automatically generated class loader for | our application. We just need to utilize it! We'll simply require it | into the script here so that we don't have to worry about manual -| loading any of our classes later on. It feels nice to relax. +| loading any of our classes later on. It feels great to relax. | */ diff --git a/public/javascripts/bin.js b/public/javascripts/bin.js deleted file mode 100755 index 28d778211..000000000 --- a/public/javascripts/bin.js +++ /dev/null @@ -1,357 +0,0 @@ -/** - * Laravel.io Pastebin - */ -var PasteBin = (function($) { - - /** - * Initialize all handlers/listeners/plugins - */ - var init = function() { - if (window.PasteBinInitialized == true) return; - - _initToastr(); - _initTabby(); - _bindKeys(); - _bindCopyButtons(); - _prettyPrintLines(); - _responsiveNav(); - - window.PasteBinInitialized = true; - }; - - /** - * Bind buttons and listeners to make right nav work responsively - * - * @private - */ - var _responsiveNav = function() { - var $showHideButton = $('.show-sidebar'), - $sidebar = $('.sidebar'), - $editor = $('.editor'), - $showContainer = $('.show-container'); - - $showHideButton.on('click', function(e) { - e.preventDefault(); - - $showHideButton.toggleClass('show'); - $showHideButton.children('i').toggleClass('fa-arrow-right').toggleClass('fa-arrow-left'); - $sidebar.toggleClass('hide'); - $editor.toggleClass('sidebar-hidden'); - $showContainer.toggleClass('sidebar-hidden'); - }); - }; - - /** - * Pass options to Toastr notification library - * - * @source https://github.com/CodeSeven/toastr - * @private - */ - var _initToastr = function() { - toastr.options = { - "closeButton": false, - "debug": false, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "1000", - "timeOut": "5000", - "extendedTimeOut": "1000", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - }; - - /** - * Pass options to Tabby - * - * @source https://github.com/alanhogan/Tabby - * @private - */ - var _initTabby = function() { - // Set tab string to 4 spaces - $('.editor').focus().tabby({ tabString: ' '}); - }; - - /** - * Bind keyboard shortcuts with MouseTrap - * - * @private - */ - var _bindKeys = function() { - - // Bind show keys - if ($('.show-container').length) { - // Fork shortcut - Mousetrap.bind('f', function () { - if ($('.button.fork').length) { - $('.button.fork')[0].click(); - } - return false; - }); - - // New shortcut - Mousetrap.bind('n', function () { - if ($('.button.new').length) { - $('.button.new')[0].click(); - } - return false; - }); - - // Raw shortcut - Mousetrap.bind('r', function () { - if ($('.button.raw').length) { - $('.button.raw')[0].click(); - } - return false; - }); - - // Copy shortcut - Mousetrap.bind('mod+c', function() { - if (window.getSelection().toString() == '') { - if ($('.button.copy').length) { - $('#copy-data').val(location.toString()).select(); - toastr.info('Copied URL to clipboard! ' + $('#copy-data').val()); - } - } - }); - } - - // Bind edit keys - if ($('.editor-container').length) { - // Save shortcut - Mousetrap.bind('mod+s', function (event) { - event.preventDefault(); - if ($('.editor').length) { - $('.editor-form').submit(); - } - }); - } - }; - - /** - * Bind copy buttons for URL and content - * - * @private - */ - var _bindCopyButtons = function() { - // Setup copy - $(document).on('copy', function (event) { - if (window.getSelection().toString() == '') { - event.preventDefault(); - var url = $('#copy-data').val(); - event.originalEvent.clipboardData.setData('text/plain', url); - } - }); - - $('.button.copy').zclip({ - path: '/javascripts/vendor/ZeroClipboard.swf', - copy: location.toString(), - afterCopy: function() { - toastr.info('Copied URL to clipboard! ' + location.toString()); - } - }); - }; - - /** - * Pretty print source code - * - * @source https://code.google.com/p/google-code-prettify/ (right?) - * @todo Get rid of function definitions - * @private - */ - var _prettyPrintLines = function() { - var defaults = { - $list: $('.list'), - selectedClass: 'selected', - preventTextSelectionClass: 'prevent-user-select' - }, - _lines, options, $lastLineToggled; - - // Call this public method like $.myMethod(); - $.handleLines = function(options){ - defaults = $.extend(defaults, options); - defaults.$lines = defaults.$list.find('li'); - - _lines = expandLines(window.location.hash); - highlight(); - events(); - }; - - function highlight() { - for(var i = 0; i < _lines.length; i++) { - defaults.$lines.eq(_lines[i] - 1).addClass(defaults.selectedClass); - } - } - - function events() { - defaults.$list.on('click', 'li', function (e) { - var $line = $(this); - if ($lastLineToggled && e.shiftKey) { - var $range, - lineIndex = $line.index(), - lastLineIndex = $lastLineToggled.index() + 1; - - $range = (lineIndex > lastLineIndex) ? defaults.$lines.slice(lastLineIndex, lineIndex + 1) : defaults.$lines.slice(lineIndex, lastLineIndex - 1); - $range.toggleClass(defaults.selectedClass); - manage($range); - } else { - $line.toggleClass(defaults.selectedClass); - manage($line); - } - $lastLineToggled = $line; - }); - - $(document).mousedown(function (e) { - if (e.shiftKey) e.preventDefault(); - }); - } - - /* expand #1-7,12,20 into [1,2,3,4,5,6,7,12,20] */ - function expandLines(lines) { - if(lines == '') return []; - lines = lines.replace(/#/g, '').split(','); - var linesExpanded = []; - for(var i in lines) { - if(lines.hasOwnProperty(i)) { - linesExpanded = linesExpanded.concat(expand(lines[i])); - } - } - - return sanitize(linesExpanded) - } - - function expand(item) { - return (item.indexOf('-') > 0) ? generateRange(item.split('-')) : [parseInt(item, 10)]; - } - - function generateRange(values) { - var range = []; - for (var i = parseInt(values[0], 10); i <= parseInt(values[1], 10); i++) { - range.push(i); - } - return range; - } - - /* sort linesnumbers array and remove duplicate numbers */ - function sanitize(lines) { - lines = lines.sort(function(a, b) { return a-b; }); - uniqueLines = []; - for(var i = 0; i < lines.length; i++) { - if(uniqueLines.indexOf(lines[i]) === -1) uniqueLines.push(lines[i]); - } - return uniqueLines; - } - - /* collapse [1,2,3,4,5,6,7,12,20] into #1-7,12,20 */ - function collapser() { - lines = sanitize(_lines); - var ranges = [], rstart, rend; - for (var i = 0; i < lines.length; i++) { - rstart = lines[i]; - rend = rstart; - while (lines[i + 1] - lines[i] == 1) { - rend = lines[i + 1]; - i++; - } - ranges.push(rstart == rend ? rstart+'' : rstart + '-' + rend); - } - return '#' + ranges.join(','); - } - - /* update lines array */ - function manage(items) { - items.each(function() { - var indexOfLine = $(this).index() + 1, - indexInLinesArray = _lines.indexOf(indexOfLine); - - if(indexInLinesArray < 0) { - _lines.push(indexOfLine); - } else { - _lines.splice(indexInLinesArray, 1); - } - }); - window.location.hash = collapser(); - } - - prettyPrint(function() { - $.handleLines({ - $list: $('ol.linenums'), - selectClass: 'selected', - preventTextSelectionClass: 'prevent-user-select' - }); - }); - }; - - /** - * Temporarily disabled drag and drop - * - * @todo Delete the code or bring it back - * @private - */ - var _bindDragAndDrop = function() { - return; - - // drag and drop file api stuff - function handleFileSelect(e) { - e.stopPropagation(); - e.preventDefault(); - - var files = e.dataTransfer.files; - - $.each(files, function() { - var file = this; - - // if ( ! file.type.match('text.*')) { - // continue; - // } - - var reader = new FileReader(); - - reader.onload = (function() { - return function(e) { - addFile(file.name, e.target.result); - }; - })(file); - - reader.readAsText(file); - }); - } - - function handleDragOver(e) { - e.stopPropagation(); - e.preventDefault(); - e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy. - } - - function bindDragAndDrop() { - var dropZone = document.getElementById('drop_zone'); - dropZone.addEventListener('dragover', handleDragOver, false); - dropZone.addEventListener('drop', handleFileSelect, false); - } - - function addFile(name, contents) { - var template = $('._file_template').html(); - - template = template.replace(/\|filename\|/g, name); - template = template.replace(/\|contents\|/g, contents); - - $('._files').append(template); - } - - // go - $(function() { - bindDragAndDrop(); - }); - }; - - return { - init: init - }; -})(jQuery); - -$(function() { - PasteBin.init(); -}); diff --git a/public/javascripts/forum.js b/public/javascripts/forum.js deleted file mode 100644 index f79c2515c..000000000 --- a/public/javascripts/forum.js +++ /dev/null @@ -1,142 +0,0 @@ -var tagsDisabled = false; -var maxTags = 3; - -function checkForMaximumTags() { - if ($('._tag_list ._tag.active').length >= maxTags) { - tagsDisabled = true; - - $('._tag_list ._tag').not('.active').addClass('disabled'); - } else { - tagsDisabled = false; - $('._tag_list ._tag.disabled').removeClass('disabled'); - } -} - -function showTagDescriptions() { - var checkedTags = $('._tag input:checked'); - var descriptionArea = $('._tag_descriptions'); - var descriptions = []; - - checkedTags.each(function() { - var tagDescription = $(this).parent().find('._description').text(); - descriptions.push(tagDescription); - }); - - if (descriptions.length == 0) { - $('._tag_description_container').hide(); - return; - } - - $('._tag_description_container').show(); - $('._tag_descriptions').text(''); - - for (var i in descriptions) { - $('._tag_descriptions').append("
  • " + descriptions[i] + "
  • "); - } -} - -function updateTagDisplay() { - $('._tag_list ._tag').removeClass('active'); - var tagInputs = $('._tags').find('input'); - - tagInputs.each(function() { - var tag = $(this).attr('title'); - if ($(this).prop('checked')) { - $('a._tag[title=' + tag + ']').addClass('active'); - } - }); - - checkForMaximumTags(); - showTagDescriptions(); -} - -function toggleTag(tagText) { - var checkbox = $('._tags ._tag[title=' + tagText + '] input'); - - if (checkbox.prop('checked')) { - checkbox.prop('checked', false); - } else { - checkbox.prop('checked', true); - } - - updateTagDisplay(); -} - -function bindTagChooser() { - // each click of a tag link togs the tag - $('a._tag').click(function(e) { - e.preventDefault(); - if ( ! $(this).hasClass('disabled')) { - toggleTag($(this).text()); - } - }); - - // set up initial state - updateTagDisplay(); -} - -function questionSelectToTag() { - var tags = $('._question_tags').find('input'); - - tags.each(function() { - if ($(this).prop('checked')) { - $(this).closest('label').addClass('selected'); - } - }); - - $('._question_tags input').change(function() { - $('._question_tags .selected').removeClass('selected'); - $(this).closest('label').addClass('selected'); - }) -} - -function versionSelectToTag() { - var versionTags = $('._version_tags').find('input'); - - versionTags.each(function() { - if ($(this).prop('checked')) { - $(this).closest('label').addClass('selected'); - } - }); - - $('._version_tags input').change(function() { - $('._version_tags .selected').removeClass('selected'); - $(this).closest('label').addClass('selected'); - }) -} - -function formatForumQuote(author, quote) -{ - // add author name - quote = "**" + author + "** said:\n\n" + quote; - - // add markdown quote tags - quote = quote.replace(/^/g, ">"); - quote = quote.replace(/\n/g, "\n>"); - - return quote; -} - -function bindQuoteLinks() -{ - $('._quote_forum_post').click(function(e) { - e.preventDefault(); - - var replyForm = $('._reply_form'); - var quoteBody = $(this).closest('._post').data('quote-body'); - var authorName = $(this).closest('._post').data('author-name'); - - var quoteText = formatForumQuote($.parseJSON(authorName), $.parseJSON(quoteBody)); - - replyForm.val(replyForm.val() + quoteText); - - location.href="#reply_form"; - }); -} - -$(function() { - bindTagChooser(); - versionSelectToTag(); - questionSelectToTag(); - bindQuoteLinks(); -}); diff --git a/public/javascripts/foundation/foundation.abide.js b/public/javascripts/foundation/foundation.abide.js deleted file mode 100644 index baf896100..000000000 --- a/public/javascripts/foundation/foundation.abide.js +++ /dev/null @@ -1,194 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.abide = { - name : 'abide', - - version : '4.3.0', - - settings : { - live_validate : true, - focus_on_invalid : true, - timeout : 1000, - patterns : { - alpha: /[a-zA-Z]+/, - alpha_numeric : /[a-zA-Z0-9]+/, - integer: /-?\d+/, - number: /-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/, - - // generic password: upper-case, lower-case, number/special character, and min 8 characters - password : /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, - - // amex, visa, diners - card : /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, - cvv : /^([0-9]){3,4}$/, - - // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address - email : /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, - - url: /(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/, - // abc.de - domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/, - - datetime: /([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/, - // YYYY-MM-DD - date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/, - // HH:MM:SS - time : /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/, - dateISO: /\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/, - // MM/DD/YYYY - month_day_year : /(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/, - - // #FFF or #FFFFFF - color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ - } - }, - - timer : null, - - init : function (scope, method, options) { - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - if (!this.settings.init) { this.events(); } - - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this, - forms = $('form[data-abide]', this.scope).attr('novalidate', 'novalidate'); - - forms - .on('submit validate', function (e) { - return self.validate($(this).find('input, textarea, select').get(), e); - }); - - this.settings.init = true; - - if (!this.settings.live_validate) return; - - forms - .find('input, textarea, select') - .on('blur change', function (e) { - self.validate([this], e); - }) - .on('keydown', function (e) { - clearTimeout(self.timer); - self.timer = setTimeout(function () { - self.validate([this], e); - }.bind(this), self.settings.timeout); - }); - }, - - validate : function (els, e) { - var validations = this.parse_patterns(els), - validation_count = validations.length, - form = $(els[0]).closest('form'); - - while (validation_count--) { - if (!validations[validation_count] && /submit/.test(e.type)) { - if (this.settings.focus_on_invalid) els[validation_count].focus(); - form.trigger('invalid'); - $(els[validation_count]).closest('form').attr('data-invalid', ''); - return false; - } - } - - if (/submit/.test(e.type)) { - form.trigger('valid'); - } - - form.removeAttr('data-invalid'); - - return true; - }, - - parse_patterns : function (els) { - var count = els.length, - el_patterns = []; - - for (var i = count - 1; i >= 0; i--) { - el_patterns.push(this.pattern(els[i])); - } - - return this.check_validation_and_apply_styles(el_patterns); - }, - - pattern : function (el) { - var type = el.getAttribute('type'), - required = typeof el.getAttribute('required') === 'string'; - - if (this.settings.patterns.hasOwnProperty(type)) { - return [el, this.settings.patterns[type], required]; - } - - var pattern = el.getAttribute('pattern') || ''; - - if (this.settings.patterns.hasOwnProperty(pattern) && pattern.length > 0) { - return [el, this.settings.patterns[pattern], required]; - } else if (pattern.length > 0) { - return [el, new RegExp(pattern), required]; - } - - pattern = /.*/; - - return [el, pattern, required]; - }, - - check_validation_and_apply_styles : function (el_patterns) { - var count = el_patterns.length, - validations = []; - - for (var i = count - 1; i >= 0; i--) { - var el = el_patterns[i][0], - required = el_patterns[i][2], - value = el.value, - is_radio = el.type === "radio", - valid_length = (required) ? (el.value.length > 0) : true; - - if (is_radio && required) { - validations.push(this.valid_radio(el, required)); - } else { - if (el_patterns[i][1].test(value) && valid_length || - !required && el.value.length < 1) { - $(el).removeAttr('data-invalid').parent().removeClass('error'); - validations.push(true); - } else { - $(el).attr('data-invalid', '').parent().addClass('error'); - validations.push(false); - } - } - } - - return validations; - }, - - valid_radio : function (el, required) { - var name = el.getAttribute('name'), - group = document.getElementsByName(name), - count = group.length, - valid = false; - - for (var i=0; i < count; i++) { - if (group[i].checked) valid = true; - } - - for (var i=0; i < count; i++) { - if (valid) { - $(group[i]).removeAttr('data-invalid').parent().removeClass('error'); - } else { - $(group[i]).attr('data-invalid', '').parent().addClass('error'); - } - } - - return valid; - } - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.alerts.js b/public/javascripts/foundation/foundation.alerts.js deleted file mode 100644 index 8e4522de2..000000000 --- a/public/javascripts/foundation/foundation.alerts.js +++ /dev/null @@ -1,52 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.alerts = { - name : 'alerts', - - version : '4.2.2', - - settings : { - speed: 300, // fade out speed - callback: function (){} - }, - - init : function (scope, method, options) { - this.scope = scope || this.scope; - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - if (!this.settings.init) { this.events(); } - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - - $(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) { - e.preventDefault(); - $(this).closest("[data-alert]").fadeOut(self.speed, function () { - $(this).remove(); - self.settings.callback(); - }); - }); - - this.settings.init = true; - }, - - off : function () { - $(this.scope).off('.fndtn.alerts'); - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.clearing.js b/public/javascripts/foundation/foundation.clearing.js deleted file mode 100644 index 32547ea68..000000000 --- a/public/javascripts/foundation/foundation.clearing.js +++ /dev/null @@ -1,516 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.clearing = { - name : 'clearing', - - version: '4.3.1', - - settings : { - templates : { - viewing : '×' + - '' - }, - - // comma delimited list of selectors that, on click, will close clearing, - // add 'div.clearing-blackout, div.visible-img' to close on background click - close_selectors : '.clearing-close', - - // event initializers and locks - init : false, - locked : false - }, - - init : function (scope, method, options) { - var self = this; - Foundation.inherit(this, 'set_data get_data remove_data throttle data_options'); - - if (typeof method === 'object') { - options = $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - $(this.scope).find('ul[data-clearing]').each(function () { - var $el = $(this), - options = options || {}, - lis = $el.find('li'), - settings = self.get_data($el); - - if (!settings && lis.length > 0) { - options.$parent = $el.parent(); - - self.set_data($el, $.extend({}, self.settings, options, self.data_options($el))); - - self.assemble($el.find('li')); - - if (!self.settings.init) { - self.events().swipe_events(); - } - } - }); - - return this.settings.init; - } else { - // fire method - return this[method].call(this, options); - } - }, - - // event binding and initial setup - - events : function () { - var self = this; - - $(this.scope) - .on('click.fndtn.clearing', 'ul[data-clearing] li', - function (e, current, target) { - var current = current || $(this), - target = target || current, - next = current.next('li'), - settings = self.get_data(current.parent()), - image = $(e.target); - - e.preventDefault(); - if (!settings) self.init(); - - // if clearing is open and the current image is - // clicked, go to the next image in sequence - if (target.hasClass('visible') && - current[0] === target[0] && - next.length > 0 && self.is_open(current)) { - target = next; - image = target.find('img'); - } - - // set current and target to the clicked li if not otherwise defined. - self.open(image, current, target); - self.update_paddles(target); - }) - - .on('click.fndtn.clearing', '.clearing-main-next', - function (e) { this.nav(e, 'next') }.bind(this)) - .on('click.fndtn.clearing', '.clearing-main-prev', - function (e) { this.nav(e, 'prev') }.bind(this)) - .on('click.fndtn.clearing', this.settings.close_selectors, - function (e) { Foundation.libs.clearing.close(e, this) }) - .on('keydown.fndtn.clearing', - function (e) { this.keydown(e) }.bind(this)); - - $(window).on('resize.fndtn.clearing', - function () { this.resize() }.bind(this)); - - this.settings.init = true; - return this; - }, - - swipe_events : function () { - var self = this; - - $(this.scope) - .on('touchstart.fndtn.clearing', '.visible-img', function(e) { - if (!e.touches) { e = e.originalEvent; } - var data = { - start_page_x: e.touches[0].pageX, - start_page_y: e.touches[0].pageY, - start_time: (new Date()).getTime(), - delta_x: 0, - is_scrolling: undefined - }; - - $(this).data('swipe-transition', data); - e.stopPropagation(); - }) - .on('touchmove.fndtn.clearing', '.visible-img', function(e) { - if (!e.touches) { e = e.originalEvent; } - // Ignore pinch/zoom events - if(e.touches.length > 1 || e.scale && e.scale !== 1) return; - - var data = $(this).data('swipe-transition'); - - if (typeof data === 'undefined') { - data = {}; - } - - data.delta_x = e.touches[0].pageX - data.start_page_x; - - if ( typeof data.is_scrolling === 'undefined') { - data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) ); - } - - if (!data.is_scrolling && !data.active) { - e.preventDefault(); - var direction = (data.delta_x < 0) ? 'next' : 'prev'; - data.active = true; - self.nav(e, direction); - } - }) - .on('touchend.fndtn.clearing', '.visible-img', function(e) { - $(this).data('swipe-transition', {}); - e.stopPropagation(); - }); - }, - - assemble : function ($li) { - var $el = $li.parent(); - $el.after('
    '); - - var holder = $('#foundationClearingHolder'), - settings = this.get_data($el), - grid = $el.detach(), - data = { - grid: '', - viewing: settings.templates.viewing - }, - wrapper = '
    ' + data.viewing + - data.grid + '
    '; - - return holder.after(wrapper).remove(); - }, - - // event callbacks - - open : function ($image, current, target) { - var root = target.closest('.clearing-assembled'), - container = root.find('div').first(), - visible_image = container.find('.visible-img'), - image = visible_image.find('img').not($image); - - if (!this.locked()) { - // set the image to the selected thumbnail - image - .attr('src', this.load($image)) - .css('visibility', 'hidden'); - - this.loaded(image, function () { - image.css('visibility', 'visible'); - // toggle the gallery - root.addClass('clearing-blackout'); - container.addClass('clearing-container'); - visible_image.show(); - this.fix_height(target) - .caption(visible_image.find('.clearing-caption'), $image) - .center(image) - .shift(current, target, function () { - target.siblings().removeClass('visible'); - target.addClass('visible'); - }); - }.bind(this)); - } - }, - - close : function (e, el) { - e.preventDefault(); - - var root = (function (target) { - if (/blackout/.test(target.selector)) { - return target; - } else { - return target.closest('.clearing-blackout'); - } - }($(el))), container, visible_image; - - if (el === e.target && root) { - container = root.find('div').first(); - visible_image = container.find('.visible-img'); - this.settings.prev_index = 0; - root.find('ul[data-clearing]') - .attr('style', '').closest('.clearing-blackout') - .removeClass('clearing-blackout'); - container.removeClass('clearing-container'); - visible_image.hide(); - } - - return false; - }, - - is_open : function (current) { - return current.parent().attr('style').length > 0; - }, - - keydown : function (e) { - var clearing = $('.clearing-blackout').find('ul[data-clearing]'); - - if (e.which === 39) this.go(clearing, 'next'); - if (e.which === 37) this.go(clearing, 'prev'); - if (e.which === 27) $('a.clearing-close').trigger('click'); - }, - - nav : function (e, direction) { - var clearing = $('.clearing-blackout').find('ul[data-clearing]'); - - e.preventDefault(); - this.go(clearing, direction); - }, - - resize : function () { - var image = $('.clearing-blackout .visible-img').find('img'); - - if (image.length) { - this.center(image); - } - }, - - // visual adjustments - fix_height : function (target) { - var lis = target.parent().children(), - self = this; - - lis.each(function () { - var li = $(this), - image = li.find('img'); - - if (li.height() > self.outerHeight(image)) { - li.addClass('fix-height'); - } - }) - .closest('ul') - .width(lis.length * 100 + '%'); - - return this; - }, - - update_paddles : function (target) { - var visible_image = target - .closest('.carousel') - .siblings('.visible-img'); - - if (target.next().length > 0) { - visible_image - .find('.clearing-main-next') - .removeClass('disabled'); - } else { - visible_image - .find('.clearing-main-next') - .addClass('disabled'); - } - - if (target.prev().length > 0) { - visible_image - .find('.clearing-main-prev') - .removeClass('disabled'); - } else { - visible_image - .find('.clearing-main-prev') - .addClass('disabled'); - } - }, - - center : function (target) { - if (!this.rtl) { - target.css({ - marginLeft : -(this.outerWidth(target) / 2), - marginTop : -(this.outerHeight(target) / 2) - }); - } else { - target.css({ - marginRight : -(this.outerWidth(target) / 2), - marginTop : -(this.outerHeight(target) / 2) - }); - } - return this; - }, - - // image loading and preloading - - load : function ($image) { - if ($image[0].nodeName === "A") { - var href = $image.attr('href'); - } else { - var href = $image.parent().attr('href'); - } - - this.preload($image); - - if (href) return href; - return $image.attr('src'); - }, - - preload : function ($image) { - this - .img($image.closest('li').next()) - .img($image.closest('li').prev()); - }, - - loaded : function (image, callback) { - // based on jquery.imageready.js - // @weblinc, @jsantell, (c) 2012 - - function loaded () { - callback(); - } - - function bindLoad () { - this.one('load', loaded); - - if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { - var src = this.attr( 'src' ), - param = src.match( /\?/ ) ? '&' : '?'; - - param += 'random=' + (new Date()).getTime(); - this.attr('src', src + param); - } - } - - if (!image.attr('src')) { - loaded(); - return; - } - - if (image[0].complete || image[0].readyState === 4) { - loaded(); - } else { - bindLoad.call(image); - } - }, - - img : function (img) { - if (img.length) { - var new_img = new Image(), - new_a = img.find('a'); - - if (new_a.length) { - new_img.src = new_a.attr('href'); - } else { - new_img.src = img.find('img').attr('src'); - } - } - return this; - }, - - // image caption - - caption : function (container, $image) { - var caption = $image.data('caption'); - - if (caption) { - container - .html(caption) - .show(); - } else { - container - .text('') - .hide(); - } - return this; - }, - - // directional methods - - go : function ($ul, direction) { - var current = $ul.find('.visible'), - target = current[direction](); - - if (target.length) { - target - .find('img') - .trigger('click', [current, target]); - } - }, - - shift : function (current, target, callback) { - var clearing = target.parent(), - old_index = this.settings.prev_index || target.index(), - direction = this.direction(clearing, current, target), - left = parseInt(clearing.css('left'), 10), - width = this.outerWidth(target), - skip_shift; - - // we use jQuery animate instead of CSS transitions because we - // need a callback to unlock the next animation - if (target.index() !== old_index && !/skip/.test(direction)){ - if (/left/.test(direction)) { - this.lock(); - clearing.animate({left : left + width}, 300, this.unlock()); - } else if (/right/.test(direction)) { - this.lock(); - clearing.animate({left : left - width}, 300, this.unlock()); - } - } else if (/skip/.test(direction)) { - // the target image is not adjacent to the current image, so - // do we scroll right or not - skip_shift = target.index() - this.settings.up_count; - this.lock(); - - if (skip_shift > 0) { - clearing.animate({left : -(skip_shift * width)}, 300, this.unlock()); - } else { - clearing.animate({left : 0}, 300, this.unlock()); - } - } - - callback(); - }, - - direction : function ($el, current, target) { - var lis = $el.find('li'), - li_width = this.outerWidth(lis) + (this.outerWidth(lis) / 4), - up_count = Math.floor(this.outerWidth($('.clearing-container')) / li_width) - 1, - target_index = lis.index(target), - response; - - this.settings.up_count = up_count; - - if (this.adjacent(this.settings.prev_index, target_index)) { - if ((target_index > up_count) - && target_index > this.settings.prev_index) { - response = 'right'; - } else if ((target_index > up_count - 1) - && target_index <= this.settings.prev_index) { - response = 'left'; - } else { - response = false; - } - } else { - response = 'skip'; - } - - this.settings.prev_index = target_index; - - return response; - }, - - adjacent : function (current_index, target_index) { - for (var i = target_index + 1; i >= target_index - 1; i--) { - if (i === current_index) return true; - } - return false; - }, - - // lock management - - lock : function () { - this.settings.locked = true; - }, - - unlock : function () { - this.settings.locked = false; - }, - - locked : function () { - return this.settings.locked; - }, - - // plugin management/browser quirks - - outerHTML : function (el) { - // support FireFox < 11 - return el.outerHTML || new XMLSerializer().serializeToString(el); - }, - - off : function () { - $(this.scope).off('.fndtn.clearing'); - $(window).off('.fndtn.clearing'); - this.remove_data(); // empty settings cache - this.settings.init = false; - }, - - reflow : function () { - this.init(); - } - }; - -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/foundation/foundation.cookie.js b/public/javascripts/foundation/foundation.cookie.js deleted file mode 100644 index b196e764a..000000000 --- a/public/javascripts/foundation/foundation.cookie.js +++ /dev/null @@ -1,74 +0,0 @@ -/*! - * jQuery Cookie Plugin v1.3 - * https://github.com/carhartl/jquery-cookie - * - * Copyright 2011, Klaus Hartl - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://www.opensource.org/licenses/mit-license.php - * http://www.opensource.org/licenses/GPL-2.0 - * - * Modified to work with Zepto.js by ZURB - */ -(function ($, document, undefined) { - - var pluses = /\+/g; - - function raw(s) { - return s; - } - - function decoded(s) { - return decodeURIComponent(s.replace(pluses, ' ')); - } - - var config = $.cookie = function (key, value, options) { - - // write - if (value !== undefined) { - options = $.extend({}, config.defaults, options); - - if (value === null) { - options.expires = -1; - } - - if (typeof options.expires === 'number') { - var days = options.expires, t = options.expires = new Date(); - t.setDate(t.getDate() + days); - } - - value = config.json ? JSON.stringify(value) : String(value); - - return (document.cookie = [ - encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value), - options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE - options.path ? '; path=' + options.path : '', - options.domain ? '; domain=' + options.domain : '', - options.secure ? '; secure' : '' - ].join('')); - } - - // read - var decode = config.raw ? raw : decoded; - var cookies = document.cookie.split('; '); - for (var i = 0, l = cookies.length; i < l; i++) { - var parts = cookies[i].split('='); - if (decode(parts.shift()) === key) { - var cookie = decode(parts.join('=')); - return config.json ? JSON.parse(cookie) : cookie; - } - } - - return null; - }; - - config.defaults = {}; - - $.removeCookie = function (key, options) { - if ($.cookie(key) !== null) { - $.cookie(key, null, options); - return true; - } - return false; - }; - -})(Foundation.zj, document); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.dropdown.js b/public/javascripts/foundation/foundation.dropdown.js deleted file mode 100644 index 22b55243b..000000000 --- a/public/javascripts/foundation/foundation.dropdown.js +++ /dev/null @@ -1,177 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.dropdown = { - name : 'dropdown', - - version : '4.3.0', - - settings : { - activeClass: 'open', - is_hover: false, - opened: function(){}, - closed: function(){} - }, - - init : function (scope, method, options) { - this.scope = scope || this.scope; - Foundation.inherit(this, 'throttle scrollLeft data_options'); - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - - if (!this.settings.init) { - this.events(); - } - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - - $(this.scope) - .on('click.fndtn.dropdown', '[data-dropdown]', function (e) { - var settings = $.extend({}, self.settings, self.data_options($(this))); - e.preventDefault(); - - if (!settings.is_hover) self.toggle($(this)); - }) - .on('mouseenter', '[data-dropdown]', function (e) { - var settings = $.extend({}, self.settings, self.data_options($(this))); - if (settings.is_hover) self.toggle($(this)); - }) - .on('mouseleave', '[data-dropdown-content]', function (e) { - var target = $('[data-dropdown="' + $(this).attr('id') + '"]'), - settings = $.extend({}, self.settings, self.data_options(target)); - if (settings.is_hover) self.close.call(self, $(this)); - }) - .on('opened.fndtn.dropdown', '[data-dropdown-content]', this.settings.opened) - .on('closed.fndtn.dropdown', '[data-dropdown-content]', this.settings.closed); - - $(document).on('click.fndtn.dropdown', function (e) { - var parent = $(e.target).closest('[data-dropdown-content]'); - - if ($(e.target).data('dropdown')) { - return; - } - if (parent.length > 0 && ($(e.target).is('[data-dropdown-content]') || $.contains(parent.first()[0], e.target))) { - e.stopPropagation(); - return; - } - - self.close.call(self, $('[data-dropdown-content]')); - }); - - $(window).on('resize.fndtn.dropdown', self.throttle(function () { - self.resize.call(self); - }, 50)).trigger('resize'); - - this.settings.init = true; - }, - - close: function (dropdown) { - var self = this; - dropdown.each(function () { - if ($(this).hasClass(self.settings.activeClass)) { - $(this) - .css(Foundation.rtl ? 'right':'left', '-99999px') - .removeClass(self.settings.activeClass); - $(this).trigger('closed'); - } - }); - }, - - open: function (dropdown, target) { - this - .css(dropdown - .addClass(this.settings.activeClass), target); - dropdown.trigger('opened'); - }, - - toggle : function (target) { - var dropdown = $('#' + target.data('dropdown')); - - this.close.call(this, $('[data-dropdown-content]').not(dropdown)); - - if (dropdown.hasClass(this.settings.activeClass)) { - this.close.call(this, dropdown); - } else { - this.close.call(this, $('[data-dropdown-content]')) - this.open.call(this, dropdown, target); - } - }, - - resize : function () { - var dropdown = $('[data-dropdown-content].open'), - target = $("[data-dropdown='" + dropdown.attr('id') + "']"); - - if (dropdown.length && target.length) { - this.css(dropdown, target); - } - }, - - css : function (dropdown, target) { - var offset_parent = dropdown.offsetParent(); - // if (offset_parent.length > 0 && /body/i.test(dropdown.offsetParent()[0].nodeName)) { - var position = target.offset(); - position.top -= offset_parent.offset().top; - position.left -= offset_parent.offset().left; - // } else { - // var position = target.position(); - // } - - if (this.small()) { - dropdown.css({ - position : 'absolute', - width: '95%', - left: '2.5%', - 'max-width': 'none', - top: position.top + this.outerHeight(target) - }); - } else { - if (!Foundation.rtl && $(window).width() > this.outerWidth(dropdown) + target.offset().left) { - var left = position.left; - if (dropdown.hasClass('right')) { - dropdown.removeClass('right'); - } - } else { - if (!dropdown.hasClass('right')) { - dropdown.addClass('right'); - } - var left = position.left - (this.outerWidth(dropdown) - this.outerWidth(target)); - } - - dropdown.attr('style', '').css({ - position : 'absolute', - top: position.top + this.outerHeight(target), - left: left - }); - } - - return dropdown; - }, - - small : function () { - return $(window).width() < 768 || $('html').hasClass('lt-ie9'); - }, - - off: function () { - $(this.scope).off('.fndtn.dropdown'); - $('html, body').off('.fndtn.dropdown'); - $(window).off('.fndtn.dropdown'); - $('[data-dropdown-content]').off('.fndtn.dropdown'); - this.settings.init = false; - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/foundation/foundation.forms.js b/public/javascripts/foundation/foundation.forms.js deleted file mode 100644 index 6f852f4d9..000000000 --- a/public/javascripts/foundation/foundation.forms.js +++ /dev/null @@ -1,533 +0,0 @@ -(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.forms = { - name : 'forms', - - version: '4.3.1', - - cache: {}, - - settings: { - disable_class: 'no-custom', - last_combo : null - }, - - init: function (scope, method, options) { - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - if (!this.settings.init) { - this.events(); - } - - this.assemble(); - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - assemble: function () { - $('form.custom input[type="radio"]', $(this.scope)) - .not('[data-customforms="disabled"]') - .not('.' + this.settings.disable_class) - .each(this.append_custom_markup); - $('form.custom input[type="checkbox"]', $(this.scope)) - .not('[data-customforms="disabled"]') - .not('.' + this.settings.disable_class) - .each(this.append_custom_markup); - $('form.custom select', $(this.scope)) - .not('[data-customforms="disabled"]') - .not('.' + this.settings.disable_class) - .not('[multiple=multiple]') - .each(this.append_custom_select); - }, - - events: function () { - var self = this; - - $(this.scope) - .on('click.fndtn.forms', 'form.custom span.custom.checkbox', function (e) { - e.preventDefault(); - e.stopPropagation(); - self.toggle_checkbox($(this)); - }) - .on('click.fndtn.forms', 'form.custom span.custom.radio', function (e) { - e.preventDefault(); - e.stopPropagation(); - self.toggle_radio($(this)); - }) - .on('change.fndtn.forms', 'form.custom select', function (e, force_refresh) { - if ($(this).is('[data-customforms="disabled"]')) return; - self.refresh_custom_select($(this), force_refresh); - }) - .on('click.fndtn.forms', 'form.custom label', function (e) { - if ($(e.target).is('label')) { - var $associatedElement = $('#' + self.escape($(this).attr('for'))).not('[data-customforms="disabled"]'), - $customCheckbox, - $customRadio; - - if ($associatedElement.length !== 0) { - if ($associatedElement.attr('type') === 'checkbox') { - e.preventDefault(); - $customCheckbox = $(this).find('span.custom.checkbox'); - //the checkbox might be outside after the label or inside of another element - if ($customCheckbox.length === 0) { - $customCheckbox = $associatedElement.add(this).siblings('span.custom.checkbox').first(); - } - self.toggle_checkbox($customCheckbox); - } else if ($associatedElement.attr('type') === 'radio') { - e.preventDefault(); - $customRadio = $(this).find('span.custom.radio'); - //the radio might be outside after the label or inside of another element - if ($customRadio.length === 0) { - $customRadio = $associatedElement.add(this).siblings('span.custom.radio').first(); - } - self.toggle_radio($customRadio); - } - } - } - }) - .on('mousedown.fndtn.forms', 'form.custom div.custom.dropdown', function () { - return false; - }) - .on('click.fndtn.forms', 'form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector', function (e) { - var $this = $(this), - $dropdown = $this.closest('div.custom.dropdown'), - $select = getFirstPrevSibling($dropdown, 'select'); - - // make sure other dropdowns close - if (!$dropdown.hasClass('open')) $(self.scope).trigger('click'); - - e.preventDefault(); - if (false === $select.is(':disabled')) { - $dropdown.toggleClass('open'); - - if ($dropdown.hasClass('open')) { - $(self.scope).on('click.fndtn.forms.customdropdown', function () { - $dropdown.removeClass('open'); - $(self.scope).off('.fndtn.forms.customdropdown'); - }); - } else { - $(self.scope).on('.fndtn.forms.customdropdown'); - } - return false; - } - }) - .on('click.fndtn.forms touchend.fndtn.forms', 'form.custom div.custom.dropdown li', function (e) { - var $this = $(this), - $customDropdown = $this.closest('div.custom.dropdown'), - $select = getFirstPrevSibling($customDropdown, 'select'), - selectedIndex = 0; - - e.preventDefault(); - e.stopPropagation(); - - if (!$(this).hasClass('disabled')) { - $('div.dropdown').not($customDropdown).removeClass('open'); - - var $oldThis = $this.closest('ul') - .find('li.selected'); - $oldThis.removeClass('selected'); - - $this.addClass('selected'); - - $customDropdown.removeClass('open') - .find('a.current') - .text($this.text()); - - $this.closest('ul').find('li').each(function (index) { - if ($this[0] === this) { - selectedIndex = index; - } - }); - $select[0].selectedIndex = selectedIndex; - - //store the old value in data - $select.data('prevalue', $oldThis.html()); - - // Kick off full DOM change event - if (typeof (document.createEvent) != 'undefined') { - var event = document.createEvent('HTMLEvents'); - event.initEvent('change', true, true); - $select[0].dispatchEvent(event); - } else { - $select[0].fireEvent('onchange'); // for IE - } - } - }); - - $(window).on('keydown', function (e) { - var focus = document.activeElement, - self = Foundation.libs.forms, - dropdown = $('.custom.dropdown.open'); - - if (dropdown.length > 0) { - e.preventDefault(); - - if (e.which === 13) { - dropdown.find('li.selected').trigger('click'); - } - - if (e.which === 27) { - dropdown.removeClass('open'); - } - - if (e.which >= 65 && e.which <= 90) { - var next = self.go_to(dropdown, e.which), - current = dropdown.find('li.selected'); - - if (next) { - current.removeClass('selected'); - self.scrollTo(next.addClass('selected'), 300); - } - } - - if (e.which === 38) { - var current = dropdown.find('li.selected'), - prev = current.prev(':not(.disabled)'); - - if (prev.length > 0) { - prev.parent()[0].scrollTop = prev.parent().scrollTop() - self.outerHeight(prev); - current.removeClass('selected'); - prev.addClass('selected'); - } - } else if (e.which === 40) { - var current = dropdown.find('li.selected'), - next = current.next(':not(.disabled)'); - - if (next.length > 0) { - next.parent()[0].scrollTop = next.parent().scrollTop() + self.outerHeight(next); - current.removeClass('selected'); - next.addClass('selected'); - } - } - } - }); - - this.settings.init = true; - }, - - go_to: function (dropdown, character) { - var lis = dropdown.find('li'), - count = lis.length; - - if (count > 0) { - for (var i = 0; i < count; i++) { - var first_letter = lis.eq(i).text().charAt(0).toLowerCase(); - if (first_letter === String.fromCharCode(character).toLowerCase()) return lis.eq(i); - } - } - }, - - scrollTo: function (el, duration) { - if (duration < 0) return; - var parent = el.parent(); - var li_height = this.outerHeight(el); - var difference = (li_height * (el.index())) - parent.scrollTop(); - var perTick = difference / duration * 10; - - this.scrollToTimerCache = setTimeout(function () { - if (!isNaN(parseInt(perTick, 10))) { - parent[0].scrollTop = parent.scrollTop() + perTick; - this.scrollTo(el, duration - 10); - } - }.bind(this), 10); - }, - - append_custom_markup: function (idx, sel) { - var $this = $(sel), - type = $this.attr('type'), - $span = $this.next('span.custom.' + type); - - if (!$this.parent().hasClass('switch')) { - $this.addClass('hidden-field'); - } - - if ($span.length === 0) { - $span = $('').insertAfter($this); - } - - $span.toggleClass('checked', $this.is(':checked')); - $span.toggleClass('disabled', $this.is(':disabled')); - }, - - append_custom_select: function (idx, sel) { - var self = Foundation.libs.forms, - $this = $(sel), - $customSelect = $this.next('div.custom.dropdown'), - $customList = $customSelect.find('ul'), - $selectCurrent = $customSelect.find(".current"), - $selector = $customSelect.find(".selector"), - $options = $this.find('option'), - $selectedOption = $options.filter(':selected'), - copyClasses = $this.attr('class') ? $this.attr('class').split(' ') : [], - maxWidth = 0, - liHtml = '', - $listItems, - $currentSelect = false; - - if ($customSelect.length === 0) { - var customSelectSize = $this.hasClass('small') ? 'small' : $this.hasClass('medium') ? 'medium' : $this.hasClass('large') ? 'large' : $this.hasClass('expand') ? 'expand' : ''; - - $customSelect = $('
      '); - - $selector = $customSelect.find(".selector"); - $customList = $customSelect.find("ul"); - - liHtml = $options.map(function () { - var copyClasses = $(this).attr('class') ? $(this).attr('class') : ''; - return "
    • " + $(this).html() + "
    • "; - }).get().join(''); - - $customList.append(liHtml); - - $currentSelect = $customSelect - .prepend('' + $selectedOption.html() + '') - .find(".current"); - - $this.after($customSelect) - .addClass('hidden-field'); - } else { - liHtml = $options.map(function () { - return "
    • " + $(this).html() + "
    • "; - }) - .get().join(''); - - $customList.html('') - .append(liHtml); - - } // endif $customSelect.length === 0 - - self.assign_id($this, $customSelect); - $customSelect.toggleClass('disabled', $this.is(':disabled')); - $listItems = $customList.find('li'); - - // cache list length - self.cache[$customSelect.data('id')] = $listItems.length; - - $options.each(function (index) { - if (this.selected) { - $listItems.eq(index).addClass('selected'); - - if ($currentSelect) { - $currentSelect.html($(this).html()); - } - } - if ($(this).is(':disabled')) { - $listItems.eq(index).addClass('disabled'); - } - }); - - // - // If we're not specifying a predetermined form size. - // - if (!$customSelect.is('.small, .medium, .large, .expand')) { - - // ------------------------------------------------------------------------------------ - // This is a work-around for when elements are contained within hidden parents. - // For example, when custom-form elements are inside of a hidden reveal modal. - // - // We need to display the current custom list element as well as hidden parent elements - // in order to properly calculate the list item element's width property. - // ------------------------------------------------------------------------------------- - - $customSelect.addClass('open'); - // - // Quickly, display all parent elements. - // This should help us calcualate the width of the list item's within the drop down. - // - var self = Foundation.libs.forms; - self.hidden_fix.adjust($customList); - - maxWidth = (self.outerWidth($listItems) > maxWidth) ? self.outerWidth($listItems) : maxWidth; - - Foundation.libs.forms.hidden_fix.reset(); - - $customSelect.removeClass('open'); - - } // endif - - }, - - assign_id: function ($select, $customSelect) { - var id = [+new Date(), Foundation.random_str(5)].join('-'); - $select.attr('data-id', id); - $customSelect.attr('data-id', id); - }, - - refresh_custom_select: function ($select, force_refresh) { - var self = this; - var maxWidth = 0, - $customSelect = $select.next(), - $options = $select.find('option'), - $listItems = $customSelect.find('li'); - - if ($listItems.length !== this.cache[$customSelect.data('id')] || force_refresh) { - $customSelect.find('ul').html(''); - - $options.each(function () { - var $li = $('
    • ' + $(this).html() + '
    • '); - $customSelect.find('ul').append($li); - }); - - // re-populate - $options.each(function (index) { - if (this.selected) { - $customSelect.find('li').eq(index).addClass('selected'); - $customSelect.find('.current').html($(this).html()); - } - if ($(this).is(':disabled')) { - $customSelect.find('li').eq(index).addClass('disabled'); - } - }); - - // fix width - $customSelect.removeAttr('style') - .find('ul').removeAttr('style'); - $customSelect.find('li').each(function () { - $customSelect.addClass('open'); - if (self.outerWidth($(this)) > maxWidth) { - maxWidth = self.outerWidth($(this)); - } - $customSelect.removeClass('open'); - }); - - $listItems = $customSelect.find('li'); - // cache list length - this.cache[$customSelect.data('id')] = $listItems.length; - } - }, - - toggle_checkbox: function ($element) { - var $input = $element.prev(), - input = $input[0]; - - if (false === $input.is(':disabled')) { - input.checked = ((input.checked) ? false : true); - $element.toggleClass('checked'); - - $input.trigger('change'); - } - }, - - toggle_radio: function ($element) { - var $input = $element.prev(), - $form = $input.closest('form.custom'), - input = $input[0]; - - if (false === $input.is(':disabled')) { - $form.find('input[type="radio"][name="' + this.escape($input.attr('name')) + '"]') - .next().not($element).removeClass('checked'); - - if (!$element.hasClass('checked')) { - $element.toggleClass('checked'); - } - - input.checked = $element.hasClass('checked'); - - $input.trigger('change'); - } - }, - - escape: function (text) { - if (!text) return ''; - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); - }, - - hidden_fix: { - /** - * Sets all hidden parent elements and self to visibile. - * - * @method adjust - * @param {jQuery Object} $child - */ - - // We'll use this to temporarily store style properties. - tmp: [], - - // We'll use this to set hidden parent elements. - hidden: null, - - adjust: function ($child) { - // Internal reference. - var _self = this; - - // Set all hidden parent elements, including this element. - _self.hidden = $child.parents(); - _self.hidden = _self.hidden.add($child).filter(":hidden"); - - // Loop through all hidden elements. - _self.hidden.each(function () { - - // Cache the element. - var $elem = $(this); - - // Store the style attribute. - // Undefined if element doesn't have a style attribute. - _self.tmp.push($elem.attr('style')); - - // Set the element's display property to block, - // but ensure it's visibility is hidden. - $elem.css({ - 'visibility': 'hidden', - 'display': 'block' - }); - }); - - }, // end adjust - - /** - * Resets the elements previous state. - * - * @method reset - */ - reset: function () { - // Internal reference. - var _self = this; - // Loop through our hidden element collection. - _self.hidden.each(function (i) { - // Cache this element. - var $elem = $(this), - _tmp = _self.tmp[i]; // Get the stored 'style' value for this element. - - // If the stored value is undefined. - if (_tmp === undefined) - // Remove the style attribute. - $elem.removeAttr('style'); - else - // Otherwise, reset the element style attribute. - $elem.attr('style', _tmp); - }); - // Reset the tmp array. - _self.tmp = []; - // Reset the hidden elements variable. - _self.hidden = null; - - } // end reset - }, - - off: function () { - $(this.scope).off('.fndtn.forms'); - }, - - reflow : function () {} - }; - - var getFirstPrevSibling = function($el, selector) { - var $el = $el.prev(); - while ($el.length) { - if ($el.is(selector)) return $el; - $el = $el.prev(); - } - return $(); - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.interchange.js b/public/javascripts/foundation/foundation.interchange.js deleted file mode 100644 index 4c9067ceb..000000000 --- a/public/javascripts/foundation/foundation.interchange.js +++ /dev/null @@ -1,280 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.interchange = { - name : 'interchange', - - version : '4.2.4', - - cache : {}, - - images_loaded : false, - - settings : { - load_attr : 'interchange', - - named_queries : { - 'default' : 'only screen and (min-width: 1px)', - small : 'only screen and (min-width: 768px)', - medium : 'only screen and (min-width: 1280px)', - large : 'only screen and (min-width: 1440px)', - landscape : 'only screen and (orientation: landscape)', - portrait : 'only screen and (orientation: portrait)', - retina : 'only screen and (-webkit-min-device-pixel-ratio: 2),' + - 'only screen and (min--moz-device-pixel-ratio: 2),' + - 'only screen and (-o-min-device-pixel-ratio: 2/1),' + - 'only screen and (min-device-pixel-ratio: 2),' + - 'only screen and (min-resolution: 192dpi),' + - 'only screen and (min-resolution: 2dppx)' - }, - - directives : { - replace: function (el, path) { - if (/IMG/.test(el[0].nodeName)) { - var orig_path = el[0].src; - - if (new RegExp(path, 'i').test(orig_path)) return; - - el[0].src = path; - - return el.trigger('replace', [el[0].src, orig_path]); - } - } - } - }, - - init : function (scope, method, options) { - Foundation.inherit(this, 'throttle'); - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - this.events(); - this.images(); - - if (typeof method !== 'string') { - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - - $(window).on('resize.fndtn.interchange', self.throttle(function () { - self.resize.call(self); - }, 50)); - }, - - resize : function () { - var cache = this.cache; - - if(!this.images_loaded) { - setTimeout($.proxy(this.resize, this), 50); - return; - } - - for (var uuid in cache) { - if (cache.hasOwnProperty(uuid)) { - var passed = this.results(uuid, cache[uuid]); - - if (passed) { - this.settings.directives[passed - .scenario[1]](passed.el, passed.scenario[0]); - } - } - } - - }, - - results : function (uuid, scenarios) { - var count = scenarios.length; - - if (count > 0) { - var el = $('[data-uuid="' + uuid + '"]'); - - for (var i = count - 1; i >= 0; i--) { - var mq, rule = scenarios[i][2]; - if (this.settings.named_queries.hasOwnProperty(rule)) { - mq = matchMedia(this.settings.named_queries[rule]); - } else { - mq = matchMedia(rule); - } - if (mq.matches) { - return {el: el, scenario: scenarios[i]}; - } - } - } - - return false; - }, - - images : function (force_update) { - if (typeof this.cached_images === 'undefined' || force_update) { - return this.update_images(); - } - - return this.cached_images; - }, - - update_images : function () { - var images = document.getElementsByTagName('img'), - count = images.length, - loaded_count = 0, - data_attr = 'data-' + this.settings.load_attr; - - this.cached_images = []; - this.images_loaded = false; - - for (var i = count - 1; i >= 0; i--) { - this.loaded($(images[i]), function (image) { - loaded_count++; - if (image) { - var str = image.getAttribute(data_attr) || ''; - - if (str.length > 0) { - this.cached_images.push(image); - } - } - - if(loaded_count === count) { - this.images_loaded = true; - this.enhance(); - } - }.bind(this)); - } - - return 'deferred'; - }, - - // based on jquery.imageready.js - // @weblinc, @jsantell, (c) 2012 - - loaded : function (image, callback) { - function loaded () { - callback(image[0]); - } - - function bindLoad () { - this.one('load', loaded); - - if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { - var src = this.attr( 'src' ), - param = src.match( /\?/ ) ? '&' : '?'; - - param += 'random=' + (new Date()).getTime(); - this.attr('src', src + param); - } - } - - if (!image.attr('src')) { - loaded(); - return; - } - - if (image[0].complete || image[0].readyState === 4) { - loaded(); - } else { - bindLoad.call(image); - } - }, - - enhance : function () { - var count = this.images().length; - - for (var i = count - 1; i >= 0; i--) { - this._object($(this.images()[i])); - } - - return $(window).trigger('resize'); - }, - - parse_params : function (path, directive, mq) { - return [this.trim(path), this.convert_directive(directive), this.trim(mq)]; - }, - - convert_directive : function (directive) { - var trimmed = this.trim(directive); - - if (trimmed.length > 0) { - return trimmed; - } - - return 'replace'; - }, - - _object : function(el) { - var raw_arr = this.parse_data_attr(el), - scenarios = [], count = raw_arr.length; - - if (count > 0) { - for (var i = count - 1; i >= 0; i--) { - var split = raw_arr[i].split(/\((.*?)(\))$/); - - if (split.length > 1) { - var cached_split = split[0].split(','), - params = this.parse_params(cached_split[0], - cached_split[1], split[1]); - - scenarios.push(params); - } - } - } - - return this.store(el, scenarios); - }, - - uuid : function (separator) { - var delim = separator || "-"; - - function S4() { - return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); - } - - return (S4() + S4() + delim + S4() + delim + S4() - + delim + S4() + delim + S4() + S4() + S4()); - }, - - store : function (el, scenarios) { - var uuid = this.uuid(), - current_uuid = el.data('uuid'); - - if (current_uuid) return this.cache[current_uuid]; - - el.attr('data-uuid', uuid); - - return this.cache[uuid] = scenarios; - }, - - trim : function(str) { - if (typeof str === 'string') { - return $.trim(str); - } - - return str; - }, - - parse_data_attr : function (el) { - var raw = el.data(this.settings.load_attr).split(/\[(.*?)\]/), - count = raw.length, output = []; - - for (var i = count - 1; i >= 0; i--) { - if (raw[i].replace(/[\W\d]+/, '').length > 4) { - output.push(raw[i]); - } - } - - return output; - }, - - reflow : function () { - this.images(true); - } - - }; - -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.joyride.js b/public/javascripts/foundation/foundation.joyride.js deleted file mode 100644 index 7b99105ff..000000000 --- a/public/javascripts/foundation/foundation.joyride.js +++ /dev/null @@ -1,850 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.joyride = { - name : 'joyride', - - version : '4.2.2', - - defaults : { - expose : false, // turn on or off the expose feature - modal : false, // Whether to cover page with modal during the tour - tipLocation : 'bottom', // 'top' or 'bottom' in relation to parent - nubPosition : 'auto', // override on a per tooltip bases - scrollSpeed : 300, // Page scrolling speed in milliseconds, 0 = no scroll animation - timer : 0, // 0 = no timer , all other numbers = timer in milliseconds - startTimerOnClick : true, // true or false - true requires clicking the first button start the timer - startOffset : 0, // the index of the tooltip you want to start on (index of the li) - nextButton : true, // true or false to control whether a next button is used - tipAnimation : 'fade', // 'pop' or 'fade' in each tip - pauseAfter : [], // array of indexes where to pause the tour after - exposed : [], // array of expose elements - tipAnimationFadeSpeed: 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition - cookieMonster : false, // true or false to control whether cookies are used - cookieName : 'joyride', // Name the cookie you'll use - cookieDomain : false, // Will this cookie be attached to a domain, ie. '.notableapp.com' - cookieExpires : 365, // set when you would like the cookie to expire. - tipContainer : 'body', // Where will the tip be attached - postRideCallback : function (){}, // A method to call once the tour closes (canceled or complete) - postStepCallback : function (){}, // A method to call after each step - preStepCallback : function (){}, // A method to call before each step - preRideCallback : function (){}, // A method to call before the tour starts (passed index, tip, and cloned exposed element) - postExposeCallback : function (){}, // A method to call after an element has been exposed - template : { // HTML segments for tip layout - link : '×', - timer : '
      ', - tip : '
      ', - wrapper : '
      ', - button : '', - modal : '
      ', - expose : '
      ', - exposeCover: '
      ' - }, - exposeAddClass : '' // One or more space-separated class names to be added to exposed element - }, - - settings : {}, - - init : function (scope, method, options) { - this.scope = scope || this.scope; - Foundation.inherit(this, 'throttle data_options scrollTo scrollLeft delay'); - - if (typeof method === 'object') { - $.extend(true, this.settings, this.defaults, method); - } else { - $.extend(true, this.settings, this.defaults, options); - } - - if (typeof method !== 'string') { - if (!this.settings.init) this.events(); - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - - $(this.scope) - .on('click.joyride', '.joyride-next-tip, .joyride-modal-bg', function (e) { - e.preventDefault(); - - if (this.settings.$li.next().length < 1) { - this.end(); - } else if (this.settings.timer > 0) { - clearTimeout(this.settings.automate); - this.hide(); - this.show(); - this.startTimer(); - } else { - this.hide(); - this.show(); - } - - }.bind(this)) - - .on('click.joyride', '.joyride-close-tip', function (e) { - e.preventDefault(); - this.end(); - }.bind(this)); - - $(window).on('resize.fndtn.joyride', self.throttle(function () { - if ($('[data-joyride]').length > 0 && self.settings.$next_tip) { - if (self.settings.exposed.length > 0) { - var $els = $(self.settings.exposed); - - $els.each(function () { - var $this = $(this); - self.un_expose($this); - self.expose($this); - }); - } - - if (self.is_phone()) { - self.pos_phone(); - } else { - self.pos_default(false, true); - } - } - }, 100)); - - this.settings.init = true; - }, - - start : function () { - var self = this, - $this = $(this.scope).find('[data-joyride]'), - integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'], - int_settings_count = integer_settings.length; - - if (!this.settings.init) this.init(); - - // non configureable settings - this.settings.$content_el = $this; - this.settings.$body = $(this.settings.tipContainer); - this.settings.body_offset = $(this.settings.tipContainer).position(); - this.settings.$tip_content = this.settings.$content_el.find('> li'); - this.settings.paused = false; - this.settings.attempts = 0; - - this.settings.tipLocationPatterns = { - top: ['bottom'], - bottom: [], // bottom should not need to be repositioned - left: ['right', 'top', 'bottom'], - right: ['left', 'top', 'bottom'] - }; - - // can we create cookies? - if (typeof $.cookie !== 'function') { - this.settings.cookieMonster = false; - } - - // generate the tips and insert into dom. - if (!this.settings.cookieMonster || this.settings.cookieMonster && $.cookie(this.settings.cookieName) === null) { - this.settings.$tip_content.each(function (index) { - var $this = $(this); - $.extend(true, self.settings, self.data_options($this)); - // Make sure that settings parsed from data_options are integers where necessary - for (var i = int_settings_count - 1; i >= 0; i--) { - self.settings[integer_settings[i]] = parseInt(self.settings[integer_settings[i]], 10); - } - self.create({$li : $this, index : index}); - }); - - // show first tip - if (!this.settings.startTimerOnClick && this.settings.timer > 0) { - this.show('init'); - this.startTimer(); - } else { - this.show('init'); - } - - } - }, - - resume : function () { - this.set_li(); - this.show(); - }, - - tip_template : function (opts) { - var $blank, content; - - opts.tip_class = opts.tip_class || ''; - - $blank = $(this.settings.template.tip).addClass(opts.tip_class); - content = $.trim($(opts.li).html()) + - this.button_text(opts.button_text) + - this.settings.template.link + - this.timer_instance(opts.index); - - $blank.append($(this.settings.template.wrapper)); - $blank.first().attr('data-index', opts.index); - $('.joyride-content-wrapper', $blank).append(content); - - return $blank[0]; - }, - - timer_instance : function (index) { - var txt; - - if ((index === 0 && this.settings.startTimerOnClick && this.settings.timer > 0) || this.settings.timer === 0) { - txt = ''; - } else { - txt = this.outerHTML($(this.settings.template.timer)[0]); - } - return txt; - }, - - button_text : function (txt) { - if (this.settings.nextButton) { - txt = $.trim(txt) || 'Next'; - txt = this.outerHTML($(this.settings.template.button).append(txt)[0]); - } else { - txt = ''; - } - return txt; - }, - - create : function (opts) { - var buttonText = opts.$li.attr('data-button') || opts.$li.attr('data-text'), - tipClass = opts.$li.attr('class'), - $tip_content = $(this.tip_template({ - tip_class : tipClass, - index : opts.index, - button_text : buttonText, - li : opts.$li - })); - - $(this.settings.tipContainer).append($tip_content); - }, - - show : function (init) { - var $timer = null; - - // are we paused? - if (this.settings.$li === undefined - || ($.inArray(this.settings.$li.index(), this.settings.pauseAfter) === -1)) { - - // don't go to the next li if the tour was paused - if (this.settings.paused) { - this.settings.paused = false; - } else { - this.set_li(init); - } - - this.settings.attempts = 0; - - if (this.settings.$li.length && this.settings.$target.length > 0) { - if (init) { //run when we first start - this.settings.preRideCallback(this.settings.$li.index(), this.settings.$next_tip); - if (this.settings.modal) { - this.show_modal(); - } - } - - this.settings.preStepCallback(this.settings.$li.index(), this.settings.$next_tip); - - if (this.settings.modal && this.settings.expose) { - this.expose(); - } - - this.settings.tipSettings = $.extend(this.settings, this.data_options(this.settings.$li)); - - this.settings.timer = parseInt(this.settings.timer, 10); - - this.settings.tipSettings.tipLocationPattern = this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation]; - - // scroll if not modal - if (!/body/i.test(this.settings.$target.selector)) { - this.scroll_to(); - } - - if (this.is_phone()) { - this.pos_phone(true); - } else { - this.pos_default(true); - } - - $timer = this.settings.$next_tip.find('.joyride-timer-indicator'); - - if (/pop/i.test(this.settings.tipAnimation)) { - - $timer.width(0); - - if (this.settings.timer > 0) { - - this.settings.$next_tip.show(); - - this.delay(function () { - $timer.animate({ - width: $timer.parent().width() - }, this.settings.timer, 'linear'); - }.bind(this), this.settings.tipAnimationFadeSpeed); - - } else { - this.settings.$next_tip.show(); - - } - - - } else if (/fade/i.test(this.settings.tipAnimation)) { - - $timer.width(0); - - if (this.settings.timer > 0) { - - this.settings.$next_tip - .fadeIn(this.settings.tipAnimationFadeSpeed) - .show(); - - this.delay(function () { - $timer.animate({ - width: $timer.parent().width() - }, this.settings.timer, 'linear'); - }.bind(this), this.settings.tipAnimationFadeSpeed); - - } else { - this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed); - - } - } - - this.settings.$current_tip = this.settings.$next_tip; - - // skip non-existant targets - } else if (this.settings.$li && this.settings.$target.length < 1) { - - this.show(); - - } else { - - this.end(); - - } - } else { - - this.settings.paused = true; - - } - - }, - - is_phone : function () { - if (Modernizr) { - return Modernizr.mq('only screen and (max-width: 767px)') || $('.lt-ie9').length > 0; - } - - return (this.settings.$window.width() < 767); - }, - - hide : function () { - if (this.settings.modal && this.settings.expose) { - this.un_expose(); - } - - if (!this.settings.modal) { - $('.joyride-modal-bg').hide(); - } - - // Prevent scroll bouncing...wait to remove from layout - this.settings.$current_tip.css('visibility', 'hidden'); - setTimeout($.proxy(function() { - this.hide(); - this.css('visibility', 'visible'); - }, this.settings.$current_tip), 0); - this.settings.postStepCallback(this.settings.$li.index(), - this.settings.$current_tip); - }, - - set_li : function (init) { - if (init) { - this.settings.$li = this.settings.$tip_content.eq(this.settings.startOffset); - this.set_next_tip(); - this.settings.$current_tip = this.settings.$next_tip; - } else { - this.settings.$li = this.settings.$li.next(); - this.set_next_tip(); - } - - this.set_target(); - }, - - set_next_tip : function () { - this.settings.$next_tip = $(".joyride-tip-guide[data-index='" + this.settings.$li.index() + "']"); - this.settings.$next_tip.data('closed', ''); - }, - - set_target : function () { - var cl = this.settings.$li.attr('data-class'), - id = this.settings.$li.attr('data-id'), - $sel = function () { - if (id) { - return $(document.getElementById(id)); - } else if (cl) { - return $('.' + cl).first(); - } else { - return $('body'); - } - }; - - this.settings.$target = $sel(); - }, - - scroll_to : function () { - var window_half, tipOffset; - - window_half = $(window).height() / 2; - tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.outerHeight(this.settings.$next_tip)); - if (tipOffset > 0) { - this.scrollTo($('html, body'), tipOffset, this.settings.scrollSpeed); - } - }, - - paused : function () { - return ($.inArray((this.settings.$li.index() + 1), this.settings.pauseAfter) === -1); - }, - - restart : function () { - this.hide(); - this.settings.$li = undefined; - this.show('init'); - }, - - pos_default : function (init, resizing) { - var half_fold = Math.ceil($(window).height() / 2), - tip_position = this.settings.$next_tip.offset(), - $nub = this.settings.$next_tip.find('.joyride-nub'), - nub_width = Math.ceil(this.outerWidth($nub) / 2), - nub_height = Math.ceil(this.outerHeight($nub) / 2), - toggle = init || false; - - // tip must not be "display: none" to calculate position - if (toggle) { - this.settings.$next_tip.css('visibility', 'hidden'); - this.settings.$next_tip.show(); - } - - if (typeof resizing === 'undefined') { - resizing = false; - } - - if (!/body/i.test(this.settings.$target.selector)) { - - if (this.bottom()) { - var leftOffset = this.settings.$target.offset().left; - if (Foundation.rtl) { - leftOffset = this.settings.$target.offset().width - this.settings.$next_tip.width() + leftOffset; - } - this.settings.$next_tip.css({ - top: (this.settings.$target.offset().top + nub_height + this.outerHeight(this.settings.$target)), - left: leftOffset}); - - this.nub_position($nub, this.settings.tipSettings.nubPosition, 'top'); - - } else if (this.top()) { - var leftOffset = this.settings.$target.offset().left; - if (Foundation.rtl) { - leftOffset = this.settings.$target.offset().width - this.settings.$next_tip.width() + leftOffset; - } - this.settings.$next_tip.css({ - top: (this.settings.$target.offset().top - this.outerHeight(this.settings.$next_tip) - nub_height), - left: leftOffset}); - - this.nub_position($nub, this.settings.tipSettings.nubPosition, 'bottom'); - - } else if (this.right()) { - - this.settings.$next_tip.css({ - top: this.settings.$target.offset().top, - left: (this.outerWidth(this.settings.$target) + this.settings.$target.offset().left + nub_width)}); - - this.nub_position($nub, this.settings.tipSettings.nubPosition, 'left'); - - } else if (this.left()) { - - this.settings.$next_tip.css({ - top: this.settings.$target.offset().top, - left: (this.settings.$target.offset().left - this.outerWidth(this.settings.$next_tip) - nub_width)}); - - this.nub_position($nub, this.settings.tipSettings.nubPosition, 'right'); - - } - - if (!this.visible(this.corners(this.settings.$next_tip)) && this.settings.attempts < this.settings.tipSettings.tipLocationPattern.length) { - - $nub.removeClass('bottom') - .removeClass('top') - .removeClass('right') - .removeClass('left'); - - this.settings.tipSettings.tipLocation = this.settings.tipSettings.tipLocationPattern[this.settings.attempts]; - - this.settings.attempts++; - - this.pos_default(); - - } - - } else if (this.settings.$li.length) { - - this.pos_modal($nub); - - } - - if (toggle) { - this.settings.$next_tip.hide(); - this.settings.$next_tip.css('visibility', 'visible'); - } - - }, - - pos_phone : function (init) { - var tip_height = this.outerHeight(this.settings.$next_tip), - tip_offset = this.settings.$next_tip.offset(), - target_height = this.outerHeight(this.settings.$target), - $nub = $('.joyride-nub', this.settings.$next_tip), - nub_height = Math.ceil(this.outerHeight($nub) / 2), - toggle = init || false; - - $nub.removeClass('bottom') - .removeClass('top') - .removeClass('right') - .removeClass('left'); - - if (toggle) { - this.settings.$next_tip.css('visibility', 'hidden'); - this.settings.$next_tip.show(); - } - - if (!/body/i.test(this.settings.$target.selector)) { - - if (this.top()) { - - this.settings.$next_tip.offset({top: this.settings.$target.offset().top - tip_height - nub_height}); - $nub.addClass('bottom'); - - } else { - - this.settings.$next_tip.offset({top: this.settings.$target.offset().top + target_height + nub_height}); - $nub.addClass('top'); - - } - - } else if (this.settings.$li.length) { - this.pos_modal($nub); - } - - if (toggle) { - this.settings.$next_tip.hide(); - this.settings.$next_tip.css('visibility', 'visible'); - } - }, - - pos_modal : function ($nub) { - this.center(); - $nub.hide(); - - this.show_modal(); - }, - - show_modal : function () { - if (!this.settings.$next_tip.data('closed')) { - var joyridemodalbg = $('.joyride-modal-bg'); - if (joyridemodalbg.length < 1) { - $('body').append(this.settings.template.modal).show(); - } - - if (/pop/i.test(this.settings.tipAnimation)) { - joyridemodalbg.show(); - } else { - joyridemodalbg.fadeIn(this.settings.tipAnimationFadeSpeed); - } - } - }, - - expose : function () { - var expose, - exposeCover, - el, - origCSS, - origClasses, - randId = 'expose-'+Math.floor(Math.random()*10000); - - if (arguments.length > 0 && arguments[0] instanceof $) { - el = arguments[0]; - } else if(this.settings.$target && !/body/i.test(this.settings.$target.selector)){ - el = this.settings.$target; - } else { - return false; - } - - if(el.length < 1){ - if(window.console){ - console.error('element not valid', el); - } - return false; - } - - expose = $(this.settings.template.expose); - this.settings.$body.append(expose); - expose.css({ - top: el.offset().top, - left: el.offset().left, - width: this.outerWidth(el, true), - height: this.outerHeight(el, true) - }); - - exposeCover = $(this.settings.template.exposeCover); - - origCSS = { - zIndex: el.css('z-index'), - position: el.css('position') - }; - - origClasses = el.attr('class') == null ? '' : el.attr('class'); - - el.css('z-index',parseInt(expose.css('z-index'))+1); - - if (origCSS.position == 'static') { - el.css('position','relative'); - } - - el.data('expose-css',origCSS); - el.data('orig-class', origClasses); - el.attr('class', origClasses + ' ' + this.settings.exposeAddClass); - - exposeCover.css({ - top: el.offset().top, - left: el.offset().left, - width: this.outerWidth(el, true), - height: this.outerHeight(el, true) - }); - - this.settings.$body.append(exposeCover); - expose.addClass(randId); - exposeCover.addClass(randId); - el.data('expose', randId); - this.settings.postExposeCallback(this.settings.$li.index(), this.settings.$next_tip, el); - this.add_exposed(el); - }, - - un_expose : function () { - var exposeId, - el, - expose , - origCSS, - origClasses, - clearAll = false; - - if (arguments.length > 0 && arguments[0] instanceof $) { - el = arguments[0]; - } else if(this.settings.$target && !/body/i.test(this.settings.$target.selector)){ - el = this.settings.$target; - } else { - return false; - } - - if(el.length < 1){ - if (window.console) { - console.error('element not valid', el); - } - return false; - } - - exposeId = el.data('expose'); - expose = $('.' + exposeId); - - if (arguments.length > 1) { - clearAll = arguments[1]; - } - - if (clearAll === true) { - $('.joyride-expose-wrapper,.joyride-expose-cover').remove(); - } else { - expose.remove(); - } - - origCSS = el.data('expose-css'); - - if (origCSS.zIndex == 'auto') { - el.css('z-index', ''); - } else { - el.css('z-index', origCSS.zIndex); - } - - if (origCSS.position != el.css('position')) { - if(origCSS.position == 'static') {// this is default, no need to set it. - el.css('position', ''); - } else { - el.css('position', origCSS.position); - } - } - - origClasses = el.data('orig-class'); - el.attr('class', origClasses); - el.removeData('orig-classes'); - - el.removeData('expose'); - el.removeData('expose-z-index'); - this.remove_exposed(el); - }, - - add_exposed: function(el){ - this.settings.exposed = this.settings.exposed || []; - if (el instanceof $ || typeof el === 'object') { - this.settings.exposed.push(el[0]); - } else if (typeof el == 'string') { - this.settings.exposed.push(el); - } - }, - - remove_exposed: function(el){ - var search, count; - if (el instanceof $) { - search = el[0] - } else if (typeof el == 'string'){ - search = el; - } - - this.settings.exposed = this.settings.exposed || []; - count = this.settings.exposed.length; - - for (var i=0; i < count; i++) { - if (this.settings.exposed[i] == search) { - this.settings.exposed.splice(i, 1); - return; - } - } - }, - - center : function () { - var $w = $(window); - - this.settings.$next_tip.css({ - top : ((($w.height() - this.outerHeight(this.settings.$next_tip)) / 2) + $w.scrollTop()), - left : ((($w.width() - this.outerWidth(this.settings.$next_tip)) / 2) + this.scrollLeft($w)) - }); - - return true; - }, - - bottom : function () { - return /bottom/i.test(this.settings.tipSettings.tipLocation); - }, - - top : function () { - return /top/i.test(this.settings.tipSettings.tipLocation); - }, - - right : function () { - return /right/i.test(this.settings.tipSettings.tipLocation); - }, - - left : function () { - return /left/i.test(this.settings.tipSettings.tipLocation); - }, - - corners : function (el) { - var w = $(window), - window_half = w.height() / 2, - //using this to calculate since scroll may not have finished yet. - tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.settings.$next_tip.outerHeight()), - right = w.width() + this.scrollLeft(w), - offsetBottom = w.height() + tipOffset, - bottom = w.height() + w.scrollTop(), - top = w.scrollTop(); - - if (tipOffset < top) { - if (tipOffset < 0) { - top = 0; - } else { - top = tipOffset; - } - } - - if (offsetBottom > bottom) { - bottom = offsetBottom; - } - - return [ - el.offset().top < top, - right < el.offset().left + el.outerWidth(), - bottom < el.offset().top + el.outerHeight(), - this.scrollLeft(w) > el.offset().left - ]; - }, - - visible : function (hidden_corners) { - var i = hidden_corners.length; - - while (i--) { - if (hidden_corners[i]) return false; - } - - return true; - }, - - nub_position : function (nub, pos, def) { - if (pos === 'auto') { - nub.addClass(def); - } else { - nub.addClass(pos); - } - }, - - startTimer : function () { - if (this.settings.$li.length) { - this.settings.automate = setTimeout(function () { - this.hide(); - this.show(); - this.startTimer(); - }.bind(this), this.settings.timer); - } else { - clearTimeout(this.settings.automate); - } - }, - - end : function () { - if (this.settings.cookieMonster) { - $.cookie(this.settings.cookieName, 'ridden', { expires: this.settings.cookieExpires, domain: this.settings.cookieDomain }); - } - - if (this.settings.timer > 0) { - clearTimeout(this.settings.automate); - } - - if (this.settings.modal && this.settings.expose) { - this.un_expose(); - } - - this.settings.$next_tip.data('closed', true); - - $('.joyride-modal-bg').hide(); - this.settings.$current_tip.hide(); - this.settings.postStepCallback(this.settings.$li.index(), this.settings.$current_tip); - this.settings.postRideCallback(this.settings.$li.index(), this.settings.$current_tip); - $('.joyride-tip-guide').remove(); - }, - - outerHTML : function (el) { - // support FireFox < 11 - return el.outerHTML || new XMLSerializer().serializeToString(el); - }, - - off : function () { - $(this.scope).off('.joyride'); - $(window).off('.joyride'); - $('.joyride-close-tip, .joyride-next-tip, .joyride-modal-bg').off('.joyride'); - $('.joyride-tip-guide, .joyride-modal-bg').remove(); - clearTimeout(this.settings.automate); - this.settings = {}; - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/foundation/foundation.js b/public/javascripts/foundation/foundation.js deleted file mode 100644 index f1ac1422f..000000000 --- a/public/javascripts/foundation/foundation.js +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Foundation Responsive Library - * http://foundation.zurb.com - * Copyright 2013, ZURB - * Free to use under the MIT license. - * http://www.opensource.org/licenses/mit-license.php -*/ - -/*jslint unparam: true, browser: true, indent: 2 */ - -// Accommodate running jQuery or Zepto in noConflict() mode by -// using an anonymous function to redefine the $ shorthand name. -// See http://docs.jquery.com/Using_jQuery_with_Other_Libraries -// and http://zeptojs.com/ -var libFuncName = null; - -if (typeof jQuery === "undefined" && - typeof Zepto === "undefined" && - typeof $ === "function") { - libFuncName = $; -} else if (typeof jQuery === "function") { - libFuncName = jQuery; -} else if (typeof Zepto === "function") { - libFuncName = Zepto; -} else { - throw new TypeError(); -} - -(function ($, window, document, undefined) { - 'use strict'; - - /* - matchMedia() polyfill - Test a CSS media - type/query in JS. Authors & copyright (c) 2012: - Scott Jehl, Paul Irish, Nicholas Zakas. - Dual MIT/BSD license - - https://github.com/paulirish/matchMedia.js - */ - - window.matchMedia = window.matchMedia || (function( doc, undefined ) { - - "use strict"; - - var bool, - docElem = doc.documentElement, - refNode = docElem.firstElementChild || docElem.firstChild, - // fakeBody required for - fakeBody = doc.createElement( "body" ), - div = doc.createElement( "div" ); - - div.id = "mq-test-1"; - div.style.cssText = "position:absolute;top:-100em"; - fakeBody.style.background = "none"; - fakeBody.appendChild(div); - - return function(q){ - - div.innerHTML = "­"; - - docElem.insertBefore( fakeBody, refNode ); - bool = div.offsetWidth === 42; - docElem.removeChild( fakeBody ); - - return { - matches: bool, - media: q - }; - - }; - - }( document )); - - // add dusty browser stuff - if (!Array.prototype.filter) { - Array.prototype.filter = function(fun /*, thisp */) { - "use strict"; - - if (this == null) { - throw new TypeError(); - } - - var t = Object(this), - len = t.length >>> 0; - if (typeof fun !== "function") { - return; - } - - var res = [], - thisp = arguments[1]; - for (var i = 0; i < len; i++) { - if (i in t) { - var val = t[i]; // in case fun mutates this - if (fun && fun.call(thisp, val, i, t)) { - res.push(val); - } - } - } - - return res; - } - } - - if (!Function.prototype.bind) { - Function.prototype.bind = function (oThis) { - if (typeof this !== "function") { - // closest thing possible to the ECMAScript 5 internal IsCallable function - throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); - } - - var aArgs = Array.prototype.slice.call(arguments, 1), - fToBind = this, - fNOP = function () {}, - fBound = function () { - return fToBind.apply(this instanceof fNOP && oThis - ? this - : oThis, - aArgs.concat(Array.prototype.slice.call(arguments))); - }; - - fNOP.prototype = this.prototype; - fBound.prototype = new fNOP(); - - return fBound; - }; - } - - if (!Array.prototype.indexOf) { - Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { - "use strict"; - if (this == null) { - throw new TypeError(); - } - var t = Object(this); - var len = t.length >>> 0; - if (len === 0) { - return -1; - } - var n = 0; - if (arguments.length > 1) { - n = Number(arguments[1]); - if (n != n) { // shortcut for verifying if it's NaN - n = 0; - } else if (n != 0 && n != Infinity && n != -Infinity) { - n = (n > 0 || -1) * Math.floor(Math.abs(n)); - } - } - if (n >= len) { - return -1; - } - var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); - for (; k < len; k++) { - if (k in t && t[k] === searchElement) { - return k; - } - } - return -1; - } - } - - // fake stop() for zepto. - $.fn.stop = $.fn.stop || function() { - return this; - }; - - window.Foundation = { - name : 'Foundation', - - version : '4.3.1', - - cache : {}, - - init : function (scope, libraries, method, options, response, /* internal */ nc) { - var library_arr, - args = [scope, method, options, response], - responses = [], - nc = nc || false; - - // disable library error catching, - // used for development only - if (nc) this.nc = nc; - - // check RTL - this.rtl = /rtl/i.test($('html').attr('dir')); - - // set foundation global scope - this.scope = scope || this.scope; - - if (libraries && typeof libraries === 'string' && !/reflow/i.test(libraries)) { - if (/off/i.test(libraries)) return this.off(); - - library_arr = libraries.split(' '); - - if (library_arr.length > 0) { - for (var i = library_arr.length - 1; i >= 0; i--) { - responses.push(this.init_lib(library_arr[i], args)); - } - } - } else { - if (/reflow/i.test(libraries)) args[1] = 'reflow'; - - for (var lib in this.libs) { - responses.push(this.init_lib(lib, args)); - } - } - - // if first argument is callback, add to args - if (typeof libraries === 'function') { - args.unshift(libraries); - } - - return this.response_obj(responses, args); - }, - - response_obj : function (response_arr, args) { - for (var i = 0, len = args.length; i < len; i++) { - if (typeof args[i] === 'function') { - return args[i]({ - errors: response_arr.filter(function (s) { - if (typeof s === 'string') return s; - }) - }); - } - } - - return response_arr; - }, - - init_lib : function (lib, args) { - return this.trap(function () { - if (this.libs.hasOwnProperty(lib)) { - this.patch(this.libs[lib]); - return this.libs[lib].init.apply(this.libs[lib], args); - } else { - return function () {}; - } - }.bind(this), lib); - }, - - trap : function (fun, lib) { - if (!this.nc) { - try { - return fun(); - } catch (e) { - return this.error({name: lib, message: 'could not be initialized', more: e.name + ' ' + e.message}); - } - } - - return fun(); - }, - - patch : function (lib) { - this.fix_outer(lib); - lib.scope = this.scope; - lib.rtl = this.rtl; - }, - - inherit : function (scope, methods) { - var methods_arr = methods.split(' '); - - for (var i = methods_arr.length - 1; i >= 0; i--) { - if (this.lib_methods.hasOwnProperty(methods_arr[i])) { - this.libs[scope.name][methods_arr[i]] = this.lib_methods[methods_arr[i]]; - } - } - }, - - random_str : function (length) { - var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); - - if (!length) { - length = Math.floor(Math.random() * chars.length); - } - - var str = ''; - for (var i = 0; i < length; i++) { - str += chars[Math.floor(Math.random() * chars.length)]; - } - return str; - }, - - libs : {}, - - // methods that can be inherited in libraries - lib_methods : { - set_data : function (node, data) { - // this.name references the name of the library calling this method - var id = [this.name,+new Date(),Foundation.random_str(5)].join('-'); - - Foundation.cache[id] = data; - node.attr('data-' + this.name + '-id', id); - return data; - }, - - get_data : function (node) { - return Foundation.cache[node.attr('data-' + this.name + '-id')]; - }, - - remove_data : function (node) { - if (node) { - delete Foundation.cache[node.attr('data-' + this.name + '-id')]; - node.attr('data-' + this.name + '-id', ''); - } else { - $('[data-' + this.name + '-id]').each(function () { - delete Foundation.cache[$(this).attr('data-' + this.name + '-id')]; - $(this).attr('data-' + this.name + '-id', ''); - }); - } - }, - - throttle : function(fun, delay) { - var timer = null; - return function () { - var context = this, args = arguments; - clearTimeout(timer); - timer = setTimeout(function () { - fun.apply(context, args); - }, delay); - }; - }, - - // parses data-options attribute on nodes and turns - // them into an object - data_options : function (el) { - var opts = {}, ii, p, - opts_arr = (el.attr('data-options') || ':').split(';'), - opts_len = opts_arr.length; - - function isNumber (o) { - return ! isNaN (o-0) && o !== null && o !== "" && o !== false && o !== true; - } - - function trim(str) { - if (typeof str === 'string') return $.trim(str); - return str; - } - - // parse options - for (ii = opts_len - 1; ii >= 0; ii--) { - p = opts_arr[ii].split(':'); - - if (/true/i.test(p[1])) p[1] = true; - if (/false/i.test(p[1])) p[1] = false; - if (isNumber(p[1])) p[1] = parseInt(p[1], 10); - - if (p.length === 2 && p[0].length > 0) { - opts[trim(p[0])] = trim(p[1]); - } - } - - return opts; - }, - - delay : function (fun, delay) { - return setTimeout(fun, delay); - }, - - // animated scrolling - scrollTo : function (el, to, duration) { - if (duration < 0) return; - var difference = to - $(window).scrollTop(); - var perTick = difference / duration * 10; - - this.scrollToTimerCache = setTimeout(function() { - if (!isNaN(parseInt(perTick, 10))) { - window.scrollTo(0, $(window).scrollTop() + perTick); - this.scrollTo(el, to, duration - 10); - } - }.bind(this), 10); - }, - - // not supported in core Zepto - scrollLeft : function (el) { - if (!el.length) return; - return ('scrollLeft' in el[0]) ? el[0].scrollLeft : el[0].pageXOffset; - }, - - // test for empty object or array - empty : function (obj) { - if (obj.length && obj.length > 0) return false; - if (obj.length && obj.length === 0) return true; - - for (var key in obj) { - if (hasOwnProperty.call(obj, key)) return false; - } - - return true; - } - }, - - fix_outer : function (lib) { - lib.outerHeight = function (el, bool) { - if (typeof Zepto === 'function') { - return el.height(); - } - - if (typeof bool !== 'undefined') { - return el.outerHeight(bool); - } - - return el.outerHeight(); - }; - - lib.outerWidth = function (el, bool) { - if (typeof Zepto === 'function') { - return el.width(); - } - - if (typeof bool !== 'undefined') { - return el.outerWidth(bool); - } - - return el.outerWidth(); - }; - }, - - error : function (error) { - return error.name + ' ' + error.message + '; ' + error.more; - }, - - // remove all foundation events. - off: function () { - $(this.scope).off('.fndtn'); - $(window).off('.fndtn'); - return true; - }, - - zj : $ - }; - - $.fn.foundation = function () { - var args = Array.prototype.slice.call(arguments, 0); - - return this.each(function () { - Foundation.init.apply(Foundation, [this].concat(args)); - return this; - }); - }; - -}(libFuncName, this, this.document)); diff --git a/public/javascripts/foundation/foundation.magellan.js b/public/javascripts/foundation/foundation.magellan.js deleted file mode 100644 index 26eb614c2..000000000 --- a/public/javascripts/foundation/foundation.magellan.js +++ /dev/null @@ -1,135 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.magellan = { - name : 'magellan', - - version : '4.2.2', - - settings : { - activeClass: 'active', - threshold: 0 - }, - - init : function (scope, method, options) { - this.scope = scope || this.scope; - Foundation.inherit(this, 'data_options'); - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } - - if (typeof method !== 'string') { - if (!this.settings.init) { - this.fixed_magellan = $("[data-magellan-expedition]"); - this.set_threshold(); - this.last_destination = $('[data-magellan-destination]').last(); - this.events(); - } - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - $(this.scope).on('arrival.fndtn.magellan', '[data-magellan-arrival]', function (e) { - var $destination = $(this), - $expedition = $destination.closest('[data-magellan-expedition]'), - activeClass = $expedition.attr('data-magellan-active-class') - || self.settings.activeClass; - - $destination - .closest('[data-magellan-expedition]') - .find('[data-magellan-arrival]') - .not($destination) - .removeClass(activeClass); - $destination.addClass(activeClass); - }); - - this.fixed_magellan - .on('update-position.fndtn.magellan', function(){ - var $el = $(this); - // $el.data("magellan-fixed-position",""); - // $el.data("magellan-top-offset", ""); - }) - .trigger('update-position'); - - $(window) - .on('resize.fndtn.magellan', function() { - this.fixed_magellan.trigger('update-position'); - }.bind(this)) - - .on('scroll.fndtn.magellan', function() { - var windowScrollTop = $(window).scrollTop(); - self.fixed_magellan.each(function() { - var $expedition = $(this); - if (typeof $expedition.data('magellan-top-offset') === 'undefined') { - $expedition.data('magellan-top-offset', $expedition.offset().top); - } - if (typeof $expedition.data('magellan-fixed-position') === 'undefined') { - $expedition.data('magellan-fixed-position', false) - } - var fixed_position = (windowScrollTop + self.settings.threshold) > $expedition.data("magellan-top-offset"); - var attr = $expedition.attr('data-magellan-top-offset'); - - if ($expedition.data("magellan-fixed-position") != fixed_position) { - $expedition.data("magellan-fixed-position", fixed_position); - if (fixed_position) { - $expedition.addClass('fixed'); - $expedition.css({position:"fixed", top:0}); - } else { - $expedition.removeClass('fixed'); - $expedition.css({position:"", top:""}); - } - if (fixed_position && typeof attr != 'undefined' && attr != false) { - $expedition.css({position:"fixed", top:attr + "px"}); - } - } - }); - }); - - - if (this.last_destination.length > 0) { - $(window).on('scroll.fndtn.magellan', function (e) { - var windowScrollTop = $(window).scrollTop(), - scrolltopPlusHeight = windowScrollTop + $(window).height(), - lastDestinationTop = Math.ceil(self.last_destination.offset().top); - - $('[data-magellan-destination]').each(function () { - var $destination = $(this), - destination_name = $destination.attr('data-magellan-destination'), - topOffset = $destination.offset().top - windowScrollTop; - - if (topOffset <= self.settings.threshold) { - $("[data-magellan-arrival='" + destination_name + "']").trigger('arrival'); - } - // In large screens we may hit the bottom of the page and dont reach the top of the last magellan-destination, so lets force it - if (scrolltopPlusHeight >= $(self.scope).height() && lastDestinationTop > windowScrollTop && lastDestinationTop < scrolltopPlusHeight) { - $('[data-magellan-arrival]').last().trigger('arrival'); - } - }); - }); - } - - this.settings.init = true; - }, - - set_threshold : function () { - if (!this.settings.threshold) { - this.settings.threshold = (this.fixed_magellan.length > 0) ? - this.outerHeight(this.fixed_magellan, true) : 0; - } - }, - - off : function () { - $(this.scope).off('.fndtn.magellan'); - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/foundation/foundation.orbit.js b/public/javascripts/foundation/foundation.orbit.js deleted file mode 100644 index ce5183b52..000000000 --- a/public/javascripts/foundation/foundation.orbit.js +++ /dev/null @@ -1,412 +0,0 @@ -;(function ($, window, document, undefined) { - 'use strict'; - - var noop = function() {}; - - var Orbit = function(el, settings) { - // Don't reinitialize plugin - if (el.hasClass(settings.slides_container_class)) { - return this; - } - - var self = this, - container, - slides_container = el, - number_container, - bullets_container, - timer_container, - idx = 0, - animate, - timer, - locked = false, - adjust_height_after = false; - - slides_container.children().first().addClass(settings.active_slide_class); - - self.update_slide_number = function(index) { - if (settings.slide_number) { - number_container.find('span:first').text(parseInt(index)+1); - number_container.find('span:last').text(slides_container.children().length); - } - if (settings.bullets) { - bullets_container.children().removeClass(settings.bullets_active_class); - $(bullets_container.children().get(index)).addClass(settings.bullets_active_class); - } - }; - - self.build_markup = function() { - slides_container.wrap('
      '); - container = slides_container.parent(); - slides_container.addClass(settings.slides_container_class); - - if (settings.navigation_arrows) { - container.append($('').addClass(settings.prev_class).append('')); - container.append($('').addClass(settings.next_class).append('')); - } - - if (settings.timer) { - timer_container = $('
      ').addClass(settings.timer_container_class); - timer_container.append(''); - timer_container.append($('
      ').addClass(settings.timer_progress_class)); - timer_container.addClass(settings.timer_paused_class); - container.append(timer_container); - } - - if (settings.slide_number) { - number_container = $('
      ').addClass(settings.slide_number_class); - number_container.append(' of '); - container.append(number_container); - } - - if (settings.bullets) { - bullets_container = $('
        ').addClass(settings.bullets_container_class); - container.append(bullets_container); - slides_container.children().each(function(idx, el) { - var bullet = $('
      1. ').attr('data-orbit-slide', idx); - bullets_container.append(bullet); - }); - } - - if (settings.stack_on_small) { - container.addClass(settings.stack_on_small_class); - } - - self.update_slide_number(0); - }; - - self._goto = function(next_idx, start_timer) { - // if (locked) {return false;} - if (next_idx === idx) {return false;} - if (typeof timer === 'object') {timer.restart();} - var slides = slides_container.children(); - - var dir = 'next'; - locked = true; - if (next_idx < idx) {dir = 'prev';} - if (next_idx >= slides.length) {next_idx = 0;} - else if (next_idx < 0) {next_idx = slides.length - 1;} - - var current = $(slides.get(idx)); - var next = $(slides.get(next_idx)); - - current.css('zIndex', 2); - next.css('zIndex', 4).addClass('active'); - - slides_container.trigger('orbit:before-slide-change'); - settings.before_slide_change(); - - var callback = function() { - var unlock = function() { - idx = next_idx; - locked = false; - if (start_timer === true) {timer = self.create_timer(); timer.start();} - self.update_slide_number(idx); - slides_container.trigger('orbit:after-slide-change',[{slide_number: idx, total_slides: slides.length}]); - settings.after_slide_change(idx, slides.length); - }; - if (slides_container.height() != next.height()) { - slides_container.animate({'height': next.height()}, 250, 'linear', unlock); - } else { - unlock(); - } - }; - - if (slides.length === 1) {callback(); return false;} - - var start_animation = function() { - if (dir === 'next') {animate.next(current, next, callback);} - if (dir === 'prev') {animate.prev(current, next, callback);} - }; - - if (next.height() > slides_container.height()) { - slides_container.animate({'height': next.height()}, 250, 'linear', start_animation); - } else { - start_animation(); - } - }; - - self.next = function(e) { - e.stopImmediatePropagation(); - e.preventDefault(); - self._goto(idx + 1); - }; - - self.prev = function(e) { - e.stopImmediatePropagation(); - e.preventDefault(); - self._goto(idx - 1); - }; - - self.link_custom = function(e) { - e.preventDefault(); - var link = $(this).attr('data-orbit-link'); - if ((typeof link === 'string') && (link = $.trim(link)) != "") { - var slide = container.find('[data-orbit-slide='+link+']'); - if (slide.index() != -1) {self._goto(slide.index());} - } - }; - - self.link_bullet = function(e) { - var index = $(this).attr('data-orbit-slide'); - if ((typeof index === 'string') && (index = $.trim(index)) != "") { - self._goto(index); - } - } - - self.timer_callback = function() { - self._goto(idx + 1, true); - } - - self.compute_dimensions = function() { - var current = $(slides_container.children().get(idx)); - var h = current.height(); - if (!settings.variable_height) { - slides_container.children().each(function(){ - if ($(this).height() > h) { h = $(this).height(); } - }); - } - slides_container.height(h); - }; - - self.create_timer = function() { - var t = new Timer( - container.find('.'+settings.timer_container_class), - settings, - self.timer_callback - ); - return t; - }; - - self.stop_timer = function() { - if (typeof timer === 'object') timer.stop(); - }; - - self.toggle_timer = function() { - var t = container.find('.'+settings.timer_container_class); - if (t.hasClass(settings.timer_paused_class)) { - if (typeof timer === 'undefined') {timer = self.create_timer();} - timer.start(); - } - else { - if (typeof timer === 'object') {timer.stop();} - } - }; - - self.init = function() { - self.build_markup(); - if (settings.timer) {timer = self.create_timer(); timer.start();} - animate = new FadeAnimation(slides_container); - if (settings.animation === 'slide') - animate = new SlideAnimation(slides_container); - container.on('click', '.'+settings.next_class, self.next); - container.on('click', '.'+settings.prev_class, self.prev); - container.on('click', '[data-orbit-slide]', self.link_bullet); - container.on('click', self.toggle_timer); - container.on('touchstart.fndtn.orbit', function(e) { - if (!e.touches) {e = e.originalEvent;} - var data = { - start_page_x: e.touches[0].pageX, - start_page_y: e.touches[0].pageY, - start_time: (new Date()).getTime(), - delta_x: 0, - is_scrolling: undefined - }; - container.data('swipe-transition', data); - e.stopPropagation(); - }) - .on('touchmove.fndtn.orbit', function(e) { - if (!e.touches) { e = e.originalEvent; } - // Ignore pinch/zoom events - if(e.touches.length > 1 || e.scale && e.scale !== 1) return; - - var data = container.data('swipe-transition'); - if (typeof data === 'undefined') {data = {};} - - data.delta_x = e.touches[0].pageX - data.start_page_x; - - if ( typeof data.is_scrolling === 'undefined') { - data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) ); - } - - if (!data.is_scrolling && !data.active) { - e.preventDefault(); - var direction = (data.delta_x < 0) ? (idx+1) : (idx-1); - data.active = true; - self._goto(direction); - } - }) - .on('touchend.fndtn.orbit', function(e) { - container.data('swipe-transition', {}); - e.stopPropagation(); - }) - .on('mouseenter.fndtn.orbit', function(e) { - if (settings.timer && settings.pause_on_hover) { - self.stop_timer(); - } - }) - .on('mouseleave.fndtn.orbit', function(e) { - if (settings.timer && settings.resume_on_mouseout) { - timer.start(); - } - }); - - $(document).on('click', '[data-orbit-link]', self.link_custom); - $(window).on('resize', self.compute_dimensions); - $(window).on('load', self.compute_dimensions); - slides_container.trigger('orbit:ready'); - }; - - self.init(); - }; - - var Timer = function(el, settings, callback) { - var self = this, - duration = settings.timer_speed, - progress = el.find('.'+settings.timer_progress_class), - start, - timeout, - left = -1; - - this.update_progress = function(w) { - var new_progress = progress.clone(); - new_progress.attr('style', ''); - new_progress.css('width', w+'%'); - progress.replaceWith(new_progress); - progress = new_progress; - }; - - this.restart = function() { - clearTimeout(timeout); - el.addClass(settings.timer_paused_class); - left = -1; - self.update_progress(0); - }; - - this.start = function() { - if (!el.hasClass(settings.timer_paused_class)) {return true;} - left = (left === -1) ? duration : left; - el.removeClass(settings.timer_paused_class); - start = new Date().getTime(); - progress.animate({'width': '100%'}, left, 'linear'); - timeout = setTimeout(function() { - self.restart(); - callback(); - }, left); - el.trigger('orbit:timer-started') - }; - - this.stop = function() { - if (el.hasClass(settings.timer_paused_class)) {return true;} - clearTimeout(timeout); - el.addClass(settings.timer_paused_class); - var end = new Date().getTime(); - left = left - (end - start); - var w = 100 - ((left / duration) * 100); - self.update_progress(w); - el.trigger('orbit:timer-stopped'); - }; - }; - - var SlideAnimation = function(container) { - var duration = 400; - var is_rtl = ($('html[dir=rtl]').length === 1); - var margin = is_rtl ? 'marginRight' : 'marginLeft'; - - this.next = function(current, next, callback) { - next.animate({margin: '0%'}, duration, 'linear', function() { - current.css(margin, '100%'); - callback(); - }); - }; - - this.prev = function(current, prev, callback) { - prev.css(margin, '-100%'); - prev.animate({margin:'0%'}, duration, 'linear', function() { - current.css(margin, '100%'); - callback(); - }); - }; - }; - - var FadeAnimation = function(container) { - var duration = 250; - - this.next = function(current, next, callback) { - next.css({'marginLeft':'0%', 'opacity':'0.01'}); - next.animate({'opacity':'1'}, duration, 'linear', function() { - current.css('marginLeft', '100%'); - callback(); - }); - }; - - this.prev = function(current, prev, callback) { - prev.css({'marginLeft':'0%', 'opacity':'0.01'}); - prev.animate({'opacity':'1'}, duration, 'linear', function() { - current.css('marginLeft', '100%'); - callback(); - }); - }; - }; - - - Foundation.libs = Foundation.libs || {}; - - Foundation.libs.orbit = { - name: 'orbit', - - version: '4.3.1', - - settings: { - animation: 'slide', - timer_speed: 10000, - pause_on_hover: true, - resume_on_mouseout: false, - animation_speed: 500, - stack_on_small: false, - navigation_arrows: true, - slide_number: true, - container_class: 'orbit-container', - stack_on_small_class: 'orbit-stack-on-small', - next_class: 'orbit-next', - prev_class: 'orbit-prev', - timer_container_class: 'orbit-timer', - timer_paused_class: 'paused', - timer_progress_class: 'orbit-progress', - slides_container_class: 'orbit-slides-container', - bullets_container_class: 'orbit-bullets', - bullets_active_class: 'active', - slide_number_class: 'orbit-slide-number', - caption_class: 'orbit-caption', - active_slide_class: 'active', - orbit_transition_class: 'orbit-transitioning', - bullets: true, - timer: true, - variable_height: false, - before_slide_change: noop, - after_slide_change: noop - }, - - init: function (scope, method, options) { - var self = this; - Foundation.inherit(self, 'data_options'); - - if (typeof method === 'object') { - $.extend(true, self.settings, method); - } - - if ($(scope).is('[data-orbit]')) { - var $el = $(scope); - var opts = self.data_options($el); - new Orbit($el, $.extend({},self.settings, opts)); - } - - $('[data-orbit]', scope).each(function(idx, el) { - var $el = $(el); - var opts = self.data_options($el); - new Orbit($el, $.extend({},self.settings, opts)); - }); - } - }; - - -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/foundation/foundation.placeholder.js b/public/javascripts/foundation/foundation.placeholder.js deleted file mode 100644 index e503b4ceb..000000000 --- a/public/javascripts/foundation/foundation.placeholder.js +++ /dev/null @@ -1,179 +0,0 @@ -/*! http://mths.be/placeholder v2.0.7 by @mathias - Modified to work with Zepto.js by ZURB -*/ -;(function(window, document, $) { - - var isInputSupported = 'placeholder' in document.createElement('input'), - isTextareaSupported = 'placeholder' in document.createElement('textarea'), - prototype = $.fn, - valHooks = $.valHooks, - hooks, - placeholder; - - if (isInputSupported && isTextareaSupported) { - - placeholder = prototype.placeholder = function() { - return this; - }; - - placeholder.input = placeholder.textarea = true; - - } else { - - placeholder = prototype.placeholder = function() { - var $this = this; - $this - .filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]') - .not('.placeholder') - .bind({ - 'focus.placeholder': clearPlaceholder, - 'blur.placeholder': setPlaceholder - }) - .data('placeholder-enabled', true) - .trigger('blur.placeholder'); - return $this; - }; - - placeholder.input = isInputSupported; - placeholder.textarea = isTextareaSupported; - - hooks = { - 'get': function(element) { - var $element = $(element); - return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value; - }, - 'set': function(element, value) { - var $element = $(element); - if (!$element.data('placeholder-enabled')) { - return element.value = value; - } - if (value == '') { - element.value = value; - // Issue #56: Setting the placeholder causes problems if the element continues to have focus. - if (element != document.activeElement) { - // We can't use `triggerHandler` here because of dummy text/password inputs :( - setPlaceholder.call(element); - } - } else if ($element.hasClass('placeholder')) { - clearPlaceholder.call(element, true, value) || (element.value = value); - } else { - element.value = value; - } - // `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363 - return $element; - } - }; - - isInputSupported || (valHooks.input = hooks); - isTextareaSupported || (valHooks.textarea = hooks); - - $(function() { - // Look for forms - $(document).delegate('form', 'submit.placeholder', function() { - // Clear the placeholder values so they don't get submitted - var $inputs = $('.placeholder', this).each(clearPlaceholder); - setTimeout(function() { - $inputs.each(setPlaceholder); - }, 10); - }); - }); - - // Clear placeholder values upon page reload - $(window).bind('beforeunload.placeholder', function() { - $('.placeholder').each(function() { - this.value = ''; - }); - }); - - } - - function args(elem) { - // Return an object of element attributes - var newAttrs = {}, - rinlinejQuery = /^jQuery\d+$/; - $.each(elem.attributes, function(i, attr) { - if (attr.specified && !rinlinejQuery.test(attr.name)) { - newAttrs[attr.name] = attr.value; - } - }); - return newAttrs; - } - - function clearPlaceholder(event, value) { - var input = this, - $input = $(input); - if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) { - if ($input.data('placeholder-password')) { - $input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id')); - // If `clearPlaceholder` was called from `$.valHooks.input.set` - if (event === true) { - return $input[0].value = value; - } - $input.focus(); - } else { - input.value = ''; - $input.removeClass('placeholder'); - input == document.activeElement && input.select(); - } - } - } - - function setPlaceholder() { - var $replacement, - input = this, - $input = $(input), - $origInput = $input, - id = this.id; - if (input.value == '') { - if (input.type == 'password') { - if (!$input.data('placeholder-textinput')) { - try { - $replacement = $input.clone().attr({ 'type': 'text' }); - } catch(e) { - $replacement = $('').attr($.extend(args(this), { 'type': 'text' })); - } - $replacement - .removeAttr('name') - .data({ - 'placeholder-password': true, - 'placeholder-id': id - }) - .bind('focus.placeholder', clearPlaceholder); - $input - .data({ - 'placeholder-textinput': $replacement, - 'placeholder-id': id - }) - .before($replacement); - } - $input = $input.removeAttr('id').hide().prev().attr('id', id).show(); - // Note: `$input[0] != input` now! - } - $input.addClass('placeholder'); - $input[0].value = $input.attr('placeholder'); - } else { - $input.removeClass('placeholder'); - } - } - -}(this, document, Foundation.zj)); - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.placeholder = { - name : 'placeholder', - - version : '4.2.2', - - init : function (scope, method, options) { - this.scope = scope || this.scope; - - if (typeof method !== 'string') { - window.onload = function () { - $('input, textarea').placeholder(); - } - } - } - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.reveal.js b/public/javascripts/foundation/foundation.reveal.js deleted file mode 100644 index 7663b0375..000000000 --- a/public/javascripts/foundation/foundation.reveal.js +++ /dev/null @@ -1,330 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.reveal = { - name : 'reveal', - - version : '4.2.2', - - locked : false, - - settings : { - animation: 'fadeAndPop', - animationSpeed: 250, - closeOnBackgroundClick: true, - closeOnEsc: true, - dismissModalClass: 'close-reveal-modal', - bgClass: 'reveal-modal-bg', - open: function(){}, - opened: function(){}, - close: function(){}, - closed: function(){}, - bg : $('.reveal-modal-bg'), - css : { - open : { - 'opacity': 0, - 'visibility': 'visible', - 'display' : 'block' - }, - close : { - 'opacity': 1, - 'visibility': 'hidden', - 'display': 'none' - } - } - }, - - init : function (scope, method, options) { - Foundation.inherit(this, 'data_options delay'); - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } else if (typeof options !== 'undefined') { - $.extend(true, this.settings, options); - } - - if (typeof method !== 'string') { - this.events(); - - return this.settings.init; - } else { - return this[method].call(this, options); - } - }, - - events : function () { - var self = this; - - $(this.scope) - .off('.fndtn.reveal') - .on('click.fndtn.reveal', '[data-reveal-id]', function (e) { - e.preventDefault(); - - if (!self.locked) { - var element = $(this), - ajax = element.data('reveal-ajax'); - - self.locked = true; - - if (typeof ajax === 'undefined') { - self.open.call(self, element); - } else { - var url = ajax === true ? element.attr('href') : ajax; - - self.open.call(self, element, {url: url}); - } - } - }) - .on('click.fndtn.reveal', this.close_targets(), function (e) { - e.preventDefault(); - if (!self.locked) { - var settings = $.extend({}, self.settings, self.data_options($('.reveal-modal.open'))); - if ($(e.target)[0] === $('.' + settings.bgClass)[0] && !settings.closeOnBackgroundClick) { - return; - } - - self.locked = true; - self.close.call(self, $(this).closest('.reveal-modal')); - } - }) - .on('open.fndtn.reveal', '.reveal-modal', this.settings.open) - .on('opened.fndtn.reveal', '.reveal-modal', this.settings.opened) - .on('opened.fndtn.reveal', '.reveal-modal', this.open_video) - .on('close.fndtn.reveal', '.reveal-modal', this.settings.close) - .on('closed.fndtn.reveal', '.reveal-modal', this.settings.closed) - .on('closed.fndtn.reveal', '.reveal-modal', this.close_video); - - $( 'body' ).bind( 'keyup.reveal', function ( event ) { - var open_modal = $('.reveal-modal.open'), - settings = $.extend({}, self.settings, self.data_options(open_modal)); - if ( event.which === 27 && settings.closeOnEsc) { // 27 is the keycode for the Escape key - open_modal.foundation('reveal', 'close'); - } - }); - - return true; - }, - - open : function (target, ajax_settings) { - if (target) { - if (typeof target.selector !== 'undefined') { - var modal = $('#' + target.data('reveal-id')); - } else { - var modal = $(this.scope); - - ajax_settings = target; - } - } else { - var modal = $(this.scope); - } - - if (!modal.hasClass('open')) { - var open_modal = $('.reveal-modal.open'); - - if (typeof modal.data('css-top') === 'undefined') { - modal.data('css-top', parseInt(modal.css('top'), 10)) - .data('offset', this.cache_offset(modal)); - } - - modal.trigger('open'); - - if (open_modal.length < 1) { - this.toggle_bg(modal); - } - - if (typeof ajax_settings === 'undefined' || !ajax_settings.url) { - this.hide(open_modal, this.settings.css.close); - this.show(modal, this.settings.css.open); - } else { - var self = this, - old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null; - - $.extend(ajax_settings, { - success: function (data, textStatus, jqXHR) { - if ( $.isFunction(old_success) ) { - old_success(data, textStatus, jqXHR); - } - - modal.html(data); - $(modal).foundation('section', 'reflow'); - - self.hide(open_modal, self.settings.css.close); - self.show(modal, self.settings.css.open); - } - }); - - $.ajax(ajax_settings); - } - } - }, - - close : function (modal) { - - var modal = modal && modal.length ? modal : $(this.scope), - open_modals = $('.reveal-modal.open'); - - if (open_modals.length > 0) { - this.locked = true; - modal.trigger('close'); - this.toggle_bg(modal); - this.hide(open_modals, this.settings.css.close); - } - }, - - close_targets : function () { - var base = '.' + this.settings.dismissModalClass; - - if (this.settings.closeOnBackgroundClick) { - return base + ', .' + this.settings.bgClass; - } - - return base; - }, - - toggle_bg : function (modal) { - if ($('.reveal-modal-bg').length === 0) { - this.settings.bg = $('
        ', {'class': this.settings.bgClass}) - .appendTo('body'); - } - - if (this.settings.bg.filter(':visible').length > 0) { - this.hide(this.settings.bg); - } else { - this.show(this.settings.bg); - } - }, - - show : function (el, css) { - // is modal - if (css) { - if (/pop/i.test(this.settings.animation)) { - css.top = $(window).scrollTop() - el.data('offset') + 'px'; - var end_css = { - top: $(window).scrollTop() + el.data('css-top') + 'px', - opacity: 1 - }; - - return this.delay(function () { - return el - .css(css) - .animate(end_css, this.settings.animationSpeed, 'linear', function () { - this.locked = false; - el.trigger('opened'); - }.bind(this)) - .addClass('open'); - }.bind(this), this.settings.animationSpeed / 2); - } - - if (/fade/i.test(this.settings.animation)) { - var end_css = {opacity: 1}; - - return this.delay(function () { - return el - .css(css) - .animate(end_css, this.settings.animationSpeed, 'linear', function () { - this.locked = false; - el.trigger('opened'); - }.bind(this)) - .addClass('open'); - }.bind(this), this.settings.animationSpeed / 2); - } - - return el.css(css).show().css({opacity: 1}).addClass('open').trigger('opened'); - } - - // should we animate the background? - if (/fade/i.test(this.settings.animation)) { - return el.fadeIn(this.settings.animationSpeed / 2); - } - - return el.show(); - }, - - hide : function (el, css) { - // is modal - if (css) { - if (/pop/i.test(this.settings.animation)) { - var end_css = { - top: - $(window).scrollTop() - el.data('offset') + 'px', - opacity: 0 - }; - - return this.delay(function () { - return el - .animate(end_css, this.settings.animationSpeed, 'linear', function () { - this.locked = false; - el.css(css).trigger('closed'); - }.bind(this)) - .removeClass('open'); - }.bind(this), this.settings.animationSpeed / 2); - } - - if (/fade/i.test(this.settings.animation)) { - var end_css = {opacity: 0}; - - return this.delay(function () { - return el - .animate(end_css, this.settings.animationSpeed, 'linear', function () { - this.locked = false; - el.css(css).trigger('closed'); - }.bind(this)) - .removeClass('open'); - }.bind(this), this.settings.animationSpeed / 2); - } - - return el.hide().css(css).removeClass('open').trigger('closed'); - } - - // should we animate the background? - if (/fade/i.test(this.settings.animation)) { - return el.fadeOut(this.settings.animationSpeed / 2); - } - - return el.hide(); - }, - - close_video : function (e) { - var video = $(this).find('.flex-video'), - iframe = video.find('iframe'); - - if (iframe.length > 0) { - iframe.attr('data-src', iframe[0].src); - iframe.attr('src', 'about:blank'); - video.hide(); - } - }, - - open_video : function (e) { - var video = $(this).find('.flex-video'), - iframe = video.find('iframe'); - - if (iframe.length > 0) { - var data_src = iframe.attr('data-src'); - if (typeof data_src === 'string') { - iframe[0].src = iframe.attr('data-src'); - } else { - var src = iframe[0].src; - iframe[0].src = undefined; - iframe[0].src = src; - } - video.show(); - } - }, - - cache_offset : function (modal) { - var offset = modal.show().height() + parseInt(modal.css('top'), 10); - - modal.hide(); - - return offset; - }, - - off : function () { - $(this.scope).off('.fndtn.reveal'); - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.section.js b/public/javascripts/foundation/foundation.section.js deleted file mode 100644 index 95fb64732..000000000 --- a/public/javascripts/foundation/foundation.section.js +++ /dev/null @@ -1,400 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -; -(function($, window, document) { - 'use strict'; - - Foundation.libs.section = { - name : 'section', - - version : '4.3.1', - - settings: { - deep_linking: false, - small_breakpoint: 768, - one_up: true, - section_selector: '[data-section]', - region_selector: 'section, .section, [data-section-region]', - title_selector: '.title, [data-section-title]', - //marker: container is resized - resized_data_attr: 'data-section-resized', - //marker: container should apply accordion style - small_style_data_attr: 'data-section-small-style', - content_selector: '.content, [data-section-content]', - nav_selector: '[data-section="vertical-nav"], [data-section="horizontal-nav"]', - active_class: 'active', - callback: function() {} - }, - - init: function(scope, method, options) { - var self = this; - Foundation.inherit(this, 'throttle data_options position_right offset_right'); - - if (typeof method === 'object') { - $.extend(true, self.settings, method); - } - - if (typeof method !== 'string') { - this.events(); - return true; - } else { - return this[method].call(this, options); - } - }, - - events: function() { - var self = this; - - //combine titles selector from settings for click event binding - var click_title_selectors = [], - section_selector = self.settings.section_selector, - region_selectors = self.settings.region_selector.split(","), - title_selectors = self.settings.title_selector.split(","); - - for (var i = 0, len = region_selectors.length; i < len; i++) { - var region_selector = region_selectors[i]; - - for (var j = 0, len1 = title_selectors.length; j < len1; j++) { - var title_selector = section_selector + ">" + region_selector + ">" + title_selectors[j]; - - click_title_selectors.push(title_selector + " a"); //or we can not do preventDefault for click event of - click_title_selectors.push(title_selector); - } - } - - $(self.scope) - .on('click.fndtn.section', click_title_selectors.join(","), function(e) { - var title = $(this).closest(self.settings.title_selector); - - self.close_navs(title); - if (title.siblings(self.settings.content_selector).length > 0) { - self.toggle_active.call(title[0], e); - } - }); - - $(window) - .on('resize.fndtn.section', self.throttle(function() { self.resize(); }, 30)) - .on('hashchange.fndtn.section', self.set_active_from_hash); - - $(document).on('click.fndtn.section', function (e) { - if (e.isPropagationStopped && e.isPropagationStopped()) return; - if (e.target === document) return; - self.close_navs($(e.target).closest(self.settings.title_selector)); - }); - - $(window).triggerHandler('resize.fndtn.section'); - $(window).triggerHandler('hashchange.fndtn.section'); - }, - - //close nav !one_up on click elsewhere - close_navs: function(except_nav_with_title) { - var self = Foundation.libs.section, - navsToClose = $(self.settings.nav_selector) - .filter(function() { return !$.extend({}, - self.settings, self.data_options($(this))).one_up; }); - - if (except_nav_with_title.length > 0) { - var section = except_nav_with_title.parent().parent(); - - if (self.is_horizontal_nav(section) || self.is_vertical_nav(section)) { - //exclude current nav from list - navsToClose = navsToClose.filter(function() { return this !== section[0]; }); - } - } - //close navs on click on title - navsToClose.children(self.settings.region_selector).removeClass(self.settings.active_class); - }, - - toggle_active: function(e) { - var $this = $(this), - self = Foundation.libs.section, - region = $this.parent(), - content = $this.siblings(self.settings.content_selector), - section = region.parent(), - settings = $.extend({}, self.settings, self.data_options(section)), - prev_active_region = section.children(self.settings.region_selector).filter("." + self.settings.active_class); - - //for anchors inside [data-section-title] - if (!settings.deep_linking && content.length > 0) { - e.preventDefault(); - } - - e.stopPropagation(); //do not catch same click again on parent - - if (!region.hasClass(self.settings.active_class)) { - prev_active_region.removeClass(self.settings.active_class); - region.addClass(self.settings.active_class); - //force resize for better performance (do not wait timer) - self.resize(region.find(self.settings.section_selector).not("[" + self.settings.resized_data_attr + "]"), true); - } else if (!settings.one_up && (self.small(section) || self.is_vertical_nav(section) || self.is_horizontal_nav(section) || self.is_accordion(section))) { - region.removeClass(self.settings.active_class); - } - settings.callback(section); - }, - - check_resize_timer: null, - - //main function that sets title and content positions; runs for :not(.resized) and :visible once when window width is medium up - //sections: - // selected sections to resize, are defined on resize forced by visibility changes - //ensure_has_active_region: - // is true when we force resize for no resized sections that were hidden and became visible, - // these sections can have no selected region, because all regions were hidden along with section on executing set_active_from_hash - resize: function(sections, ensure_has_active_region) { - - var self = Foundation.libs.section, - is_small_window = self.small($(document)), - //filter for section resize - should_be_resized = function (section, now_is_hidden) { - return !self.is_accordion(section) && - !section.is("[" + self.settings.resized_data_attr + "]") && - (!is_small_window || self.is_horizontal_tabs(section)) && - now_is_hidden === (section.css('display') === 'none' || - !section.parent().is(':visible')); - }; - - sections = sections || $(self.settings.section_selector); - - clearTimeout(self.check_resize_timer); - - if (!is_small_window) { - sections.removeAttr(self.settings.small_style_data_attr); - } - - //resize - sections.filter(function() { return should_be_resized($(this), false); }) - .each(function() { - var section = $(this), - regions = section.children(self.settings.region_selector), - titles = regions.children(self.settings.title_selector), - content = regions.children(self.settings.content_selector), - titles_max_height = 0; - - if (ensure_has_active_region && - section.children(self.settings.region_selector).filter("." + self.settings.active_class).length == 0) { - var settings = $.extend({}, self.settings, self.data_options(section)); - - if (!settings.deep_linking && (settings.one_up || !self.is_horizontal_nav(section) && - !self.is_vertical_nav(section) && !self.is_accordion(section))) { - regions.filter(":visible").first().addClass(self.settings.active_class); - } - } - - if (self.is_horizontal_tabs(section) || self.is_auto(section)) { - // region: position relative - // title: position absolute - // content: position static - var titles_sum_width = 0; - - titles.each(function() { - var title = $(this); - - if (title.is(":visible")) { - title.css(!self.rtl ? 'left' : 'right', titles_sum_width); - var title_h_border_width = parseInt(title.css("border-" + (self.rtl ? 'left' : 'right') + "-width"), 10); - - if (title_h_border_width.toString() === 'Nan') { - title_h_border_width = 0; - } - - titles_sum_width += self.outerWidth(title) - title_h_border_width; - titles_max_height = Math.max(titles_max_height, self.outerHeight(title)); - } - }); - titles.css('height', titles_max_height); - regions.each(function() { - var region = $(this), - region_content = region.children(self.settings.content_selector), - content_top_border_width = parseInt(region_content.css("border-top-width"), 10); - - if (content_top_border_width.toString() === 'Nan') { - content_top_border_width = 0; - } - - region.css('padding-top', titles_max_height - content_top_border_width); - }); - - section.css("min-height", titles_max_height); - } else if (self.is_horizontal_nav(section)) { - var first = true; - // region: positon relative, float left - // title: position static - // content: position absolute - titles.each(function() { - titles_max_height = Math.max(titles_max_height, self.outerHeight($(this))); - }); - - regions.each(function() { - var region = $(this); - - region.css("margin-left", "-" + (first ? section : region.children(self.settings.title_selector)).css("border-left-width")); - first = false; - }); - - regions.css("margin-top", "-" + section.css("border-top-width")); - titles.css('height', titles_max_height); - content.css('top', titles_max_height); - section.css("min-height", titles_max_height); - } else if (self.is_vertical_tabs(section)) { - var titles_sum_height = 0; - // region: position relative, for .active: fixed padding==title.width - // title: fixed width, position absolute - // content: position static - titles.each(function() { - var title = $(this); - - if (title.is(":visible")) { - title.css('top', titles_sum_height); - var title_top_border_width = parseInt(title.css("border-top-width"), 10); - - if (title_top_border_width.toString() === 'Nan') { - title_top_border_width = 0; - } - - titles_sum_height += self.outerHeight(title) - title_top_border_width; - } - }); - - content.css('min-height', titles_sum_height + 1); - } else if (self.is_vertical_nav(section)) { - var titles_max_width = 0, - first1 = true; - // region: positon relative - // title: position static - // content: position absolute - titles.each(function() { - titles_max_width = Math.max(titles_max_width, self.outerWidth($(this))); - }); - - regions.each(function () { - var region = $(this); - - region.css("margin-top", "-" + (first1 ? section : region.children(self.settings.title_selector)).css("border-top-width")); - first1 = false; - }); - - titles.css('width', titles_max_width); - content.css(!self.rtl ? 'left' : 'right', titles_max_width); - section.css('width', titles_max_width); - } - - section.attr(self.settings.resized_data_attr, true); - }); - - //wait elements to become visible then resize - if ($(self.settings.section_selector).filter(function() { return should_be_resized($(this), true); }).length > 0) - self.check_resize_timer = setTimeout(function() { - self.resize(sections.filter(function() { return should_be_resized($(this), false); }), true); - }, 700); - - if (is_small_window) { - sections.attr(self.settings.small_style_data_attr, true); - } - }, - - is_vertical_nav: function(el) { - return /vertical-nav/i.test(el.data('section')); - }, - - is_horizontal_nav: function(el) { - return /horizontal-nav/i.test(el.data('section')); - }, - - is_accordion: function(el) { - return /accordion/i.test(el.data('section')); - }, - - is_horizontal_tabs: function(el) { - return /^tabs$/i.test(el.data('section')); - }, - - is_vertical_tabs: function(el) { - return /vertical-tabs/i.test(el.data('section')); - }, - - is_auto: function (el) { - var data_section = el.data('section'); - return data_section === '' || /auto/i.test(data_section); - }, - - set_active_from_hash: function() { - var self = Foundation.libs.section, - hash = window.location.hash.substring(1), - sections = $(self.settings.section_selector); - - sections.each(function() { - var section = $(this), - settings = $.extend({}, self.settings, self.data_options(section)), - regions = section.children(self.settings.region_selector), - set_active_from_hash = settings.deep_linking && hash.length > 0, - selected = false; - - regions.each(function() { - var region = $(this); - - if (selected) { - region.removeClass(self.settings.active_class); - } else if (set_active_from_hash) { - var data_slug = region.children(self.settings.content_selector).data('slug'); - - if (data_slug && new RegExp(data_slug, 'i').test(hash)) { - if (!region.hasClass(self.settings.active_class)) - region.addClass(self.settings.active_class); - selected = true; - } else { - region.removeClass(self.settings.active_class); - } - } else if (region.hasClass(self.settings.active_class)) { - selected = true; - } - }); - - if (!selected && !settings.deep_linking && (settings.one_up || !self.is_horizontal_nav(section) && - !self.is_vertical_nav(section) && !self.is_accordion(section))) - regions.filter(":visible").first().addClass(self.settings.active_class); - }); - }, - - reflow: function() { - var self = Foundation.libs.section; - - $(self.settings.section_selector).removeAttr(self.settings.resized_data_attr); - self.throttle(function() { self.resize(); }, 30)(); - }, - - small: function(el) { - var settings = $.extend({}, this.settings, this.data_options(el)); - - if (this.is_horizontal_tabs(el)) { - return false; - } - if (el && this.is_accordion(el)) { - return true; - } - if ($('html').hasClass('lt-ie9')) { - return true; - } - if ($('html').hasClass('ie8compat')) { - return true; - } - return $(this.scope).width() < settings.small_breakpoint; - }, - - off: function() { - $(this.scope).off('.fndtn.section'); - $(window).off('.fndtn.section'); - $(document).off('.fndtn.section'); - } - }; - - //resize selected sections - $.fn.reflow_section = function(ensure_has_active_region) { - var section = this, - self = Foundation.libs.section; - - section.removeAttr(self.settings.resized_data_attr); - self.throttle(function() { self.resize(section, ensure_has_active_region); }, 30)(); - return this; - }; - -}(Foundation.zj, window, document)); diff --git a/public/javascripts/foundation/foundation.tooltips.js b/public/javascripts/foundation/foundation.tooltips.js deleted file mode 100644 index 75fb37cef..000000000 --- a/public/javascripts/foundation/foundation.tooltips.js +++ /dev/null @@ -1,208 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.tooltips = { - name : 'tooltips', - - version : '4.2.2', - - settings : { - selector : '.has-tip', - additionalInheritableClasses : [], - tooltipClass : '.tooltip', - appendTo: 'body', - 'disable-for-touch': false, - tipTemplate : function (selector, content) { - return '' + content + ''; - } - }, - - cache : {}, - - init : function (scope, method, options) { - Foundation.inherit(this, 'data_options'); - var self = this; - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } else if (typeof options !== 'undefined') { - $.extend(true, this.settings, options); - } - - if (typeof method !== 'string') { - if (Modernizr.touch) { - $(this.scope) - .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', - '[data-tooltip]', function (e) { - var settings = $.extend({}, self.settings, self.data_options($(this))); - if (!settings['disable-for-touch']) { - e.preventDefault(); - $(settings.tooltipClass).hide(); - self.showOrCreateTip($(this)); - } - }) - .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', - this.settings.tooltipClass, function (e) { - e.preventDefault(); - $(this).fadeOut(150); - }); - } else { - $(this.scope) - .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip', - '[data-tooltip]', function (e) { - var $this = $(this); - - if (/enter|over/i.test(e.type)) { - self.showOrCreateTip($this); - } else if (e.type === 'mouseout' || e.type === 'mouseleave') { - self.hide($this); - } - }); - } - - // $(this.scope).data('fndtn-tooltips', true); - } else { - return this[method].call(this, options); - } - - }, - - showOrCreateTip : function ($target) { - var $tip = this.getTip($target); - - if ($tip && $tip.length > 0) { - return this.show($target); - } - - return this.create($target); - }, - - getTip : function ($target) { - var selector = this.selector($target), - tip = null; - - if (selector) { - tip = $('span[data-selector="' + selector + '"]' + this.settings.tooltipClass); - } - - return (typeof tip === 'object') ? tip : false; - }, - - selector : function ($target) { - var id = $target.attr('id'), - dataSelector = $target.attr('data-tooltip') || $target.attr('data-selector'); - - if ((id && id.length < 1 || !id) && typeof dataSelector != 'string') { - dataSelector = 'tooltip' + Math.random().toString(36).substring(7); - $target.attr('data-selector', dataSelector); - } - - return (id && id.length > 0) ? id : dataSelector; - }, - - create : function ($target) { - var $tip = $(this.settings.tipTemplate(this.selector($target), $('
        ').html($target.attr('title')).html())), - classes = this.inheritable_classes($target); - - $tip.addClass(classes).appendTo(this.settings.appendTo); - if (Modernizr.touch) { - $tip.append('tap to close '); - } - $target.removeAttr('title').attr('title',''); - this.show($target); - }, - - reposition : function (target, tip, classes) { - var width, nub, nubHeight, nubWidth, column, objPos; - - tip.css('visibility', 'hidden').show(); - - width = target.data('width'); - nub = tip.children('.nub'); - nubHeight = this.outerHeight(nub); - nubWidth = this.outerHeight(nub); - - objPos = function (obj, top, right, bottom, left, width) { - return obj.css({ - 'top' : (top) ? top : 'auto', - 'bottom' : (bottom) ? bottom : 'auto', - 'left' : (left) ? left : 'auto', - 'right' : (right) ? right : 'auto', - 'width' : (width) ? width : 'auto' - }).end(); - }; - - objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', target.offset().left, width); - - if ($(window).width() < 767) { - objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', 12.5, $(this.scope).width()); - tip.addClass('tip-override'); - objPos(nub, -nubHeight, 'auto', 'auto', target.offset().left); - } else { - var left = target.offset().left; - if (Foundation.rtl) { - left = target.offset().left + target.offset().width - this.outerWidth(tip); - } - objPos(tip, (target.offset().top + this.outerHeight(target) + 10), 'auto', 'auto', left, width); - tip.removeClass('tip-override'); - if (classes && classes.indexOf('tip-top') > -1) { - objPos(tip, (target.offset().top - this.outerHeight(tip)), 'auto', 'auto', left, width) - .removeClass('tip-override'); - } else if (classes && classes.indexOf('tip-left') > -1) { - objPos(tip, (target.offset().top + (this.outerHeight(target) / 2) - nubHeight*2.5), 'auto', 'auto', (target.offset().left - this.outerWidth(tip) - nubHeight), width) - .removeClass('tip-override'); - } else if (classes && classes.indexOf('tip-right') > -1) { - objPos(tip, (target.offset().top + (this.outerHeight(target) / 2) - nubHeight*2.5), 'auto', 'auto', (target.offset().left + this.outerWidth(target) + nubHeight), width) - .removeClass('tip-override'); - } - } - - tip.css('visibility', 'visible').hide(); - }, - - inheritable_classes : function (target) { - var inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'noradius'].concat(this.settings.additionalInheritableClasses), - classes = target.attr('class'), - filtered = classes ? $.map(classes.split(' '), function (el, i) { - if ($.inArray(el, inheritables) !== -1) { - return el; - } - }).join(' ') : ''; - - return $.trim(filtered); - }, - - show : function ($target) { - var $tip = this.getTip($target); - - this.reposition($target, $tip, $target.attr('class')); - $tip.fadeIn(150); - }, - - hide : function ($target) { - var $tip = this.getTip($target); - - $tip.fadeOut(150); - }, - - // deprecate reload - reload : function () { - var $self = $(this); - - return ($self.data('fndtn-tooltips')) ? $self.foundationTooltips('destroy').foundationTooltips('init') : $self.foundationTooltips('init'); - }, - - off : function () { - $(this.scope).off('.fndtn.tooltip'); - $(this.settings.tooltipClass).each(function (i) { - $('[data-tooltip]').get(i).attr('title', $(this).text()); - }).remove(); - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); \ No newline at end of file diff --git a/public/javascripts/foundation/foundation.topbar.js b/public/javascripts/foundation/foundation.topbar.js deleted file mode 100644 index e9c172e46..000000000 --- a/public/javascripts/foundation/foundation.topbar.js +++ /dev/null @@ -1,300 +0,0 @@ -/*jslint unparam: true, browser: true, indent: 2 */ - -;(function ($, window, document, undefined) { - 'use strict'; - - Foundation.libs.topbar = { - name : 'topbar', - - version: '4.3.1', - - settings : { - index : 0, - stickyClass : 'sticky', - custom_back_text: true, - back_text: 'Back', - is_hover: true, - mobile_show_parent_link: true, - scrolltop : true, // jump to top when sticky nav menu toggle is clicked - init : false - }, - - init : function (section, method, options) { - Foundation.inherit(this, 'data_options'); - var self = this; - - if (typeof method === 'object') { - $.extend(true, this.settings, method); - } else if (typeof options !== 'undefined') { - $.extend(true, this.settings, options); - } - - if (typeof method !== 'string') { - - $('.top-bar, [data-topbar]').each(function () { - $.extend(true, self.settings, self.data_options($(this))); - self.settings.$w = $(window); - self.settings.$topbar = $(this); - self.settings.$section = self.settings.$topbar.find('section'); - self.settings.$titlebar = self.settings.$topbar.children('ul').first(); - self.settings.$topbar.data('index', 0); - - var breakpoint = $("
        ").insertAfter(self.settings.$topbar); - self.settings.breakPoint = breakpoint.width(); - breakpoint.remove(); - - self.assemble(); - - if (self.settings.is_hover) { - self.settings.$topbar.find('.has-dropdown').addClass('not-click'); - } - - if (self.settings.$topbar.parent().hasClass('fixed')) { - $('body').css('padding-top', self.outerHeight(self.settings.$topbar)); - } - }); - - if (!self.settings.init) { - this.events(); - } - - return this.settings.init; - } else { - // fire method - return this[method].call(this, options); - } - }, - - timer : null, - - events : function () { - var self = this; - var offst = this.outerHeight($('.top-bar, [data-topbar]')); - $(this.scope) - .off('.fndtn.topbar') - .on('click.fndtn.topbar', '.top-bar .toggle-topbar, [data-topbar] .toggle-topbar', function (e) { - var topbar = $(this).closest('.top-bar, [data-topbar]'), - section = topbar.find('section, .section'), - titlebar = topbar.children('ul').first(); - - e.preventDefault(); - - if (self.breakpoint()) { - if (!self.rtl) { - section.css({left: '0%'}); - section.find('>.name').css({left: '100%'}); - } else { - section.css({right: '0%'}); - section.find('>.name').css({right: '100%'}); - } - - section.find('li.moved').removeClass('moved'); - topbar.data('index', 0); - - topbar - .toggleClass('expanded') - .css('height', ''); - } - - if (!topbar.hasClass('expanded')) { - if (topbar.hasClass('fixed')) { - topbar.parent().addClass('fixed'); - topbar.removeClass('fixed'); - $('body').css('padding-top',offst); - } - } else if (topbar.parent().hasClass('fixed')) { - topbar.parent().removeClass('fixed'); - topbar.addClass('fixed'); - $('body').css('padding-top','0'); - - if (self.settings.scrolltop) { - window.scrollTo(0,0); - } - } - }) - - .on('click.fndtn.topbar', '.top-bar li.has-dropdown', function (e) { - if (self.breakpoint()) return; - - var li = $(this), - target = $(e.target), - topbar = li.closest('[data-topbar], .top-bar'), - is_hover = topbar.data('topbar'); - - if (self.settings.is_hover && !Modernizr.touch) return; - - e.stopImmediatePropagation(); - - if (target[0].nodeName === 'A' && target.parent().hasClass('has-dropdown')) { - e.preventDefault(); - } - - if (li.hasClass('hover')) { - li - .removeClass('hover') - .find('li') - .removeClass('hover'); - } else { - li.addClass('hover'); - } - }) - - .on('click.fndtn.topbar', '.top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a', function (e) { - if (self.breakpoint()) { - e.preventDefault(); - - var $this = $(this), - topbar = $this.closest('.top-bar, [data-topbar]'), - section = topbar.find('section, .section'), - titlebar = topbar.children('ul').first(), - dropdownHeight = $this.next('.dropdown').outerHeight(), - $selectedLi = $this.closest('li'); - - topbar.data('index', topbar.data('index') + 1); - $selectedLi.addClass('moved'); - - if (!self.rtl) { - section.css({left: -(100 * topbar.data('index')) + '%'}); - section.find('>.name').css({left: 100 * topbar.data('index') + '%'}); - } else { - section.css({right: -(100 * topbar.data('index')) + '%'}); - section.find('>.name').css({right: 100 * topbar.data('index') + '%'}); - } - - topbar.css('height', self.outerHeight($this.siblings('ul'), true) + self.height(titlebar)); - } - }); - - $(window).on('resize.fndtn.topbar', function () { - if (!self.breakpoint()) { - $('.top-bar, [data-topbar]') - .css('height', '') - .removeClass('expanded') - .find('li') - .removeClass('hover'); - } - }.bind(this)); - - $('body').on('click.fndtn.topbar', function (e) { - var parent = $(e.target).closest('[data-topbar], .top-bar'); - - if (parent.length > 0) { - return; - } - - $('.top-bar li, [data-topbar] li').removeClass('hover'); - }); - - // Go up a level on Click - $(this.scope).on('click.fndtn', '.top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back', function (e) { - e.preventDefault(); - - var $this = $(this), - topbar = $this.closest('.top-bar, [data-topbar]'), - titlebar = topbar.children('ul').first(), - section = topbar.find('section, .section'), - $movedLi = $this.closest('li.moved'), - $previousLevelUl = $movedLi.parent(); - - topbar.data('index', topbar.data('index') - 1); - - if (!self.rtl) { - section.css({left: -(100 * topbar.data('index')) + '%'}); - section.find('>.name').css({left: 100 * topbar.data('index') + '%'}); - } else { - section.css({right: -(100 * topbar.data('index')) + '%'}); - section.find('>.name').css({right: 100 * topbar.data('index') + '%'}); - } - - if (topbar.data('index') === 0) { - topbar.css('height', ''); - } else { - topbar.css('height', self.outerHeight($previousLevelUl, true) + self.height(titlebar)); - } - - setTimeout(function () { - $movedLi.removeClass('moved'); - }, 300); - }); - }, - - breakpoint : function () { - return $(document).width() <= this.settings.breakPoint || $('html').hasClass('lt-ie9'); - }, - - assemble : function () { - var self = this; - // Pull element out of the DOM for manipulation - this.settings.$section.detach(); - - this.settings.$section.find('.has-dropdown>a').each(function () { - var $link = $(this), - $dropdown = $link.siblings('.dropdown'), - url = $link.attr('href'); - - if (self.settings.mobile_show_parent_link && url && url.length > 1) { - var $titleLi = $('
      2. ' + $link.text() +'
      3. '); - } else { - var $titleLi = $('
      4. '); - } - - // Copy link to subnav - if (self.settings.custom_back_text == true) { - $titleLi.find('h5>a').html('« ' + self.settings.back_text); - } else { - $titleLi.find('h5>a').html('« ' + $link.html()); - } - $dropdown.prepend($titleLi); - }); - - // Put element back in the DOM - this.settings.$section.appendTo(this.settings.$topbar); - - // check for sticky - this.sticky(); - }, - - height : function (ul) { - var total = 0, - self = this; - - ul.find('> li').each(function () { total += self.outerHeight($(this), true); }); - - return total; - }, - - sticky : function () { - var klass = '.' + this.settings.stickyClass; - if ($(klass).length > 0) { - var distance = $(klass).length ? $(klass).offset().top: 0, - $window = $(window), - offst = this.outerHeight($('.top-bar')), - t_top; - - //Whe resize elements of the page on windows resize. Must recalculate distance - $(window).resize(function() { - clearTimeout(t_top); - t_top = setTimeout (function() { - distance = $(klass).offset().top; - },105); - }); - $window.scroll(function() { - if ($window.scrollTop() > (distance)) { - $(klass).addClass("fixed"); - $('body').css('padding-top',offst); - } else if ($window.scrollTop() <= distance) { - $(klass).removeClass("fixed"); - $('body').css('padding-top','0'); - } - }); - } - }, - - off : function () { - $(this.scope).off('.fndtn.topbar'); - $(window).off('.fndtn.topbar'); - }, - - reflow : function () {} - }; -}(Foundation.zj, this, this.document)); diff --git a/public/javascripts/markdown_editor.js b/public/javascripts/markdown_editor.js deleted file mode 100644 index 6d5935562..000000000 --- a/public/javascripts/markdown_editor.js +++ /dev/null @@ -1,44 +0,0 @@ -// Redactor -function bindRedactor() { - var buttons = ['code', '|', 'bold', 'italic', '|', 'link', '|', 'unorderedlist', 'orderedlist', 'horizontalrule', '|', 'fullscreen']; - - $('._redactor').redactor({ - placeholder: '', - buttons: buttons, - buttonsCustom: { - code: { - title: 'Code', - callback: function(buttonName, buttonDOM, buttonObject) { - var selectedText = this.getSelectionText(); - var html = "" + selectedText + ""; - this.execCommand('inserthtml', html); - } - } - }, - formattingTags: [], - air: false, - airButtons: ['code', '|', 'bold', 'italic', '|', 'link', '|', 'unorderedlist', 'orderedlist', 'horizontalrule'], - wym: false, - cleanup: true, - phpTags: true, - // tabFocus: true, - // removeEmptyTags: true, - pastePlainText: true, - tabSpaces: 4, - formattingTags: ['h1', 'h2'], - changeCallback: function(html) { - $('input._source').val(html); - }, - }); - - $('._source').each(function() { - var editor = $('textarea._redactor'); - var html = $(this).val(); - - editor.redactor('set', html); - }); -} - -$(function() { - bindRedactor(); -}); \ No newline at end of file diff --git a/public/javascripts/vendor/ZeroClipboard.swf b/public/javascripts/vendor/ZeroClipboard.swf deleted file mode 100644 index 13bf8e396..000000000 Binary files a/public/javascripts/vendor/ZeroClipboard.swf and /dev/null differ diff --git a/public/javascripts/vendor/custom.modernizr.js b/public/javascripts/vendor/custom.modernizr.js deleted file mode 100755 index 4eb3d0655..000000000 --- a/public/javascripts/vendor/custom.modernizr.js +++ /dev/null @@ -1,4 +0,0 @@ -/* Modernizr 2.6.2 (Custom Build) | MIT & BSD - * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load - */ -;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f -// -// Redistributable under a BSD-style open source license. -// See license.txt for more information. -// -// The full source distribution is at: -// -// A A L -// T C A -// T K B -// -// -// - -// -// Wherever possible, Showdown is a straight, line-by-line port -// of the Perl version of Markdown. -// -// This is not a normal parser design; it's basically just a -// series of string substitutions. It's hard to read and -// maintain this way, but keeping Showdown close to the original -// design makes it easier to port new features. -// -// More importantly, Showdown behaves like markdown.pl in most -// edge cases. So web applications can do client-side preview -// in Javascript, and then build identical HTML on the server. -// -// This port needs the new RegExp functionality of ECMA 262, -// 3rd Edition (i.e. Javascript 1.5). Most modern web browsers -// should do fine. Even with the new regular expression features, -// We do a lot of work to emulate Perl's regex functionality. -// The tricky changes in this file mostly have the "attacklab:" -// label. Major or self-explanatory changes don't. -// -// Smart diff tools like Araxis Merge will be able to match up -// this file with markdown.pl in a useful way. A little tweaking -// helps: in a copy of markdown.pl, replace "#" with "//" and -// replace "$text" with "text". Be sure to ignore whitespace -// and line endings. -// - - -// -// Showdown usage: -// -// var text = "Markdown *rocks*."; -// -// var converter = new Showdown.converter(); -// var html = converter.makeHtml(text); -// -// alert(html); -// -// Note: move the sample code to the bottom of this -// file before uncommenting it. -// - - -// ************************************************** -// GitHub Flavored Markdown modifications by Tekkub -// http://github.github.com/github-flavored-markdown/ -// -// Modifications are tagged with "GFM" -// ************************************************** - -// ************************************************** -// Node.JS port by Isaac Z. Schlueter -// -// Modifications are tagged with "isaacs" -// ************************************************** - -// -// Showdown namespace -// -var Showdown = {}; - -// -// isaacs: export the Showdown object -// -if (typeof exports === "object") { - Showdown = exports; - // isaacs: expose top-level parse() method, like other to-html parsers. - Showdown.parse = function (md, gh) { - var converter = new Showdown.converter(); - return converter.makeHtml(md, gh); - }; -} - -// -// isaacs: Declare "GitHub" object in here, since Node modules -// execute in a closure or separate context, rather than right -// in the global scope. If in the browser, this does nothing. -// -var GitHub; - -// -// converter -// -// Wraps all "globals" so that the only thing -// exposed is makeHtml(). -// -Showdown.converter = function() { - -// -// Globals: -// - -// Global hashes, used by various utility routines -var g_urls; -var g_titles; -var g_html_blocks; - -// Used to track when we're inside an ordered or unordered list -// (see _ProcessListItems() for details): -var g_list_level = 0; - -// isaacs - Allow passing in the GitHub object as an argument. -this.makeHtml = function(text, gh) { - if (typeof gh !== "undefined") { - if (typeof gh === "string") gh = {nameWithOwner:gh}; - GitHub = gh; - } - -// -// Main function. The order in which other subs are called here is -// essential. Link and image substitutions need to happen before -// _EscapeSpecialCharsWithinTagAttributes(), so that any *'s or _'s in the -// and tags get encoded. -// - - // Clear the global hashes. If we don't clear these, you get conflicts - // from other articles when generating a page which contains more than - // one article (e.g. an index page that shows the N most recent - // articles): - g_urls = new Array(); - g_titles = new Array(); - g_html_blocks = new Array(); - - // attacklab: Replace ~ with ~T - // This lets us use tilde as an escape char to avoid md5 hashes - // The choice of character is arbitray; anything that isn't - // magic in Markdown will work. - text = text.replace(/~/g,"~T"); - - // attacklab: Replace $ with ~D - // RegExp interprets $ as a special character - // when it's in a replacement string - text = text.replace(/\$/g,"~D"); - - // Standardize line endings - text = text.replace(/\r\n/g,"\n"); // DOS to Unix - text = text.replace(/\r/g,"\n"); // Mac to Unix - - // Make sure text begins and ends with a couple of newlines: - text = "\n\n" + text + "\n\n"; - - // Convert all tabs to spaces. - text = _Detab(text); - - // Strip any lines consisting only of spaces and tabs. - // This makes subsequent regexen easier to write, because we can - // match consecutive blank lines with /\n+/ instead of something - // contorted like /[ \t]*\n+/ . - text = text.replace(/^[ \t]+$/mg,""); - - // Turn block-level HTML blocks into hash entries - text = _HashHTMLBlocks(text); - - // Strip link definitions, store in hashes. - text = _StripLinkDefinitions(text); - - text = _RunBlockGamut(text); - - text = _UnescapeSpecialChars(text); - - // attacklab: Restore dollar signs - text = text.replace(/~D/g,"$$"); - - // attacklab: Restore tildes - text = text.replace(/~T/g,"~"); - - // ** GFM ** Auto-link URLs and emails - text = text.replace(/https?\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!]/g, function(wholeMatch,matchIndex){ - var left = text.slice(0, matchIndex), right = text.slice(matchIndex) - if (left.match(/<[^>]+$/) && right.match(/^[^>]*>/)) {return wholeMatch} - return "" + wholeMatch + ""; - }); - text = text.replace(/[a-z0-9_\-+=.]+@[a-z0-9\-]+(\.[a-z0-9-]+)+/ig, function(wholeMatch){return "" + wholeMatch + "";}); - - // ** GFM ** Auto-link sha1 if GitHub.nameWithOwner is defined - text = text.replace(/[a-f0-9]{40}/ig, function(wholeMatch,matchIndex){ - if (typeof(GitHub) == "undefined" || typeof(GitHub.nameWithOwner) == "undefined") {return wholeMatch;} - var left = text.slice(0, matchIndex), right = text.slice(matchIndex) - if (left.match(/@$/) || (left.match(/<[^>]+$/) && right.match(/^[^>]*>/))) {return wholeMatch;} - return "" + wholeMatch.substring(0,7) + ""; - }); - - // ** GFM ** Auto-link user@sha1 if GitHub.nameWithOwner is defined - text = text.replace(/([a-z0-9_\-+=.]+)@([a-f0-9]{40})/ig, function(wholeMatch,username,sha,matchIndex){ - if (typeof(GitHub) == "undefined" || typeof(GitHub.nameWithOwner) == "undefined") {return wholeMatch;} - GitHub.repoName = GitHub.repoName || _GetRepoName() - var left = text.slice(0, matchIndex), right = text.slice(matchIndex) - if (left.match(/\/$/) || (left.match(/<[^>]+$/) && right.match(/^[^>]*>/))) {return wholeMatch;} - return "" + username + "@" + sha.substring(0,7) + ""; - }); - - // ** GFM ** Auto-link user/repo@sha1 - text = text.replace(/([a-z0-9_\-+=.]+\/[a-z0-9_\-+=.]+)@([a-f0-9]{40})/ig, function(wholeMatch,repo,sha){ - return "" + repo + "@" + sha.substring(0,7) + ""; - }); - - // ** GFM ** Auto-link #issue if GitHub.nameWithOwner is defined - text = text.replace(/#([0-9]+)/ig, function(wholeMatch,issue,matchIndex){ - if (typeof(GitHub) == "undefined" || typeof(GitHub.nameWithOwner) == "undefined") {return wholeMatch;} - var left = text.slice(0, matchIndex), right = text.slice(matchIndex) - if (left == "" || left.match(/[a-z0-9_\-+=.]$/) || (left.match(/<[^>]+$/) && right.match(/^[^>]*>/))) {return wholeMatch;} - return "" + wholeMatch + ""; - }); - - // ** GFM ** Auto-link user#issue if GitHub.nameWithOwner is defined - text = text.replace(/([a-z0-9_\-+=.]+)#([0-9]+)/ig, function(wholeMatch,username,issue,matchIndex){ - if (typeof(GitHub) == "undefined" || typeof(GitHub.nameWithOwner) == "undefined") {return wholeMatch;} - GitHub.repoName = GitHub.repoName || _GetRepoName() - var left = text.slice(0, matchIndex), right = text.slice(matchIndex) - if (left.match(/\/$/) || (left.match(/<[^>]+$/) && right.match(/^[^>]*>/))) {return wholeMatch;} - return "" + wholeMatch + ""; - }); - - // ** GFM ** Auto-link user/repo#issue - text = text.replace(/([a-z0-9_\-+=.]+\/[a-z0-9_\-+=.]+)#([0-9]+)/ig, function(wholeMatch,repo,issue){ - return "" + wholeMatch + ""; - }); - - return text; -} - - -var _GetRepoName = function() { - return GitHub.nameWithOwner.match(/^.+\/(.+)$/)[1] -} - -var _StripLinkDefinitions = function(text) { -// -// Strips link definitions from text, stores the URLs and titles in -// hash references. -// - - // Link defs are in the form: ^[id]: url "optional title" - - /* - var text = text.replace(/ - ^[ ]{0,3}\[(.+)\]: // id = $1 attacklab: g_tab_width - 1 - [ \t]* - \n? // maybe *one* newline - [ \t]* - ? // url = $2 - [ \t]* - \n? // maybe one newline - [ \t]* - (?: - (\n*) // any lines skipped = $3 attacklab: lookbehind removed - ["(] - (.+?) // title = $4 - [")] - [ \t]* - )? // title is optional - (?:\n+|$) - /gm, - function(){...}); - */ - var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm, - function (wholeMatch,m1,m2,m3,m4) { - m1 = m1.toLowerCase(); - g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive - if (m3) { - // Oops, found blank lines, so it's not a title. - // Put back the parenthetical statement we stole. - return m3+m4; - } else if (m4) { - g_titles[m1] = m4.replace(/"/g,"""); - } - - // Completely remove the definition from the text - return ""; - } - ); - - return text; -} - - -var _HashHTMLBlocks = function(text) { - // attacklab: Double up blank lines to reduce lookaround - text = text.replace(/\n/g,"\n\n"); - - // Hashify HTML blocks: - // We only want to do this for block-level HTML tags, such as headers, - // lists, and tables. That's because we still want to wrap

        s around - // "paragraphs" that are wrapped in non-block-level tags, such as anchors, - // phrase emphasis, and spans. The list of tags we're looking for is - // hard-coded: - var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del" - var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math" - - // First, look for nested blocks, e.g.: - //

        - //
        - // tags for inner block must be indented. - //
        - //
        - // - // The outermost tags must start at the left margin for this to match, and - // the inner nested divs must be indented. - // We need to do this before the next, more liberal match, because the next - // match will start at the first `
        ` and stop at the first `
        `. - - // attacklab: This regex can be expensive when it fails. - /* - var text = text.replace(/ - ( // save in $1 - ^ // start of line (with /m) - <($block_tags_a) // start tag = $2 - \b // word break - // attacklab: hack around khtml/pcre bug... - [^\r]*?\n // any number of lines, minimally matching - // the matching end tag - [ \t]* // trailing spaces/tabs - (?=\n+) // followed by a newline - ) // attacklab: there are sentinel newlines at end of document - /gm,function(){...}}; - */ - text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,hashElement); - - // - // Now match more liberally, simply from `\n` to `\n` - // - - /* - var text = text.replace(/ - ( // save in $1 - ^ // start of line (with /m) - <($block_tags_b) // start tag = $2 - \b // word break - // attacklab: hack around khtml/pcre bug... - [^\r]*? // any number of lines, minimally matching - .* // the matching end tag - [ \t]* // trailing spaces/tabs - (?=\n+) // followed by a newline - ) // attacklab: there are sentinel newlines at end of document - /gm,function(){...}}; - */ - text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,hashElement); - - // Special case just for
        . It was easier to make a special case than - // to make the other regex more complicated. - - /* - text = text.replace(/ - ( // save in $1 - \n\n // Starting after a blank line - [ ]{0,3} - (<(hr) // start tag = $2 - \b // word break - ([^<>])*? // - \/?>) // the matching end tag - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,hashElement); - - // Special case for standalone HTML comments: - - /* - text = text.replace(/ - ( // save in $1 - \n\n // Starting after a blank line - [ ]{0,3} // attacklab: g_tab_width - 1 - - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(\n\n[ ]{0,3}[ \t]*(?=\n{2,}))/g,hashElement); - - // PHP and ASP-style processor instructions ( and <%...%>) - - /* - text = text.replace(/ - (?: - \n\n // Starting after a blank line - ) - ( // save in $1 - [ ]{0,3} // attacklab: g_tab_width - 1 - (?: - <([?%]) // $2 - [^\r]*? - \2> - ) - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,hashElement); - - // attacklab: Undo double lines (see comment at top of this function) - text = text.replace(/\n\n/g,"\n"); - return text; -} - -var hashElement = function(wholeMatch,m1) { - var blockText = m1; - - // Undo double lines - blockText = blockText.replace(/\n\n/g,"\n"); - blockText = blockText.replace(/^\n/,""); - - // strip trailing blank lines - blockText = blockText.replace(/\n+$/g,""); - - // Replace the element text with a marker ("~KxK" where x is its key) - blockText = "\n\n~K" + (g_html_blocks.push(blockText)-1) + "K\n\n"; - - return blockText; -}; - -var _RunBlockGamut = function(text) { -// -// These are all the transformations that form block-level -// tags like paragraphs, headers, and list items. -// - text = _DoHeaders(text); - - // Do Horizontal Rules: - var key = hashBlock("
        "); - text = text.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,key); - text = text.replace(/^[ ]{0,2}([ ]?\-[ ]?){3,}[ \t]*$/gm,key); - text = text.replace(/^[ ]{0,2}([ ]?\_[ ]?){3,}[ \t]*$/gm,key); - - text = _DoLists(text); - text = _DoCodeFencing(text); - text = _DoCodeBlocks(text); - text = _DoBlockQuotes(text); - - // We already ran _HashHTMLBlocks() before, in Markdown(), but that - // was to escape raw HTML in the original Markdown source. This time, - // we're escaping the markup we've just created, so that we don't wrap - //

        tags around block-level tags. - text = _HashHTMLBlocks(text); - text = _FormParagraphs(text); - - return text; -} - - -var _RunSpanGamut = function(text) { -// -// These are all the transformations that occur *within* block-level -// tags like paragraphs, headers, and list items. -// - - text = _DoCodeSpans(text); - text = _EscapeSpecialCharsWithinTagAttributes(text); - text = _EncodeBackslashEscapes(text); - - // Process anchor and image tags. Images must come first, - // because ![foo][f] looks like an anchor. - text = _DoImages(text); - text = _DoAnchors(text); - - // Make links out of things like `` - // Must come after _DoAnchors(), because you can use < and > - // delimiters in inline links like [this](). - text = _DoAutoLinks(text); - text = _EncodeAmpsAndAngles(text); - text = _DoItalicsAndBold(text); - - // Do hard breaks: - text = text.replace(/ +\n/g,"
        \n"); - - return text; -} - -var _EscapeSpecialCharsWithinTagAttributes = function(text) { -// -// Within tags -- meaning between < and > -- encode [\ ` * _] so they -// don't conflict with their use in Markdown for code, italics and strong. -// - - // Build a regex to find HTML tags and comments. See Friedl's - // "Mastering Regular Expressions", 2nd Ed., pp. 200-201. - var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi; - - text = text.replace(regex, function(wholeMatch) { - var tag = wholeMatch.replace(/(.)<\/?code>(?=.)/g,"$1`"); - tag = escapeCharacters(tag,"\\`*_"); - return tag; - }); - - return text; -} - -var _DoAnchors = function(text) { -// -// Turn Markdown link shortcuts into XHTML tags. -// - // - // First, handle reference-style links: [link text] [id] - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ( - (?: - \[[^\]]*\] // allow brackets nested one level - | - [^\[] // or anything else - )* - ) - \] - - [ ]? // one optional space - (?:\n[ ]*)? // one optional newline followed by spaces - - \[ - (.*?) // id = $3 - \] - )()()()() // pad remaining backreferences - /g,_DoAnchors_callback); - */ - text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeAnchorTag); - - // - // Next, inline-style links: [link text](url "optional title") - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ( - (?: - \[[^\]]*\] // allow brackets nested one level - | - [^\[\]] // or anything else - ) - ) - \] - \( // literal paren - [ \t]* - () // no id, so leave $3 empty - ? // href = $4 - [ \t]* - ( // $5 - (['"]) // quote char = $6 - (.*?) // Title = $7 - \6 // matching quote - [ \t]* // ignore any spaces/tabs between closing quote and ) - )? // title is optional - \) - ) - /g,writeAnchorTag); - */ - text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeAnchorTag); - - // - // Last, handle reference-style shortcuts: [link text] - // These must come last in case you've also got [link test][1] - // or [link test](/foo) - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ([^\[\]]+) // link text = $2; can't contain '[' or ']' - \] - )()()()()() // pad rest of backreferences - /g, writeAnchorTag); - */ - text = text.replace(/(\[([^\[\]]+)\])()()()()()/g, writeAnchorTag); - - return text; -} - -var writeAnchorTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) { - if (m7 == undefined) m7 = ""; - var whole_match = m1; - var link_text = m2; - var link_id = m3.toLowerCase(); - var url = m4; - var title = m7; - - if (url == "") { - if (link_id == "") { - // lower-case and turn embedded newlines into spaces - link_id = link_text.toLowerCase().replace(/ ?\n/g," "); - } - url = "#"+link_id; - - if (g_urls[link_id] != undefined) { - url = g_urls[link_id]; - if (g_titles[link_id] != undefined) { - title = g_titles[link_id]; - } - } - else { - if (whole_match.search(/\(\s*\)$/m)>-1) { - // Special case for explicit empty url - url = ""; - } else { - return whole_match; - } - } - } - - url = escapeCharacters(url,"*_"); - var result = ""; - - return result; -} - - -var _DoImages = function(text) { -// -// Turn Markdown image shortcuts into tags. -// - - // - // First, handle reference-style labeled images: ![alt text][id] - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - !\[ - (.*?) // alt text = $2 - \] - - [ ]? // one optional space - (?:\n[ ]*)? // one optional newline followed by spaces - - \[ - (.*?) // id = $3 - \] - )()()()() // pad rest of backreferences - /g,writeImageTag); - */ - text = text.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeImageTag); - - // - // Next, handle inline images: ![alt text](url "optional title") - // Don't forget: encode * and _ - - /* - text = text.replace(/ - ( // wrap whole match in $1 - !\[ - (.*?) // alt text = $2 - \] - \s? // One optional whitespace character - \( // literal paren - [ \t]* - () // no id, so leave $3 empty - ? // src url = $4 - [ \t]* - ( // $5 - (['"]) // quote char = $6 - (.*?) // title = $7 - \6 // matching quote - [ \t]* - )? // title is optional - \) - ) - /g,writeImageTag); - */ - text = text.replace(/(!\[(.*?)\]\s?\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeImageTag); - - return text; -} - -var writeImageTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) { - var whole_match = m1; - var alt_text = m2; - var link_id = m3.toLowerCase(); - var url = m4; - var title = m7; - - if (!title) title = ""; - - if (url == "") { - if (link_id == "") { - // lower-case and turn embedded newlines into spaces - link_id = alt_text.toLowerCase().replace(/ ?\n/g," "); - } - url = "#"+link_id; - - if (g_urls[link_id] != undefined) { - url = g_urls[link_id]; - if (g_titles[link_id] != undefined) { - title = g_titles[link_id]; - } - } - else { - return whole_match; - } - } - - alt_text = alt_text.replace(/"/g,"""); - url = escapeCharacters(url,"*_"); - var result = "\""" + _RunSpanGamut(m1) + "");}); - - text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, - function(matchFound,m1){return hashBlock("

        " + _RunSpanGamut(m1) + "

        ");}); - - // atx-style headers: - // # Header 1 - // ## Header 2 - // ## Header 2 with closing hashes ## - // ... - // ###### Header 6 - // - - /* - text = text.replace(/ - ^(\#{1,6}) // $1 = string of #'s - [ \t]* - (.+?) // $2 = Header text - [ \t]* - \#* // optional closing #'s (not counted) - \n+ - /gm, function() {...}); - */ - - text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, - function(wholeMatch,m1,m2) { - var h_level = m1.length; - return hashBlock("" + _RunSpanGamut(m2) + ""); - }); - - return text; -} - -// This declaration keeps Dojo compressor from outputting garbage: -var _ProcessListItems; - -var _DoLists = function(text) { -// -// Form HTML ordered (numbered) and unordered (bulleted) lists. -// - - // attacklab: add sentinel to hack around khtml/safari bug: - // http://bugs.webkit.org/show_bug.cgi?id=11231 - text += "~0"; - - // Re-usable pattern to match any entirel ul or ol list: - - /* - var whole_list = / - ( // $1 = whole list - ( // $2 - [ ]{0,3} // attacklab: g_tab_width - 1 - ([*+-]|\d+[.]) // $3 = first list item marker - [ \t]+ - ) - [^\r]+? - ( // $4 - ~0 // sentinel for workaround; should be $ - | - \n{2,} - (?=\S) - (?! // Negative lookahead for another list item marker - [ \t]* - (?:[*+-]|\d+[.])[ \t]+ - ) - ) - )/g - */ - var whole_list = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; - - if (g_list_level) { - text = text.replace(whole_list,function(wholeMatch,m1,m2) { - var list = m1; - var list_type = (m2.search(/[*+-]/g)>-1) ? "ul" : "ol"; - - // Turn double returns into triple returns, so that we can make a - // paragraph for the last item in a list, if necessary: - list = list.replace(/\n{2,}/g,"\n\n\n");; - var result = _ProcessListItems(list); - - // Trim any trailing whitespace, to put the closing `` - // up on the preceding line, to get it past the current stupid - // HTML block parser. This is a hack to work around the terrible - // hack that is the HTML block parser. - result = result.replace(/\s+$/,""); - result = "<"+list_type+">" + result + "\n"; - return result; - }); - } else { - whole_list = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g; - text = text.replace(whole_list,function(wholeMatch,m1,m2,m3) { - var runup = m1; - var list = m2; - - var list_type = (m3.search(/[*+-]/g)>-1) ? "ul" : "ol"; - // Turn double returns into triple returns, so that we can make a - // paragraph for the last item in a list, if necessary: - var list = list.replace(/\n{2,}/g,"\n\n\n");; - var result = _ProcessListItems(list); - result = runup + "<"+list_type+">\n" + result + "\n"; - return result; - }); - } - - // attacklab: strip sentinel - text = text.replace(/~0/,""); - - return text; -} - -_ProcessListItems = function(list_str) { -// -// Process the contents of a single ordered or unordered list, splitting it -// into individual list items. -// - // The $g_list_level global keeps track of when we're inside a list. - // Each time we enter a list, we increment it; when we leave a list, - // we decrement. If it's zero, we're not in a list anymore. - // - // We do this because when we're not inside a list, we want to treat - // something like this: - // - // I recommend upgrading to version - // 8. Oops, now this line is treated - // as a sub-list. - // - // As a single paragraph, despite the fact that the second line starts - // with a digit-period-space sequence. - // - // Whereas when we're inside a list (or sub-list), that line will be - // treated as the start of a sub-list. What a kludge, huh? This is - // an aspect of Markdown's syntax that's hard to parse perfectly - // without resorting to mind-reading. Perhaps the solution is to - // change the syntax rules such that sub-lists must start with a - // starting cardinal number; e.g. "1." or "a.". - - g_list_level++; - - // trim trailing blank lines: - list_str = list_str.replace(/\n{2,}$/,"\n"); - - // attacklab: add sentinel to emulate \z - list_str += "~0"; - - /* - list_str = list_str.replace(/ - (\n)? // leading line = $1 - (^[ \t]*) // leading whitespace = $2 - ([*+-]|\d+[.]) [ \t]+ // list marker = $3 - ([^\r]+? // list item text = $4 - (\n{1,2})) - (?= \n* (~0 | \2 ([*+-]|\d+[.]) [ \t]+)) - /gm, function(){...}); - */ - list_str = list_str.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm, - function(wholeMatch,m1,m2,m3,m4){ - var item = m4; - var leading_line = m1; - var leading_space = m2; - - if (leading_line || (item.search(/\n{2,}/)>-1)) { - item = _RunBlockGamut(_Outdent(item)); - } - else { - // Recursion for sub-lists: - item = _DoLists(_Outdent(item)); - item = item.replace(/\n$/,""); // chomp(item) - item = _RunSpanGamut(item); - } - - return "
      5. " + item + "
      6. \n"; - } - ); - - // attacklab: strip sentinel - list_str = list_str.replace(/~0/g,""); - - g_list_level--; - return list_str; -} - - -var _DoCodeBlocks = function(text) { -// -// Process Markdown `
        ` blocks.
        -//
        -
        -  /*
        -    text = text.replace(text,
        -      /(?:\n\n|^)
        -      (               // $1 = the code block -- one or more lines, starting with a space/tab
        -        (?:
        -          (?:[ ]{4}|\t)     // Lines must start with a tab or a tab-width of spaces - attacklab: g_tab_width
        -          .*\n+
        -        )+
        -      )
        -      (\n*[ ]{0,3}[^ \t\n]|(?=~0))  // attacklab: g_tab_width
        -    /g,function(){...});
        -  */
        -
        -  // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
        -  text += "~0";
        -
        -  text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,
        -    function(wholeMatch,m1,m2) {
        -      var codeblock = m1;
        -      var nextChar = m2;
        -
        -      codeblock = _EncodeCode( _Outdent(codeblock));
        -      codeblock = _Detab(codeblock);
        -      codeblock = codeblock.replace(/^\n+/g,""); // trim leading newlines
        -      codeblock = codeblock.replace(/\n+$/g,""); // trim trailing whitespace
        -
        -      codeblock = "
        " + codeblock + "\n
        "; - - return hashBlock(codeblock) + nextChar; - } - ); - - // attacklab: strip sentinel - text = text.replace(/~0/,""); - - return text; -} - -// -// Code Fencing is a GitHub flavored MD concept. Basically you can wrap -// your code like this: -// -// ```{language} -// {code} -// ``` -// -// Where {language} is the language of the code (useful for coloring code) -// and {code} is your code -// -var _DoCodeFencing = function(text) { - text = text.replace(/`{3}(?:(.*$)\n)?([\s\S]*?)`{3}/gm, - function(wholeMatch,m1,m2){ - //HTML for this is copied from GitHub directly for compatibility, except the lang="" attribute - var codeblock = '
        '+m2+'
        '; - return codeblock; - } - ) - return text; -} - -var hashBlock = function(text) { - text = text.replace(/(^\n+|\n+$)/g,""); - return "\n\n~K" + (g_html_blocks.push(text)-1) + "K\n\n"; -} - - -var _DoCodeSpans = function(text) { -// -// * Backtick quotes are used for spans. -// -// * You can use multiple backticks as the delimiters if you want to -// include literal backticks in the code span. So, this input: -// -// Just type ``foo `bar` baz`` at the prompt. -// -// Will translate to: -// -//

        Just type foo `bar` baz at the prompt.

        -// -// There's no arbitrary limit to the number of backticks you -// can use as delimters. If you need three consecutive backticks -// in your code, use four for delimiters, etc. -// -// * You can use spaces to get literal backticks at the edges: -// -// ... type `` `bar` `` ... -// -// Turns to: -// -// ... type `bar` ... -// - - /* - text = text.replace(/ - (^|[^\\]) // Character before opening ` can't be a backslash - (`+) // $2 = Opening run of ` - ( // $3 = The code block - [^\r]*? - [^`] // attacklab: work around lack of lookbehind - ) - \2 // Matching closer - (?!`) - /gm, function(){...}); - */ - - text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, - function(wholeMatch,m1,m2,m3,m4) { - var c = m3; - c = c.replace(/^([ \t]*)/g,""); // leading whitespace - c = c.replace(/[ \t]*$/g,""); // trailing whitespace - c = _EncodeCode(c); - return m1+""+c+""; - }); - - return text; -} - - -var _EncodeCode = function(text) { -// -// Encode/escape certain characters inside Markdown code runs. -// The point is that in code, these characters are literals, -// and lose their special Markdown meanings. -// - // Encode all ampersands; HTML entities are not - // entities within a Markdown code span. - text = text.replace(/&/g,"&"); - - // Do the angle bracket song and dance: - text = text.replace(//g,">"); - - // Now, escape characters that are magic in Markdown: - text = escapeCharacters(text,"\*_{}[]\\",false); - -// jj the line above breaks this: -//--- - -//* Item - -// 1. Subitem - -// special char: * -//--- - - return text; -} - - -var _DoItalicsAndBold = function(text) { - - // must go first: - text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, - "$2"); - - text = text.replace(/(\w)_(\w)/g, "$1~E95E$2") // ** GFM ** "~E95E" == escaped "_" - text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, - "$2"); - - return text; -} - - -var _DoBlockQuotes = function(text) { - - /* - text = text.replace(/ - ( // Wrap whole match in $1 - ( - ^[ \t]*>[ \t]? // '>' at the start of a line - .+\n // rest of the first line - (.+\n)* // subsequent consecutive lines - \n* // blanks - )+ - ) - /gm, function(){...}); - */ - - text = text.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm, - function(wholeMatch,m1) { - var bq = m1; - - // attacklab: hack around Konqueror 3.5.4 bug: - // "----------bug".replace(/^-/g,"") == "bug" - - bq = bq.replace(/^[ \t]*>[ \t]?/gm,"~0"); // trim one level of quoting - - // attacklab: clean up hack - bq = bq.replace(/~0/g,""); - - bq = bq.replace(/^[ \t]+$/gm,""); // trim whitespace-only lines - bq = _RunBlockGamut(bq); // recurse - - bq = bq.replace(/(^|\n)/g,"$1 "); - // These leading spaces screw with
         content, so we need to fix that:
        -      bq = bq.replace(
        -          /(\s*
        [^\r]+?<\/pre>)/gm,
        -        function(wholeMatch,m1) {
        -          var pre = m1;
        -          // attacklab: hack around Konqueror 3.5.4 bug:
        -          pre = pre.replace(/^  /mg,"~0");
        -          pre = pre.replace(/~0/g,"");
        -          return pre;
        -        });
        -
        -      return hashBlock("
        \n" + bq + "\n
        "); - }); - return text; -} - - -var _FormParagraphs = function(text) { -// -// Params: -// $text - string to process with html

        tags -// - - // Strip leading and trailing lines: - text = text.replace(/^\n+/g,""); - text = text.replace(/\n+$/g,""); - - var grafs = text.split(/\n{2,}/g); - var grafsOut = new Array(); - - // - // Wrap

        tags. - // - var end = grafs.length; - for (var i=0; i= 0) { - grafsOut.push(str); - } - else if (str.search(/\S/) >= 0) { - str = _RunSpanGamut(str); - str = str.replace(/\n/g,"
        "); // ** GFM ** - str = str.replace(/^([ \t]*)/g,"

        "); - str += "

        " - grafsOut.push(str); - } - - } - - // - // Unhashify HTML blocks - // - end = grafsOut.length; - for (var i=0; i= 0) { - var blockText = g_html_blocks[RegExp.$1]; - blockText = blockText.replace(/\$/g,"$$$$"); // Escape any dollar signs - grafsOut[i] = grafsOut[i].replace(/~K\d+K/,blockText); - } - } - - return grafsOut.join("\n\n"); -} - - -var _EncodeAmpsAndAngles = function(text) { -// Smart processing for ampersands and angle brackets that need to be encoded. - - // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin: - // http://bumppo.net/projects/amputator/ - text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&"); - - // Encode naked <'s - text = text.replace(/<(?![a-z\/?\$!])/gi,"<"); - - return text; -} - - -var _EncodeBackslashEscapes = function(text) { -// -// Parameter: String. -// Returns: The string, with after processing the following backslash -// escape sequences. -// - - // attacklab: The polite way to do this is with the new - // escapeCharacters() function: - // - // text = escapeCharacters(text,"\\",true); - // text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); - // - // ...but we're sidestepping its use of the (slow) RegExp constructor - // as an optimization for Firefox. This function gets called a LOT. - - text = text.replace(/\\(\\)/g,escapeCharacters_callback); - text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g,escapeCharacters_callback); - return text; -} - - -var _DoAutoLinks = function(text) { - - text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,"
        $1"); - - // Email addresses: - - /* - text = text.replace(/ - < - (?:mailto:)? - ( - [-.\w]+ - \@ - [-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+ - ) - > - /gi, _DoAutoLinks_callback()); - */ - text = text.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, - function(wholeMatch,m1) { - return _EncodeEmailAddress( _UnescapeSpecialChars(m1) ); - } - ); - - return text; -} - - -var _EncodeEmailAddress = function(addr) { -// -// Input: an email address, e.g. "foo@example.com" -// -// Output: the email address as a mailto link, with each character -// of the address encoded as either a decimal or hex entity, in -// the hopes of foiling most address harvesting spam bots. E.g.: -// -// foo -// @example.com -// -// Based on a filter by Matthew Wickline, posted to the BBEdit-Talk -// mailing list: -// - - // attacklab: why can't javascript speak hex? - function char2hex(ch) { - var hexDigits = '0123456789ABCDEF'; - var dec = ch.charCodeAt(0); - return(hexDigits.charAt(dec>>4) + hexDigits.charAt(dec&15)); - } - - var encode = [ - function(ch){return "&#"+ch.charCodeAt(0)+";";}, - function(ch){return "&#x"+char2hex(ch)+";";}, - function(ch){return ch;} - ]; - - addr = "mailto:" + addr; - - addr = addr.replace(/./g, function(ch) { - if (ch == "@") { - // this *must* be encoded. I insist. - ch = encode[Math.floor(Math.random()*2)](ch); - } else if (ch !=":") { - // leave ':' alone (to spot mailto: later) - var r = Math.random(); - // roughly 10% raw, 45% hex, 45% dec - ch = ( - r > .9 ? encode[2](ch) : - r > .45 ? encode[1](ch) : - encode[0](ch) - ); - } - return ch; - }); - - addr = "" + addr + ""; - addr = addr.replace(/">.+:/g,"\">"); // strip the mailto: from the visible part - - return addr; -} - - -var _UnescapeSpecialChars = function(text) { -// -// Swap back in all the special characters we've hidden. -// - text = text.replace(/~E(\d+)E/g, - function(wholeMatch,m1) { - var charCodeToReplace = parseInt(m1); - return String.fromCharCode(charCodeToReplace); - } - ); - return text; -} - - -var _Outdent = function(text) { -// -// Remove one level of line-leading tabs or spaces -// - - // attacklab: hack around Konqueror 3.5.4 bug: - // "----------bug".replace(/^-/g,"") == "bug" - - text = text.replace(/^(\t|[ ]{1,4})/gm,"~0"); // attacklab: g_tab_width - - // attacklab: clean up hack - text = text.replace(/~0/g,"") - - return text; -} - -var _Detab = function(text) { -// attacklab: Detab's completely rewritten for speed. -// In perl we could fix it by anchoring the regexp with \G. -// In javascript we're less fortunate. - - // expand first n-1 tabs - text = text.replace(/\t(?=\t)/g," "); // attacklab: g_tab_width - - // replace the nth with two sentinels - text = text.replace(/\t/g,"~A~B"); - - // use the sentinel to anchor our regex so it doesn't explode - text = text.replace(/~B(.+?)~A/g, - function(wholeMatch,m1,m2) { - var leadingText = m1; - var numSpaces = 4 - leadingText.length % 4; // attacklab: g_tab_width - - // there *must* be a better way to do this: - for (var i=0; i= 0; i-- ) { - if ( 'undefined' === typeof Array.indexOf && -1 !== localStorage.key(i).indexOf( 'garlic:' ) ) { - localStorage.removeItem( localStorage.key(i) ); - } - } - - return 'function' === typeof fn ? fn() : true; - } - - , clear: function ( fn ) { - localStorage.clear(); - return 'function' === typeof fn ? fn() : true; - } - } - - /* GARLIC PUBLIC CLASS DEFINITION - * =============================== */ - - var Garlic = function ( element, storage, options ) { - this.init( 'garlic', element, storage, options ); - } - - Garlic.prototype = { - - constructor: Garlic - - /* init data, bind jQuery on() actions */ - , init: function ( type, element, storage, options ) { - this.type = type; - this.$element = $( element ); - this.options = this.getOptions( options ); - this.storage = storage; - this.path = this.options.getPath( this.$element ) || this.getPath(); - this.parentForm = this.$element.closest( 'form' ); - this.$element.addClass('garlic-auto-save'); - this.expiresFlag = !this.options.expires ? false : ( this.$element.data( 'expires' ) ? this.path : this.getPath( this.parentForm ) ) + '_flag' ; - - // bind garlic events - this.$element.on( this.options.events.join( '.' + this.type + ' ') , false, $.proxy( this.persist, this ) ); - - if ( this.options.destroy ) { - $( this.parentForm ).on( 'submit reset' , false, $.proxy( this.destroy, this ) ); - } - - // retrieve garlic persisted data - this.retrieve(); - } - - , getOptions: function ( options ) { - return $.extend( {}, $.fn[this.type].defaults, options, this.$element.data() ); - } - - /* temporary store data / state in localStorage */ - , persist: function () { - - // some binded events are redundant (change & paste for example), persist only once by field val - if ( this.val === this.getVal() ) { - return; - } - - this.val = this.getVal(); - - // if auto-expires is enabled, set the expiration date for future auto-deletion - if ( this.options.expires ) { - this.storage.set( this.expiresFlag , ( new Date().getTime() + this.options.expires * 1000 ).toString() ); - } - - this.storage.set( this.path , this.getVal() ); - } - - , getVal: function () { - return !this.$element.is( 'input[type=checkbox]' ) ? this.$element.val() : ( this.$element.prop( 'checked' ) ? 'checked' : 'unchecked' ); - } - - /* retrieve localStorage data / state and update elem accordingly */ - , retrieve: function () { - if ( this.storage.has( this.path ) ) { - - // if data expired, destroy it! - if ( this.options.expires ) { - var date = new Date().getTime(); - if ( this.storage.get( this.expiresFlag ) < date.toString() ) { - this.storage.destroy( this.path ); - return; - } else { - this.$element.attr( 'expires-in', Math.floor( ( parseInt( this.storage.get( this.expiresFlag ) ) - date ) / 1000 ) ); - } - } - - var storedValue = this.storage.get( this.path ); - - // if conflictManager enabled, manage fields with already provided data, different from the one stored - if ( this.options.conflictManager.enabled && this.detectConflict() ) { - return this.conflictManager(); - } - - // input[type=checkbox] and input[type=radio] have a special checked / unchecked behavior - if ( this.$element.is( 'input[type=radio], input[type=checkbox]' ) ) { - - // for checkboxes and radios - if ( 'checked' === storedValue || this.$element.val() === storedValue ) { - return this.$element.attr( 'checked', true ); - - // only needed for checkboxes - } else if ( 'unchecked' === storedValue ) { - this.$element.attr( 'checked', false ); - } - - return; - } - - // for input[type=text], select and textarea, just set val() - this.$element.val( storedValue ); - - // trigger custom user function when data is retrieved - this.options.onRetrieve( this.$element, storedValue ); - - return; - } - } - - /* there is a conflict when initial data / state differs from persisted data / state */ - , detectConflict: function() { - var self = this; - - // radio buttons and checkboxes are yet not supported - if ( this.$element.is( 'input[type=checkbox], input[type=radio]' ) ) { - return false; - } - - // there is a default not null value and we have a different one stored - if ( this.$element.val() && this.storage.get( this.path ) !== this.$element.val() ) { - - // for select elements, we need to check if there is a default checked value - if ( this.$element.is( 'select' ) ) { - var selectConflictDetected = false; - - // foreach each options except first one, always considered as selected, seeking for a default selected one - this.$element.find( 'option' ).each( function () { - if ( $( this ).index() !== 0 && $( this ).attr( 'selected' ) && $( this ).val() !== self.storage.get( this.path ) ) { - selectConflictDetected = true; - return; - } - }); - - return selectConflictDetected; - } - - return true; - } - - return false; - } - - /* manage here the conflict, show default value depending on options.garlicPriority value */ - , conflictManager: function () { - - // user can define here a custom function that could stop Garlic default behavior, if returns false - if ( 'function' === typeof this.options.conflictManager.onConflictDetected - && !this.options.conflictManager.onConflictDetected( this.$element, this.storage.get( this.path ) ) ) { - return false; - } - - if ( this.options.conflictManager.garlicPriority ) { - this.$element.data( 'swap-data', this.$element.val() ); - this.$element.data( 'swap-state', 'garlic' ); - this.$element.val( this.storage.get( this.path ) ); - } else { - this.$element.data( 'swap-data', this.storage.get( this.path ) ); - this.$element.data( 'swap-state', 'default' ); - } - - this.swapHandler(); - this.$element.addClass( 'garlic-conflict-detected' ); - this.$element.closest( 'input[type=submit]' ).attr( 'disabled', true ); - } - - /* manage swap user interface */ - , swapHandler: function () { - var swapChoiceElem = $( this.options.conflictManager.template ); - this.$element.after( swapChoiceElem.text( this.options.conflictManager.message ) ); - swapChoiceElem.on( 'click', false, $.proxy( this.swap, this ) ); - } - - /* swap data / states for conflicted elements */ - , swap: function () { - var val = this.$element.data( 'swap-data' ); - this.$element.data( 'swap-state', 'garlic' === this.$element.data( 'swap-state' ) ? 'default' : 'garlic' ); - this.$element.data( 'swap-data', this.$element.val()); - $( this.$element ).val( val ); - } - - /* delete localStorage persistance only */ - , destroy: function () { - this.storage.destroy( this.path ); - } - - /* remove data / reset state AND delete localStorage */ - , remove: function () { - this.remove(); - - if ( this.$element.is( 'input[type=radio], input[type=checkbox]' ) ) { - $( this.$element ).prop( 'checked', false ); - return; - } - - this.$element.val( '' ); - } - - /* retuns an unique identifier for form elements, depending on their behaviors: - * radio buttons: domain > pathname > form.[:eq(x)] > input. - no eq(); must be all stored under the same field name inside the same form - - * checkbokes: domain > pathname > form.[:eq(x)] > [fieldset, div, span..] > input.[:eq(y)] - cuz' they have the same name, must detect their exact position in the form. detect the exact hierarchy in DOM elements - - * other inputs: domain > pathname > form.[:eq(x)] > input.[:eq(y)] - we just need the element name / eq() inside a given form - */ - , getPath: function ( elem ) { - - if ( 'undefined' === typeof elem ) { - elem = this.$element; - } - - if ( this.options.getPath( elem ) ) { - return this.options.getPath( elem ); - } - - // Requires one element. - if ( elem.length != 1 ) { - return false; - } - - var path = '' - , fullPath = elem.is( 'input[type=checkbox]' ) - , node = elem; - - while ( node.length ) { - var realNode = node[0] - , name = realNode.nodeName; - - if ( !name ) { - break; - } - - name = name.toLowerCase(); - - var parent = node.parent() - , siblings = parent.children( name ); - - // don't need to pollute path with select, fieldsets, divs and other noisy elements, - // exept for checkboxes that need exact path, cuz have same name and sometimes same eq()! - if ( !$( realNode ).is( 'form, input, select, textarea' ) && !fullPath ) { - node = parent; - continue; - } - - // set input type as name + name attr if exists - name += $( realNode ).attr( 'name' ) ? '.' + $( realNode ).attr( 'name' ) : ''; - - // if has sibilings, get eq(), exept for radio buttons - if ( siblings.length > 1 && !$( realNode ).is( 'input[type=radio]' ) ) { - name += ':eq(' + siblings.index( realNode ) + ')'; - } - - path = name + ( path ? '>' + path : '' ); - - // break once we came up to form:eq(x), no need to go further - if ( 'form' == realNode.nodeName.toLowerCase() ) { - break; - } - - node = parent; - } - - return 'garlic:' + document.domain + ( this.options.domain ? '*' : window.location.pathname ) + '>' + path; - } - - , getStorage: function () { - return this.storage; - } - } - - /* GARLIC PLUGIN DEFINITION - * ========================= */ - - $.fn.garlic = function ( option, fn ) { - var options = $.extend(true, {}, $.fn.garlic.defaults, option, this.data() ) - , storage = new Storage() - , returnValue = false; - - // this plugin heavily rely on local Storage. If there is no localStorage or data-storage=false, no need to go further - if ( !storage.defined ) { - return false; - } - - function bind ( self ) { - var $this = $( self ) - , data = $this.data( 'garlic' ) - , fieldOptions = $.extend( {}, options, $this.data() ); - - // don't bind an elem with data-storage=false - if ( 'undefined' !== typeof fieldOptions.storage && !fieldOptions.storage ) { - return; - } - - // don't bind a password type field - if ( 'password' === $( self ).attr( 'type' ) ) { - return; - } - - // if data never binded, bind it right now! - if ( !data ) { - $this.data( 'garlic', ( data = new Garlic( self, storage, fieldOptions ) ) ); - } - - // here is our garlic public function accessor, currently does not support args - if ( 'string' === typeof option && 'function' === typeof data[option] ) { - return data[option](); - } - } - - // loop through every elemt we want to garlic - this.each(function () { - - // if a form elem is given, bind all its input children - if ( $( this ).is( 'form' ) ) { - $( this ).find( options.inputs ).each( function () { - returnValue = bind( $( this ) ); - }); - - // if it is a Garlic supported single element, bind it too - // add here a return instance, cuz' we could call public methods on single elems with data[option]() above - } else if ( $( this ).is( options.inputs ) ) { - returnValue = bind( $( this ) ); - } - }); - - return 'function' === typeof fn ? fn() : returnValue; - } - - /* GARLIC CONFIGS & OPTIONS - * ========================= */ - $.fn.garlic.Constructor = Garlic; - - $.fn.garlic.defaults = { - destroy: true // Remove or not localstorage on submit & clear - , inputs: 'input, textarea, select' // Default supported inputs. - , events: [ 'DOMAttrModified', 'textInput', 'input', 'change', 'click', 'keypress', 'paste', 'focus' ] // Events list that trigger a localStorage - , domain: false // Store et retrieve forms data accross all domain, not just on - , expires: false // false for no expiration, otherwise (int) in seconds for auto-expiration - , conflictManager: { - enabled: false // Manage default data and persisted data. If false, persisted data will always replace default ones - , garlicPriority: true // If form have default data, garlic persisted data will be shown first - , template: '' // Template used to swap between values if conflict detected - , message: 'This is your saved data. Click here to see default one' // Default message for swapping data / state - , onConflictDetected: function ( $item, storedVal ) { return true; } // This function will be triggered if a conflict is detected on an item. Return true if you want Garlic behavior, return false if you want to override it - } - , getPath: function ( $item ) {} // Set your own key-storing strategy per field - , onRetrieve: function ( $item, storedVal ) {} // This function will be triggered each time Garlic find an retrieve a local stored data for a field - } - - /* GARLIC DATA-API - * =============== */ - $( window ).on( 'load', function () { - $( '[data-persist="garlic"]' ).each( function () { - $(this).garlic(); - }) - }); - -// This plugin works with jQuery or Zepto (with data extension builded for Zepto. See changelog 0.0.6) -}(window.jQuery || window.Zepto); diff --git a/public/javascripts/vendor/google-code-prettify/lang-apollo.js b/public/javascripts/vendor/google-code-prettify/lang-apollo.js deleted file mode 100755 index 99e4a97a5..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-apollo.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, -null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-basic.js b/public/javascripts/vendor/google-code-prettify/lang-basic.js deleted file mode 100755 index 6b784d436..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-basic.js +++ /dev/null @@ -1,3 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", -/^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-clj.js b/public/javascripts/vendor/google-code-prettify/lang-clj.js deleted file mode 100755 index 1bb539cd4..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-clj.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - Copyright (C) 2011 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], -["typ",/^:[\dA-Za-z-]+/]]),["clj"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-css.js b/public/javascripts/vendor/google-code-prettify/lang-css.js deleted file mode 100755 index d7a4640c7..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-css.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], -["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-dart.js b/public/javascripts/vendor/google-code-prettify/lang-dart.js deleted file mode 100755 index eefccc914..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-dart.js +++ /dev/null @@ -1,3 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], -["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), -["dart"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-erlang.js b/public/javascripts/vendor/google-code-prettify/lang-erlang.js deleted file mode 100755 index 27214a50f..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-erlang.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], -["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-go.js b/public/javascripts/vendor/google-code-prettify/lang-go.js deleted file mode 100755 index 1caca2318..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-go.js +++ /dev/null @@ -1 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-hs.js b/public/javascripts/vendor/google-code-prettify/lang-hs.js deleted file mode 100755 index ff3729bbe..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-hs.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, -null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-lisp.js b/public/javascripts/vendor/google-code-prettify/lang-lisp.js deleted file mode 100755 index 9c8cfa576..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-lisp.js +++ /dev/null @@ -1,3 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], -["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-llvm.js b/public/javascripts/vendor/google-code-prettify/lang-llvm.js deleted file mode 100755 index 16fade29f..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-llvm.js +++ /dev/null @@ -1 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-lua.js b/public/javascripts/vendor/google-code-prettify/lang-lua.js deleted file mode 100755 index 7e44cca0a..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-lua.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], -["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-matlab.js b/public/javascripts/vendor/google-code-prettify/lang-matlab.js deleted file mode 100755 index d0d35164f..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-matlab.js +++ /dev/null @@ -1,6 +0,0 @@ -var a=null,b=window.PR,c=[[b.PR_PLAIN,/^[\t-\r \xa0]+/,a," \t\r\n\u000b\u000c\u00a0"],[b.PR_COMMENT,/^%{[^%]*%+(?:[^%}][^%]*%+)*}/,a],[b.PR_COMMENT,/^%[^\n\r]*/,a,"%"],["syscmd",/^![^\n\r]*/,a,"!"]],d=[["linecont",/^\.\.\.\s*[\n\r]/,a],["err",/^\?\?\? [^\n\r]*/,a],["wrn",/^Warning: [^\n\r]*/,a],["codeoutput",/^>>\s+/,a],["codeoutput",/^octave:\d+>\s+/,a],["lang-matlab-operators",/^((?:[A-Za-z]\w*(?:\.[A-Za-z]\w*)*|[).\]}])')/,a],["lang-matlab-identifiers",/^([A-Za-z]\w*(?:\.[A-Za-z]\w*)*)(?!')/,a], -[b.PR_STRING,/^'(?:[^']|'')*'/,a],[b.PR_LITERAL,/^[+-]?\.?\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?[ij]?/,a],[b.PR_TAG,/^[()[\]{}]/,a],[b.PR_PUNCTUATION,/^[!&*-/:->@\\^|~]/,a]],e=[["lang-matlab-identifiers",/^([A-Za-z]\w*(?:\.[A-Za-z]\w*)*)/,a],[b.PR_TAG,/^[()[\]{}]/,a],[b.PR_PUNCTUATION,/^[!&*-/:->@\\^|~]/,a],["transpose",/^'/,a]]; -b.registerLangHandler(b.createSimpleLexer([],[[b.PR_KEYWORD,/^\b(?:break|case|catch|classdef|continue|else|elseif|end|for|function|global|if|otherwise|parfor|persistent|return|spmd|switch|try|while)\b/,a],["const",/^\b(?:true|false|inf|Inf|nan|NaN|eps|pi|ans|nargin|nargout|varargin|varargout)\b/,a],[b.PR_TYPE,/^\b(?:cell|struct|char|double|single|logical|u?int(?:8|16|32|64)|sparse)\b/,a],["fun",/^\b(?:abs|accumarray|acos(?:d|h)?|acot(?:d|h)?|acsc(?:d|h)?|actxcontrol(?:list|select)?|actxGetRunningServer|actxserver|addlistener|addpath|addpref|addtodate|airy|align|alim|all|allchild|alpha|alphamap|amd|ancestor|and|angle|annotation|any|area|arrayfun|asec(?:d|h)?|asin(?:d|h)?|assert|assignin|atan[2dh]?|audiodevinfo|audioplayer|audiorecorder|aufinfo|auread|autumn|auwrite|avifile|aviinfo|aviread|axes|axis|balance|bar(?:3|3h|h)?|base2dec|beep|BeginInvoke|bench|bessel[h-ky]|beta|betainc|betaincinv|betaln|bicg|bicgstab|bicgstabl|bin2dec|bitand|bitcmp|bitget|bitmax|bitnot|bitor|bitset|bitshift|bitxor|blanks|blkdiag|bone|box|brighten|brush|bsxfun|builddocsearchdb|builtin|bvp4c|bvp5c|bvpget|bvpinit|bvpset|bvpxtend|calendar|calllib|callSoapService|camdolly|cameratoolbar|camlight|camlookat|camorbit|campan|campos|camproj|camroll|camtarget|camup|camva|camzoom|cart2pol|cart2sph|cast|cat|caxis|cd|cdf2rdf|cdfepoch|cdfinfo|cdflib(?:.(?:close|closeVar|computeEpoch|computeEpoch16|create|createAttr|createVar|delete|deleteAttr|deleteAttrEntry|deleteAttrgEntry|deleteVar|deleteVarRecords|epoch16Breakdown|epochBreakdown|getAttrEntry|getAttrgEntry|getAttrMaxEntry|getAttrMaxgEntry|getAttrName|getAttrNum|getAttrScope|getCacheSize|getChecksum|getCompression|getCompressionCacheSize|getConstantNames|getConstantValue|getCopyright|getFileBackward|getFormat|getLibraryCopyright|getLibraryVersion|getMajority|getName|getNumAttrEntries|getNumAttrgEntries|getNumAttributes|getNumgAttributes|getReadOnlyMode|getStageCacheSize|getValidate|getVarAllocRecords|getVarBlockingFactor|getVarCacheSize|getVarCompression|getVarData|getVarMaxAllocRecNum|getVarMaxWrittenRecNum|getVarName|getVarNum|getVarNumRecsWritten|getVarPadValue|getVarRecordData|getVarReservePercent|getVarsMaxWrittenRecNum|getVarSparseRecords|getVersion|hyperGetVarData|hyperPutVarData|inquire|inquireAttr|inquireAttrEntry|inquireAttrgEntry|inquireVar|open|putAttrEntry|putAttrgEntry|putVarData|putVarRecordData|renameAttr|renameVar|setCacheSize|setChecksum|setCompression|setCompressionCacheSize|setFileBackward|setFormat|setMajority|setReadOnlyMode|setStageCacheSize|setValidate|setVarAllocBlockRecords|setVarBlockingFactor|setVarCacheSize|setVarCompression|setVarInitialRecs|setVarPadValue|SetVarReservePercent|setVarsCacheSize|setVarSparseRecords))?|cdfread|cdfwrite|ceil|cell2mat|cell2struct|celldisp|cellfun|cellplot|cellstr|cgs|checkcode|checkin|checkout|chol|cholinc|cholupdate|circshift|cla|clabel|class|clc|clear|clearvars|clf|clipboard|clock|close|closereq|cmopts|cmpermute|cmunique|colamd|colon|colorbar|colordef|colormap|colormapeditor|colperm|Combine|comet|comet3|commandhistory|commandwindow|compan|compass|complex|computer|cond|condeig|condest|coneplot|conj|containers.Map|contour(?:[3cf]|slice)?|contrast|conv|conv2|convhull|convhulln|convn|cool|copper|copyfile|copyobj|corrcoef|cos(?:d|h)?|cot(?:d|h)?|cov|cplxpair|cputime|createClassFromWsdl|createSoapMessage|cross|csc(?:d|h)?|csvread|csvwrite|ctranspose|cumprod|cumsum|cumtrapz|curl|customverctrl|cylinder|daqread|daspect|datacursormode|datatipinfo|date|datenum|datestr|datetick|datevec|dbclear|dbcont|dbdown|dblquad|dbmex|dbquit|dbstack|dbstatus|dbstep|dbstop|dbtype|dbup|dde23|ddeget|ddesd|ddeset|deal|deblank|dec2base|dec2bin|dec2hex|decic|deconv|del2|delaunay|delaunay3|delaunayn|DelaunayTri|delete|demo|depdir|depfun|det|detrend|deval|diag|dialog|diary|diff|diffuse|dir|disp|display|dither|divergence|dlmread|dlmwrite|dmperm|doc|docsearch|dos|dot|dragrect|drawnow|dsearch|dsearchn|dynamicprops|echo|echodemo|edit|eig|eigs|ellipj|ellipke|ellipsoid|empty|enableNETfromNetworkDrive|enableservice|EndInvoke|enumeration|eomday|eq|erf|erfc|erfcinv|erfcx|erfinv|error|errorbar|errordlg|etime|etree|etreeplot|eval|evalc|evalin|event.(?:EventData|listener|PropertyEvent|proplistener)|exifread|exist|exit|exp|expint|expm|expm1|export2wsdlg|eye|ezcontour|ezcontourf|ezmesh|ezmeshc|ezplot|ezplot3|ezpolar|ezsurf|ezsurfc|factor|factorial|fclose|feather|feature|feof|ferror|feval|fft|fft2|fftn|fftshift|fftw|fgetl|fgets|fieldnames|figure|figurepalette|fileattrib|filebrowser|filemarker|fileparts|fileread|filesep|fill|fill3|filter|filter2|find|findall|findfigs|findobj|findstr|finish|fitsdisp|fitsinfo|fitsread|fitswrite|fix|flag|flipdim|fliplr|flipud|floor|flow|fminbnd|fminsearch|fopen|format|fplot|fprintf|frame2im|fread|freqspace|frewind|fscanf|fseek|ftell|FTP|full|fullfile|func2str|functions|funm|fwrite|fzero|gallery|gamma|gammainc|gammaincinv|gammaln|gca|gcbf|gcbo|gcd|gcf|gco|ge|genpath|genvarname|get|getappdata|getenv|getfield|getframe|getpixelposition|getpref|ginput|gmres|gplot|grabcode|gradient|gray|graymon|grid|griddata(?:3|n)?|griddedInterpolant|gsvd|gt|gtext|guidata|guide|guihandles|gunzip|gzip|h5create|h5disp|h5info|h5read|h5readatt|h5write|h5writeatt|hadamard|handle|hankel|hdf|hdf5|hdf5info|hdf5read|hdf5write|hdfinfo|hdfread|hdftool|help|helpbrowser|helpdesk|helpdlg|helpwin|hess|hex2dec|hex2num|hgexport|hggroup|hgload|hgsave|hgsetget|hgtransform|hidden|hilb|hist|histc|hold|home|horzcat|hostid|hot|hsv|hsv2rgb|hypot|ichol|idivide|ifft|ifft2|ifftn|ifftshift|ilu|im2frame|im2java|imag|image|imagesc|imapprox|imfinfo|imformats|import|importdata|imread|imwrite|ind2rgb|ind2sub|inferiorto|info|inline|inmem|inpolygon|input|inputdlg|inputname|inputParser|inspect|instrcallback|instrfind|instrfindall|int2str|integral(?:2|3)?|interp(?:1|1q|2|3|ft|n)|interpstreamspeed|intersect|intmax|intmin|inv|invhilb|ipermute|isa|isappdata|iscell|iscellstr|ischar|iscolumn|isdir|isempty|isequal|isequaln|isequalwithequalnans|isfield|isfinite|isfloat|isglobal|ishandle|ishghandle|ishold|isinf|isinteger|isjava|iskeyword|isletter|islogical|ismac|ismatrix|ismember|ismethod|isnan|isnumeric|isobject|isocaps|isocolors|isonormals|isosurface|ispc|ispref|isprime|isprop|isreal|isrow|isscalar|issorted|isspace|issparse|isstr|isstrprop|isstruct|isstudent|isunix|isvarname|isvector|javaaddpath|javaArray|javachk|javaclasspath|javacomponent|javaMethod|javaMethodEDT|javaObject|javaObjectEDT|javarmpath|jet|keyboard|kron|lasterr|lasterror|lastwarn|lcm|ldivide|ldl|le|legend|legendre|length|libfunctions|libfunctionsview|libisloaded|libpointer|libstruct|license|light|lightangle|lighting|lin2mu|line|lines|linkaxes|linkdata|linkprop|linsolve|linspace|listdlg|listfonts|load|loadlibrary|loadobj|log|log10|log1p|log2|loglog|logm|logspace|lookfor|lower|ls|lscov|lsqnonneg|lsqr|lt|lu|luinc|magic|makehgtform|mat2cell|mat2str|material|matfile|matlab.io.MatFile|matlab.mixin.(?:Copyable|Heterogeneous(?:.getDefaultScalarElement)?)|matlabrc|matlabroot|max|maxNumCompThreads|mean|median|membrane|memmapfile|memory|menu|mesh|meshc|meshgrid|meshz|meta.(?:class(?:.fromName)?|DynamicProperty|EnumeratedValue|event|MetaData|method|package(?:.(?:fromName|getAllPackages))?|property)|metaclass|methods|methodsview|mex(?:.getCompilerConfigurations)?|MException|mexext|mfilename|min|minres|minus|mislocked|mkdir|mkpp|mldivide|mlint|mlintrpt|mlock|mmfileinfo|mmreader|mod|mode|more|move|movefile|movegui|movie|movie2avi|mpower|mrdivide|msgbox|mtimes|mu2lin|multibandread|multibandwrite|munlock|namelengthmax|nargchk|narginchk|nargoutchk|native2unicode|nccreate|ncdisp|nchoosek|ncinfo|ncread|ncreadatt|ncwrite|ncwriteatt|ncwriteschema|ndgrid|ndims|ne|NET(?:.(?:addAssembly|Assembly|convertArray|createArray|createGeneric|disableAutoRelease|enableAutoRelease|GenericClass|invokeGenericMethod|NetException|setStaticProperty))?|netcdf.(?:abort|close|copyAtt|create|defDim|defGrp|defVar|defVarChunking|defVarDeflate|defVarFill|defVarFletcher32|delAtt|endDef|getAtt|getChunkCache|getConstant|getConstantNames|getVar|inq|inqAtt|inqAttID|inqAttName|inqDim|inqDimID|inqDimIDs|inqFormat|inqGrpName|inqGrpNameFull|inqGrpParent|inqGrps|inqLibVers|inqNcid|inqUnlimDims|inqVar|inqVarChunking|inqVarDeflate|inqVarFill|inqVarFletcher32|inqVarID|inqVarIDs|open|putAtt|putVar|reDef|renameAtt|renameDim|renameVar|setChunkCache|setDefaultFormat|setFill|sync)|newplot|nextpow2|nnz|noanimate|nonzeros|norm|normest|not|notebook|now|nthroot|null|num2cell|num2hex|num2str|numel|nzmax|ode(?:113|15i|15s|23|23s|23t|23tb|45)|odeget|odeset|odextend|onCleanup|ones|open|openfig|opengl|openvar|optimget|optimset|or|ordeig|orderfields|ordqz|ordschur|orient|orth|pack|padecoef|pagesetupdlg|pan|pareto|parseSoapResponse|pascal|patch|path|path2rc|pathsep|pathtool|pause|pbaspect|pcg|pchip|pcode|pcolor|pdepe|pdeval|peaks|perl|perms|permute|pie|pink|pinv|planerot|playshow|plot|plot3|plotbrowser|plotedit|plotmatrix|plottools|plotyy|plus|pol2cart|polar|poly|polyarea|polyder|polyeig|polyfit|polyint|polyval|polyvalm|pow2|power|ppval|prefdir|preferences|primes|print|printdlg|printopt|printpreview|prod|profile|profsave|propedit|propertyeditor|psi|publish|PutCharArray|PutFullMatrix|PutWorkspaceData|pwd|qhull|qmr|qr|qrdelete|qrinsert|qrupdate|quad|quad2d|quadgk|quadl|quadv|questdlg|quit|quiver|quiver3|qz|rand|randi|randn|randperm|RandStream(?:.(?:create|getDefaultStream|getGlobalStream|list|setDefaultStream|setGlobalStream))?|rank|rat|rats|rbbox|rcond|rdivide|readasync|real|reallog|realmax|realmin|realpow|realsqrt|record|rectangle|rectint|recycle|reducepatch|reducevolume|refresh|refreshdata|regexp|regexpi|regexprep|regexptranslate|rehash|rem|Remove|RemoveAll|repmat|reset|reshape|residue|restoredefaultpath|rethrow|rgb2hsv|rgb2ind|rgbplot|ribbon|rmappdata|rmdir|rmfield|rmpath|rmpref|rng|roots|rose|rosser|rot90|rotate|rotate3d|round|rref|rsf2csf|run|save|saveas|saveobj|savepath|scatter|scatter3|schur|sec|secd|sech|selectmoveresize|semilogx|semilogy|sendmail|serial|set|setappdata|setdiff|setenv|setfield|setpixelposition|setpref|setstr|setxor|shading|shg|shiftdim|showplottool|shrinkfaces|sign|sin(?:d|h)?|size|slice|smooth3|snapnow|sort|sortrows|sound|soundsc|spalloc|spaugment|spconvert|spdiags|specular|speye|spfun|sph2cart|sphere|spinmap|spline|spones|spparms|sprand|sprandn|sprandsym|sprank|spring|sprintf|spy|sqrt|sqrtm|squeeze|ss2tf|sscanf|stairs|startup|std|stem|stem3|stopasync|str2double|str2func|str2mat|str2num|strcat|strcmp|strcmpi|stream2|stream3|streamline|streamparticles|streamribbon|streamslice|streamtube|strfind|strjust|strmatch|strncmp|strncmpi|strread|strrep|strtok|strtrim|struct2cell|structfun|strvcat|sub2ind|subplot|subsasgn|subsindex|subspace|subsref|substruct|subvolume|sum|summer|superclasses|superiorto|support|surf|surf2patch|surface|surfc|surfl|surfnorm|svd|svds|swapbytes|symamd|symbfact|symmlq|symrcm|symvar|system|tan(?:d|h)?|tar|tempdir|tempname|tetramesh|texlabel|text|textread|textscan|textwrap|tfqmr|throw|tic|Tiff(?:.(?:getTagNames|getVersion))?|timer|timerfind|timerfindall|times|timeseries|title|toc|todatenum|toeplitz|toolboxdir|trace|transpose|trapz|treelayout|treeplot|tril|trimesh|triplequad|triplot|TriRep|TriScatteredInterp|trisurf|triu|tscollection|tsearch|tsearchn|tstool|type|typecast|uibuttongroup|uicontextmenu|uicontrol|uigetdir|uigetfile|uigetpref|uiimport|uimenu|uiopen|uipanel|uipushtool|uiputfile|uiresume|uisave|uisetcolor|uisetfont|uisetpref|uistack|uitable|uitoggletool|uitoolbar|uiwait|uminus|undocheckout|unicode2native|union|unique|unix|unloadlibrary|unmesh|unmkpp|untar|unwrap|unzip|uplus|upper|urlread|urlwrite|usejava|userpath|validateattributes|validatestring|vander|var|vectorize|ver|verctrl|verLessThan|version|vertcat|VideoReader(?:.isPlatformSupported)?|VideoWriter(?:.getProfiles)?|view|viewmtx|visdiff|volumebounds|voronoi|voronoin|wait|waitbar|waitfor|waitforbuttonpress|warndlg|warning|waterfall|wavfinfo|wavplay|wavread|wavrecord|wavwrite|web|weekday|what|whatsnew|which|whitebg|who|whos|wilkinson|winopen|winqueryreg|winter|wk1finfo|wk1read|wk1write|workspace|xlabel|xlim|xlsfinfo|xlsread|xlswrite|xmlread|xmlwrite|xor|xslt|ylabel|ylim|zeros|zip|zlabel|zlim|zoom)\b/, -a],["fun_tbx",/^\b(?:addedvarplot|andrewsplot|anova[12n]|ansaribradley|aoctool|barttest|bbdesign|beta(?:cdf|fit|inv|like|pdf|rnd|stat)|bino(?:cdf|fit|inv|pdf|rnd|stat)|biplot|bootci|bootstrp|boxplot|candexch|candgen|canoncorr|capability|capaplot|caseread|casewrite|categorical|ccdesign|cdfplot|chi2(?:cdf|gof|inv|pdf|rnd|stat)|cholcov|Classification(?:BaggedEnsemble|Discriminant(?:.(?:fit|make|template))?|Ensemble|KNN(?:.(?:fit|template))?|PartitionedEnsemble|PartitionedModel|Tree(?:.(?:fit|template))?)|classify|classregtree|cluster|clusterdata|cmdscale|combnk|Compact(?:Classification(?:Discriminant|Ensemble|Tree)|Regression(?:Ensemble|Tree)|TreeBagger)|confusionmat|controlchart|controlrules|cophenet|copula(?:cdf|fit|param|pdf|rnd|stat)|cordexch|corr|corrcov|coxphfit|createns|crosstab|crossval|cvpartition|datasample|dataset|daugment|dcovary|dendrogram|dfittool|disttool|dummyvar|dwtest|ecdf|ecdfhist|ev(?:cdf|fit|inv|like|pdf|rnd|stat)|ExhaustiveSearcher|exp(?:cdf|fit|inv|like|pdf|rnd|stat)|factoran|fcdf|ff2n|finv|fitdist|fitensemble|fpdf|fracfact|fracfactgen|friedman|frnd|fstat|fsurfht|fullfact|gagerr|gam(?:cdf|fit|inv|like|pdf|rnd|stat)|GeneralizedLinearModel(?:.fit)?|geo(?:cdf|inv|mean|pdf|rnd|stat)|gev(?:cdf|fit|inv|like|pdf|rnd|stat)|gline|glmfit|glmval|glyphplot|gmdistribution(?:.fit)?|gname|gp(?:cdf|fit|inv|like|pdf|rnd|stat)|gplotmatrix|grp2idx|grpstats|gscatter|haltonset|harmmean|hist3|histfit|hmm(?:decode|estimate|generate|train|viterbi)|hougen|hyge(?:cdf|inv|pdf|rnd|stat)|icdf|inconsistent|interactionplot|invpred|iqr|iwishrnd|jackknife|jbtest|johnsrnd|KDTreeSearcher|kmeans|knnsearch|kruskalwallis|ksdensity|kstest|kstest2|kurtosis|lasso|lassoglm|lassoPlot|leverage|lhsdesign|lhsnorm|lillietest|LinearModel(?:.fit)?|linhyptest|linkage|logn(?:cdf|fit|inv|like|pdf|rnd|stat)|lsline|mad|mahal|maineffectsplot|manova1|manovacluster|mdscale|mhsample|mle|mlecov|mnpdf|mnrfit|mnrnd|mnrval|moment|multcompare|multivarichart|mvn(?:cdf|pdf|rnd)|mvregress|mvregresslike|mvt(?:cdf|pdf|rnd)|NaiveBayes(?:.fit)?|nan(?:cov|max|mean|median|min|std|sum|var)|nbin(?:cdf|fit|inv|pdf|rnd|stat)|ncf(?:cdf|inv|pdf|rnd|stat)|nct(?:cdf|inv|pdf|rnd|stat)|ncx2(?:cdf|inv|pdf|rnd|stat)|NeighborSearcher|nlinfit|nlintool|nlmefit|nlmefitsa|nlparci|nlpredci|nnmf|nominal|NonLinearModel(?:.fit)?|norm(?:cdf|fit|inv|like|pdf|rnd|stat)|normplot|normspec|ordinal|outlierMeasure|parallelcoords|paretotails|partialcorr|pcacov|pcares|pdf|pdist|pdist2|pearsrnd|perfcurve|perms|piecewisedistribution|plsregress|poiss(?:cdf|fit|inv|pdf|rnd|tat)|polyconf|polytool|prctile|princomp|ProbDist(?:Kernel|Parametric|UnivKernel|UnivParam)?|probplot|procrustes|qqplot|qrandset|qrandstream|quantile|randg|random|randsample|randtool|range|rangesearch|ranksum|rayl(?:cdf|fit|inv|pdf|rnd|stat)|rcoplot|refcurve|refline|regress|Regression(?:BaggedEnsemble|Ensemble|PartitionedEnsemble|PartitionedModel|Tree(?:.(?:fit|template))?)|regstats|relieff|ridge|robustdemo|robustfit|rotatefactors|rowexch|rsmdemo|rstool|runstest|sampsizepwr|scatterhist|sequentialfs|signrank|signtest|silhouette|skewness|slicesample|sobolset|squareform|statget|statset|stepwise|stepwisefit|surfht|tabulate|tblread|tblwrite|tcdf|tdfread|tiedrank|tinv|tpdf|TreeBagger|treedisp|treefit|treeprune|treetest|treeval|trimmean|trnd|tstat|ttest|ttest2|unid(?:cdf|inv|pdf|rnd|stat)|unif(?:cdf|inv|it|pdf|rnd|stat)|vartest(?:2|n)?|wbl(?:cdf|fit|inv|like|pdf|rnd|stat)|wblplot|wishrnd|x2fx|xptread|zscore|ztest)\b/, -a],["fun_tbx",/^\b(?:adapthisteq|analyze75info|analyze75read|applycform|applylut|axes2pix|bestblk|blockproc|bwarea|bwareaopen|bwboundaries|bwconncomp|bwconvhull|bwdist|bwdistgeodesic|bweuler|bwhitmiss|bwlabel|bwlabeln|bwmorph|bwpack|bwperim|bwselect|bwtraceboundary|bwulterode|bwunpack|checkerboard|col2im|colfilt|conndef|convmtx2|corner|cornermetric|corr2|cp2tform|cpcorr|cpselect|cpstruct2pairs|dct2|dctmtx|deconvblind|deconvlucy|deconvreg|deconvwnr|decorrstretch|demosaic|dicom(?:anon|dict|info|lookup|read|uid|write)|edge|edgetaper|entropy|entropyfilt|fan2para|fanbeam|findbounds|fliptform|freqz2|fsamp2|fspecial|ftrans2|fwind1|fwind2|getheight|getimage|getimagemodel|getline|getneighbors|getnhood|getpts|getrangefromclass|getrect|getsequence|gray2ind|graycomatrix|graycoprops|graydist|grayslice|graythresh|hdrread|hdrwrite|histeq|hough|houghlines|houghpeaks|iccfind|iccread|iccroot|iccwrite|idct2|ifanbeam|im2bw|im2col|im2double|im2int16|im2java2d|im2single|im2uint16|im2uint8|imabsdiff|imadd|imadjust|ImageAdapter|imageinfo|imagemodel|imapplymatrix|imattributes|imbothat|imclearborder|imclose|imcolormaptool|imcomplement|imcontour|imcontrast|imcrop|imdilate|imdisplayrange|imdistline|imdivide|imellipse|imerode|imextendedmax|imextendedmin|imfill|imfilter|imfindcircles|imfreehand|imfuse|imgca|imgcf|imgetfile|imhandles|imhist|imhmax|imhmin|imimposemin|imlincomb|imline|immagbox|immovie|immultiply|imnoise|imopen|imoverview|imoverviewpanel|impixel|impixelinfo|impixelinfoval|impixelregion|impixelregionpanel|implay|impoint|impoly|impositionrect|improfile|imputfile|impyramid|imreconstruct|imrect|imregconfig|imregionalmax|imregionalmin|imregister|imresize|imroi|imrotate|imsave|imscrollpanel|imshow|imshowpair|imsubtract|imtool|imtophat|imtransform|imview|ind2gray|ind2rgb|interfileinfo|interfileread|intlut|ippl|iptaddcallback|iptcheckconn|iptcheckhandle|iptcheckinput|iptcheckmap|iptchecknargin|iptcheckstrs|iptdemos|iptgetapi|iptGetPointerBehavior|iptgetpref|ipticondir|iptnum2ordinal|iptPointerManager|iptprefs|iptremovecallback|iptSetPointerBehavior|iptsetpref|iptwindowalign|iradon|isbw|isflat|isgray|isicc|isind|isnitf|isrgb|isrset|lab2double|lab2uint16|lab2uint8|label2rgb|labelmatrix|makecform|makeConstrainToRectFcn|makehdr|makelut|makeresampler|maketform|mat2gray|mean2|medfilt2|montage|nitfinfo|nitfread|nlfilter|normxcorr2|ntsc2rgb|openrset|ordfilt2|otf2psf|padarray|para2fan|phantom|poly2mask|psf2otf|qtdecomp|qtgetblk|qtsetblk|radon|rangefilt|reflect|regionprops|registration.metric.(?:MattesMutualInformation|MeanSquares)|registration.optimizer.(?:OnePlusOneEvolutionary|RegularStepGradientDescent)|rgb2gray|rgb2ntsc|rgb2ycbcr|roicolor|roifill|roifilt2|roipoly|rsetwrite|std2|stdfilt|strel|stretchlim|subimage|tformarray|tformfwd|tforminv|tonemap|translate|truesize|uintlut|viscircles|warp|watershed|whitepoint|wiener2|xyz2double|xyz2uint16|ycbcr2rgb)\b/, -a],["fun_tbx",/^\b(?:bintprog|color|fgoalattain|fminbnd|fmincon|fminimax|fminsearch|fminunc|fseminf|fsolve|fzero|fzmult|gangstr|ktrlink|linprog|lsqcurvefit|lsqlin|lsqnonlin|lsqnonneg|optimget|optimset|optimtool|quadprog)\b/,a],["ident",/^[A-Za-z]\w*(?:\.[A-Za-z]\w*)*/,a]]),["matlab-identifiers"]);b.registerLangHandler(b.createSimpleLexer([],e),["matlab-operators"]);b.registerLangHandler(b.createSimpleLexer(c,d),["matlab"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-ml.js b/public/javascripts/vendor/google-code-prettify/lang-ml.js deleted file mode 100755 index 8ed2b0ce5..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-ml.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], -["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-mumps.js b/public/javascripts/vendor/google-code-prettify/lang-mumps.js deleted file mode 100755 index 8a6b3fd69..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-mumps.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, -null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-n.js b/public/javascripts/vendor/google-code-prettify/lang-n.js deleted file mode 100755 index 27812a585..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-n.js +++ /dev/null @@ -1,4 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, -a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, -a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-pascal.js b/public/javascripts/vendor/google-code-prettify/lang-pascal.js deleted file mode 100755 index 8435fad34..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-pascal.js +++ /dev/null @@ -1,3 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], -["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-proto.js b/public/javascripts/vendor/google-code-prettify/lang-proto.js deleted file mode 100755 index f006ad8cf..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-proto.js +++ /dev/null @@ -1 +0,0 @@ -PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-r.js b/public/javascripts/vendor/google-code-prettify/lang-r.js deleted file mode 100755 index 99af8f859..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-r.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], -["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-rd.js b/public/javascripts/vendor/google-code-prettify/lang-rd.js deleted file mode 100755 index 7a7e43fd5..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-rd.js +++ /dev/null @@ -1 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-scala.js b/public/javascripts/vendor/google-code-prettify/lang-scala.js deleted file mode 100755 index 3f97dba56..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-scala.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], -["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-sql.js b/public/javascripts/vendor/google-code-prettify/lang-sql.js deleted file mode 100755 index 8ec4280b8..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-sql.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i, -null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-tcl.js b/public/javascripts/vendor/google-code-prettify/lang-tcl.js deleted file mode 100755 index 490f562c2..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-tcl.js +++ /dev/null @@ -1,3 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", -/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-tex.js b/public/javascripts/vendor/google-code-prettify/lang-tex.js deleted file mode 100755 index dcfdadd02..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-tex.js +++ /dev/null @@ -1 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-vb.js b/public/javascripts/vendor/google-code-prettify/lang-vb.js deleted file mode 100755 index ddde4643b..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-vb.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i, -null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-vhdl.js b/public/javascripts/vendor/google-code-prettify/lang-vhdl.js deleted file mode 100755 index 51f301703..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-vhdl.js +++ /dev/null @@ -1,3 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, -null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], -["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-wiki.js b/public/javascripts/vendor/google-code-prettify/lang-wiki.js deleted file mode 100755 index 96c1e34fb..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-wiki.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); -PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-xq.js b/public/javascripts/vendor/google-code-prettify/lang-xq.js deleted file mode 100755 index e323ae323..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-xq.js +++ /dev/null @@ -1,3 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["var pln",/^\$[\w-]+/,null,"$"]],[["pln",/^[\s=][<>][\s=]/],["lit",/^@[\w-]+/],["tag",/^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["com",/^\(:[\S\s]*?:\)/],["pln",/^[(),/;[\]{}]$/],["str",/^(?:"(?:[^"\\{]|\\[\S\s])*(?:"|$)|'(?:[^'\\{]|\\[\S\s])*(?:'|$))/,null,"\"'"],["kwd",/^(?:xquery|where|version|variable|union|typeswitch|treat|to|then|text|stable|sortby|some|self|schema|satisfies|returns|return|ref|processing-instruction|preceding-sibling|preceding|precedes|parent|only|of|node|namespace|module|let|item|intersect|instance|in|import|if|function|for|follows|following-sibling|following|external|except|every|else|element|descending|descendant-or-self|descendant|define|default|declare|comment|child|cast|case|before|attribute|assert|ascending|as|ancestor-or-self|ancestor|after|eq|order|by|or|and|schema-element|document-node|node|at)\b/], -["typ",/^(?:xs:yearMonthDuration|xs:unsignedLong|xs:time|xs:string|xs:short|xs:QName|xs:Name|xs:long|xs:integer|xs:int|xs:gYearMonth|xs:gYear|xs:gMonthDay|xs:gDay|xs:float|xs:duration|xs:double|xs:decimal|xs:dayTimeDuration|xs:dateTime|xs:date|xs:byte|xs:boolean|xs:anyURI|xf:yearMonthDuration)\b/,null],["fun pln",/^(?:xp:dereference|xinc:node-expand|xinc:link-references|xinc:link-expand|xhtml:restructure|xhtml:clean|xhtml:add-lists|xdmp:zip-manifest|xdmp:zip-get|xdmp:zip-create|xdmp:xquery-version|xdmp:word-convert|xdmp:with-namespaces|xdmp:version|xdmp:value|xdmp:user-roles|xdmp:user-last-login|xdmp:user|xdmp:url-encode|xdmp:url-decode|xdmp:uri-is-file|xdmp:uri-format|xdmp:uri-content-type|xdmp:unquote|xdmp:unpath|xdmp:triggers-database|xdmp:trace|xdmp:to-json|xdmp:tidy|xdmp:subbinary|xdmp:strftime|xdmp:spawn-in|xdmp:spawn|xdmp:sleep|xdmp:shutdown|xdmp:set-session-field|xdmp:set-response-encoding|xdmp:set-response-content-type|xdmp:set-response-code|xdmp:set-request-time-limit|xdmp:set|xdmp:servers|xdmp:server-status|xdmp:server-name|xdmp:server|xdmp:security-database|xdmp:security-assert|xdmp:schema-database|xdmp:save|xdmp:role-roles|xdmp:role|xdmp:rethrow|xdmp:restart|xdmp:request-timestamp|xdmp:request-status|xdmp:request-cancel|xdmp:request|xdmp:redirect-response|xdmp:random|xdmp:quote|xdmp:query-trace|xdmp:query-meters|xdmp:product-edition|xdmp:privilege-roles|xdmp:privilege|xdmp:pretty-print|xdmp:powerpoint-convert|xdmp:platform|xdmp:permission|xdmp:pdf-convert|xdmp:path|xdmp:octal-to-integer|xdmp:node-uri|xdmp:node-replace|xdmp:node-kind|xdmp:node-insert-child|xdmp:node-insert-before|xdmp:node-insert-after|xdmp:node-delete|xdmp:node-database|xdmp:mul64|xdmp:modules-root|xdmp:modules-database|xdmp:merging|xdmp:merge-cancel|xdmp:merge|xdmp:md5|xdmp:logout|xdmp:login|xdmp:log-level|xdmp:log|xdmp:lock-release|xdmp:lock-acquire|xdmp:load|xdmp:invoke-in|xdmp:invoke|xdmp:integer-to-octal|xdmp:integer-to-hex|xdmp:http-put|xdmp:http-post|xdmp:http-options|xdmp:http-head|xdmp:http-get|xdmp:http-delete|xdmp:hosts|xdmp:host-status|xdmp:host-name|xdmp:host|xdmp:hex-to-integer|xdmp:hash64|xdmp:hash32|xdmp:has-privilege|xdmp:groups|xdmp:group-serves|xdmp:group-servers|xdmp:group-name|xdmp:group-hosts|xdmp:group|xdmp:get-session-field-names|xdmp:get-session-field|xdmp:get-response-encoding|xdmp:get-response-code|xdmp:get-request-username|xdmp:get-request-user|xdmp:get-request-url|xdmp:get-request-protocol|xdmp:get-request-path|xdmp:get-request-method|xdmp:get-request-header-names|xdmp:get-request-header|xdmp:get-request-field-names|xdmp:get-request-field-filename|xdmp:get-request-field-content-type|xdmp:get-request-field|xdmp:get-request-client-certificate|xdmp:get-request-client-address|xdmp:get-request-body|xdmp:get-current-user|xdmp:get-current-roles|xdmp:get|xdmp:function-name|xdmp:function-module|xdmp:function|xdmp:from-json|xdmp:forests|xdmp:forest-status|xdmp:forest-restore|xdmp:forest-restart|xdmp:forest-name|xdmp:forest-delete|xdmp:forest-databases|xdmp:forest-counts|xdmp:forest-clear|xdmp:forest-backup|xdmp:forest|xdmp:filesystem-file|xdmp:filesystem-directory|xdmp:exists|xdmp:excel-convert|xdmp:eval-in|xdmp:eval|xdmp:estimate|xdmp:email|xdmp:element-content-type|xdmp:elapsed-time|xdmp:document-set-quality|xdmp:document-set-property|xdmp:document-set-properties|xdmp:document-set-permissions|xdmp:document-set-collections|xdmp:document-remove-properties|xdmp:document-remove-permissions|xdmp:document-remove-collections|xdmp:document-properties|xdmp:document-locks|xdmp:document-load|xdmp:document-insert|xdmp:document-get-quality|xdmp:document-get-properties|xdmp:document-get-permissions|xdmp:document-get-collections|xdmp:document-get|xdmp:document-forest|xdmp:document-delete|xdmp:document-add-properties|xdmp:document-add-permissions|xdmp:document-add-collections|xdmp:directory-properties|xdmp:directory-locks|xdmp:directory-delete|xdmp:directory-create|xdmp:directory|xdmp:diacritic-less|xdmp:describe|xdmp:default-permissions|xdmp:default-collections|xdmp:databases|xdmp:database-restore-validate|xdmp:database-restore-status|xdmp:database-restore-cancel|xdmp:database-restore|xdmp:database-name|xdmp:database-forests|xdmp:database-backup-validate|xdmp:database-backup-status|xdmp:database-backup-purge|xdmp:database-backup-cancel|xdmp:database-backup|xdmp:database|xdmp:collection-properties|xdmp:collection-locks|xdmp:collection-delete|xdmp:collation-canonical-uri|xdmp:castable-as|xdmp:can-grant-roles|xdmp:base64-encode|xdmp:base64-decode|xdmp:architecture|xdmp:apply|xdmp:amp-roles|xdmp:amp|xdmp:add64|xdmp:add-response-header|xdmp:access|trgr:trigger-set-recursive|trgr:trigger-set-permissions|trgr:trigger-set-name|trgr:trigger-set-module|trgr:trigger-set-event|trgr:trigger-set-description|trgr:trigger-remove-permissions|trgr:trigger-module|trgr:trigger-get-permissions|trgr:trigger-enable|trgr:trigger-disable|trgr:trigger-database-online-event|trgr:trigger-data-event|trgr:trigger-add-permissions|trgr:remove-trigger|trgr:property-content|trgr:pre-commit|trgr:post-commit|trgr:get-trigger-by-id|trgr:get-trigger|trgr:document-scope|trgr:document-content|trgr:directory-scope|trgr:create-trigger|trgr:collection-scope|trgr:any-property-content|thsr:set-entry|thsr:remove-term|thsr:remove-synonym|thsr:remove-entry|thsr:query-lookup|thsr:lookup|thsr:load|thsr:insert|thsr:expand|thsr:add-synonym|spell:suggest-detailed|spell:suggest|spell:remove-word|spell:make-dictionary|spell:load|spell:levenshtein-distance|spell:is-correct|spell:insert|spell:double-metaphone|spell:add-word|sec:users-collection|sec:user-set-roles|sec:user-set-password|sec:user-set-name|sec:user-set-description|sec:user-set-default-permissions|sec:user-set-default-collections|sec:user-remove-roles|sec:user-privileges|sec:user-get-roles|sec:user-get-description|sec:user-get-default-permissions|sec:user-get-default-collections|sec:user-doc-permissions|sec:user-doc-collections|sec:user-add-roles|sec:unprotect-collection|sec:uid-for-name|sec:set-realm|sec:security-version|sec:security-namespace|sec:security-installed|sec:security-collection|sec:roles-collection|sec:role-set-roles|sec:role-set-name|sec:role-set-description|sec:role-set-default-permissions|sec:role-set-default-collections|sec:role-remove-roles|sec:role-privileges|sec:role-get-roles|sec:role-get-description|sec:role-get-default-permissions|sec:role-get-default-collections|sec:role-doc-permissions|sec:role-doc-collections|sec:role-add-roles|sec:remove-user|sec:remove-role-from-users|sec:remove-role-from-role|sec:remove-role-from-privileges|sec:remove-role-from-amps|sec:remove-role|sec:remove-privilege|sec:remove-amp|sec:protect-collection|sec:privileges-collection|sec:privilege-set-roles|sec:privilege-set-name|sec:privilege-remove-roles|sec:privilege-get-roles|sec:privilege-add-roles|sec:priv-doc-permissions|sec:priv-doc-collections|sec:get-user-names|sec:get-unique-elem-id|sec:get-role-names|sec:get-role-ids|sec:get-privilege|sec:get-distinct-permissions|sec:get-collection|sec:get-amp|sec:create-user-with-role|sec:create-user|sec:create-role|sec:create-privilege|sec:create-amp|sec:collections-collection|sec:collection-set-permissions|sec:collection-remove-permissions|sec:collection-get-permissions|sec:collection-add-permissions|sec:check-admin|sec:amps-collection|sec:amp-set-roles|sec:amp-remove-roles|sec:amp-get-roles|sec:amp-doc-permissions|sec:amp-doc-collections|sec:amp-add-roles|search:unparse|search:suggest|search:snippet|search:search|search:resolve-nodes|search:resolve|search:remove-constraint|search:parse|search:get-default-options|search:estimate|search:check-options|prof:value|prof:reset|prof:report|prof:invoke|prof:eval|prof:enable|prof:disable|prof:allowed|ppt:clean|pki:template-set-request|pki:template-set-name|pki:template-set-key-type|pki:template-set-key-options|pki:template-set-description|pki:template-in-use|pki:template-get-version|pki:template-get-request|pki:template-get-name|pki:template-get-key-type|pki:template-get-key-options|pki:template-get-id|pki:template-get-description|pki:need-certificate|pki:is-temporary|pki:insert-trusted-certificates|pki:insert-template|pki:insert-signed-certificates|pki:insert-certificate-revocation-list|pki:get-trusted-certificate-ids|pki:get-template-ids|pki:get-template-certificate-authority|pki:get-template-by-name|pki:get-template|pki:get-pending-certificate-requests-xml|pki:get-pending-certificate-requests-pem|pki:get-pending-certificate-request|pki:get-certificates-for-template-xml|pki:get-certificates-for-template|pki:get-certificates|pki:get-certificate-xml|pki:get-certificate-pem|pki:get-certificate|pki:generate-temporary-certificate-if-necessary|pki:generate-temporary-certificate|pki:generate-template-certificate-authority|pki:generate-certificate-request|pki:delete-template|pki:delete-certificate|pki:create-template|pdf:make-toc|pdf:insert-toc-headers|pdf:get-toc|pdf:clean|p:status-transition|p:state-transition|p:remove|p:pipelines|p:insert|p:get-by-id|p:get|p:execute|p:create|p:condition|p:collection|p:action|ooxml:runs-merge|ooxml:package-uris|ooxml:package-parts-insert|ooxml:package-parts|msword:clean|mcgm:polygon|mcgm:point|mcgm:geospatial-query-from-elements|mcgm:geospatial-query|mcgm:circle|math:tanh|math:tan|math:sqrt|math:sinh|math:sin|math:pow|math:modf|math:log10|math:log|math:ldexp|math:frexp|math:fmod|math:floor|math:fabs|math:exp|math:cosh|math:cos|math:ceil|math:atan2|math:atan|math:asin|math:acos|map:put|map:map|map:keys|map:get|map:delete|map:count|map:clear|lnk:to|lnk:remove|lnk:insert|lnk:get|lnk:from|lnk:create|kml:polygon|kml:point|kml:interior-polygon|kml:geospatial-query-from-elements|kml:geospatial-query|kml:circle|kml:box|gml:polygon|gml:point|gml:interior-polygon|gml:geospatial-query-from-elements|gml:geospatial-query|gml:circle|gml:box|georss:point|georss:geospatial-query|georss:circle|geo:polygon|geo:point|geo:interior-polygon|geo:geospatial-query-from-elements|geo:geospatial-query|geo:circle|geo:box|fn:zero-or-one|fn:years-from-duration|fn:year-from-dateTime|fn:year-from-date|fn:upper-case|fn:unordered|fn:true|fn:translate|fn:trace|fn:tokenize|fn:timezone-from-time|fn:timezone-from-dateTime|fn:timezone-from-date|fn:sum|fn:subtract-dateTimes-yielding-yearMonthDuration|fn:subtract-dateTimes-yielding-dayTimeDuration|fn:substring-before|fn:substring-after|fn:substring|fn:subsequence|fn:string-to-codepoints|fn:string-pad|fn:string-length|fn:string-join|fn:string|fn:static-base-uri|fn:starts-with|fn:seconds-from-time|fn:seconds-from-duration|fn:seconds-from-dateTime|fn:round-half-to-even|fn:round|fn:root|fn:reverse|fn:resolve-uri|fn:resolve-QName|fn:replace|fn:remove|fn:QName|fn:prefix-from-QName|fn:position|fn:one-or-more|fn:number|fn:not|fn:normalize-unicode|fn:normalize-space|fn:node-name|fn:node-kind|fn:nilled|fn:namespace-uri-from-QName|fn:namespace-uri-for-prefix|fn:namespace-uri|fn:name|fn:months-from-duration|fn:month-from-dateTime|fn:month-from-date|fn:minutes-from-time|fn:minutes-from-duration|fn:minutes-from-dateTime|fn:min|fn:max|fn:matches|fn:lower-case|fn:local-name-from-QName|fn:local-name|fn:last|fn:lang|fn:iri-to-uri|fn:insert-before|fn:index-of|fn:in-scope-prefixes|fn:implicit-timezone|fn:idref|fn:id|fn:hours-from-time|fn:hours-from-duration|fn:hours-from-dateTime|fn:floor|fn:false|fn:expanded-QName|fn:exists|fn:exactly-one|fn:escape-uri|fn:escape-html-uri|fn:error|fn:ends-with|fn:encode-for-uri|fn:empty|fn:document-uri|fn:doc-available|fn:doc|fn:distinct-values|fn:distinct-nodes|fn:default-collation|fn:deep-equal|fn:days-from-duration|fn:day-from-dateTime|fn:day-from-date|fn:data|fn:current-time|fn:current-dateTime|fn:current-date|fn:count|fn:contains|fn:concat|fn:compare|fn:collection|fn:codepoints-to-string|fn:codepoint-equal|fn:ceiling|fn:boolean|fn:base-uri|fn:avg|fn:adjust-time-to-timezone|fn:adjust-dateTime-to-timezone|fn:adjust-date-to-timezone|fn:abs|feed:unsubscribe|feed:subscription|feed:subscribe|feed:request|feed:item|feed:description|excel:clean|entity:enrich|dom:set-pipelines|dom:set-permissions|dom:set-name|dom:set-evaluation-context|dom:set-domain-scope|dom:set-description|dom:remove-pipeline|dom:remove-permissions|dom:remove|dom:get|dom:evaluation-context|dom:domains|dom:domain-scope|dom:create|dom:configuration-set-restart-user|dom:configuration-set-permissions|dom:configuration-set-evaluation-context|dom:configuration-set-default-domain|dom:configuration-get|dom:configuration-create|dom:collection|dom:add-pipeline|dom:add-permissions|dls:retention-rules|dls:retention-rule-remove|dls:retention-rule-insert|dls:retention-rule|dls:purge|dls:node-expand|dls:link-references|dls:link-expand|dls:documents-query|dls:document-versions-query|dls:document-version-uri|dls:document-version-query|dls:document-version-delete|dls:document-version-as-of|dls:document-version|dls:document-update|dls:document-unmanage|dls:document-set-quality|dls:document-set-property|dls:document-set-properties|dls:document-set-permissions|dls:document-set-collections|dls:document-retention-rules|dls:document-remove-properties|dls:document-remove-permissions|dls:document-remove-collections|dls:document-purge|dls:document-manage|dls:document-is-managed|dls:document-insert-and-manage|dls:document-include-query|dls:document-history|dls:document-get-permissions|dls:document-extract-part|dls:document-delete|dls:document-checkout-status|dls:document-checkout|dls:document-checkin|dls:document-add-properties|dls:document-add-permissions|dls:document-add-collections|dls:break-checkout|dls:author-query|dls:as-of-query|dbk:convert|dbg:wait|dbg:value|dbg:stopped|dbg:stop|dbg:step|dbg:status|dbg:stack|dbg:out|dbg:next|dbg:line|dbg:invoke|dbg:function|dbg:finish|dbg:expr|dbg:eval|dbg:disconnect|dbg:detach|dbg:continue|dbg:connect|dbg:clear|dbg:breakpoints|dbg:break|dbg:attached|dbg:attach|cvt:save-converted-documents|cvt:part-uri|cvt:destination-uri|cvt:basepath|cvt:basename|cts:words|cts:word-query-weight|cts:word-query-text|cts:word-query-options|cts:word-query|cts:word-match|cts:walk|cts:uris|cts:uri-match|cts:train|cts:tokenize|cts:thresholds|cts:stem|cts:similar-query-weight|cts:similar-query-nodes|cts:similar-query|cts:shortest-distance|cts:search|cts:score|cts:reverse-query-weight|cts:reverse-query-nodes|cts:reverse-query|cts:remainder|cts:registered-query-weight|cts:registered-query-options|cts:registered-query-ids|cts:registered-query|cts:register|cts:query|cts:quality|cts:properties-query-query|cts:properties-query|cts:polygon-vertices|cts:polygon|cts:point-longitude|cts:point-latitude|cts:point|cts:or-query-queries|cts:or-query|cts:not-query-weight|cts:not-query-query|cts:not-query|cts:near-query-weight|cts:near-query-queries|cts:near-query-options|cts:near-query-distance|cts:near-query|cts:highlight|cts:geospatial-co-occurrences|cts:frequency|cts:fitness|cts:field-words|cts:field-word-query-weight|cts:field-word-query-text|cts:field-word-query-options|cts:field-word-query-field-name|cts:field-word-query|cts:field-word-match|cts:entity-highlight|cts:element-words|cts:element-word-query-weight|cts:element-word-query-text|cts:element-word-query-options|cts:element-word-query-element-name|cts:element-word-query|cts:element-word-match|cts:element-values|cts:element-value-ranges|cts:element-value-query-weight|cts:element-value-query-text|cts:element-value-query-options|cts:element-value-query-element-name|cts:element-value-query|cts:element-value-match|cts:element-value-geospatial-co-occurrences|cts:element-value-co-occurrences|cts:element-range-query-weight|cts:element-range-query-value|cts:element-range-query-options|cts:element-range-query-operator|cts:element-range-query-element-name|cts:element-range-query|cts:element-query-query|cts:element-query-element-name|cts:element-query|cts:element-pair-geospatial-values|cts:element-pair-geospatial-value-match|cts:element-pair-geospatial-query-weight|cts:element-pair-geospatial-query-region|cts:element-pair-geospatial-query-options|cts:element-pair-geospatial-query-longitude-name|cts:element-pair-geospatial-query-latitude-name|cts:element-pair-geospatial-query-element-name|cts:element-pair-geospatial-query|cts:element-pair-geospatial-boxes|cts:element-geospatial-values|cts:element-geospatial-value-match|cts:element-geospatial-query-weight|cts:element-geospatial-query-region|cts:element-geospatial-query-options|cts:element-geospatial-query-element-name|cts:element-geospatial-query|cts:element-geospatial-boxes|cts:element-child-geospatial-values|cts:element-child-geospatial-value-match|cts:element-child-geospatial-query-weight|cts:element-child-geospatial-query-region|cts:element-child-geospatial-query-options|cts:element-child-geospatial-query-element-name|cts:element-child-geospatial-query-child-name|cts:element-child-geospatial-query|cts:element-child-geospatial-boxes|cts:element-attribute-words|cts:element-attribute-word-query-weight|cts:element-attribute-word-query-text|cts:element-attribute-word-query-options|cts:element-attribute-word-query-element-name|cts:element-attribute-word-query-attribute-name|cts:element-attribute-word-query|cts:element-attribute-word-match|cts:element-attribute-values|cts:element-attribute-value-ranges|cts:element-attribute-value-query-weight|cts:element-attribute-value-query-text|cts:element-attribute-value-query-options|cts:element-attribute-value-query-element-name|cts:element-attribute-value-query-attribute-name|cts:element-attribute-value-query|cts:element-attribute-value-match|cts:element-attribute-value-geospatial-co-occurrences|cts:element-attribute-value-co-occurrences|cts:element-attribute-range-query-weight|cts:element-attribute-range-query-value|cts:element-attribute-range-query-options|cts:element-attribute-range-query-operator|cts:element-attribute-range-query-element-name|cts:element-attribute-range-query-attribute-name|cts:element-attribute-range-query|cts:element-attribute-pair-geospatial-values|cts:element-attribute-pair-geospatial-value-match|cts:element-attribute-pair-geospatial-query-weight|cts:element-attribute-pair-geospatial-query-region|cts:element-attribute-pair-geospatial-query-options|cts:element-attribute-pair-geospatial-query-longitude-name|cts:element-attribute-pair-geospatial-query-latitude-name|cts:element-attribute-pair-geospatial-query-element-name|cts:element-attribute-pair-geospatial-query|cts:element-attribute-pair-geospatial-boxes|cts:document-query-uris|cts:document-query|cts:distance|cts:directory-query-uris|cts:directory-query-depth|cts:directory-query|cts:destination|cts:deregister|cts:contains|cts:confidence|cts:collections|cts:collection-query-uris|cts:collection-query|cts:collection-match|cts:classify|cts:circle-radius|cts:circle-center|cts:circle|cts:box-west|cts:box-south|cts:box-north|cts:box-east|cts:box|cts:bearing|cts:arc-intersection|cts:and-query-queries|cts:and-query-options|cts:and-query|cts:and-not-query-positive-query|cts:and-not-query-negative-query|cts:and-not-query|css:get|css:convert|cpf:success|cpf:failure|cpf:document-set-state|cpf:document-set-processing-status|cpf:document-set-last-updated|cpf:document-set-error|cpf:document-get-state|cpf:document-get-processing-status|cpf:document-get-last-updated|cpf:document-get-error|cpf:check-transition|alert:spawn-matching-actions|alert:rule-user-id-query|alert:rule-set-user-id|alert:rule-set-query|alert:rule-set-options|alert:rule-set-name|alert:rule-set-description|alert:rule-set-action|alert:rule-remove|alert:rule-name-query|alert:rule-insert|alert:rule-id-query|alert:rule-get-user-id|alert:rule-get-query|alert:rule-get-options|alert:rule-get-name|alert:rule-get-id|alert:rule-get-description|alert:rule-get-action|alert:rule-action-query|alert:remove-triggers|alert:make-rule|alert:make-log-action|alert:make-config|alert:make-action|alert:invoke-matching-actions|alert:get-my-rules|alert:get-all-rules|alert:get-actions|alert:find-matching-rules|alert:create-triggers|alert:config-set-uri|alert:config-set-trigger-ids|alert:config-set-options|alert:config-set-name|alert:config-set-description|alert:config-set-cpf-domain-names|alert:config-set-cpf-domain-ids|alert:config-insert|alert:config-get-uri|alert:config-get-trigger-ids|alert:config-get-options|alert:config-get-name|alert:config-get-id|alert:config-get-description|alert:config-get-cpf-domain-names|alert:config-get-cpf-domain-ids|alert:config-get|alert:config-delete|alert:action-set-options|alert:action-set-name|alert:action-set-module-root|alert:action-set-module-db|alert:action-set-module|alert:action-set-description|alert:action-remove|alert:action-insert|alert:action-get-options|alert:action-get-name|alert:action-get-module-root|alert:action-get-module-db|alert:action-get-module|alert:action-get-description|zero-or-one|years-from-duration|year-from-dateTime|year-from-date|upper-case|unordered|true|translate|trace|tokenize|timezone-from-time|timezone-from-dateTime|timezone-from-date|sum|subtract-dateTimes-yielding-yearMonthDuration|subtract-dateTimes-yielding-dayTimeDuration|substring-before|substring-after|substring|subsequence|string-to-codepoints|string-pad|string-length|string-join|string|static-base-uri|starts-with|seconds-from-time|seconds-from-duration|seconds-from-dateTime|round-half-to-even|round|root|reverse|resolve-uri|resolve-QName|replace|remove|QName|prefix-from-QName|position|one-or-more|number|not|normalize-unicode|normalize-space|node-name|node-kind|nilled|namespace-uri-from-QName|namespace-uri-for-prefix|namespace-uri|name|months-from-duration|month-from-dateTime|month-from-date|minutes-from-time|minutes-from-duration|minutes-from-dateTime|min|max|matches|lower-case|local-name-from-QName|local-name|last|lang|iri-to-uri|insert-before|index-of|in-scope-prefixes|implicit-timezone|idref|id|hours-from-time|hours-from-duration|hours-from-dateTime|floor|false|expanded-QName|exists|exactly-one|escape-uri|escape-html-uri|error|ends-with|encode-for-uri|empty|document-uri|doc-available|doc|distinct-values|distinct-nodes|default-collation|deep-equal|days-from-duration|day-from-dateTime|day-from-date|data|current-time|current-dateTime|current-date|count|contains|concat|compare|collection|codepoints-to-string|codepoint-equal|ceiling|boolean|base-uri|avg|adjust-time-to-timezone|adjust-dateTime-to-timezone|adjust-date-to-timezone|abs)\b/], -["pln",/^[\w:-]+/],["pln",/^[\t\n\r \xa0]+/]]),["xq","xquery"]); diff --git a/public/javascripts/vendor/google-code-prettify/lang-yaml.js b/public/javascripts/vendor/google-code-prettify/lang-yaml.js deleted file mode 100755 index c38729b6c..000000000 --- a/public/javascripts/vendor/google-code-prettify/lang-yaml.js +++ /dev/null @@ -1,2 +0,0 @@ -var a=null; -PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); diff --git a/public/javascripts/vendor/google-code-prettify/prettify.js b/public/javascripts/vendor/google-code-prettify/prettify.js deleted file mode 100755 index 7b990496d..000000000 --- a/public/javascripts/vendor/google-code-prettify/prettify.js +++ /dev/null @@ -1,30 +0,0 @@ -!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return e==="\\"||e==="-"||e==="]"||e==="^"?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],a= -b[0]==="^",c=["["];a&&c.push("^");for(var a=a?1:0,f=b.length;a122||(l<65||h>90||e.push([Math.max(65,h)|32,Math.min(l,90)|32]),l<97||h>122||e.push([Math.max(97,h)&-33,Math.min(l,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];f=[];for(a=0;ah[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(g(h[1])));c.push("]");return c.join("")}function s(e){for(var a=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],f=0,h=0;f=2&&e==="["?a[f]=b(l):e!=="\\"&&(a[f]=l.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var x=0,m=!1,j=!1,k=0,c=a.length;k=5&&"lang-"===w.substring(0,5))&&!(t&&typeof t[1]==="string"))f=!1,w="src";f||(r[z]=w)}h=c;c+=z.length;if(f){f=t[1];var l=z.indexOf(f),B=l+f.length;t[2]&&(B=z.length-t[2].length,l=B-f.length);w=w.substring(5);H(j+h,z.substring(0,l),g,k);H(j+h+l,f,I(w,f),k);H(j+h+B,z.substring(B),g,k)}else k.push(j+h,w)}a.g=k}var b={},s;(function(){for(var g=a.concat(d),j=[],k={},c=0,i=g.length;c=0;)b[n.charAt(e)]=r;r=r[1];n=""+r;k.hasOwnProperty(n)||(j.push(r),k[n]=q)}j.push(/[\S\s]/);s=S(j)})();var x=d.length;return g}function v(a){var d=[],g=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,q])):d.push(["com", -/^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,q]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));if(b=a.regexLiterals){var s=(b=b>1?"":"\n\r")?".":"[\\S\\s]";g.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+ -s+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&g.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&g.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),q]);d.push(["pln",/^\s+/,q," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");g.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/, -q],["pun",RegExp(b),q]);return C(d,g)}function J(a,d,g){function b(a){var c=a.nodeType;if(c==1&&!x.test(a.className))if("br"===a.nodeName)s(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&g){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(j.createTextNode(d),a.nextSibling),s(a),c||a.parentNode.removeChild(a)}}function s(a){function b(a,c){var d= -c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),g=a.nextSibling;e.appendChild(d);for(var i=g;i;i=g)g=i.nextSibling,e.appendChild(i)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var x=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,j=a.ownerDocument,k=j.createElement("li");a.firstChild;)k.appendChild(a.firstChild);for(var c=[k],i=0;i=0;){var b=d[g];F.hasOwnProperty(b)?D.console&&console.warn("cannot override language handler %s",b):F[b]=a}}function I(a,d){if(!a||!F.hasOwnProperty(a))a=/^\s*=l&&(b+=2);g>=B&&(r+=2)}}finally{if(f)f.style.display=h}}catch(u){D.console&&console.log(u&&u.stack||u)}}var D=window,y=["break,continue,do,else,for,if,return,while"],E=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],M=[E,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[E,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"], -O=[N,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],E=[E,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],P=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -Q=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],W=[y,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, -V=/\S/,X=v({keywords:[M,O,E,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",P,Q,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),F={};p(X,["default-code"]);p(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", -/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);p(C([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], -["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);p(v({keywords:M,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]);p(v({keywords:"null,true,false"}),["json"]);p(v({keywords:O,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}), -["cs"]);p(v({keywords:N,cStyleComments:!0}),["java"]);p(v({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(v({keywords:P,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(v({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);p(v({keywords:Q, -hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(v({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(v({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(v({keywords:W,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]); -p(C([],[["str",/^[\S\s]+/]]),["regex"]);var Y=D.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:v,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:D.prettyPrintOne=function(a,d,g){var b=document.createElement("div");b.innerHTML="
        "+a+"
        ";b=b.firstChild;g&&J(b,g,!0);K({h:d,j:g,c:b,i:1}); -return b.innerHTML},prettyPrint:D.prettyPrint=function(a,d){function g(){for(var b=D.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;i=0;){var M=A[m],T=M.src.match(/^[^#?]*\/run_prettify\.js(\?[^#]*)?(?:#.*)?$/);if(T){z=T[1]||"";M.parentNode.removeChild(M);break}}var S=!0,D= -[],N=[],K=[];z.replace(/[&?]([^&=]+)=([^&]+)/g,function(e,j,w){w=decodeURIComponent(w);j=decodeURIComponent(j);j=="autorun"?S=!/^[0fn]/i.test(w):j=="lang"?D.push(w):j=="skin"?N.push(w):j=="callback"&&K.push(w)});m=0;for(z=D.length;m122||(o<65||k>90||f.push([Math.max(65,k)|32,Math.min(o,90)|32]),o<97||k>122||f.push([Math.max(97,k)&-33,Math.min(o,122)&-33]))}}f.sort(function(f,a){return f[0]- -a[0]||a[1]-f[1]});b=[];g=[];for(a=0;ak[0]&&(k[1]+1>k[0]&&c.push("-"),c.push(h(k[1])));c.push("]");return c.join("")}function e(f){for(var a=f.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],g=0,k=0;g=2&&f==="["?a[g]=b(o):f!=="\\"&&(a[g]=o.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var j=0,F=!1,l=!1,I=0,c=a.length;I=5&&"lang-"===y.substring(0,5))&&!(u&&typeof u[1]==="string"))g=!1,y="src";g||(m[B]=y)}k=c;c+=B.length;if(g){g=u[1];var o=B.indexOf(g),H=o+g.length;u[2]&&(H=B.length-u[2].length,o=H-g.length);y=y.substring(5);n(l+k,B.substring(0,o),h,j);n(l+k+o,g,A(y, -g),j);n(l+k+H,B.substring(H),h,j)}else j.push(l+k,y)}a.g=j}var b={},e;(function(){for(var h=a.concat(d),l=[],i={},c=0,p=h.length;c=0;)b[q.charAt(f)]=m;m=m[1];q=""+m;i.hasOwnProperty(q)||(l.push(m),i[q]=r)}l.push(/[\S\s]/);e=j(l)})();var i=d.length;return h}function t(a){var d=[],h=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, -r,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,r,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,r,"\"'"]);a.verbatimStrings&&h.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,r]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,r,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/, -r,"#"]),h.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,r])):d.push(["com",/^#[^\n\r]*/,r,"#"]));a.cStyleComments&&(h.push(["com",/^\/\/[^\n\r]*/,r]),h.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,r]));if(b=a.regexLiterals){var e=(b=b>1?"":"\n\r")?".":"[\\S\\s]";h.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ -("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+e+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+e+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&h.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&h.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),r]);d.push(["pln",/^\s+/,r," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");h.push(["lit",/^@[$_a-z][\w$@]*/i,r],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,r],["pln",/^[$_a-z][\w$@]*/i,r],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, -r,"0123456789"],["pln",/^\\[\S\s]?/,r],["pun",RegExp(b),r]);return C(d,h)}function z(a,d,h){function b(a){var c=a.nodeType;if(c==1&&!j.test(a.className))if("br"===a.nodeName)e(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&h){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),e(a),c||a.parentNode.removeChild(a)}} -function e(a){function b(a,c){var d=c?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),h=a.nextSibling;f.appendChild(d);for(var e=h;e;e=h)h=e.nextSibling,f.appendChild(e)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var j=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,l=a.ownerDocument,i=l.createElement("li");a.firstChild;)i.appendChild(a.firstChild);for(var c=[i],p=0;p=0;){var b=d[h];U.hasOwnProperty(b)?V.console&&console.warn("cannot override language handler %s",b):U[b]=a}}function A(a,d){if(!a||!U.hasOwnProperty(a))a=/^\s*=o&&(b+=2);h>=H&&(t+=2)}}finally{if(g)g.style.display=k}}catch(v){V.console&&console.log(v&&v.stack||v)}}var V=window,G=["break,continue,do,else,for,if,return,while"],O=[[G,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],J=[O,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],K=[O,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"], -L=[K,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],O=[O,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],M=[G,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -N=[G,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],R=[G,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],G=[G,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Q=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, -S=/\S/,T=t({keywords:[J,L,O,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",M,N,G],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),U={};i(T,["default-code"]);i(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", -/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);i(C([["pln",/^\s+/,r," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,r,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], -["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);i(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);i(t({keywords:J,hashComments:!0,cStyleComments:!0,types:Q}),["c","cc","cpp","cxx","cyc","m"]);i(t({keywords:"null,true,false"}),["json"]);i(t({keywords:L,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Q}), -["cs"]);i(t({keywords:K,cStyleComments:!0}),["java"]);i(t({keywords:G,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);i(t({keywords:M,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);i(t({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);i(t({keywords:N, -hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);i(t({keywords:O,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);i(t({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);i(t({keywords:R,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]); -i(C([],[["str",/^[\S\s]+/]]),["regex"]);var X=V.PR={createSimpleLexer:C,registerLangHandler:i,sourceDecorator:t,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:function(a,d,e){var b=document.createElement("div");b.innerHTML="
        "+a+"
        ";b=b.firstChild;e&&z(b,e,!0);D({h:d,j:e,c:b,i:1});return b.innerHTML}, -prettyPrint:e=e=function(a,d){function e(){for(var b=V.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p=0)&&i(t,!a)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
        ",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e("
        ").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"original"!==this.options.helper||e.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",t)!==!1&&i._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1):!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options;return n.containment?"window"===n.containment?(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):"document"===n.containment?(this.containment=[0,0,e(document).width()-this.helperProportions.width-this.margins.left,(e(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):n.containment.constructor===Array?(this.containment=n.containment,undefined):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=e(n.containment),s=i[0],s&&(t="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i),undefined):(this.containment=null,undefined)},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s}},_generatePosition:function(t){var i,s,n,a,o=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=t.pageX,l=t.pageY;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,h=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var s=e(this).data("ui-draggable"),n=s.options,a=e.extend({},i,{item:s.element});s.sortables=[],e(n.connectToSortable).each(function(){var i=e.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i){var s=e(this).data("ui-draggable"),n=e.extend({},i,{item:s.element});e.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))})},drag:function(t,i){var s=e(this).data("ui-draggable"),n=this;e.each(s.sortables,function(){var a=!1,o=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",t),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",t),s.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY=0;c--)r=p.snapElements[c].left,h=r+p.snapElements[c].width,l=p.snapElements[c].top,u=l+p.snapElements[c].height,r-m>v||g>h+m||l-m>y||b>u+m||!e.contains(p.snapElements[c].item.ownerDocument,p.snapElements[c].item)?(p.snapElements[c].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(s=m>=Math.abs(l-y),n=m>=Math.abs(u-b),a=m>=Math.abs(r-v),o=m>=Math.abs(h-g),s&&(i.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h}).left-p.margins.left)),d=s||n||a||o,"outer"!==f.snapMode&&(s=m>=Math.abs(l-b),n=m>=Math.abs(u-y),a=m>=Math.abs(r-g),o=m>=Math.abs(h-v),s&&(i.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[c].snapping&&(s||n||a||o||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=s||n||a||o||d)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,i=this.data("ui-draggable").options,s=e.makeArray(e(i.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});s.length&&(t=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(i){e(this).css("zIndex",t+i)}),this.css("zIndex",t+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}})})(jQuery);(function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="
        ",o=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)o.push(a);this.handles=n.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("
        ").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,a,o,r,h,l,u=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-u.values(e));(n>i||n===i&&(e===u._lastChangedValue||u.values(e)===c.min))&&(n=i,a=t(this),o=e)}),r=this._start(e,o),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,a.addClass("ui-state-active").focus(),h=a.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-a.width()/2,top:e.pageY-h.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),a=this._valueMin()+s*n,this._trimAlignValue(a)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,a;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>s||1===e&&s>i)&&(i=s),i!==this.values(e)&&(n=this.values(),n[e]=i,a=this._trigger("slide",t,{handle:this.handles[e],value:i,values:n}),s=this.values(e?0:1),a!==!1&&this.values(e,i,!0))):i!==this.value()&&(a=this._trigger("slide",t,{handle:this.handles[e],value:i}),a!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(e,i){var s,n,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),undefined;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],a=0;s.length>a;a+=1)s[a]=this._trimAlignValue(n[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;n>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,a,o=this.options.range,r=this.options,h=this,l=this._animateOff?!1:r.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),u["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](u,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),a=this._valueMax(),i=a!==n?100*((s-n)/(a-n)):0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](u,r.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===o&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===o&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(i){var s,n,a,o,r=t(i.target).data("ui-slider-handle-index");switch(i.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(i.target).addClass("ui-state-active"),s=this._start(i,r),s===!1))return}switch(o=this.options.step,n=a=this.options.values&&this.options.values.length?this.values(r):this.value(),i.keyCode){case t.ui.keyCode.HOME:a=this._valueMin();break;case t.ui.keyCode.END:a=this._valueMax();break;case t.ui.keyCode.PAGE_UP:a=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:a=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;a=this._trimAlignValue(n+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;a=this._trimAlignValue(n-o)}this._slide(i,r,a)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})})(jQuery);(function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(t,a){var o,r=a.re.exec(i),h=r&&a.parse(r),l=a.space||"rgba";return h?(o=s[l](h),s[c[l].cache]=o[c[l].cache],n=s._rgba=o._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,a.transparent),s):a[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=t("

        ")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(n,o,r,h){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(o),o=e);var u=this,d=t.type(n),p=this._rgba=[];return o!==e&&(n=[n,o,r,h],d="array"),"string"===d?this.parse(s(n)||a._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof l?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var a=s.cache;f(s.props,function(t,e){if(!u[a]&&s.to){if("alpha"===t||null==n[t])return;u[a]=s.to(u._rgba)}u[a][e.idx]=i(n[t],e,!0)}),u[a]&&0>t.inArray(null,u[a].slice(0,3))&&(u[a][3]=1,s.from&&(u._rgba=s.from(u[a])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return f(c,function(t,a){var o,r=i[a.cache];return r&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===o[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),a=c[n],o=0===this.alpha()?l("transparent"):this,r=o[a.cache]||a.to(o._rgba),h=r.slice();return s=s[a.cache],f(a.props,function(t,n){var a=n.idx,o=r[a],l=s[a],c=u[n.type]||{};null!==l&&(null===o?h[a]=l:(c.mod&&(l-o>c.mod/2?o+=c.mod:o-l>c.mod/2&&(o-=c.mod)),h[a]=i((l-o)*e+o,n)))}),this[n](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,a=t[2]/255,o=t[3],r=Math.max(s,n,a),h=Math.min(s,n,a),l=r-h,c=r+h,u=.5*c;return e=h===r?0:s===r?60*(n-a)/l+360:n===r?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=u?l/c:l/(2-c),[Math.round(e)%360,i,u,null==o?1:o]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],a=t[3],o=.5>=s?s*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,e+1/3)),Math.round(255*n(r,o,e)),Math.round(255*n(r,o,e-1/3)),a]},f(c,function(s,n){var a=n.props,o=n.cache,h=n.to,c=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===e)return this[o].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[o].slice();return f(a,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=l(c(d)),n[o]=d,n):l(d)},f(a,function(e,i){l.fn[e]||(l.fn[e]=function(n){var a,o=t.type(n),h="alpha"===e?this._hsla?"hsla":"rgba":s,l=this[h](),c=l[i.idx];return"undefined"===o?c:("function"===o&&(n=n.call(this,c),o=t.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=c+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var a,o,r="";if("transparent"!==n&&("string"!==t.type(n)||(a=s(n)))){if(n=l(a||n),!d.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&o&&o.style;)try{r=t.css(o,"backgroundColor"),o=o.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(h){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function s(e,i){var s,n,o={};for(s in i)n=i[s],e[s]!==n&&(a[s]||(t.fx.step[s]||!isNaN(parseFloat(n)))&&(o[s]=n));return o}var n=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,a,o,r){var h=t.speed(a,o,r);return this.queue(function(){var a,o=t(this),r=o.attr("class")||"",l=h.children?o.find("*").addBack():o;l=l.map(function(){var e=t(this);return{el:e,start:i(this)}}),a=function(){t.each(n,function(t,i){e[i]&&o[i+"Class"](e[i])})},a(),l=l.map(function(){return this.end=i(this.el[0]),this.diff=s(this.start,this.end),this}),o.attr("class",r),l=l.map(function(){var e=this,i=t.Deferred(),s=t.extend({},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,l.get()).done(function(){a(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(o[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,a){return s?t.effects.animateClass.call(this,{add:i},s,n,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(s,n,a,o,r){return"boolean"==typeof n||n===e?a?t.effects.animateClass.call(this,n?{add:s}:{remove:s},a,o,r):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:s},n,a,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,a){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,a)}})}(),function(){function s(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function n(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var s=0;e.length>s;s++)null!==e[s]&&t.data(i+e[s],t[0].style[e[s]])},restore:function(t,s){var n,a;for(a=0;s.length>a;a++)null!==s[a]&&(n=t.data(i+s[a]),n===e&&(n=""),t.css(s[a],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("

        ").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return e.wrap(s),(e[0]===a||t.contains(e[0],a))&&t(a).focus(),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var a=e.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),t.fn.extend({effect:function(){function e(e){function s(){t.isFunction(a)&&a.call(n[0]),t.isFunction(e)&&e()}var n=t(this),a=i.complete,r=i.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),s()):o.call(n[0],i,s)}var i=s.apply(this,arguments),n=i.mode,a=i.queue,o=t.effects.effect[i.effect];return t.fx.off||!o?n?this[n](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):a===!1?this.each(e):this.queue(a||"fx",e)},show:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(n(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()})(jQuery);(function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(s,n){var a,o,r,h=t(this),l=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(h,s.mode||"hide"),u=s.direction||"up",d=e.test(u),p=d?"height":"width",f=d?"top":"left",m=i.test(u),g={},v="show"===c;h.parent().is(".ui-effects-wrapper")?t.effects.save(h.parent(),l):t.effects.save(h,l),h.show(),a=t.effects.createWrapper(h).css({overflow:"hidden"}),o=a[p](),r=parseFloat(a.css(f))||0,g[p]=v?o:0,m||(h.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?r:o+r),v&&(a.css(p,0),m||a.css(f,r+o)),a.animate(g,{duration:s.duration,easing:s.easing,queue:!1,complete:function(){"hide"===c&&h.hide(),t.effects.restore(h,l),t.effects.removeWrapper(h),n()}})}})(jQuery);(function(t){t.effects.effect.bounce=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(o,e.mode||"effect"),l="hide"===h,c="show"===h,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(c||l?1:0),m=e.duration/f,g=e.easing,v="up"===u||"down"===u?"top":"left",_="up"===u||"left"===u,b=o.queue(),y=b.length;for((c||l)&&r.push("opacity"),t.effects.save(o,r),o.show(),t.effects.createWrapper(o),d||(d=o["top"===v?"outerHeight":"outerWidth"]()/3),c&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,_?2*-d:2*d).animate(a,m,g)),l&&(d/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g).animate(a,m,g),d=l?2*d:d/2;l&&(n={opacity:0},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g)),o.queue(function(){l&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}),y>1&&b.splice.apply(b,[1,0].concat(b.splice(y,f+1))),o.dequeue()}})(jQuery);(function(t){t.effects.effect.clip=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(o,e.mode||"hide"),l="show"===h,c=e.direction||"vertical",u="vertical"===c,d=u?"height":"width",p=u?"top":"left",f={};t.effects.save(o,r),o.show(),s=t.effects.createWrapper(o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[d](),l&&(n.css(d,0),n.css(p,a/2)),f[d]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})}})(jQuery);(function(t){t.effects.effect.drop=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(n,e.mode||"hide"),r="show"===o,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h?"pos":"neg",u={opacity:r?1:0};t.effects.save(n,a),n.show(),t.effects.createWrapper(n),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===c?-s:s),u[l]=(r?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),t.effects.restore(n,a),t.effects.removeWrapper(n),i()}})}})(jQuery);(function(t){t.effects.effect.explode=function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),m||p.hide(),i()}var a,o,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),_=Math.ceil(p.outerHeight()/u),b=[];for(a=0;u>a;a++)for(h=g.top+a*_,c=a-(u-1)/2,o=0;d>o;o++)r=g.left+o*v,l=o-(d-1)/2,p.clone().appendTo("body").wrap("
        ").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*_}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:_,left:r+(m?l*v:0),top:h+(m?c*_:0),opacity:m?0:1}).animate({left:r+(m?0:l*v),top:h+(m?0:c*_),opacity:m?1:0},e.duration||500,e.easing,s)}})(jQuery);(function(t){t.effects.effect.fade=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}})(jQuery);(function(t){t.effects.effect.fold=function(e,i){var s,n,a=t(this),o=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(a,e.mode||"hide"),h="show"===r,l="hide"===r,c=e.size||15,u=/([0-9]+)%/.exec(c),d=!!e.horizFirst,p=h!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(a,o),a.show(),s=t.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],u&&(c=parseInt(u[1],10)/100*n[l?0:1]),h&&s.css(d?{height:0,width:c}:{height:c,width:0}),g[f[0]]=h?n[0]:c,v[f[1]]=h?n[1]:0,s.animate(g,m,e.easing).animate(v,m,e.easing,function(){l&&a.hide(),t.effects.restore(a,o),t.effects.removeWrapper(a),i()})}})(jQuery);(function(t){t.effects.effect.highlight=function(e,i){var s=t(this),n=["backgroundImage","backgroundColor","opacity"],a=t.effects.setMode(s,e.mode||"show"),o={backgroundColor:s.css("backgroundColor")};"hide"===a&&(o.opacity=0),t.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&s.hide(),t.effects.restore(s,n),i()}})}})(jQuery);(function(t){t.effects.effect.pulsate=function(e,i){var s,n=t(this),a=t.effects.setMode(n,e.mode||"show"),o="show"===a,r="hide"===a,h=o||"hide"===a,l=2*(e.times||5)+(h?1:0),c=e.duration/l,u=0,d=n.queue(),p=d.length;for((o||!n.is(":visible"))&&(n.css("opacity",0).show(),u=1),s=1;l>s;s++)n.animate({opacity:u},c,e.easing),u=1-u;n.animate({opacity:u},c,e.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,l+1))),n.dequeue()}})(jQuery);(function(t){t.effects.effect.puff=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"hide"),a="hide"===n,o=parseInt(e.percent,10)||150,r=o/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from:a?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(e)},t.effects.effect.scale=function(e,i){var s=t(this),n=t.extend(!0,{},e),a=t.effects.setMode(s,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===a?0:100),r=e.direction||"both",h=e.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},c={y:"horizontal"!==r?o/100:1,x:"vertical"!==r?o/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||["middle","center"],n.restore=!0),n.from=e.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*c.y,width:l.width*c.x,outerHeight:l.outerHeight*c.y,outerWidth:l.outerWidth*c.x},n.fade&&("show"===a&&(n.from.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},t.effects.effect.size=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(o,e.mode||"effect"),f=e.restore||"effect"!==p,m=e.scale||"both",g=e.origin||["middle","center"],v=o.css("position"),_=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),s={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&&"show"===p?(o.from=e.to||b,o.to=e.from||s):(o.from=e.from||("show"===p?b:s),o.to=e.to||("hide"===p?b:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width},to:{y:o.to.height/s.height,x:o.to.width/s.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(_=_.concat(u),o.from=t.effects.setTransition(o,u,a.from.y,o.from),o.to=t.effects.setTransition(o,u,a.to.y,o.to)),a.from.x!==a.to.x&&(_=_.concat(d),o.from=t.effects.setTransition(o,d,a.from.x,o.from),o.to=t.effects.setTransition(o,d,a.to.x,o.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(_=_.concat(c).concat(l),o.from=t.effects.setTransition(o,c,a.from.y,o.from),o.to=t.effects.setTransition(o,c,a.to.y,o.to)),t.effects.save(o,_),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(n=t.effects.getBaseline(g,s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.outerWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outerWidth-o.to.outerWidth)*n.x),o.css(o.from),("content"===m||"both"===m)&&(u=u.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),l=r.concat(u).concat(d),o.find("*[width]").each(function(){var i=t(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=t.effects.setTransition(i,u,a.from.y,i.from),i.to=t.effects.setTransition(i,u,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=t.effects.setTransition(i,d,a.from.x,i.from),i.to=t.effects.setTransition(i,d,a.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),t.effects.restore(o,_),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var s=parseInt(i,10),n=t?o.to.left:o.to.top;return"auto"===i?n+"px":s+n+"px"})})),t.effects.removeWrapper(o),i()}})}})(jQuery);(function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"left",h=e.distance||20,l=e.times||3,c=2*l+1,u=Math.round(e.duration/c),d="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n.queue(),_=v.length;for(t.effects.save(n,a),n.show(),t.effects.createWrapper(n),f[d]=(p?"-=":"+=")+h,m[d]=(p?"+=":"-=")+2*h,g[d]=(p?"-=":"+=")+2*h,n.animate(f,u,e.easing),s=1;l>s;s++)n.animate(m,u,e.easing).animate(g,u,e.easing);n.animate(m,u,e.easing).animate(f,u/2,e.easing).queue(function(){"hide"===o&&n.hide(),t.effects.restore(n,a),t.effects.removeWrapper(n),i()}),_>1&&v.splice.apply(v,[1,0].concat(v.splice(_,c+1))),n.dequeue()}})(jQuery);(function(t){t.effects.effect.slide=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(n,e.mode||"show"),r="show"===o,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h,u={};t.effects.save(n,a),n.show(),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,c?isNaN(s)?"-"+s:-s:s),u[l]=(r?c?"+=":"-=":c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),t.effects.restore(n,a),t.effects.removeWrapper(n),i()}})}})(jQuery);(function(t){t.effects.effect.transfer=function(e,i){var s=t(this),n=t(e.to),a="fixed"===n.css("position"),o=t("body"),r=a?o.scrollTop():0,h=a?o.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("
        ").appendTo(document.body).addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})}})(jQuery); \ No newline at end of file diff --git a/public/javascripts/vendor/jquery.fs.naver.js b/public/javascripts/vendor/jquery.fs.naver.js deleted file mode 100644 index 85f3a6795..000000000 --- a/public/javascripts/vendor/jquery.fs.naver.js +++ /dev/null @@ -1,259 +0,0 @@ -;(function ($, window) { - "use strict"; - - /** - * @options - * @param customClass [string] <''> "Class applied to instance" - * @param label [boolean] "Display handle width label" - * @param labels.closed [string] <'Navigation'> "Closed state text" - * @param labels.open [string] <'Close'> "Open state text" - * @param maxWidth [string] <'980px'> "Width at which to auto-disable plugin" - */ - var options = { - customClass: "", - label: true, - labels: { - closed: "Navigation", - open: "Close" - }, - maxWidth: "980px" - }; - - /** - * @events - * @event open.naver "Navigation opened" - * @event close.naver "Navigation closed" - */ - - var pub = { - - /** - * @method - * @name close - * @description Closes instance - * @example $(".target").naver("close"); - */ - close: function(e) { - return $(this).each(function(i, nav) { - var data = $(nav).data("naver"); - - if (data !== null) { - data.$wrapper.css({ - height: 0 - }); - if (data.label) { - data.$handle.html(data.labels.closed); - } - data.$nav.removeClass("open") - .trigger("close.naver"); - } - }); - }, - - /** - * @method - * @name defaults - * @description Sets default plugin options - * @param opts [object] <{}> "Options object" - * @example $.naver("defaults", opts); - */ - defaults: function(opts) { - options = $.extend(true, options, opts || {}); - return $(this); - }, - - /** - * @method - * @name disable - * @description Disables instance - * @example $(".target").naver("disable"); - */ - disable: function() { - return $(this).each(function(i, nav) { - var data = $(nav).data("naver"); - - if (data !== null) { - data.$nav.removeClass("enabled"); - data.$wrapper.css({ height: "" }); - } - }); - }, - - /** - * @method - * @name destroy - * @description Destroys instance - * @example $(".target").naver("destroy"); - */ - destroy: function() { - return $(this).each(function(i, nav) { - var data = $(nav).data("naver"); - - if (data !== null) { - data.$handle.remove(); - data.$container.contents() - .unwrap() - .unwrap(); - - data.$nav.removeClass("enabled disabled naver " + data.customClass) - .off(".naver") - .removeData("naver"); - } - }); - }, - - /** - * @method - * @name enable - * @description Enables instance - * @example $(".target").naver("enable"); - */ - enable: function() { - return $(this).each(function(i, nav) { - var data = $(nav).data("naver"); - - if (data !== null) { - data.$nav.addClass("enabled"); - pub.close.apply(data.$nav); - } - }); - }, - - /** - * @method - * @name open - * @description Opens instance - * @example $(".target").naver("open"); - */ - open: function() { - return $(this).each(function(i, nav) { - var data = $(nav).data("naver"); - - if (data !== null) { - data.$wrapper.css({ - height: data.$container.outerHeight(true) - }); - if (data.label) { - data.$handle.html(data.labels.open); - } - data.$nav.addClass("open") - .trigger("open.naver"); - } - }); - } - }; - - /** - * @method private - * @name _init - * @description Initializes plugin - * @param opts [object] "Initialization options" - */ - function _init(opts) { - // Settings - opts = $.extend(true, {}, options, opts); - - // Apply to each element - var $items = $(this); - for (var i = 0, count = $items.length; i < count; i++) { - _build($items.eq(i), opts); - } - return $items; - } - - /** - * @method private - * @name _build - * @description Builds each instance - * @param $nav [jQuery object] "Target jQuery object" - * @param opts [object] <{}> "Options object" - */ - function _build($nav, opts) { - if (!$nav.data("naver")) { - // Extend Options - opts = $.extend(true, {}, opts, $nav.data("naver-options")); - - var $handle = $nav.find(".naver-handle").length ? $nav.find(".naver-handle").detach() : $(''); - - $nav.addClass("naver " + opts.customClass) - .wrapInner('') - .wrapInner('') - .prepend($handle); - - var data = $.extend(true, { - $nav: $nav, - $container: $nav.find(".naver-container"), - $wrapper: $nav.find(".naver-wrapper"), - $handle: $nav.find(".naver-handle") - }, opts); - - data.$handle.text((opts.label) ? opts.labels.closed : ''); - data.$nav.on("touchstart.naver mousedown.naver", ".naver-handle", data, _onClick) - .data("naver", data); - - // Navtive MQ Support - if (window.matchMedia !== undefined) { - data.mediaQuery = window.matchMedia("(max-width:" + (data.maxWidth === Infinity ? "100000px" : data.maxWidth) + ")"); - // Make sure we stay in context - data.mediaQuery.addListener(function() { - _onRespond.apply(data.$nav); - }); - _onRespond.apply(data.$nav); - } - } - } - - /** - * @method private - * @name _onClick - * @description Handles click nav click - * @param e [object] "Event data" - */ - function _onClick(e) { - e.preventDefault(); - e.stopPropagation(); - - var $target = $(e.currentTarget), - data = e.data; - - // Close other open instances - $(".naver").not(data.$nav) - .naver("close"); - - if (data.$nav.hasClass("open")) { - pub.close.apply(data.$nav); - } else { - pub.open.apply(data.$nav); - } - } - - /** - * @method private - * @name _onRespond - * @description Handles media query match change - */ - function _onRespond() { - var data = $(this).data("naver"); - - if (data.mediaQuery.matches) { - pub.enable.apply(data.$nav); - } else { - pub.disable.apply(data.$nav); - } - } - - $.fn.naver = function(method) { - if (pub[method]) { - return pub[method].apply(this, Array.prototype.slice.call(arguments, 1)); - } else if (typeof method === 'object' || !method) { - return _init.apply(this, arguments); - } - return this; - }; - - $.naver = function(method) { - if (method === "defaults") { - pub.defaults.apply(this, Array.prototype.slice.call(arguments, 1)); - } - }; -})(jQuery, window); \ No newline at end of file diff --git a/public/javascripts/vendor/jquery.js b/public/javascripts/vendor/jquery.js deleted file mode 100755 index 12e0f9a95..000000000 --- a/public/javascripts/vendor/jquery.js +++ /dev/null @@ -1,9789 +0,0 @@ -/*! - * jQuery JavaScript Library v1.10.2 - * http://jquery.com/ - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * - * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03T13:48Z - */ -(function( window, undefined ) { - -// Can't do this because several apps including ASP.NET trace -// the stack via arguments.caller.callee and Firefox dies if -// you try to trace through "use strict" call chains. (#13335) -// Support: Firefox 18+ -//"use strict"; -var - // The deferred used on DOM ready - readyList, - - // A central reference to the root jQuery(document) - rootjQuery, - - // Support: IE<10 - // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` - core_strundefined = typeof undefined, - - // Use the correct document accordingly with window argument (sandbox) - location = window.location, - document = window.document, - docElem = document.documentElement, - - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - - // Map over the $ in case of overwrite - _$ = window.$, - - // [[Class]] -> type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.10.2", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return rootjQuery.ready( selector ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return core_slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == null ? - - // Return a 'clean' array - this.toArray() : - - // Return just the object - ( num < 0 ? this[ this.length + num ] : this[ num ] ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - ready: function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: core_push, - sort: [].sort, - splice: [].splice -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( length === i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - noConflict: function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; - }, - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - isPlainObject: function( obj ) { - var key; - - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !core_hasOwn.call(obj, "constructor") && - !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( jQuery.support.ownLast ) { - for ( key in obj ) { - return core_hasOwn.call( obj, key ); - } - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // data: string of html - // context (optional): If specified, the fragment will be created in this context, defaults to document - // keepScripts (optional): If true, will include scripts passed in the html string - parseHTML: function( data, context, keepScripts ) { - if ( !data || typeof data !== "string" ) { - return null; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - context = context || document; - - var parsed = rsingleTag.exec( data ), - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[1] ) ]; - } - - parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( data ) { - // Make sure the incoming data is actual JSON - // Logic borrowed from http://json.org/json2.js - if ( rvalidchars.test( data.replace( rvalidescape, "@" ) - .replace( rvalidtokens, "]" ) - .replace( rvalidbraces, "")) ) { - - return ( new Function( "return " + data ) )(); - } - } - } - - jQuery.error( "Invalid JSON: " + data ); - }, - - // Cross-browser xml parsing - parseXML: function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - try { - if ( window.DOMParser ) { // Standard - tmp = new DOMParser(); - xml = tmp.parseFromString( data , "text/xml" ); - } else { // IE - xml = new ActiveXObject( "Microsoft.XMLDOM" ); - xml.async = "false"; - xml.loadXML( data ); - } - } catch( e ) { - xml = undefined; - } - if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; - }, - - noop: function() {}, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; j < l; j++ ) { - first[ i++ ] = second[ j ]; - } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, inv ) { - var retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - retVal = !!callback( elems[ i ], i ); - if ( inv !== retVal ) { - ret.push( elems[ i ] ); - } - } - - return ret; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - access: function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; - }, - - now: function() { - return ( new Date() ).getTime(); - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations. - // Note: this method belongs to the css module but it's needed here for the support module. - // If support gets modularized, this method should be moved back to the css module. - swap: function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -/*! - * Sizzle CSS Selector Engine v1.10.2 - * http://sizzlejs.com/ - * - * Copyright 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03 - */ -(function( window, undefined ) { - -var i, - support, - cachedruns, - Expr, - getText, - isXML, - compile, - outermostContext, - sortInput, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - hasDuplicate = false, - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - return 0; - }, - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rsibling = new RegExp( whitespace + "*[+~]" ), - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key += " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsHTML = !isXML( doc ); - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent.attachEvent && parent !== parent.top ) { - parent.attachEvent( "onbeforeunload", function() { - setDocument(); - }); - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if getElementsByClassName can be trusted - support.getElementsByClassName = assert(function( div ) { - div.innerHTML = "
        "; - - // Support: Safari<4 - // Catch class over-caching - div.firstChild.className = "i"; - // Support: Opera<10 - // Catch gEBCN failure to find non-leading classes - return div.getElementsByClassName("i").length === 2; - }); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - - // Support: Opera 10-12/IE8 - // ^= $= *= and empty values - // Should not select anything - // Support: Windows 8 Native Apps - // The type attribute is restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "t", "" ); - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); - - if ( compare ) { - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } - - // Not directly comparable, sort on existence of method - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } - - return Sizzle( expr, document, null, [elem] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val === undefined ? - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null : - val; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - for ( ; (node = elem[i]); i++ ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (see #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) - // use getAttribute instead to test this case - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( tokens = [] ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -} - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - } - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && context.parentNode || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - } - - // Compile and execute a filtering function - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) - ); - return results; -} - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome<14 -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - elem[ name ] === true ? name.toLowerCase() : null; - } - }); -} - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var action = tuple[ 0 ], - fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = core_slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; - if( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function( support ) { - - var all, a, input, select, fragment, opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
        a"; - - // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*") || []; - a = div.getElementsByTagName("a")[ 0 ]; - if ( !a || !a.style || !all.length ) { - return support; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName("tbody").length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName("link").length; - - // Get the style information from getAttribute - // (IE uses .cssText instead) - support.style = /top/.test( a.getAttribute("style") ); - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - support.hrefNormalized = a.getAttribute("href") === "/a"; - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - support.opacity = /^0.5/.test( a.style.opacity ); - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - support.cssFloat = !!a.style.cssFloat; - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - support.checkOn = !!input.value; - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - support.optSelected = opt.selected; - - // Tests for enctype support on a form (#6743) - support.enctype = !!document.createElement("form").enctype; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; - - // Will be defined later - support.inlineBlockNeedsLayout = false; - support.shrinkWrapBlocks = false; - support.pixelPosition = false; - support.deleteExpando = true; - support.noCloneEvent = true; - support.reliableMarginRight = true; - support.boxSizingReliable = true; - - // Make sure checked status is properly cloned - input.checked = true; - support.noCloneChecked = input.cloneNode( true ).checked; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // Check if we can trust getAttribute("value") - input = document.createElement("input"); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Support: IE<9 - // Iteration over object's inherited properties before its own. - for ( i in jQuery( support ) ) { - break; - } - support.ownLast = i !== "0"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // Check if table cells still have offsetWidth/Height when they are set - // to display:none and there are still other visible table cells in a - // table row; if so, offsetWidth/Height are not reliable for use when - // determining if an element has been hidden directly using - // display:none (it is still safe to use offsets if a parent element is - // hidden; don safety goggles and see bug #4512 for more information). - div.innerHTML = "
        t
        "; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior. - div.innerHTML = ""; - div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; - - // Workaround failing boxSizing test due to offsetWidth returning wrong value - // with some non-1 values of body zoom, ticket #13543 - jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { - support.boxSizing = div.offsetWidth === 4; - }); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
        "; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})({}); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var ret, thisCache, - internalKey = jQuery.expando, - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - i = name.length; - while ( i-- ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - data = null, - i = 0, - elem = this[0]; - - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; i++ ) { - name = attrs[i].name; - - if ( name.indexOf("data-") === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - - dataAttr( elem, name, data[ name ] ); - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return arguments.length > 1 ? - - // Sets one value - this.each(function() { - jQuery.data( this, key, value ); - }) : - - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - // Based off of the plugin by Clint Helfers, with permission. - // http://blindsignals.com/index.php/2009/07/jquery-delay/ - delay: function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n\f]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -jQuery.fn.extend({ - attr: function( name, value ) { - return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - name = jQuery.propFix[ name ] || name; - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - addClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed "false", - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // handle most common string cases - ret.replace(rreturn, "") : - // handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - } else if ( typeof val === "number" ) { - val += ""; - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map(val, function ( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - // Use proper attribute retrieval(#6932, #12072) - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - elem.text; - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // oldIE doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { - optionSet = true; - } - } - - // force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - return jQuery.prop( elem, name, value ); - } - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.bool.test( name ) ) { - // Set corresponding property to false - if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - elem[ propName ] = false; - // Support: IE<9 - // Also clear defaultChecked/defaultSelected (if appropriate) - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } - - // See #9699 for explanation of this approach (setting first, then removal) - } else { - jQuery.attr( elem, name, "" ); - } - - elem.removeAttribute( getSetAttribute ? name : propName ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { - // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to default in case type is set after value during creation - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - elem[ name ]; - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - return tabindex ? - parseInt( tabindex, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - -1; - } - } - } -}); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - // IE<8 needs the *property* name - elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; - } - - return name; - } -}; -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; - - jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? - function( elem, name, isXML ) { - var fn = jQuery.expr.attrHandle[ name ], - ret = isXML ? - undefined : - /* jshint eqeqeq: false */ - (jQuery.expr.attrHandle[ name ] = undefined) != - getter( elem, name, isXML ) ? - - name.toLowerCase() : - null; - jQuery.expr.attrHandle[ name ] = fn; - return ret; - } : - function( elem, name, isXML ) { - return isXML ? - undefined : - elem[ jQuery.camelCase( "default-" + name ) ] ? - name.toLowerCase() : - null; - }; -}); - -// fix oldIE attroperties -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - set: function( elem, value, name ) { - if ( jQuery.nodeName( elem, "input" ) ) { - // Does not return so that setAttribute is also used - elem.defaultValue = value; - } else { - // Use nodeHook if defined (#1954); otherwise setAttribute is fine - return nodeHook && nodeHook.set( elem, value, name ); - } - } - }; -} - -// IE6/7 do not support getting/setting some attributes with get/setAttribute -if ( !getSetAttribute ) { - - // Use this for any attribute in IE6/7 - // This fixes almost every IE6/7 issue - nodeHook = { - set: function( elem, value, name ) { - // Set the existing or create a new attribute node - var ret = elem.getAttributeNode( name ); - if ( !ret ) { - elem.setAttributeNode( - (ret = elem.ownerDocument.createAttribute( name )) - ); - } - - ret.value = value += ""; - - // Break association with cloned elements by also using setAttribute (#9646) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = - // Some attributes are constructed with empty-string values when not defined - function( elem, name, isXML ) { - var ret; - return isXML ? - undefined : - (ret = elem.getAttributeNode( name )) && ret.value !== "" ? - ret.value : - null; - }; - jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ret.specified ? - ret.value : - undefined; - }, - set: nodeHook.set - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - set: function( elem, value, name ) { - nodeHook.set( elem, value === "" ? false : value, name ); - } - }; - - // Set width and height to auto instead of 0 on empty string( Bug #8150 ) - // This is for removals - jQuery.each([ "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = { - set: function( elem, value ) { - if ( value === "" ) { - elem.setAttribute( name, "auto" ); - return value; - } - } - }; - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.support.hrefNormalized ) { - // href/src property should get the full normalized URL (#10299/#12915) - jQuery.each([ "href", "src" ], function( i, name ) { - jQuery.propHooks[ name ] = { - get: function( elem ) { - return elem.getAttribute( name, 4 ); - } - }; - }); -} - -if ( !jQuery.support.style ) { - jQuery.attrHooks.style = { - get: function( elem ) { - // Return undefined in the case of empty string - // Note: IE uppercases css property names, but if we were to .toLowerCase() - // .cssText, that would destroy case senstitivity in URL's, like in "background" - return elem.style.cssText || undefined; - }, - set: function( elem, value ) { - return ( elem.style.cssText = value + "" ); - } - }; -} - -// Safari mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it -if ( !jQuery.support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - var parent = elem.parentNode; - - if ( parent ) { - parent.selectedIndex; - - // Make sure that it also works with optgroups, see #5701 - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - return null; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }; - if ( !jQuery.support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - // Support: Webkit - // "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = core_slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === core_strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !jQuery.support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !jQuery.support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !jQuery.support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler while someone wants focusin/focusout - var attaches = 0, - handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - if ( attaches++ === 0 ) { - document.addEventListener( orig, handler, true ); - } - }, - teardown: function() { - if ( --attaches === 0 ) { - document.removeEventListener( orig, handler, true ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); -var isSimple = /^.[^:#\[\.,]*$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - rneedsContext = jQuery.expr.match.needsContext, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - cur = ret.push( cur ); - break; - } - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - ret = jQuery.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); - }, - - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( isSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
        ", "
        " ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
        " ], - tr: [ 2, "", "
        " ], - col: [ 2, "", "
        " ], - td: [ 3, "", "
        " ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
        ", "
        " ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -jQuery.fn.extend({ - text: function( value ) { - return jQuery.access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function () { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return jQuery.access( this, function( value ) { - var elem = this[0] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var - // Snapshot the DOM in case .domManip sweeps something relevant into its fragment - args = jQuery.map( this, function( elem ) { - return [ elem.nextSibling, elem.parentNode ]; - }), - i = 0; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - var next = args[ i++ ], - parent = args[ i++ ]; - - if ( parent ) { - // Don't use the snapshot next if it has moved (#13810) - if ( next && next.parentNode !== parent ) { - next = this.nextSibling; - } - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - // Allow new content to include elements from the context set - }, true ); - - // Force removal if there was no new content (e.g., from empty arguments) - return i ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback, allowIntersection ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback, allowIntersection ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[i], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Hope ajax is available... - jQuery._evalUrl( node.src ); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
        " && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - }, - - _evalUrl: function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } -}); -jQuery.fn.extend({ - wrapAll: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapAll( html.call(this, i) ); - }); - } - - if ( this[0] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); - - if ( this[0].parentNode ) { - wrap.insertBefore( this[0] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { - elem = elem.firstChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function(i) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = jQuery._data( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - hidden = isHidden( elem ); - - if ( display && display !== "none" || !hidden ) { - jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each(function() { - if ( isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - -jQuery.extend({ - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - // normalize float css property - "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // convert relative number strings (+= or -=) to relative numbers. #7345 - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { - return; - } - - // If a number was passed in, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, - // but it would mean to define eight (for every problematic property) identical functions - if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - - // Wrapped to prevent IE from throwing errors when 'invalid' values are provided - // Fixes bug #5509 - try { - style[ name ] = value; - } catch(e) {} - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var num, val, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - //convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Return, converting to number if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right - // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // Avoid setting ret to empty string here - // so we don't default to auto - if ( ret == null && style && style[ name ] ) { - ret = style[ name ]; - } - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // but not position css attributes, as those are proportional to the parent element instead - // and we can't measure the parent instead because it might trigger a "stacking dolls" problem - if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { - - // Remember the original values - left = style.left; - rs = elem.runtimeStyle; - rsLeft = rs && rs.left; - - // Put in the new values to get a computed value out - if ( rsLeft ) { - rs.left = elem.currentStyle.left; - } - style.left = name === "fontSize" ? "1em" : ret; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - if ( rsLeft ) { - rs.left = rsLeft; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // at this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // at this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // at this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // we need the check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -// Try to determine the default display value of an element -function css_defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - // Use the already-created iframe if possible - iframe = ( iframe || - jQuery("'); - html = html.replace(/\[video(.*?)\]([\w\W]*?)\[\/video\]/gi, '$2'); - html = html.replace(/\[audio(.*?)\]([\w\W]*?)\[\/audio\]/gi, '$2'); - html = html.replace(/\[embed(.*?)\]([\w\W]*?)\[\/embed\]/gi, '$2'); - html = html.replace(/\[object(.*?)\]([\w\W]*?)\[\/object\]/gi, '$2'); - html = html.replace(/\[param(.*?)\]/gi, ''); - html = html.replace(/\[img(.*?)\]/gi, ''); - - // convert div to p - if (this.opts.convertDivs) - { - html = html.replace(/([\w\W]*?)<\/div>/gi, '

        $2

        '); - html = html.replace(/<\/div>

        /gi, '

        '); - html = html.replace(/<\/p><\/div>/gi, '

        '); - } - - html = this.cleanParagraphy(html); - - // remove span - html = html.replace(/([\w\W]*?)<\/span>/gi, '$2'); - - // remove empty - html = html.replace(//gi, ''); - html = html.replace(/<[^\/>][^>][^img|param|source]*>(\s*|\t*|\n*| |
        )<\/[^>]+>/gi, ''); - - html = html.replace(/\n{3,}/gi, '\n'); - - // remove dirty p - html = html.replace(/

        /gi, '

        '); - html = html.replace(/<\/p><\/p>/gi, '

        '); - - html = html.replace(/
      7. (\s*|\t*|\n*)

        /gi, '

      8. '); - html = html.replace(/<\/p>(\s*|\t*|\n*)<\/li>/gi, '
      9. '); - - if (this.opts.linebreaks === true) - { - html = html.replace(/([\w\W]*?)<\/p>/gi, '$2
        '); - } - - // remove empty finally - html = html.replace(/<[^\/>][^>][^img|param|source]*>(\s*|\t*|\n*| |
        )<\/[^>]+>/gi, ''); - - // FF fix - if (this.browser('mozilla')) - { - while (/
        $/gi.test(html)) - { - html = html.replace(/
        $/gi, ''); - } - } - - // ie inserts a blank font tags when pasting - while (/([\w\W]*?)<\/font>/gi.test(html)) - { - html = html.replace(/([\w\W]*?)<\/font>/gi, '$1'); - } - - this.pasteInsert(html); - - }, - pastePre: function(s) - { - s = s.replace(/
        |<\/H[1-6]>|<\/p>|<\/div>/gi, '\n'); - - var tmp = this.document.createElement('div'); - tmp.innerHTML = s; - return this.cleanEncodeEntities(tmp.textContent || tmp.innerText); - }, - pasteInsert: function(html) - { - if (this.selectall) - { - if (!this.opts.linebreaks) this.$editor.html(this.opts.emptyHtml); - else this.$editor.html(''); - - this.$editor.focus(); - } - - html = this.callback('pasteAfter', false, html); - - this.insertHtml(html); - - this.selectall = false; - setTimeout(function() { rtePaste = false; }, 100); - - if (this.opts.autoresize) $(this.document.body).scrollTop(this.saveScroll); - else this.$editor.scrollTop(this.saveScroll); - }, - - // BUFFER - bufferSet: function(html) - { - if (html !== undefined) this.opts.buffer.push(html); - else - { - this.selectionSave(); - this.opts.buffer.push(this.$editor.html()); - this.selectionRemoveMarkers(true); - } - }, - bufferUndo: function() - { - if (this.opts.buffer.length === 0) - { - this.$editor.focus(); - return; - } - - // rebuffer - this.selectionSave(); - this.opts.rebuffer.push(this.$editor.html()); - this.selectionRestore(false, true); - - this.$editor.html(this.opts.buffer.pop()); - - this.selectionRestore(); - setTimeout($.proxy(this.observeStart, this), 100); - }, - bufferRedo: function() - { - if (this.opts.rebuffer.length === 0) - { - this.$editor.focus(); - return false; - } - - // buffer - this.selectionSave(); - this.opts.buffer.push(this.$editor.html()); - this.selectionRestore(false, true); - - this.$editor.html(this.opts.rebuffer.pop()); - this.selectionRestore(true); - setTimeout($.proxy(this.observeStart, this), 4); - }, - - - // OBSERVE - observeStart: function() - { - this.observeImages(); - this.observeTables(); - }, - observeTables: function() - { - this.$editor.find('table').on('click', $.proxy(this.tableObserver, this)); - }, - observeImages: function() - { - if (this.opts.observeImages === false) return false; - - this.$editor.find('img').each($.proxy(function(i, elem) - { - if (this.browser('msie')) $(elem).attr('unselectable', 'on'); - this.imageResize(elem); - - }, this)); - }, - - - // SELECTION - getSelection: function() - { - if (!this.opts.rangy) return this.document.getSelection(); - else // rangy - { - if (!this.opts.iframe) return rangy.getSelection(); - else return rangy.getSelection(this.$frame[0]); - } - }, - getRange: function() - { - if (!this.opts.rangy) - { - if (this.document.getSelection) - { - var sel = this.document.getSelection(); - if (sel.getRangeAt && sel.rangeCount) return sel.getRangeAt(0); - } - - return this.document.createRange(); - } - else // rangy - { - if (!this.opts.iframe) return rangy.createRange(); - else return rangy.createRange(this.iframeDoc()); - } - }, - selectionElement: function(node) - { - this.setCaret(node); - }, - selectionStart: function(node) - { - this.selectionSet(node[0] || node, 0, null, 0); - }, - selectionEnd: function(node) - { - this.selectionSet(node[0] || node, 1, null, 1); - }, - selectionSet: function(orgn, orgo, focn, foco) - { - if (focn == null) focn = orgn; - if (foco == null) foco = orgo; - - var sel = this.getSelection(); - if (!sel) return; - - var range = this.getRange(); - range.setStart(orgn, orgo); - range.setEnd(focn, foco ); - - try { - sel.removeAllRanges(); - } catch (e) {} - - sel.addRange(range); - }, - selectionWrap: function(tag) - { - tag = tag.toLowerCase(); - - var block = this.getBlock(); - if (block) - { - var wrapper = this.formatChangeTag(block, tag); - this.sync(); - return wrapper; - } - - var sel = this.getSelection(); - var range = sel.getRangeAt(0); - var wrapper = document.createElement(tag); - wrapper.appendChild(range.extractContents()); - range.insertNode(wrapper); - - this.selectionElement(wrapper); - - return wrapper; - }, - selectionAll: function() - { - var range = this.getRange(); - range.selectNodeContents(this.$editor[0]); - - var sel = this.getSelection(); - sel.removeAllRanges(); - sel.addRange(range); - }, - selectionRemove: function() - { - this.getSelection().removeAllRanges(); - }, - getCaretOffset: function (element) - { - var caretOffset = 0; - - var range = this.getSelection().getRangeAt(0); - var preCaretRange = range.cloneRange(); - preCaretRange.selectNodeContents(element); - preCaretRange.setEnd(range.endContainer, range.endOffset); - caretOffset = $.trim(preCaretRange.toString()).length; - - return caretOffset; - }, - getCaretOffsetRange: function() - { - return new Range(this.getSelection().getRangeAt(0)); - }, - setCaret: function (el, start, end) - { - if (typeof end === 'undefined') end = start; - el = el[0] || el; - - var range = this.getRange(); - range.selectNodeContents(el); - - var textNodes = this.getTextNodesIn(el); - var foundStart = false; - var charCount = 0, endCharCount; - - if (textNodes.length == 1 && start) - { - range.setStart(textNodes[0], start); - range.setEnd(textNodes[0], end); - } - else - { - for (var i = 0, textNode; textNode = textNodes[i++];) - { - endCharCount = charCount + textNode.length; - if (!foundStart && start >= charCount && (start < endCharCount || (start == endCharCount && i < textNodes.length))) - { - range.setStart(textNode, start - charCount); - foundStart = true; - } - - if (foundStart && end <= endCharCount) - { - range.setEnd( textNode, end - charCount ); - break; - } - - charCount = endCharCount; - } - } - - var sel = this.getSelection(); - sel.removeAllRanges(); - sel.addRange( range ); - }, - getTextNodesIn: function (node) - { - var textNodes = []; - - if (node.nodeType == 3) textNodes.push(node); - else - { - var children = node.childNodes; - for (var i = 0, len = children.length; i < len; ++i) - { - textNodes.push.apply(textNodes, this.getTextNodesIn(children[i])); - } - } - - return textNodes; - }, - - // SAVE & RESTORE - selectionSave: function() - { - if (!this.isFocused()) this.$editor.focus(); - - if (!this.opts.rangy) - { - this.selectionCreateMarker(this.getRange()); - } - // rangy - else - { - this.savedSel = rangy.saveSelection(); - } - }, - selectionCreateMarker: function(range, remove) - { - if (!range) return; - - var node1 = $('' + this.opts.invisibleSpace + '', this.document)[0]; - var node2 = $('' + this.opts.invisibleSpace + '', this.document)[0]; - - if (range.collapsed === true) - { - this.selectionSetMarker(range, node1, true); - } - else - { - this.selectionSetMarker(range, node1, true); - this.selectionSetMarker(range, node2, false); - } - - this.savedSel = this.$editor.html(); - - this.selectionRestore(false, false); - }, - selectionSetMarker: function(range, node, type) - { - var boundaryRange = range.cloneRange(); - - boundaryRange.collapse(type); - - boundaryRange.insertNode(node); - boundaryRange.detach(); - }, - selectionRestore: function(replace, remove) - { - if (!this.opts.rangy) - { - if (replace === true && this.savedSel) - { - this.$editor.html(this.savedSel); - } - - var node1 = this.$editor.find('span#selection-marker-1'); - var node2 = this.$editor.find('span#selection-marker-2'); - - if (!this.isFocused()) this.$editor.focus(); - - if (node1.length != 0 && node2.length != 0) - { - this.selectionSet(node1[0], 0, node2[0], 0); - } - else if (node1.length != 0) - { - this.selectionSet(node1[0], 0, null, 0); - } - - if (remove !== false) - { - this.selectionRemoveMarkers(); - this.savedSel = false; - } - } - // rangy - else - { - rangy.restoreSelection(this.savedSel); - } - }, - selectionRemoveMarkers: function() - { - if (!this.opts.rangy) - { - this.$editor.find('span#selection-marker-1').remove(); - this.$editor.find('span#selection-marker-2').remove(); - } - // rangy - else - { - rangy.removeMarkers(this.savedSel); - } - }, - // GET ELEMENTS - getCurrent: function() - { - var el = false; - var sel = this.getSelection(); - - if (sel.rangeCount > 0) el = sel.getRangeAt(0).startContainer; - - return this.isParentRedactor(el); - }, - getParent: function(elem) - { - elem = elem || this.getCurrent(); - if (elem) return this.isParentRedactor( $( elem ).parent()[0] ); - else return false; - }, - getBlock: function(node) - { - if (typeof node === 'undefined') node = this.getCurrent(); - - while (node) - { - if (this.nodeTestBlocks(node)) - { - if ($(node).hasClass('redactor_editor')) return false; - return node; - } - - node = node.parentNode; - } - - return false; - }, - getBlocks: function(nodes) - { - var newnodes = []; - if (typeof nodes == 'undefined') - { - var range = this.getRange(); - if (range && range.collapsed === true) return [this.getBlock()]; - var nodes = this.getNodes(range); - } - - $.each(nodes, $.proxy(function(i,node) - { - if (this.opts.iframe === false && $(node).parents('div.redactor_editor').size() == 0) return false; - if (this.nodeTestBlocks(node)) newnodes.push(node); - - }, this)); - - if (newnodes.length === 0) newnodes = [this.getBlock()]; - - return newnodes; - }, - nodeTestBlocks: function(node) - { - return node.nodeType == 1 && this.rTestBlock.test(node.nodeName); - }, - tagTestBlock: function(tag) - { - return this.rTestBlock.test(tag); - }, - getSelectedNodes: function(range) - { - if (typeof range == 'undefined' || range == false) var range = this.getRange() - if (range && range.collapsed === true) - { - return [this.getCurrent()]; - } - - var sel = this.getSelection(); - try { - var frag = sel.getRangeAt(0).cloneContents(); - } - catch(e) - { - return(false); - } - - var tempspan = this.document.createElement("span"); - tempspan.appendChild(frag); - - window.selnodes = tempspan.childNodes; - - var len = selnodes.length; - var output = []; - for(var i = 0, u = len; i'), - tableId = Math.floor(Math.random() * 99999), - $table = $('
        '), - i, $row, z, $column; - - for (i = 0; i < rows; i++) - { - $row = $(''); - - for (z = 0; z < columns; z++) - { - $column = $('' + this.opts.invisibleSpace + ''); - - // set the focus to the first td - if (i === 0 && z === 0) $column.append('' + this.opts.invisibleSpace + ''); - - $($row).append($column); - } - - $table.append($row); - } - - $table_box.append($table); - var html = $table_box.html(); - - this.modalClose(); - this.selectionRestore(); - - var current = this.getBlock() || this.getCurrent(); - if (current) - { - $(current).after(html) - } - else - { - this.insertHtmlAdvanced(html); - - } - - this.selectionRestore(); - - var table = this.$editor.find('#table' + tableId); - this.tableObserver(table); - this.buttonActiveObserver(); - - table.removeAttr('id'); - - this.sync(); - }, - tableObserver: function(e) - { - this.$table = $(e.target || e).closest('table'); - - this.$tbody = $(e.target).closest('tbody'); - this.$thead = this.$table.find('thead'); - - this.$current_td = $(e.target || this.$table.find('td').first()); - this.$current_tr = $(e.target || this.$table.find('tr').first()).closest('tr'); - }, - tableDeleteTable: function() - { - this.bufferSet(); - - if (!this.$table) return; - - this.$table.remove(); - this.$table = false; - this.sync(); - - }, - tableDeleteRow: function() - { - this.bufferSet(); - - if (!this.$current_tr) return; - - // Set the focus correctly - var $focusTR = this.$current_tr.prev().length ? this.$current_tr.prev() : this.$current_tr.next(); - if ($focusTR.length) - { - var $focusTD = $focusTR.children('td' ).first(); - if ($focusTD.length) - { - $focusTD.prepend('' + this.opts.invisibleSpace + ''); - this.selectionRestore(); - } - } - - this.$current_tr.remove(); - this.sync(); - }, - tableDeleteColumn: function() - { - this.bufferSet(); - var index = this.$current_td.get(0).cellIndex; - - // Set the focus correctly - this.$table.find('tr').each($.proxy(function(i, elem) - { - var focusIndex = index - 1 < 0 ? index + 1 : index - 1; - if (i === 0) - { - $(elem).find('td').eq(focusIndex).prepend('' + this.opts.invisibleSpace + ''); - this.selectionRestore(); - } - - $(elem).find('td').eq(index).remove(); - - }, this)); - - this.sync(); - }, - tableAddHead: function() - { - this.bufferSet(); - - if (this.$table.find('thead').size() !== 0) this.tableDeleteHead(); - else - { - var tr = this.$table.find('tr').first().clone(); - tr.find('td').html( this.opts.invisibleSpace ); - this.$thead = $(''); - this.$thead.append(tr); - this.$table.prepend(this.$thead); - - this.sync(); - } - }, - tableDeleteHead: function() - { - this.bufferSet(); - - $(this.$thead).remove(); - this.$thead = false; - - this.sync(); - }, - tableAddRowAbove: function() - { - this.tableAddRow('before'); - }, - tableAddRowBelow: function() - { - this.tableAddRow('after'); - }, - tableAddColumnLeft: function() - { - this.tableAddColumn('before'); - }, - tableAddColumnRight: function() - { - this.tableAddColumn('after'); - }, - tableAddRow: function(type) - { - this.bufferSet(); - - var new_tr = this.$current_tr.clone(); - new_tr.find('td').html(this.opts.invisibleSpace); - - if (type === 'after') this.$current_tr.after(new_tr); - else this.$current_tr.before(new_tr); - - this.sync(); - }, - tableAddColumn: function (type) - { - this.bufferSet(); - - var index = 0; - - this.$current_tr.find('td').each($.proxy(function(i, elem) - { - if ($(elem)[0] === this.$current_td[0]) index = i; - - }, this)); - - this.$table.find('tr').each($.proxy(function(i, elem) - { - var $current = $(elem).find('td').eq(index); - - var td = $current.clone(); - td.html(this.opts.invisibleSpace); - - type === 'after' ? $current.after(td) : $current.before(td); - - }, this)); - - this.sync(); - }, - - // VIDEO - videoShow: function() - { - this.selectionSave(); - - this.modalInit(this.opts.curLang.video, this.opts.modal_video, 600, $.proxy(function() - { - $('#redactor_insert_video_btn').click($.proxy(this.videoInsert, this)); - - setTimeout(function() - { - $('#redactor_insert_video_area').focus(); - - }, 200); - - }, this)); - }, - videoInsert: function () - { - var data = $('#redactor_insert_video_area').val(); - data = this.cleanStripTags(data); - - this.selectionRestore(); - - var current = this.getBlock() || this.getCurrent(); - if (current) - { - $(current).after(data) - this.sync(); - } - else this.insertHtmlAdvanced(data); - - this.modalClose(); - }, - - // LINK - linkShow: function() - { - this.selectionSave(); - - var callback = $.proxy(function() - { - this.insert_link_node = false; - - var sel = this.getSelection(); - var url = '', text = '', target = ''; - - var elem = this.getParent(); - var par = $(elem).parent().get(0); - if (par && par.tagName === 'A') - { - elem = par; - } - - if (elem && elem.tagName === 'A') - { - url = elem.href; - text = $(elem).text(); - target = elem.target; - - this.insert_link_node = elem; - } - else text = sel.toString(); - - $('.redactor_link_text').val(text); - - var thref = self.location.href.replace(/\/$/i, ''); - var turl = url.replace(thref, ''); - - var tabs = $('#redactor_tabs').find('a'); - - if (this.opts.linkEmail === false) tabs.eq(1).remove(); - if (this.opts.linkAnchor === false) tabs.eq(2).remove(); - if (this.opts.linkEmail === false && this.opts.linkAnchor === false) - { - $('#redactor_tabs').remove(); - $('#redactor_link_url').val(turl); - } - else - { - if (url.search('mailto:') === 0) - { - this.modalSetTab.call(this, 2); - - $('#redactor_tab_selected').val(2); - $('#redactor_link_mailto').val(url.replace('mailto:', '')); - } - else if (turl.search(/^#/gi) === 0) - { - this.modalSetTab.call(this, 3); - - $('#redactor_tab_selected').val(3); - $('#redactor_link_anchor').val(turl.replace(/^#/gi, '' )); - } - else - { - $('#redactor_link_url').val(turl); - } - } - - if (target === '_blank') $('#redactor_link_blank').prop('checked', true); - - $('#redactor_insert_link_btn').click($.proxy(this.linkProcess, this)); - - setTimeout(function() - { - $('#redactor_link_url').focus(); - - }, 200); - - }, this); - - this.modalInit(this.opts.curLang.link, this.opts.modal_link, 460, callback); - - }, - linkProcess: function() - { - var tab_selected = $('#redactor_tab_selected').val(); - var link = '', text = '', target = '', targetBlank = ''; - - // url - if (tab_selected === '1') - { - link = $('#redactor_link_url').val(); - text = $('#redactor_link_url_text').val(); - - if ($('#redactor_link_blank').prop('checked')) - { - target = ' target="_blank"'; - targetBlank = '_blank'; - } - - // test url (add protocol) - var pattern = '((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}'; - var re = new RegExp('^(http|ftp|https)://' + pattern, 'i'); - var re2 = new RegExp('^' + pattern, 'i'); - - if (link.search(re) == -1 && link.search(re2) == 0 && this.opts.linkProtocol) - { - link = this.opts.linkProtocol + link; - } - } - // mailto - else if (tab_selected === '2') - { - link = 'mailto:' + $('#redactor_link_mailto').val(); - text = $('#redactor_link_mailto_text').val(); - } - // anchor - else if (tab_selected === '3') - { - link = '#' + $('#redactor_link_anchor').val(); - text = $('#redactor_link_anchor_text').val(); - } - - this.linkInsert('' + text + '', $.trim(text), link, targetBlank); - - }, - linkInsert: function (a, text, link, target) - { - this.selectionRestore(); - - if (text !== '') - { - if (this.insert_link_node) - { - this.bufferSet(); - - $(this.insert_link_node).text(text).attr('href', link); - - if (target !== '') $(this.insert_link_node).attr('target', target); - else $(this.insert_link_node).removeAttr('target'); - - this.sync(); - } - else - { - this.exec('inserthtml', a); - } - } - - this.modalClose(); - }, - - // FILE - fileShow: function () - { - - this.selectionSave(); - - var callback = $.proxy(function() - { - var sel = this.getSelection(); - - var text = ''; - if (this.oldIE()) text = sel.text; - else text = sel.toString(); - - $('#redactor_filename').val(text); - - // dragupload - if (!this.isMobile()) - { - this.draguploadInit('#redactor_file', { - url: this.opts.fileUpload, - uploadFields: this.opts.uploadFields, - success: $.proxy(this.fileCallback, this), - error: $.proxy( function(obj, json) - { - this.callback('fileUploadError', json); - - }, this) - }); - } - - this.uploadInit('redactor_file', { - auto: true, - url: this.opts.fileUpload, - success: $.proxy(this.fileCallback, this), - error: $.proxy(function(obj, json) - { - this.callback('fileUploadError', json); - - }, this) - }); - - }, this); - - this.modalInit(this.opts.curLang.file, this.opts.modal_file, 500, callback); - }, - fileCallback: function(json) - { - - this.selectionRestore(); - - if (json !== false) - { - - var text = $('#redactor_filename').val(); - if (text === '') text = json.filename; - - var link = '' + text + ''; - - // chrome fix - if (this.browser('webkit') && !!this.window.chrome) - { - link = link + ' '; - } - - this.execCommand('inserthtml', link, false); - - var linkmarker = $(this.$editor.find('a#filelink-marker')); - if (linkmarker.size() != 0) linkmarker.removeAttr('id'); - else linkmarker = false; - - this.sync(); - - // file upload callback - this.callback('fileUpload', linkmarker, json); - } - - this.modalClose(); - }, - - // IMAGE - imageShow: function() - { - - this.selectionSave(); - - var callback = $.proxy(function() - { - // json - if (this.opts.imageGetJson) - { - $.getJSON(this.opts.imageGetJson, $.proxy(function(data) - { - var folders = {}, count = 0; - - // folders - $.each(data, $.proxy(function(key, val) - { - if (typeof val.folder !== 'undefined') - { - count++; - folders[val.folder] = count; - } - - }, this)); - - var folderclass = false; - $.each(data, $.proxy(function(key, val) - { - // title - var thumbtitle = ''; - if (typeof val.title !== 'undefined') thumbtitle = val.title; - - var folderkey = 0; - if (!$.isEmptyObject(folders) && typeof val.folder !== 'undefined') - { - folderkey = folders[val.folder]; - if (folderclass === false) folderclass = '.redactorfolder' + folderkey; - } - - var img = $(''); - $('#redactor_image_box').append(img); - $(img).click($.proxy(this.imageThumbClick, this)); - - }, this)); - - // folders - if (!$.isEmptyObject(folders)) - { - $('.redactorfolder').hide(); - $(folderclass).show(); - - var onchangeFunc = function(e) - { - $('.redactorfolder').hide(); - $('.redactorfolder' + $(e.target).val()).show(); - }; - - var select = $('' - + '
        ' - + '' - + '
        ' - + '' - + '', - - modal_image_edit: String() - + '
        ' - + '' - + '' - + '' - + '' - + '' - + '' - + '
        ' - + '', - - modal_image: String() - + '
        ' - + '' - + '' - + '
        ' - + '
        ' - + '' - + '
        ' - + '' - + '
        ' - + '' - + '
        ' - + '', - - modal_link: String() - + '
        ' - + '
        ' - + '
        ' - + 'URL' - + 'Email' - + '' + this.opts.curLang.anchor + '' - + '
        ' - + '' - + '
        ' - + '' - + '' - + '' - + '' - + '' - + '
        ' - + '' - + '' - + '
        ' - + '
        ' - + '', - - modal_table: String() - + '
        ' - + '' - + '' - + '' - + '' - + '
        ' - + '', - - modal_video: String() - + '
        ' - + '
        ' - + '' - + '' - + '
        ' - + '
        ' - + '' - - }); - }, - modalInit: function(title, content, width, callback) - { - var $redactorModalOverlay = $('#redactor_modal_overlay'); - - // modal overlay - if (!$redactorModalOverlay.length) - { - this.$overlay = $redactorModalOverlay = $(''); - $('body').prepend(this.$overlay); - } - - if (this.opts.modalOverlay) - { - $redactorModalOverlay.show().on('click', $.proxy(this.modalClose, this)); - } - - var $redactorModal = $('#redactor_modal'); - - if (!$redactorModal.length) - { - this.$modal = $redactorModal = $(''); - $('body').append(this.$modal); - } - - $('#redactor_modal_close').on('click', $.proxy(this.modalClose, this)); - - this.hdlModalClose = $.proxy(function(e) - { - if (e.keyCode === this.keyCode.ESC) - { - this.modalClose(); - return false; - } - - }, this); - - $(document).keyup(this.hdlModalClose); - this.$editor.keyup(this.hdlModalClose); - - // set content - this.modalcontent = false; - if (content.indexOf('#') == 0) - { - this.modalcontent = $(content); - $('#redactor_modal_inner').empty().append(this.modalcontent.html()); - this.modalcontent.html(''); - - } - else - { - $('#redactor_modal_inner').empty().append(content); - } - - $redactorModal.find('#redactor_modal_header').html(title); - - // draggable - if (typeof $.fn.draggable !== 'undefined') - { - $redactorModal.draggable({ handle: '#redactor_modal_header' }); - $redactorModal.find('#redactor_modal_header').css('cursor', 'move'); - } - - var $redactor_tabs = $('#redactor_tabs'); - - // tabs - if ($redactor_tabs.length ) - { - var that = this; - $redactor_tabs.find('a').each(function(i, s) - { - i++; - $(s).on('click', function(e) - { - e.preventDefault(); - - $redactor_tabs.find('a').removeClass('redactor_tabs_act'); - $(this).addClass('redactor_tabs_act'); - $('.redactor_tab').hide(); - $('#redactor_tab' + i ).show(); - $('#redactor_tab_selected').val(i); - - if (that.isMobile() === false) - { - var height = $redactorModal.outerHeight(); - $redactorModal.css('margin-top', '-' + (height + 10) / 2 + 'px'); - } - }); - }); - } - - $redactorModal.find('.redactor_btn_modal_close').on('click', $.proxy(this.modalClose, this)); - - if (this.isMobile() === false) - { - $redactorModal.css({ - position: 'fixed', - top: '-2000px', - left: '50%', - width: width + 'px', - marginLeft: '-' + (width + 60) / 2 + 'px' - }).show(); - - this.modalSaveBodyOveflow = $(document.body).css('overflow'); - $(document.body).css('overflow', 'hidden'); - - } - else - { - $redactorModal.css({ - position: 'fixed', - width: '100%', - height: '100%', - top: '0', - left: '0', - margin: '0', - minHeight: '300px' - }).show(); - } - - // callback - if (typeof callback === 'function') callback(); - - if (this.isMobile() === false) - { - setTimeout(function() - { - var height = $redactorModal.outerHeight(); - $redactorModal.css({ - top: '50%', - height: 'auto', - minHeight: 'auto', - marginTop: '-' + (height + 10) / 2 + 'px' - }); - }, 20 ); - } - - }, - modalClose: function() - { - $('#redactor_modal_close').off('click', this.modalClose ); - $('#redactor_modal').fadeOut('fast', $.proxy(function() - { - var redactorModalInner = $('#redactor_modal_inner'); - - if (this.modalcontent !== false) - { - this.modalcontent.html(redactorModalInner.html()); - this.modalcontent = false; - } - - redactorModalInner.html(''); - - if (this.opts.modalOverlay) - { - $('#redactor_modal_overlay').hide().off('click', this.modalClose); - } - - $(document).unbind('keyup', this.hdlModalClose); - this.$editor.unbind('keyup', this.hdlModalClose); - - this.selectionRestore(); - - }, this)); - - - if (this.isMobile() === false) - { - $(document.body).css('overflow', this.modalSaveBodyOveflow ? this.modalSaveBodyOveflow : 'visible'); - } - - return false; - }, - modalSetTab: function(num) - { - $('.redactor_tab').hide(); - $('#redactor_tabs').find('a').removeClass('redactor_tabs_act').eq(num - 1).addClass('redactor_tabs_act'); - $('#redactor_tab' + num).show(); - }, - - - // S3 - s3handleFileSelect: function(e) - { - var files = e.target.files; - - for (var i = 0, f; f = files[i]; i++) - { - this.s3uploadFile(f); - } - }, - s3uploadFile: function(file) - { - this.s3executeOnSignedUrl(file, $.proxy(function(signedURL) - { - this.s3uploadToS3(file, signedURL); - }, this)); - }, - s3executeOnSignedUrl: function(file, callback) - { - var xhr = new XMLHttpRequest(); - xhr.open('GET', this.opts.s3 + '?name=' + file.name + '&type=' + file.type, true); - - // Hack to pass bytes through unprocessed. - xhr.overrideMimeType('text/plain; charset=x-user-defined'); - - xhr.onreadystatechange = function(e) - { - if (this.readyState == 4 && this.status == 200) - { - $('#redactor-progress').fadeIn(); - callback(decodeURIComponent(this.responseText)); - } - else if(this.readyState == 4 && this.status != 200) - { - //setProgress(0, 'Could not contact signing script. Status = ' + this.status); - } - }; - - xhr.send(); - }, - s3createCORSRequest: function(method, url) - { - var xhr = new XMLHttpRequest(); - if ("withCredentials" in xhr) - { - xhr.open(method, url, true); - } - else if (typeof XDomainRequest != "undefined") - { - xhr = new XDomainRequest(); - xhr.open(method, url); - } - else - { - xhr = null; - } - - return xhr; - }, - s3uploadToS3: function(file, url) - { - var xhr = this.s3createCORSRequest('PUT', url); - if (!xhr) - { - //setProgress(0, 'CORS not supported'); - } - else - { - xhr.onload = $.proxy(function() - { - if (xhr.status == 200) - { - //setProgress(100, 'Upload completed.'); - - $('#redactor-progress').hide(); - - var s3image = url.split('?'); - - if (!s3image[0]) - { - // url parsing is fail - return false; - } - - this.selectionRestore(); - - var html = ''; - html = ''; - if (this.opts.paragraphy) html = '

        ' + html + '

        '; - - this.execCommand('inserthtml', html, false); - - var image = $(this.$editor.find('img#image-marker')); - - if (image.length) image.removeAttr('id'); - else image = false; - - this.sync(); - - // upload image callback - this.callback('imageUpload', image, false); - - this.modalClose(); - this.observeImages(); - - } - else - { - //setProgress(0, 'Upload error: ' + xhr.status); - } - }, this); - - xhr.onerror = function() - { - //setProgress(0, 'XHR error.'); - }; - - xhr.upload.onprogress = function(e) - { - /* - if (e.lengthComputable) - { - var percentLoaded = Math.round((e.loaded / e.total) * 100); - setProgress(percentLoaded, percentLoaded == 100 ? 'Finalizing.' : 'Uploading.'); - } - */ - }; - - xhr.setRequestHeader('Content-Type', file.type); - xhr.setRequestHeader('x-amz-acl', 'public-read'); - - xhr.send(file); - } - }, - - - // UPLOAD - uploadInit: function(el, options) - { - this.uploadOptions = { - url: false, - success: false, - error: false, - start: false, - trigger: false, - auto: false, - input: false - }; - - $.extend(this.uploadOptions, options); - - var $el = $('#' + el); - - // Test input or form - if ($el.length && $el[0].tagName === 'INPUT') - { - this.uploadOptions.input = $el; - this.el = $($el[0].form); - } - else this.el = $el; - - this.element_action = this.el.attr('action'); - - // Auto or trigger - if (this.uploadOptions.auto) - { - $(this.uploadOptions.input).change($.proxy(function(e) - { - this.el.submit(function(e) - { - return false; - }); - - this.uploadSubmit(e); - - }, this)); - - } - else if (this.uploadOptions.trigger) - { - $('#' + this.uploadOptions.trigger).click($.proxy(this.uploadSubmit, this)); - } - }, - uploadSubmit: function(e) - { - $('#redactor-progress').fadeIn(); - this.uploadForm(this.element, this.uploadFrame()); - }, - uploadFrame: function() - { - this.id = 'f' + Math.floor(Math.random() * 99999); - - var d = this.document.createElement('div'); - var iframe = ''; - - d.innerHTML = iframe; - $(d).appendTo("body"); - - // Start - if (this.uploadOptions.start) this.uploadOptions.start(); - - $( '#' + this.id ).load($.proxy(this.uploadLoaded, this)); - - return this.id; - }, - uploadForm: function(f, name) - { - if (this.uploadOptions.input) - { - var formId = 'redactorUploadForm' + this.id, - fileId = 'redactorUploadFile' + this.id; - - this.form = $('
        '); - - // append hidden fields - if (this.opts.uploadFields !== false && typeof this.opts.uploadFields === 'object') - { - $.each(this.opts.uploadFields, $.proxy(function(k, v) - { - if (v.toString().indexOf('#') === 0) v = $(v).val(); - - var hidden = $('', { - 'type': "hidden", - 'name': k, - 'value': v - }); - - $(this.form).append(hidden); - - }, this)); - } - - var oldElement = this.uploadOptions.input; - var newElement = $( oldElement ).clone(); - - $(oldElement).attr('id', fileId).before(newElement).appendTo(this.form); - - $(this.form).css('position', 'absolute') - .css('top', '-2000px') - .css('left', '-2000px') - .appendTo('body'); - - this.form.submit(); - - } - else - { - f.attr('target', name) - .attr('method', 'POST') - .attr('enctype', 'multipart/form-data') - .attr('action', this.uploadOptions.url); - - this.element.submit(); - } - }, - uploadLoaded: function() - { - var i = $( '#' + this.id)[0], d; - - if (i.contentDocument) d = i.contentDocument; - else if (i.contentWindow) d = i.contentWindow.document; - else d = window.frames[this.id].document; - - // Success - if (this.uploadOptions.success) - { - $('#redactor-progress').hide(); - - if (typeof d !== 'undefined') - { - // Remove bizarre
         tag wrappers around our json data:
        -					var rawString = d.body.innerHTML;
        -					var jsonString = rawString.match(/\{(.|\n)*\}/)[0];
        -
        -					jsonString = jsonString.replace(/^\[/, '');
        -					jsonString = jsonString.replace(/\]$/, '');
        -
        -					var json = $.parseJSON(jsonString);
        -
        -					if (typeof json.error == 'undefined') this.uploadOptions.success(json);
        -					else
        -					{
        -						this.uploadOptions.error(this, json);
        -						this.modalClose();
        -					}
        -				}
        -				else
        -				{
        -					this.modalClose();
        -					alert('Upload failed!');
        -				}
        -			}
        -
        -			this.el.attr('action', this.element_action);
        -			this.el.attr('target', '');
        -		},
        -
        -		// DRAGUPLOAD
        -		draguploadInit: function (el, options)
        -		{
        -			this.draguploadOptions = $.extend({
        -				url: false,
        -				success: false,
        -				error: false,
        -				preview: false,
        -				uploadFields: false,
        -				text: this.opts.curLang.drop_file_here,
        -				atext: this.opts.curLang.or_choose
        -			}, options);
        -
        -			if (window.FormData === undefined) return false;
        -
        -			this.droparea = $('
        '); - this.dropareabox = $('
        ' + this.draguploadOptions.text + '
        '); - this.dropalternative = $('
        ' + this.draguploadOptions.atext + '
        '); - - this.droparea.append(this.dropareabox); - - $(el).before(this.droparea); - $(el).before(this.dropalternative); - - // drag over - this.dropareabox.on('dragover', $.proxy(function() - { - return this.draguploadOndrag(); - - }, this)); - - // drag leave - this.dropareabox.on('dragleave', $.proxy(function() - { - return this.draguploadOndragleave(); - - }, this)); - - // drop - this.dropareabox.get(0).ondrop = $.proxy(function(e) - { - e.preventDefault(); - - this.dropareabox.removeClass('hover').addClass('drop'); - - //this.handleFileSelect(e); - this.draguploadUpload(e.dataTransfer.files[0]); - - }, this ); - }, - draguploadUpload: function(file) - { - var xhr = jQuery.ajaxSettings.xhr(); - - if (xhr.upload) - { - xhr.upload.addEventListener('progress', $.proxy(this.uploadProgress, this), false); - } - - var provider = function () { return xhr; }; - - var fd = new FormData(); - - // append hidden fields - if (this.draguploadOptions.uploadFields !== false && typeof this.draguploadOptions.uploadFields === 'object') - { - $.each(this.draguploadOptions.uploadFields, $.proxy(function(k, v) - { - if (v.toString().indexOf('#') === 0) v = $(v).val(); - fd.append(k, v); - - }, this)); - } - - // append file data - fd.append('file', file); - - $.ajax({ - url: this.draguploadOptions.url, - dataType: 'html', - data: fd, - xhr: provider, - cache: false, - contentType: false, - processData: false, - type: 'POST', - success: $.proxy(function(data) - { - data = data.replace(/^\[/, ''); - data = data.replace(/\]$/, ''); - - var json = $.parseJSON(data); - - if (typeof json.error == 'undefined') - { - this.draguploadOptions.success(json); - } - else - { - this.draguploadOptions.error(this, json); - this.draguploadOptions.success(false); - } - - }, this) - }); - - }, - draguploadOndrag: function() - { - this.dropareabox.addClass('hover'); - return false; - }, - draguploadOndragleave: function() - { - this.dropareabox.removeClass('hover'); - return false; - }, - uploadProgress: function(e, text) - { - var percent = e.loaded ? parseInt(e.loaded / e.total * 100, 10) : e; - this.dropareabox.text('Loading ' + percent + '% ' + (text || '')); - }, - - - // UTILS - isMobile: function() - { - return /(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent); - }, - outerHtml: function(el) - { - return $('
        ').append($(el).eq(0).clone()).html(); - }, - isString: function(obj) - { - return Object.prototype.toString.call(obj) == '[object String]'; - }, - isEmpty: function(html) - { - html = html.replace(/​|
        || /gi, ''); - html = html.replace(/\s/g, ''); - html = html.replace(/^

        [^\w\d]*?<\/p>$/i, ''); - - return html == ''; - }, - browser: function(browser) - { - var ua = navigator.userAgent.toLowerCase(); - var match = /(chrome)[ \/]([\w.]+)/.exec(ua) - || /(webkit)[ \/]([\w.]+)/.exec(ua) - || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) - || /(msie) ([\w.]+)/.exec(ua) - || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) - || []; - - if (browser == 'version') return match[2]; - if (browser == 'webkit') return (match[1] == 'chrome' || match[1] == 'webkit'); - - return match[1] == browser; - }, - oldIE: function() - { - if (this.browser('msie') && parseInt(this.browser('version'), 10) < 9) return true; - return false; - }, - getFragmentHtml: function (fragment) - { - var cloned = fragment.cloneNode(true); - var div = this.document.createElement('div'); - - div.appendChild(cloned); - return div.innerHTML; - }, - extractContent: function() - { - var node = this.$editor[0]; - var frag = this.document.createDocumentFragment(); - var child; - - while ((child = node.firstChild)) - { - frag.appendChild(child); - } - - return frag; - }, - isParentRedactor: function(el) - { - if (!el) return false; - if (this.opts.iframe) return el; - - if ($(el).parents('div.redactor_editor').length == 0 || $(el).hasClass('redactor_editor')) return false; - else return el; - }, - currentOrParentIs: function(tagName) - { - var parent = this.getParent(), current = this.getCurrent(); - return parent && parent.tagName === tagName ? parent : current && current.tagName === tagName ? current : false; - }, - isEndOfElement: function() - { - var current = this.getBlock(); - var offset = this.getCaretOffset(current); - - var text = $.trim($(current).text()).replace(/\n\r\n/g, ''); - - var len = text.length; - if (offset == len) return true; - else return false; - }, - isFocused: function() - { - var el, sel = this.getSelection(); - - if (sel.rangeCount && sel.rangeCount > 0) el = sel.getRangeAt(0).startContainer; - if (!el) return false; - if (this.opts.iframe) - { - if (this.getCaretOffsetRange().equals()) return !this.$editor.is(el); - else return true; - } - - return $(el).closest('div.redactor_editor').length != 0; - }, - removeEmptyAttr: function (el, attr) - { - if ($(el).attr(attr) == '') $(el).removeAttr(attr); - }, - removeFromArrayByValue: function(array, value) - { - var index = null; - - while ((index = array.indexOf(value)) !== -1) - { - array.splice(index, 1); - } - - return array; - } - }; - - // constructor - Redactor.prototype.init.prototype = Redactor.prototype; - - // LINKIFY - $.Redactor.fn.formatLinkify = function(protocol) - { - var url1 = /(^|<|\s)(www\..+?\..+?)(\s|>|$)/g, - url2 = /(^|<|\s)(((https?|ftp):\/\/|mailto:).+?)(\s|>|$)/g; - - var childNodes = (this.$editor ? this.$editor.get(0) : this).childNodes, i = childNodes.length; - while (i--) - { - var n = childNodes[i]; - if (n.nodeType === 3) - { - var html = n.nodeValue; - if (html && (html.match(url1) || html.match(url2))) - { - html = html.replace(/&/g, '&') - .replace(//g, '>') - .replace(url1, '$1$2$3') - .replace(url2, '$1$2$5'); - - $(n).after(html).remove(); - } - } - else if (n.nodeType === 1 && !/^(a|button|textarea)$/i.test(n.tagName)) - { - $.Redactor.fn.formatLinkify.call(n, protocol); - } - } - }; - - -})(jQuery); \ No newline at end of file diff --git a/public/javascripts/vendor/redactor/redactor.min.js b/public/javascripts/vendor/redactor/redactor.min.js deleted file mode 100755 index 9ccd0baf4..000000000 --- a/public/javascripts/vendor/redactor/redactor.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - Redactor v9.0.2 - Updated: Jun 25, 2013 - - http://imperavi.com/redactor/ - - Copyright (c) 2009-2013, Imperavi LLC. - License: http://imperavi.com/redactor/license/ - - Usage: $('#content').redactor(); -*/ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(y(d){B b=0;B a=D;"fz fy";B e=y(f){7[0]=f.fx;7[1]=f.cl;7.47=f;E 7};e.3Z.cZ=y(){E 7[0]===7[1]};d.fn.Q=y(g){B h=[];B f=fA.3Z.fB.3m(fE,1);if(1s g==="fD"){7.15(y(){B j=d.1L(7,"Q");if(1s j!=="1p"&&d.5t(j[g])){B i=j[g].d4(j,f);if(i!==1p&&i!==j){h.1I(i)}}F{E d.2X(\'fC fw 5f "\'+g+\'" 2C 43\')}})}F{7.15(y(){if(!d.1L(7,"Q")){d.1L(7,"Q",c(7,g))}})}if(h.X===0){E 7}F{if(h.X===1){E h[0]}F{E h}}};y c(g,f){E 1N c.3Z.59(g,f)}d.43=c;d.43.fv="9.0.2";d.43.C={fp:D,fo:D,7W:D,8j:D,fm:D,fq:D,fr:D,fu:D,ft:D,fs:D,fF:D,fG:D,fT:D,fS:D,fR:D,2G:D,1h:D,2K:D,11:D,ae:"en",4h:"fU",3u:D,bt:D,a7:L,bb:L,3M:L,1i:D,5C:D,5g:L,5M:D,5W:L,4P:D,6T:60,8a:D,7g:D,7i:D,6S:"dn://",5B:D,4s:D,5x:D,5Y:D,2P:D,4j:L,9F:L,e4:L,1P:D,aL:["4x","|","2V","2T","3T","|","4g","4f","5a","4a","|","3N","3j"],19:L,4n:D,bW:0,6U:D,9T:D,aA:L,5U:\'<1F V="fV">\',aw:{},ax:[],2Z:["T","|","4x","|","2V","2T","3T","|","4g","4f","5a","4a","|","2D","2A","2Q","1e","2m","|","3N","3j","|","6J","|","5F"],80:["#fX","#fW","#fQ","#fP","#fJ","#fI","#fH","#fK","#fL","#fO","#fN","#fM","#a0","#fl","#fk","#eV","#eU","#eT","#eW","#eX","#f0","#eZ","#eY","#eS","#eR","#eL","#eK","#eJ","#eM","#eN","#c6","#eQ","#eP","#eO","#f1","#f2","#ff","#fe","#fd","#fg","#fh","#c6","#fj","#fi","#fc","#fb","#f5","#f4","#f3","#f6","#f7","#fa","#f9","#f8","#fY","#a0","#fZ","#gR","#gQ","#gP","#gS","#gT","#gW","#gV","#gU","#gO"],6o:["3T","2T","2V","5h","4g","4f","6s","6i","6n","4W","1e"],8P:{b:"2V",3C:"2V",i:"2T",em:"2T",6P:"3T",6W:"3T",1T:"4g",23:"4f",u:"5h",2y:"1e",1t:"1e",1e:"1e"},6a:D,aJ:["p","2r","1U","h1","h2","h3","h4"],1z:D,4w:L,8O:L,bk:L,bf:D,5P:D,4O:D,5T:["T","6b","2m","2a","7Z","2c","Z","gN"],85:"3C",8f:"em",4c:[],5o:[],4k:D,3H:"

        >

        ",22:">",9P:/^(P|H[1-6]|2N|dR|cH|cr|co|cQ|cN)$/i,6I:["aF","aG","bP","cw","dr","do","P","c9","6e","3Q"],7Q:["bR","2a","6b","hr","i?1X","2m","7Z","gH","Z","2c","1e","4B","2H","84"],83:["1F","dt","dt","h[1-6]","3c","2c"],am:["2r","K","dl","bM","1o","gG","bQ","23","p","1U","5p","1t","81","2y","1T"],7T:["P","aF","aG","bP","cw","dr","do","gF","gI","gJ","6e","2N","3Q","gM","da","4b","dR","cH","cr","co","cQ","cN"],af:{en:{T:"dk",2A:"4l dh",2D:"4l ce",1e:"7O",2m:"ct",7q:"4l 2m",ba:"gL 2m",5O:"gK",4x:"gX",ah:"gY 1c",ai:"hh",4X:"dZ",aT:"6w 1",bN:"6w 2",b3:"6w 3",bK:"6w 4",2V:"hg",2T:"hf",3N:"hi aZ",3j:"hj aZ",4g:"hl bp",4f:"hk bp",5a:"he",4a:"hd",4L:"eI",5H:"4l",9g:"h0",d5:"5l",8n:"4l 7O",8w:"5n 7I gZ",7M:"5n 7I h8",7B:"5n 7C cn",7E:"5n 7C cq",7h:"5l 7C",7t:"5l 7I",7x:"5l 7O",dP:"h9",dQ:"hc",7f:"5n dc",7D:"5l dc",M:"hb",dg:"ha",1K:"gE",1C:"cn",3X:"cq",cd:"ce gD ct",1c:"gc",5A:"8U",gb:"96",dM:"dh ga dZ",2Q:"4l gd",4y:"bo",ge:"gh",9h:"gg",bn:"gf 9h",bm:"g9 2Q g8",7G:"dC 1c dG dH 1C",7d:"g2 1c",7s:"dC 1c dG dH 3X",8c:"g1 1c",5F:"4l g0 g3",3T:"g4",8S:"g7",cB:"g6 2m in 1N g5",5h:"gj",6J:"gk",9e:"gy (gx)"}}};c.fn=d.43.3Z={2k:{8l:8,bH:46,9o:40,6r:13,92:27,aU:9,gw:17,gz:91,gA:37,bV:91},59:y(g,f){7.$3s=7.$1d=d(g);7.9R=b++;7.C=d.41({},d.43.C,7.$3s.1L(),f);7.5d=L;7.gC=[];7.9w=7.$1d.11("1G");7.gB=7.$1d.11("2u");if(7.C.2K){7.C.1h=L}if(7.C.1z){7.C.4w=D}if(7.C.4w){7.C.1z=D}if(7.C.6U){7.C.4n=L}7.N=N;7.31=31;7.3L=D;7.aV=1N 2B("^<(/?"+7.C.7Q.4I("|/?")+"|"+7.C.83.4I("|")+")[ >]");7.aY=1N 2B("^<(br|/?"+7.C.7Q.4I("|/?")+"|/"+7.C.83.4I("|/")+")[ >]");7.86=1N 2B("^]");7.7r=1N 2B("^("+7.C.7T.4I("|")+")$","i");if(7.C.1z===D){if(7.C.4O!==D&&d.4Z("p",7.C.4O)==="-1"){7.C.4O.1I("p")}if(7.C.5T!==D){B h=d.4Z("p",7.C.5T);if(h!=="-1"){7.C.5T.6v(h,h)}}}if(7.1B("30")||7.1B("6c")){7.C.2Z=7.cb(7.C.2Z,"5F")}7.C.16=7.C.af[7.C.ae];7.dq()},dw:y(f){E{T:{M:f.T,18:"9A"},4x:{M:f.4x,18:"1w",2I:{p:{M:f.ah,18:"3R"},2r:{M:f.ai,18:"aI",3g:"gv"},1U:{M:f.4X,18:"3R",3g:"gu"},h1:{M:f.aT,18:"3R",3g:"gn"},h2:{M:f.bN,18:"3R",3g:"gm"},h3:{M:f.b3,18:"3R",3g:"gl"},h4:{M:f.bK,18:"3R",3g:"go"}}},2V:{M:f.2V,1J:"2V"},2T:{M:f.2T,1J:"2T"},3T:{M:f.3T,1J:"gp"},5h:{M:f.5h,1J:"5h"},4g:{M:"&gs; "+f.4g,1J:"5S"},4f:{M:"1. "+f.4f,1J:"6B"},5a:{M:"< "+f.5a,18:"8p"},4a:{M:"> "+f.4a,18:"8o"},2D:{M:f.2D,18:"ag"},2A:{M:f.2A,18:"a9"},2Q:{M:f.2Q,18:"bc"},1e:{M:f.1e,18:"1w",2I:{8n:{M:f.8n,18:"cO"},gr:{2b:"70"},8w:{M:f.8w,18:"dD"},7M:{M:f.7M,18:"dz"},7B:{M:f.7B,18:"ca"},7E:{M:f.7E,18:"aC"},gq:{2b:"70"},7f:{M:f.7f,18:"dO"},7D:{M:f.7D,18:"8Q"},hm:{2b:"70"},7h:{M:f.7h,18:"di"},7t:{M:f.7t,18:"cE"},7x:{M:f.7x,18:"ci"}}},2m:{M:f.2m,18:"1w",2I:{2m:{M:f.7q,18:"bG"},5O:{M:f.5O,1J:"5O"}}},3N:{M:f.3N,18:"1w"},3j:{M:f.3j,18:"1w"},6J:{M:f.6J,18:"1w",2I:{6s:{M:f.7G,18:"87"},6i:{M:f.7d,18:"8i"},6n:{M:f.7s,18:"8d"},4W:{M:f.8c,18:"8h"}}},6s:{M:f.7G,18:"87"},6i:{M:f.7d,18:"8i"},6n:{M:f.7s,18:"8d"},4W:{M:f.8c,18:"8h"},5F:{1J:"c0",M:f.5F}}},1k:y(f,g,h){B i=7.C[f+"eh"];if(d.5t(i)){if(g===D){E i.3m(7,h)}F{E i.3m(7,g,h)}}F{E h}},ej:y(){dj(7.6T);d(31).36(".Q");7.$3s.36(".Q").eH("Q");B g=7.1H();if(7.C.4k){7.$1R.2d(7.$1d);7.$1R.1n();7.$1d.1b(g).1w()}F{B f=7.$I;if(7.C.1h){f=7.$3s}7.$1R.2d(f);7.$1R.1n();f.21("2O").21("bl").2z("3A").T(g).1w()}},eE:y(){E d.41({},7)},ez:y(){E 7.$I},ev:y(){E 7.$1R},ex:y(){E(7.C.1h)?7.$1X:D},ew:y(){E 7.$19},1H:y(){E 7.$1d.1b()},b1:y(){7.$I.2z("3A").2z("4e");B f=7.4V(7.$1X.1y().63());7.$I.1a({3A:L,4e:7.C.4h});E f},6Z:y(f,g){f=f.3k();if(7.C.2K){7.cm(f)}F{7.cA(f,g)}},cA:y(f,g){if(g!==D){f=7.8g(f);f=7.5J(f);f=7.8J(f);f=7.6G(f);if(7.C.1z===D){f=7.8M(f)}F{f=f.G(/([\\w\\W]*?)<\\/p>/gi,"$2
        ")}}f=7.8K(f);7.$I.T(f);7.12()},cm:y(f){B g=7.7n();7.$1X[0].4r="ef:eF";f=7.8J(f);f=7.6G(f);f=7.5Q(f);g.6E();g.cy(f);g.db();if(7.C.2K){7.$I=7.$1X.1y().U("2a").1a({3A:L,4e:7.C.4h})}7.12()},9L:y(f){f=7.8g(f,L);f=7.8M(f);f=7.8K(f);7.$I.T(f);7.12()},12:y(){B f="";7.a4();if(7.C.2K){f=7.b1()}F{f=7.$I.T()}f=7.7u(f);f=7.5Q(f);f=7.7Y(f);f=f.G(/<\\/1F><(1T|23)>([\\w\\W]*?)<\\/(1T|23)>/gi,"<$1>$2");if(d.2s(f)==="
        "){f=""}if(f!==""){f=7.aQ(f)}f=7.1k("eD",D,f);7.$1d.1b(f);if(1s eb!="1p"){d("#"+7.$3s[0].id+"eB").T(eb(f))}7.1k("ei",D,f);if(7.5d===D){7.1k("6t",D,f)}},7u:y(f){if(!7.C.2K){f=7.5J(f)}f=d.2s(f);f=7.aO(f);f=f.G(/>/gi,"");f=f.G(/&#bv;/gi,"");f=f.G(/&1Z;/gi," ");f=f.G("","?>");f=f.G(/([\\w\\W]*?)<\\/O>/gi,\'<2v$er-Q="3P"$2>$3\');f=f.G(/([\\w\\W]*?)<\\/O>/gi,"$2");f=f.G(/<2v(.*?)1L-Q="3P"(.*?)>([\\w\\W]*?)<\\/2v>/gi,"$3");f=f.G(/\\n?<\\/(.*?)>/gi,"");f=f.G(/([\\w\\W]*?)<\\/O>/gi,"$3");f=f.G(/([\\w\\W]*?)<\\/O>/gi,"$1");f=f.G(/([\\w\\W]*?)<\\/O>/gi,"");f=7.c3(f);E f},dq:y(){7.3x="";7.$1R=d(\'\');if(7.$1d[0].R==="eu"){7.C.4k=L}if(7.C.a7===D&&7.3w()){7.ac()}F{7.bD();if(7.C.1h){7.C.5g=D;7.az()}F{if(7.C.4k){7.c4()}F{7.c5()}}if(!7.C.1h){7.9C();7.9D()}}},ac:y(){if(!7.C.4k){7.$I=7.$1d;7.$I.1Y();7.$1d=7.6K(7.$I);7.$1d.1b(7.3x)}7.$1R.5Z(7.$1d).Y(7.$1d)},bD:y(){if(7.C.4k){7.3x=d.2s(7.$1d.1b())}F{7.3x=d.2s(7.$1d.T())}},c4:y(){7.$I=d("");7.$1R.5Z(7.$1d).Y(7.$I).Y(7.$1d);7.c1(7.$I);7.9n()},c5:y(){7.$I=7.$1d;7.$1d=7.6K(7.$I);7.$1R.5Z(7.$I).Y(7.$I).Y(7.$1d);7.9n()},6K:y(f){E d("<4K />").1a("2b",f.1a("id")).11("1G",7.9w)},c1:y(f){d.15(7.$1d.1H(0).3g.6F(/\\s+/),y(g,h){f.1Q("ey"+h)})},9n:y(){7.$I.1Q("2O").1a({3A:L,4e:7.C.4h});7.$1d.1a("4e",7.C.4h).1Y();7.6Z(7.3x)},9C:y(){B f=7.$I;if(7.C.1h){f=7.$1X}if(7.C.5C){f.1a("5C",7.C.5C)}if(7.C.5M){f.11("eo-1G",7.C.5M+"2L")}if(7.C.bt){7.$I.1Q("bl")}if(!7.C.5g){f.11("1G",7.9w)}},9D:y(){7.5d=D;if(7.C.19){7.C.19=7.dw(7.C.16);7.an()}7.cL();7.ab();7.9M();if(7.C.4P){7.4P()}2e(d.J(7.5b,7),4);if(7.1B("5s")){7j{7.N.1A("ek",D,D);7.N.1A("ee",D,D)}7e(f){}}if(7.C.1i){2e(d.J(7.1i,7),2l)}if(!7.C.3M){2e(d.J(y(){7.C.3M=L;7.9A(D)},7),3W)}7.1k("59")},9M:y(){B g=D;if(7.1B("3Y")&&94.95.39("eg")===-1){B f=7.1B("6f").6F(".");if(f[0]"+7.C.22+"

        ");d(s).2f(r);7.3y(r)}},7),1)}F{if(k===D){7.1u();B i=d("

        "+7.C.22+"

        ");7.3d(i[0]);7.3y(i);E D}}}if(7.C.1z){if(k&&7.C.9P.3r(k.R)){7.1u();2e(d.J(y(){B r=7.25();if((r.R==="6e"||r.R==="P")&&!d(r).33("2O")){7.e0(r)}},7),1)}F{7.1u();7.67();m.1V();E}}if(k.R=="3Q"||k.R=="da"){7.1u();7.67();m.1V();E}}}F{if(q===7.2k.6r&&(m.9Y||m.3J)){7.1u();m.1V();7.67()}}if(q===7.2k.aU&&7.C.5W){if(!7.C.e4){E L}if(7.8Z(7.1H())){E L}m.1V();if(j===L&&!m.3J){7.1u();7.3d(N.7U("\\t"));7.12();E D}F{if(!m.3J){7.8o()}F{7.8p()}}E D}if(q===7.2k.8l){if(1s n.5r!=="1p"&&n.5r!==2h){B o=d.2s(n.5r.G(/[^\\h7-~]/g,""));if(n.1n&&n.3h===3&&n.5r.il(0)==bv&&o==""){n.1n()}}}},7));7.$I.1x("3B.Q",d.J(y(m){if(a){E D}B h=m.8I;B j=7.3f();B l=7.2p();if(!7.C.1z&&l.3h==3&&(j==D||j.R=="dm")){B k=d("

        ").Y(d(l).4m());d(l).2f(k);B i=d(k).5D();if(i[0].R=="e1"){i.1n()}7.5u(k)}if(7.C.bk&&h===7.2k.6r){7.7w(7.C.6S)}if(7.C.1z===D&&(h===7.2k.bH||h===7.2k.8l)){E 7.aE(m)}7.1k("3B",m);7.12()},7));if(d.5t(7.C.7W)){7.$I.1x("1i.Q",d.J(7.C.7W,7))}if(d.5t(7.C.8j)){7.$I.1x("jS.Q",d.J(7.C.8j,7))}},ab:y(){if(!7.C.8a){E}d.15(7.C.8a,d.J(y(f,g){if(88[g]){d.41(7,88[g]);if(d.5t(88[g].59)){7.59()}}},7))},az:y(){7.dX();if(7.C.4k){7.8G(7.$1d)}F{7.$7S=7.$1d.1Y();7.$1d=7.6K(7.$7S);7.8G(7.$7S)}},8G:y(f){7.$1d.1a("4e",7.C.4h).1Y();7.$1R.5Z(f).Y(7.$1X).Y(7.$1d)},dX:y(){7.$1X=d(\'<1h Z="2u: 2l%;" jT="0" />\').6X("bg",d.J(y(){if(7.C.2K){7.7n();if(7.3x===""){7.3x=7.C.22}7.$1X.1y()[0].cy(7.3x);7.$1X.1y()[0].db();B f=a6(d.J(y(){if(7.$1X.1y().U("2a").T()){dj(f);7.9i()}},7),0)}F{7.9i()}},7))},8s:y(){E 7.$1X[0].9x.N},7n:y(){B f=7.8s();if(f.cv){f.jU(f.cv)}E f},9l:y(f){f=f||7.C.11;if(7.aD(f)){7.$1X.1y().U("6b").Y(\'<2m 2J="jV" 1g="\'+f+\'" />\')}if(d.jR(f)){d.15(f,d.J(y(h,g){7.9l(g)},7))}},9i:y(){7.$I=7.$1X.1y().U("2a").1a({3A:L,4e:7.C.4h});if(7.$I[0]){7.N=7.$I[0].jQ;7.31=7.N.jM||31}7.9l();if(7.C.2K){7.9L(7.$I.T())}F{7.6Z(7.3x)}7.9C();7.9D()},c8:y(f){if(7.8Z(f)){if(7.$3s.1a("3u")){7.C.3u=7.$3s.1a("3u")}if(7.C.3u===""){7.C.3u=D}if(7.C.3u!==D){7.C.1i=D;7.$I.6X("1i.4u",d.J(7.aP,7));E d(\'\').1a("3A",D).1c(7.C.3u)}}E D},aP:y(){7.$I.U("O.4u").1n();B f="";if(7.C.1z===D){f=7.C.3H}7.$I.36("1i.4u");7.$I.T(f);if(7.C.1z===D){7.3y(7.$I.63()[0])}7.12()},jL:y(){7.C.3u=D;7.$I.U("O.4u").1n();7.$I.36("1i.4u")},aO:y(f){E f.G(/(.*?)<\\/O>/i,"")},5W:y(g,f){if(!7.C.5W){E}if(!g.9B){if(f===77){7.3G(g,"jN")}F{if(f===66){7.3G(g,"2V")}F{if(f===73){7.3G(g,"2T")}F{if(f===74){7.3G(g,"5S")}F{if(f===75){7.3G(g,"6B")}F{if(f===72){7.3G(g,"jO")}F{if(f===76){7.3G(g,"jP")}}}}}}}}F{if(f===48){7.3S(g,"p")}F{if(f===49){7.3S(g,"h1")}F{if(f===50){7.3S(g,"h2")}F{if(f===51){7.3S(g,"h3")}F{if(f===52){7.3S(g,"h4")}F{if(f===53){7.3S(g,"h5")}F{if(f===54){7.3S(g,"h6")}}}}}}}}},3G:y(g,f){g.1V();7.1A(f,D)},3S:y(g,f){g.1V();7.3R(f)},1i:y(){if(!7.1B("6c")){7.31.2e(d.J(7.9r,7,L),1)}F{7.$I.1i()}},du:y(){7.9r()},9r:y(h){7.$I.1i();B f=7.2E();f.6k(7.$I[0]);f.8v(h||D);B g=7.1v();g.4t();g.5c(f)},9A:y(h){B g;if(7.C.3M){if(h!==D){7.1r()}B f=2h;if(7.C.1h){f=7.$1X.1G();if(7.C.2K){7.$I.2z("3A")}7.$1X.1Y()}F{f=7.$I.jW();7.$I.1Y()}g=7.$1d.1b();7.5V=g;7.$1d.1G(f).1w().1i();7.$1d.1x("5L.Q-4K",y(j){if(j.2k===9){B i=d(7);B k=i.1H(0).3y;i.1b(i.1b().bE(0,k)+"\\t"+i.1b().bE(i.1H(0).5u));i.1H(0).3y=i.1H(0).5u=k+1;E D}});7.by();7.3K("T");7.C.3M=D}F{g=7.$1d.1Y().1b();if(1s 7.5V!=="1p"){7.5V=7.5Q(7.5V,D)!==7.5Q(g,D)}if(7.5V){if(7.C.2K&&g===""){7.9L(g)}F{7.6Z(g);if(7.C.2K){7.9M()}}}if(7.C.1h){7.$1X.1w()}F{7.$I.1w()}if(7.C.2K){7.$I.1a("3A",L)}7.$1d.36("5L.Q-4K");7.$I.1i();7.1f();7.5b();7.bh();7.8m("T");7.C.3M=L}},4P:y(){B f=D;7.6T=a6(d.J(y(){B g=7.1H();if(f!==g){d.bO({2U:7.C.4P,1l:"6y",1L:7.$1d.1a("2b")+"="+jX(k4(g)),2R:d.J(y(h){7.1k("4P",D,h);f=g},7)})}},7),7.C.6T*k5)},an:y(){if(7.C.1P){7.C.2Z=7.C.aL}F{if(!7.C.aA){B g=7.C.2Z.39("T"),h=7.C.2Z[g+1];7.C.2Z.6v(g,1);if(h==="|"){7.C.2Z.6v(g,1)}}}d.41(7.C.19,7.C.aw);d.15(7.C.ax,d.J(y(j,k){7.C.2Z.1I(k)},7));if(7.C.19){d.15(7.C.19.4x.2I,d.J(y(j,k){if(d.4Z(j,7.C.aJ)=="-1"){k6 7.C.19.4x.2I[j]}},7))}if(7.C.2Z.X===0){E D}7.aq();7.$19=d("<1T>").1Q("k7").1a("id","k3"+7.9R);if(7.C.1P){7.$1P=d(\'\').1a("id","k2"+7.9R).1Y();7.$1P.Y(7.$19);d("2a").Y(7.$1P)}F{if(7.C.9T){d(7.C.9T).T(7.$19)}F{7.$1R.4N(7.$19)}}d.15(7.C.2Z,d.J(y(k,l){if(l==="|"){7.$19.Y(d(7.C.5U))}F{if(7.C.19[l]){B j=7.C.19[l];if(7.C.5x===D&&l==="2Q"){E L}7.$19.Y(d("<1F>").Y(7.4J(l,j)))}}},7));7.$19.U("a").1a("5C","-1");if(7.C.4n){7.9S();d(N).1x("jY.Q",d.J(7.9S,7))}if(7.C.6o){B f=d.J(7.5I,7);7.$I.1x("5m.Q 3B.Q",f)}},9S:y(){B j=d(7.N).4i();B h=7.$1R.3z().1M;B i=0;B f=h+7.$1R.1G()+40;if(j>h){B g="2l%";if(7.C.6U){i=7.$1R.3z().1C;g=7.$1R.d2();7.$19.1Q("c2")}7.4n=L;7.$19.11({2w:"6Y",2u:g,jZ:k0,1M:7.C.bW+"2L",1C:i});if(j\').11({jw:g});l.Y(h);h.1x("1D",y(){B i=d(7).1a("2J");if(o==="3j"){i=d(7).11("4S-45")}m.7R(n,i)})}B f=d(\'\').T(7.C.16.1K).1x("1D",y(){m.7R(n,D)});l.Y(f)},7R:y(g,f){7.1u();7.$I.1i();7.dF(g);if(f!==D){7.dB(g,f)}if(7.C.1P){7.$1P.4U(2l)}7.12()},bF:y(g,f){d.15(f,d.J(y(j,i){if(!i.3g){i.3g=""}B h;if(i.2b==="70"){h=d(\'\')}F{h=d(\'\'+i.M+"");h.1x("1D",d.J(y(k){if(k.1V){k.1V()}if(7.1B("30")){k.a8=D}if(i.1k){i.1k.3m(7,j,h,i,k)}if(i.1J){7.1A(i.1J,j)}if(i.18){7[i.18](j)}7.5I();if(7.C.1P){7.$1P.4U(2l)}},7))}g.Y(h)},7))},aj:y(l,k,i){if(!7.C.3M){l.1V();E D}if(7.24(i).33("4T")){7.6N()}F{7.6N();7.3K(i);7.24(i).1Q("4T");B h=7.24(i).2w(),j=h.1C+"2L",f=29;if(7.C.1P){k.11({2w:"9t",1C:j,1M:f+"2L"}).1w()}F{if(7.C.4n&&7.4n){k.11({2w:"6Y",1C:j,1M:f+"2L"}).1w()}F{k.11({2w:"9t",1C:j,1M:h.1M+f+"2L"}).1w()}}}B g=d.J(y(m){7.a3(m,k)},7);d(N).6X("1D",g);7.$I.6X("1D",g);l.jm()},6N:y(){7.$19.U("a.4T").21("57").21("4T");d(".a5").1Y()},a3:y(g,f){if(!d(g.1S).33("4T")){f.21("4T");7.6N()}},4J:y(i,f){B g=d(\'\');B h=d(\'\');g.1x("1D",d.J(y(j){if(j.1V){j.1V()}if(7.1B("30")){j.a8=D}if(g.33("7o")){E D}if(7.61()===D){7.$I.1i()}if(f.1J){7.1A(f.1J,i);7.6D()}F{if(f.18&&f.18!=="1w"){7[f.18](i);7.6D()}F{if(f.1k){f.1k.3m(7,i,g,f,j);7.6D()}F{if(i==="3j"||i==="3N"||f.2I){7.aj(j,h,i)}}}}7.5I(D,i)},7));if(i==="3j"||i==="3N"||f.2I){h.6u(7.$19);if(i==="3j"||i==="3N"){7.bL(h,i)}F{7.bF(h,f.2I)}}E g},24:y(f){if(!7.C.19){E D}E d(7.$19.U("a.6H"+f))},b9:y(g){B f=7.24(g);if(f.33("57")){f.21("57")}F{f.1Q("57")}},3K:y(f){7.24(f).1Q("57")},8m:y(f){7.24(f).21("57")},bj:y(f){d.15(7.C.6o,d.J(y(g,h){if(h!=f){7.8m(h)}},7))},bh:y(){7.$19.U("a.7J").d9("a.bq").21("7o")},by:y(){7.$19.U("a.7J").d9("a.bq").1Q("7o")},jo:y(f,g){7.24(f).1Q("6H"+g)},jp:y(f,g){7.24(f).21("6H"+g)},jq:y(){7.$19.Y(d(7.C.5U))},jx:y(f){7.24(f).1O().2d(d(7.C.5U))},jy:y(f){7.24(f).1O().2M(d(7.C.5U))},jF:y(f){7.24(f).1O().5D().1n()},jG:y(f){7.24(f).1O().68().1n()},jH:y(f){if(!7.C.19){E}7.24(f).1O().1Q("7H")},jI:y(f){if(!7.C.19){E}7.24(f).1O().21("7H")},jE:y(g,h,j,i){if(!7.C.19){E}B f=7.4J(g,{M:h,1k:j,2I:i});7.$19.Y(d("<1F>").Y(f))},jD:y(g,h,j,i){if(!7.C.19){E}B f=7.4J(g,{M:h,1k:j,2I:i});7.$19.4N(d("<1F>").Y(f))},jz:y(l,g,i,k,j){if(!7.C.19){E}B f=7.4J(g,{M:i,1k:k,2I:j});B h=7.24(l);h.1O().2d(d("<1F>").Y(f))},jA:y(j,g,i,l,k){if(!7.C.19){E}B f=7.4J(g,{M:i,1k:l,2I:k});B h=7.24(j);h.1O().2M(d("<1F>").Y(f))},jB:y(f,h){B g=7.24(f);if(h){g.1O().5D().1n()}g.1O().21("7H");g.1n()},5I:y(h,j){B f=7.3f();7.bj(j);if(h===D){7.b9(j);E}if(f&&f.R==="A"){7.$19.U("a.b7").1c(7.C.16.ba)}F{7.$19.U("a.b7").1c(7.C.16.7q)}if(7.C.6a){d.15(7.C.6a,d.J(y(k,l){7.C.6o.1I(l)},7));d.41(7.C.8P,7.C.6a)}d.15(7.C.8P,d.J(y(k,l){if(d(f).35(k,7.$I.1H()[0]).X!=0){7.3K(l)}},7));B g=d(f).35(7.C.6I.3k().3p(),7.$I[0]);if(g.X){B i=g.11("1c-8e");jC(i){8y"3X":7.3K("6n");5K;8y"aB":7.3K("6i");5K;8y"4W":7.3K("4W");5K;k8:7.3K("6s");5K}}},1J:y(g,h,f){if(g==="aK"&&7.1B("30")){h="<"+h+">"}if(g==="3O"&&7.1B("30")){7.$I.1i();7.N.28.5e().8E(h)}F{7.N.1A(g,D,h)}if(f!==D){7.12()}7.1k("1A",g,h)},1A:y(i,h,o){if(!7.C.3M){7.$1d.1i();E D}if(i==="3O"){7.8A(h,o);7.1k("1A",i,h);E}if(7.7N("4b")&&!7.C.bf){E D}if(i==="5S"||i==="6B"){B p=7.3f();B l=d(p).35("23, 1T");B k=D;if(l.X){k=L;B n=l[0].R;if((i==="5S"&&n==="kn")||(i==="6B"&&n==="ku")){k=D}}7.1u();7.1r();if(k){B g=7.56();B f=7.2x(g);if(1s g[0]!="1p"&&g.X>1&&g[0].3h==3){f.cU(7.25())}B j="",q="";d.15(f,d.J(y(u,v){if(v.R=="2N"){B t=d(v);B r=t.4m();r.U("1T","23").1n();if(7.C.1z===D){j+=7.4V(d("

        ").Y(r.1y()))}F{j+=r.T()+"
        "}if(u==0){t.1Q("Q-kq").71();q=7.4V(t)}F{t.1n()}}},7));T=7.$I.T().G(q,""+j+"<"+n+">");7.$I.T(T);7.$I.U(n+":71").1n();7.1f()}F{7.N.1A(i);B p=7.3f();B l=d(p).7b("23, 1T");if(l.X){if((7.1B("30")||7.1B("5s"))&&p.R!=="2N"){d(p).2f(d(p).T())}B m=l.1O();if(7.6L(m)&&7.6p(m[0])){m.2f(m.1y())}}if(7.1B("5s")){7.$I.1i()}7.1f()}7.12();7.1k("1A",i,h);E}if(i==="5O"){7.1u();B p=7.3f();if(d(p)[0].R==="A"){d(p).2f(d(p).1c());7.12();7.1k("1A",i,h);E}}7.1J(i,h,o);if(i==="c0"){7.$I.U("hr").2z("id")}},8o:y(){7.7P("4a")},8p:y(){7.7P("5a")},7P:y(k){if(k==="4a"){B l=7.25();if(l&&l.R=="2N"){7.1r();B j=7.3f();B i=d(j).35("23, 1T");B g=i[0].R;B f=7.2x();d.15(f,y(o,p){if(p.R=="2N"){B n=d(p).68();if(n.32()!=0&&n[0].R=="2N"){B m=n.63("1T, 23");if(m.32()==0){n.Y(d("<"+g+">").Y(p))}F{m.Y(p)}}}});7.1f()}}F{7.1r();B l=7.25();if(l&&l.R=="2N"){B f=7.2x();B h=0;7.8q(l,h,f)}7.1f()}},8q:y(f,h,g){if(f&&f.R=="2N"){B i=d(f).1O().1O();if(i.32()!=0&&i[0].R=="2N"){i.2d(f)}F{if(1s g[h]!="1p"){f=g[h];h++;7.8q(f,h,g)}F{7.1A("5S")}}}},8K:y(f){B g=7.c8(f);if(g!==D){E g}if(7.C.1z===D){if(f===""){f=7.C.3H}F{if(f.3e(/^$/gi)!==-1){f="


        "+7.C.3H}}}E f},8M:y(f){if(7.C.8O){f=f.G(/([\\w\\W]*?)<\\/K>/gi,"$2

        ")}if(7.C.4w){f=7.8N(f)}E f},8J:y(f){f=f.G(/<2c(.*?)>([\\w\\W]*?)<\\/2c>/gi,\'$2\');f=f.G(/([\\w\\W]*?)<\\/Z>/gi,\'<1m$1 Z="2g: 1K;" 2J="Q-Z-3o">$2\');f=f.G(/<1o(.*?)>([\\w\\W]*?)<\\/1o>/gi,\'<1m$1 2J="Q-1o-3o">$2\');if(7.C.5P){f=f.G(/<\\?34([\\w\\W]*?)\\?>/gi,\'<1m Z="2g: 1K;" 2J="Q-34-3o">$1\')}F{f=f.G(/<\\?34([\\w\\W]*?)\\?>/gi,"")}E f},c3:y(f){f=f.G(/([\\w\\W]*?)<\\/M>/gi,\'<2c$1 1l="1c/3U">$2<\\/2c>\');f=f.G(/<1m(.*?) Z="2g: 1K;" 2J="Q-Z-3o">([\\w\\W]*?)<\\/1m>/gi,"$2");f=f.G(/<1m(.*?)2J="Q-1o-3o"(.*?)>([\\w\\W]*?)<\\/1m>/gi,"<1o$1$2>$3");if(7.C.5P){f=f.G(/<1m Z="2g: 1K;" 2J="Q-34-3o">([\\w\\W]*?)<\\/1m>/gi,"")}E f},5Q:y(g,f){if(f!==D){B f=[],i=0,h;h=g.1W(/<(1U|Z|2c|M)(.*?)>([\\w\\W]*?)<\\/(1U|Z|2c|M)>/gi);if(h!==2h){d.15(h,y(j,k){i=j;g=g.G(k,"8D"+i);f.1I(k)})}if(7.C.5P){h=g.1W(/<\\?34([\\w\\W]*?)\\?>/gi);if(h!==2h){d.15(h,y(j,k){i=i+j;g=g.G(k,"8D"+j);f.1I(k)})}}}g=g.G(/\\n/g," ");g=g.G(/[\\t]*/g,"");g=g.G(/\\n\\s*\\n/g,"\\n");g=g.G(/^[\\s\\n]*/g," ");g=g.G(/[\\s\\n]*$/g," ");g=g.G(/>\\s{2,}<");if(f!==D){g=7.bT(f,g)}g=g.G(/\\n\\n/g,"\\n");E g},bT:y(f,g){if(f){d.15(f,y(h,j){g=g.G("8D"+h,j)})}E g},7Y:y(j){j=j.G(/([\\w\\W]*?)<\\/O>/gi,"$1");j=j.G(/[\\kw-\\kB\\kA]/g,"");B h=["<1U>","<2r>\\\\s*","
        ","
        ","\\\\s*","<1T>","<23>","<1F>","<1e>","<2y>","\\\\s*","&1Z;","\\\\s*","&1Z;","

        \\\\s*

        ","

        ","

        &1Z;

        ","

        \\\\s*
        \\\\s*

        ","\\\\s*","\\\\s*
        \\\\s*
        "];B f=h.X;2C(B g=0;g

        "){E 7.C.3H}h=h+"\\n";B f=[];B m=0;if(h.3e(/<(1e|K|1U|2t)/gi)!==-1){d.15(h.1W(/<(1e|K|1U|2t)(.*?)>([\\w\\W]*?)<\\/(1e|K|1U|2t)>/gi),y(n,o){m++;f[m]=o;h=h.G(o,"{G"+m+"}\\n")})}if(7.C.5P){if(h.3e(/<1m(.*?)2J="Q-34-3o">/gi)!==-1){d.15(h.1W(/<1m(.*?)2J="Q-34-3o">([\\w\\W]*?)<\\/1m>/gi),y(n,o){m++;f[m]=o;h=h.G(o,"{G"+m+"}\\n")})}}h=h.G(/<\\!\\-\\-([\\w\\W]*?)\\-\\->/gi,"<5X>$1");h=h.G(/
        \\s*
        /gi,"\\n\\n");y j(o,i,n){E h.G(1N 2B(o,i),n)}B l="(5X|T|2a|6b|M|7Z|Z|2c|2m|1h|1e|2H|84|kx|ky|kr|4B|2y|1t|81|K|dl|dd|dt|1T|23|1F|1U|5p|3c|1o|bQ|bR|2r|8H|kp|Z|p|h[1-6]|hr|bM|kd|1m|ds|dv|kc|5y|2S|ka|km|kl|ki|kj|ko)";h=j("(<"+l+"[^>]*>)","gi","\\n$1");h=j("()","gi","$1\\n\\n");h=j("\\r\\n","g","\\n");h=j("\\r","g","\\n");h=j("/\\n\\n+/","g","\\n\\n");B k=h.6F(1N 2B("\\kk*\\n","g"),-1);h="";2C(B g in k){if(k.kh(g)){if(k[g].3e("{G")==-1){h+="

        "+k[g].G(/^\\n+|\\n+$/g,"")+"

        "}F{h+=k[g]}}}if(h.3e(/<2r/gi)!==-1){d.15(h.1W(/<2r(.*?)>([\\w\\W]*?)<\\/2r>/gi),y(n,o){B p="";p=o.G("

        ","");p=p.G("

        ","
        ");h=h.G(o,p)})}h=j("

        s*

        ","gi","");h=j("

        ([^<]+)","gi","

        $1

        ");h=j("

        s*(]*>)s*

        ","gi","$1");h=j("

        (<1F.+?)

        ","gi","$1");h=j("

        s*(]*>)","gi","$1");h=j("(]*>)s*

        ","gi","$1");h=j("(]*>)s*
        ","gi","$1");h=j("
        (s*]*>)","gi","$1");h=j("\\n

        ","gi","

        ");h=j("

        ","gi","");h=j("

        (.*?)","gi","");h=j("

        ","gi","");h=j("

        \\t?\\n?

        ","gi","

        ");h=j("

        ","gi","");h=j("

        ","gi","");h=j("

        ","gi","");d.15(f,y(n,o){h=h.G("{G"+n+"}",o)});h=h.G(/<5X>([\\w\\W]*?)<\\/5X>/gi,"");E d.2s(h)},6G:y(f){B g="3C";if(7.C.85==="b"){g="b"}B h="em";if(7.C.8f==="i"){h="i"}f=f.G(/([\\w\\W]*?)<\\/O>/gi,"<"+h+">$1");f=f.G(/([\\w\\W]*?)<\\/O>/gi,"<"+g+">$1");if(7.C.85==="3C"){f=f.G(/([\\w\\W]*?)<\\/b>/gi,"<3C>$1")}F{f=f.G(/<3C>([\\w\\W]*?)<\\/3C>/gi,"$1")}if(7.C.8f==="em"){f=f.G(/([\\w\\W]*?)<\\/i>/gi,"$1")}F{f=f.G(/([\\w\\W]*?)<\\/em>/gi,"$1")}f=f.G(/<6W>([\\w\\W]*?)<\\/6W>/gi,"<6P>$1");if(!/([\\w\\W]*?)<\\/O>/gi.3r(f)){f=f.G(/([\\w\\W]*?)<\\/O>/gi,\'$3\')}E f},5J:y(h){if(h==""||1s h=="1p"){E h}B i=D;if(7.C.4O!==D){i=L}B f=i===L?7.C.4O:7.C.5T;B g=/<\\/?([a-z][a-7V-9]*)\\b[^>]*>/gi;h=h.G(g,y(k,j){if(i===L){E d.4Z(j.3p(),f)>"-1"?k:""}F{E d.4Z(j.3p(),f)>"-1"?"":k}});h=7.6G(h);E h},8g:y(f,g){B h=f.1W(/<(1U|4X)(.*?)>([\\w\\W]*?)<\\/(1U|4X)>/gi);if(h!==2h){d.15(h,d.J(y(k,l){B j=l.1W(/<(1U|4X)(.*?)>([\\w\\W]*?)<\\/(1U|4X)>/i);j[3]=j[3].G(/&1Z;/g," ");if(g!==D){j[3]=7.8L(j[3])}f=f.G(l,"<"+j[1]+j[2]+">"+j[3]+"")},7))}E f},8L:y(f){f=3i(f).G(/&8k;/g,"&").G(/&5z;/g,"<").G(/>/g,">").G(/&9Z;/g,\'"\');E 3i(f).G(/&/g,"&8k;").G(//g,">").G(/"/g,"&9Z;")},a4:y(){B f=7.$I.U("2j, a, b, 3C, ks, kv, i, em, u, ke, 6W, 6P, O, kb");f.89(\'[Z*="2v-32"][Z*="6R-1G"]\').11("2v-32","").11("6R-1G","");f.89(\'[Z*="4S-45: aS;"][Z*="6R-1G"]\').11("4S-45","").11("6R-1G","");f.89(\'[Z*="4S-45: aS;"]\').11("4S-45","");d.15(f,d.J(y(g,h){7.4A(h,"Z")},7));7.$I.U(\'K[Z="1c-8e: -3Y-3q;"]\').1y().dJ()},aQ:y(g){B k=0,m=g.X,l=0,f=2h,h=2h,p="",j="",o="";7.5v=0;2C(;k"!=g.3V(l)){l++}p=g.3a(f,l-f);k=l;B n;if("!--"==p.3a(1,3)){if(!p.1W(/--$/)){2n("-->"!=g.3a(l,3)){l++}l+=2;p=g.3a(f,l-f);k=l}if("\\n"!=j.3V(j.X-1)){j+="\\n"}j+=7.4Q();j+=p+">\\n"}F{if("!"==p[1]){j=7.6Q(p+">",j)}F{if("?"==p[1]){j+=p+">\\n"}F{if(n=p.1W(/^<(2c|Z|1U)/i)){n[1]=n[1].3p();p=7.8b(p);j=7.6Q(p,j);h=3i(g.3a(k+1)).3p().39("\\n<\\/2c>/gi,"<2c$1><\\/2c>");7.5v=0;E f},8b:y(g){B i="";g=g.G(/\\n/g," ");g=g.G(/\\s{2,}/g," ");g=g.G(/^\\s+|\\s+$/g," ");B h="";if(g.1W(/\\/$/)){h="/";g=g.G(/\\/+$/,"")}B f;2n(f=/\\s*([^= ]+)(?:=(([\'"\']).*?\\3|[^ ]+))?/.1J(g)){if(f[2]){i+=f[1].3p()+"="+f[2]}F{if(f[1]){i+=f[1].3p()}}i+=" ";g=g.3a(f[0].X)}E i.G(/\\s*$/,"")+h+">"},6Q:y(f,h){B g=f.1W(7.86);if(f.1W(7.aV)||g){h=h.G(/\\s*$/,"");h+="\\n"}if(g&&"/"==f.3V(1)){7.5v--}if("\\n"==h.3V(h.X-1)){h+=7.4Q()}if(g&&"/"!=f.3V(1)){7.5v++}h+=f;if(f.1W(7.aY)||f.1W(7.86)){h=h.G(/ *$/,"");h+="\\n"}E h},87:y(){7.5w("","kf")},8d:y(){7.5w("3X","kt")},8i:y(){7.5w("aB","kz")},8h:y(){7.5w("4W","jk")},5w:y(f,h){7.1u();if(7.9c()){7.N.1A(h,D,D);E L}7.1r();B g=7.2x();d.15(g,d.J(y(k,l){B j=D;if(d.4Z(l.R,7.C.6I)!==-1){j=d(l)}F{j=d(l).35(7.C.6I.3k().3p(),7.$I[0])}if(j){j.11("1c-8e",f);7.4A(j,"Z")}},7));7.1f();7.12()},aE:y(i){B f=d.2s(7.$I.T());f=f.G(//i,"");B h=f.G(/

        \\s?<\\/p>/gi,"");if(f===""||h===""){i.1V();B g=d(7.C.3H).1H(0);7.$I.T(g);7.1i()}7.12()},3R:y(f){7.1u();B g=7.2x();7.1r();d.15(g,d.J(y(h,j){if(j.R!=="2N"){7.7c(f,j)}},7));7.1f();7.12()},7c:y(f,i){if(i===D){i=7.25()}if(i===D){if(7.C.1z===L){7.1A("aK",f)}E L}B h="";if(f!=="1U"){h=d(i).1y()}F{h=d(i).T();if(d.2s(h)===""){h=\'\'}}if(i.R==="4b"){f="p"}if(7.C.1z===L&&f==="p"){d(i).2f(d("").Y(h).T()+"
        ")}F{B g=d("<"+f+">").Y(h);d(i).2f(g)}},cp:y(h,f,g){if(g!==D){7.1r()}B i=d("<"+f+"/>");d(h).2f(y(){E i.Y(d(7).1y())});if(g!==D){7.1f()}E i},aI:y(){7.1u();if(7.C.1z===D){7.1r();B k=7.2x();if(k){d.15(k,d.J(y(m,n){if(n.R==="3Q"){7.7c("p",n,D)}F{if(n.R!=="2N"){7.7c("2r",n,D)}}},7))}7.1f()}F{B j=7.25();if(j.R==="3Q"){7.1r();d(j).2f(d(j).T()+"
        ");7.1f()}F{B l=7.cj("2r");B h=d(l).T();B g=["1T","23","1e","2y","4B","2H","84","dl"];d.15(g,y(m,n){h=h.G(1N 2B("<"+n+"(.*?)>","gi"),"");h=h.G(1N 2B("","gi"),"")});B f=7.C.7T;f.1I("1t");d.15(f,y(m,n){h=h.G(1N 2B("<"+n+"(.*?)>","gi"),"");h=h.G(1N 2B("","gi"),"
        ")});d(l).T(h);7.8t(l);B i=d(l).5D();if(i[0].R==="e1"){i.1n()}}}7.12()},i2:y(f,h){B g=7.2x();d(g).2z(f);7.12()},i1:y(f,h){B g=7.2x();d(g).1a(f,h);7.12()},i3:y(g){B f=7.2x();d(f).11(g,"");7.4A(f,"Z");7.12()},i4:y(h,g){B f=7.2x();d(f).11(h,g);7.12()},i5:y(g){B f=7.2x();d(f).21(g);7.4A(f,"V");7.12()},i0:y(g){B f=7.2x();d(f).1Q(g);7.12()},hZ:y(f){7.1r();7.7X(y(g){d(g).21(f);7.4A(g,"V")});7.1f();7.12()},hU:y(f){B g=7.2p();if(!d(g).33(f)){7.4q("1Q",f)}},dF:y(f){7.1r();7.7X(y(g){d(g).11(f,"");7.4A(g,"Z")});7.1f();7.12()},dB:y(g,f){7.4q("11",g,f)},hT:y(f){7.1r();B h=7.2E(),i=7.5E(),g=7.56();if(h.4D||h.4E===h.5k&&i){g=d(i)}d(g).2z(f);7.dL();7.1f();7.12()},hV:y(f,g){7.4q("1a",f,g)},4q:y(i,f,j){7.1r();B g=7.2E(),h=7.5E();if(g.4D||g.4E===g.5k&&h){d(h)[i](f,j)}F{7.N.1A("dI",D,4);B k=7.$I.U("2v");d.15(k,d.J(y(l,m){7.dE(i,m,f,j)},7))}7.1f();7.12()},dE:y(j,i,f,k){B h=d(i).1O(),g;if(h&&h[0].R==="82"){g=h;d(i).2f(d(i).T())}F{g=d(\'\').Y(d(i).1y());d(i).2f(g)}d(g)[j](f,k);E g},7X:y(j){B g=7.2E(),h=7.5E(),f=7.56(),i;if(g.4D||g.4E===g.5k&&h){f=d(h);i=L}d.15(f,d.J(y(k,l){if(!i&&l.R!=="82"){if(l.3I.R==="82"&&!d(l.3I).33("2O")){l=l.3I}F{E}}j.3m(7,l)},7))},dL:y(){B f=7.$I.U("O[1L-Q-4q]");d.15(f,d.J(y(h,j){B g=d(j);if(g.1a("V")===1p&&g.1a("Z")===1p){g.1y().dJ()}},7))},hW:y(f){7.1r();7.N.1A("dI",D,4);B h=7.$I.U("2v");B g;d.15(h,y(j,l){B k=d("<"+f+"/>").Y(d(l).1y());d(l).2f(k);g=k});7.1f();7.12()},hY:y(f){7.1r();B g=f.hX();B h=7.56();d.15(h,y(j,k){if(k.R===g){d(k).2f(d(k).1y())}});7.1f();7.12()},8A:y(h,j){B l=7.2p();B i=l.3I;7.$I.1i();7.1u();B f=d("").Y(d.8F(h));h=f.T();h=7.7Y(h);f=d("").Y(d.8F(h));B g=7.25();if(f.1y().X==1){B k=f.1y()[0].R;if(k!="P"&&k==g.R||k=="4b"){h=f.1c();f=d("").Y(h)}}if(!7.C.1z&&f.1y().X==1&&f.1y()[0].3h==3&&(7.7z().X>2||(!l||l.R=="dm"&&!i||i.R=="dk"))){h="

        "+h+"

        "}if(g.R=="3Q"&&h.39("1&&g||f.1y().is("p, :5y, 1T, 23, K, 1e, 2r, 1U, 8H, 1m, 5y, 2S, dv, ds")){if(7.1B("30")){7.N.28.5e().8E(h)}F{7.N.1A("3O",D,h)}}F{7.6O(h)}}if(7.58){7.31.2e(d.J(y(){if(!7.C.1z){7.5u(7.$I.1y().ed())}F{7.du()}},7),1)}7.5b();if(j!==D){7.12()}},6O:y(g){B k=7.1v();if(k.2q&&k.44){B f=k.2q(0);f.e5();B h=7.N.42("K");h.4R=g;B l=7.N.ad(),j,i;2n((j=h.7F)){i=l.4F(j)}f.3d(l);if(i){f=f.8u();f.e2(i);f.8v(L);k.4t();k.5c(f)}}},dN:y(g){B f=d(d.8F(g));if(f.X){g=f.1c()}7.$I.1i();if(7.1B("30")){7.N.28.5e().8E(g)}F{7.N.1A("3O",D,g)}7.12()},3d:y(f){f=f[0]||f;B g=7.1v();if(g.2q&&g.44){47=g.2q(0);47.e5();47.3d(f);47.i6(f);47.e2(f);g.4t();g.5c(47)}},6g:y(f){if(7.dx()){if(7.$I.1y().ed()[0]!==f){E D}7.1u();if(7.C.1z===D){B g=d(7.C.3H);d(f).2d(g);7.3y(g)}F{B g=d(\'\'+7.C.22+"",7.N)[0];d(f).2d(g);d(g).2d(7.C.22);7.1f()}}},67:y(){7.1r();7.$I.U("#28-1E-1").2M("
        "+(7.1B("3Y")?7.C.22:""));7.1f()},hn:y(){7.1r();7.$I.U("#28-1E-1").2M("

        "+(7.1B("3Y")?7.C.22:""));7.1f()},e0:y(f){B g=d("
        "+7.C.22);d(f).2f(g);7.3y(g)},dS:y(f){f=7.1k("i7",D,f);if(7.7N("4b")){f=7.cz(f);7.8B(f);E L}f=f.G(/|<\\?(?:34)?[\\s\\S]*?\\?>/gi,"");f=f.G(/(&1Z;){2,}/gi,"&1Z;");f=f.G(/&1Z;/gi," ");f=f.G(/([\\w\\W]*?)<\\/b>/gi,"$2");f=7.5J(f);f=f.G(/<1t><\\/1t>/gi,"[1t]");f=f.G(/<1t>&1Z;<\\/1t>/gi,"[1t]");f=f.G(/<1t>
        <\\/1t>/gi,"[1t]");f=f.G(/([\\w\\W]*?)<\\/a>/gi,\'[a 1g="$2"]$4[/a]\');f=f.G(/<1h(.*?)>([\\w\\W]*?)<\\/1h>/gi,"[1h$1]$2[/1h]");f=f.G(/<2A(.*?)>([\\w\\W]*?)<\\/2A>/gi,"[2A$1]$2[/2A]");f=f.G(/<3F(.*?)>([\\w\\W]*?)<\\/3F>/gi,"[3F$1]$2[/3F]");f=f.G(/<3D(.*?)>([\\w\\W]*?)<\\/3D>/gi,"[3D$1]$2[/3D]");f=f.G(/<2t(.*?)>([\\w\\W]*?)<\\/2t>/gi,"[2t$1]$2[/2t]");f=f.G(/<5i(.*?)>/gi,"[5i$1]");f=f.G(/<2j(.*?)Z="(.*?)"(.*?)>/gi,"[2j$1$3]");f=f.G(/<(\\w+)([\\w\\W]*?)>/gi,"<$1>");f=f.G(/<[^\\/>][^>]*>(\\s*|\\t*|\\n*|&1Z;|
        )<\\/[^>]+>/gi,"");f=f.G(/\\s*?\\t*?\\n*?(<1T>|<23>|

        )/gi,"$1");f=f.G(/\\[1t\\]/gi,"<1t>&1Z;");f=f.G(/\\[a 1g="(.*?)"\\]([\\w\\W]*?)\\[\\/a\\]/gi,\'$2\');f=f.G(/\\[1h(.*?)\\]([\\w\\W]*?)\\[\\/1h\\]/gi,"<1h$1>$2");f=f.G(/\\[2A(.*?)\\]([\\w\\W]*?)\\[\\/2A\\]/gi,"<2A$1>$2");f=f.G(/\\[3F(.*?)\\]([\\w\\W]*?)\\[\\/3F\\]/gi,"<3F$1>$2");f=f.G(/\\[3D(.*?)\\]([\\w\\W]*?)\\[\\/3D\\]/gi,"<3D$1>$2");f=f.G(/\\[2t(.*?)\\]([\\w\\W]*?)\\[\\/2t\\]/gi,"<2t$1>$2");f=f.G(/\\[5i(.*?)\\]/gi,"<5i$1>");f=f.G(/\\[2j(.*?)\\]/gi,"<2j$1>");if(7.C.8O){f=f.G(/([\\w\\W]*?)<\\/K>/gi,"

        $2

        ");f=f.G(/<\\/K>

        /gi,"

        ");f=f.G(/<\\/p><\\/K>/gi,"

        ")}f=7.8N(f);f=f.G(/([\\w\\W]*?)<\\/O>/gi,"$2");f=f.G(/<2j>/gi,"");f=f.G(/<[^\\/>][^>][^2j|5i|1d]*>(\\s*|\\t*|\\n*|&1Z;|
        )<\\/[^>]+>/gi,"");f=f.G(/\\n{3,}/gi,"\\n");f=f.G(/

        /gi,"

        ");f=f.G(/<\\/p><\\/p>/gi,"

        ");f=f.G(/<1F>(\\s*|\\t*|\\n*)

        /gi,"<1F>");f=f.G(/<\\/p>(\\s*|\\t*|\\n*)<\\/1F>/gi,"");if(7.C.1z===L){f=f.G(/([\\w\\W]*?)<\\/p>/gi,"$2
        ")}f=f.G(/<[^\\/>][^>][^2j|5i|1d]*>(\\s*|\\t*|\\n*|&1Z;|
        )<\\/[^>]+>/gi,"");if(7.1B("5s")){2n(/
        $/gi.3r(f)){f=f.G(/
        $/gi,"")}}2n(/<2v>([\\w\\W]*?)<\\/2v>/gi.3r(f)){f=f.G(/<2v>([\\w\\W]*?)<\\/2v>/gi,"$1")}7.8B(f)},cz:y(g){g=g.G(/
        |<\\/H[1-6]>|<\\/p>|<\\/K>/gi,"\\n");B f=7.N.42("K");f.4R=g;E 7.8L(f.cX||f.ij)},8B:y(f){if(7.58){if(!7.C.1z){7.$I.T(7.C.3H)}F{7.$I.T("")}7.$I.1i()}f=7.1k("ik",D,f);7.8A(f);7.58=D;2e(y(){a=D},2l);if(7.C.5g){d(7.N.2a).4i(7.6x)}F{7.$I.4i(7.6x)}},1u:y(f){if(f!==1p){7.C.4c.1I(f)}F{7.1r();7.C.4c.1I(7.$I.T());7.7p(L)}},cC:y(){if(7.C.4c.X===0){7.$I.1i();E}7.1r();7.C.5o.1I(7.$I.T());7.1f(D,L);7.$I.T(7.C.4c.cg());7.1f();2e(d.J(7.5b,7),2l)},cD:y(){if(7.C.5o.X===0){7.$I.1i();E D}7.1r();7.C.4c.1I(7.$I.T());7.1f(D,L);7.$I.T(7.C.5o.cg());7.1f(L);2e(d.J(7.5b,7),4)},5b:y(){7.4j();7.cf()},cf:y(){7.$I.U("1e").1x("1D",d.J(7.7A,7))},4j:y(){if(7.C.4j===D){E D}7.$I.U("2j").15(d.J(y(f,g){if(7.1B("30")){d(g).1a("jl","1x")}7.d8(g)},7))},1v:y(){if(!7.C.2G){E 7.N.1v()}F{if(!7.C.1h){E 2G.1v()}F{E 2G.1v(7.$1X[0])}}},2E:y(){if(!7.C.2G){if(7.N.1v){B f=7.N.1v();if(f.2q&&f.44){E f.2q(0)}}E 7.N.5e()}F{if(!7.C.1h){E 2G.5e()}F{E 2G.5e(7.8s())}}},8t:y(f){7.cI(f)},3y:y(f){7.5j(f[0]||f,0,2h,0)},5u:y(f){7.5j(f[0]||f,1,2h,1)},5j:y(l,k,j,h){if(j==2h){j=l}if(h==2h){h=k}B g=7.1v();if(!g){E}B f=7.2E();f.8z(l,k);f.6j(j,h);7j{g.4t()}7e(i){}g.5c(f)},cj:y(f){f=f.3p();B i=7.25();if(i){B j=7.cp(i,f);7.12();E j}B h=7.1v();B g=h.2q(0);B j=N.42(f);j.4F(g.ig());g.3d(j);7.8t(j);E j},ie:y(){B f=7.2E();f.6k(7.$I[0]);B g=7.1v();g.4t();g.5c(f)},ck:y(){7.1v().4t()},e9:y(i){B f=0;B h=7.1v().2q(0);B g=h.8u();g.6k(i);g.6j(h.5k,h.cl);f=d.2s(g.3k()).X;E f},cP:y(){E 1N e(7.1v().2q(0))},cI:y(j,g,m){if(1s m==="1p"){m=g}j=j[0]||j;B o=7.2E();o.6k(j);B p=7.8x(j);B l=D;B f=0,q;if(p.X==1&&g){o.8z(p[0],g);o.6j(p[0],m)}F{2C(B n=0,k;k=p[n++];){q=f+k.X;if(!l&&g>=f&&(g\'+7.C.22+"",7.N)[0];B g=d(\'\'+7.C.22+"",7.N)[0];if(i.4D===L){7.6q(i,h,L)}F{7.6q(i,h,L);7.6q(i,g,D)}7.3L=7.$I.T();7.1f(D,D)},6q:y(f,h,g){B i=f.8u();i.8v(g);i.3d(h);i.i8()},1f:y(i,f){if(!7.C.2G){if(i===L&&7.3L){7.$I.T(7.3L)}B h=7.$I.U("O#28-1E-1");B g=7.$I.U("O#28-1E-2");if(!7.61()){7.$I.1i()}if(h.X!=0&&g.X!=0){7.5j(h[0],0,g[0],0)}F{if(h.X!=0){7.5j(h[0],0,2h,0)}}if(f!==D){7.7p();7.3L=D}}F{2G.ia(7.3L)}},7p:y(){if(!7.C.2G){7.$I.U("O#28-1E-1").1n();7.$I.U("O#28-1E-2").1n()}F{2G.ib(7.3L)}},2p:y(){B f=D;B g=7.1v();if(g.44>0){f=g.2q(0).4E}E 7.6L(f)},3f:y(f){f=f||7.2p();if(f){E 7.6L(d(f).1O()[0])}F{E D}},25:y(f){if(1s f==="1p"){f=7.2p()}2n(f){if(7.6p(f)){if(d(f).33("2O")){E D}E f}f=f.3I}E D},2x:y(g){B h=[];if(1s g=="1p"){B f=7.2E();if(f&&f.4D===L){E[7.25()]}B g=7.56(f)}d.15(g,d.J(y(j,k){if(7.C.1h===D&&d(k).7b("K.2O").32()==0){E D}if(7.6p(k)){h.1I(k)}},7));if(h.X===0){h=[7.25()]}E h},6p:y(f){E f.3h==1&&7.7r.3r(f.ic)},7L:y(f){E 7.7r.3r(f)},cR:y(j){if(1s j=="1p"||j==D){B j=7.2E()}if(j&&j.4D===L){E[7.2p()]}B f=7.1v();7j{B o=f.2q(0).cM()}7e(m){E(D)}B k=7.N.42("O");k.4F(o);31.7k=k.8C;B l=7k.X;B g=[];2C(B h=0,n=l;h"),f=2W.bZ(2W.bB()*be),p=d(\'<1e id="1e\'+f+\'"><4B>\'),h,l,m,o;2C(h=0;h");2C(m=0;m"+7.C.22+"");if(h===0&&m===0){o.Y(\'\'+7.C.22+"")}d(l).Y(o)}p.Y(l)}n.Y(p);B j=n.T();7.26();7.1f();B k=7.25()||7.2p();if(k){d(k).2d(j)}F{7.6O(j)}7.1f();B q=7.$I.U("#1e"+f);7.7A(q);7.5I();q.2z("id");7.12()},7A:y(f){7.$1e=d(f.1S||f).35("1e");7.$4B=d(f.1S).35("4B");7.$2H=7.$1e.U("2H");7.$7y=d(f.1S||7.$1e.U("1t").78());7.$3b=d(f.1S||7.$1e.U("2y").78()).35("2y")},ci:y(){7.1u();if(!7.$1e){E}7.$1e.1n();7.$1e=D;7.12()},cE:y(){7.1u();if(!7.$3b){E}B f=7.$3b.68().X?7.$3b.68():7.$3b.5D();if(f.X){B g=f.63("1t").78();if(g.X){g.4N(\'\'+7.C.22+"");7.1f()}}7.$3b.1n();7.12()},di:y(){7.1u();B f=7.$7y.1H(0).hA;7.$1e.U("2y").15(d.J(y(g,h){B j=f-1<0?f+1:f-1;if(g===0){d(h).U("1t").eq(j).4N(\'\'+7.C.22+"");7.1f()}d(h).U("1t").eq(f).1n()},7));7.12()},dO:y(){7.1u();if(7.$1e.U("2H").32()!==0){7.8Q()}F{B f=7.$1e.U("2y").78().4m();f.U("1t").T(7.C.22);7.$2H=d("<2H>");7.$2H.Y(f);7.$1e.4N(7.$2H);7.12()}},8Q:y(){7.1u();d(7.$2H).1n();7.$2H=D;7.12()},dD:y(){7.7l("2M")},dz:y(){7.7l("2d")},ca:y(){7.7v("2M")},aC:y(){7.7v("2d")},7l:y(f){7.1u();B g=7.$3b.4m();g.U("1t").T(7.C.22);if(f==="2d"){7.$3b.2d(g)}F{7.$3b.2M(g)}7.12()},7v:y(g){7.1u();B f=0;7.$3b.U("1t").15(d.J(y(h,j){if(d(j)[0]===7.$7y[0]){f=h}},7));7.$1e.U("2y").15(d.J(y(h,k){B j=d(k).U("1t").eq(f);B l=j.4m();l.T(7.C.22);g==="2d"?j.2d(l):j.2M(l)},7));7.12()},a9:y(){7.1r();7.4v(7.C.16.2A,7.C.e3,hB,d.J(y(){d("#dp").1D(d.J(7.al,7));2e(y(){d("#93").1i()},3W)},7))},al:y(){B f=d("#93").1b();f=7.5J(f);7.1f();B g=7.25()||7.2p();if(g){d(g).2d(f);7.12()}F{7.6O(f)}7.26()},bG:y(){7.1r();B f=d.J(y(){7.4Y=D;B h=7.1v();B g="",n="",j="";B i=7.3f();B k=d(i).1O().1H(0);if(k&&k.R==="A"){i=k}if(i&&i.R==="A"){g=i.1g;n=d(i).1c();j=i.1S;7.4Y=i}F{n=h.3k()}d(".64").1b(n);B o=hw.hv.1g.G(/\\/$/i,"");B m=g.G(o,"");B l=d("#3t").U("a");if(7.C.7i===D){l.eq(1).1n()}if(7.C.7g===D){l.eq(2).1n()}if(7.C.7i===D&&7.C.7g===D){d("#3t").1n();d("#5G").1b(m)}F{if(g.3e("5A:")===0){7.9N.3m(7,2);d("#5N").1b(2);d("#8T").1b(g.G("5A:",""))}F{if(m.3e(/^#/gi)===0){7.9N.3m(7,3);d("#5N").1b(3);d("#8X").1b(m.G(/^#/gi,""))}F{d("#5G").1b(m)}}}if(j==="7m"){d("#8V").b4("bw",L)}d("#dV").1D(d.J(7.b5,7));2e(y(){d("#5G").1i()},3W)},7);7.4v(7.C.16.2m,7.C.ch,hp,f)},b5:y(){B j=d("#5N").1b();B h="",m="",k="",l="";if(j==="1"){h=d("#5G").1b();m=d("#cF").1b();if(d("#8V").b4("bw")){k=\' 1S="7m"\';l="7m"}B i="((ho--)?[a-7V-9]+(-[a-7V-9]+)*.)+[a-z]{2,}";B g=1N 2B("^(dn|dW|e7)://"+i,"i");B f=1N 2B("^"+i,"i");if(h.3e(g)==-1&&h.3e(f)==0&&7.C.6S){h=7.C.6S+h}}F{if(j==="2"){h="5A:"+d("#8T").1b();m=d("#cx").1b()}F{if(j==="3"){h="#"+d("#8X").1b();m=d("#dU").1b()}}}7.bx(\'"+m+"",d.2s(m),h,l)},bx:y(f,i,g,h){7.1f();if(i!==""){if(7.4Y){7.1u();d(7.4Y).1c(i).1a("1g",g);if(h!==""){d(7.4Y).1a("1S",h)}F{d(7.4Y).2z("1S")}7.12()}F{7.1J("3O",f)}}7.26()},bc:y(){7.1r();B f=d.J(y(){B g=7.1v();B h="";if(7.9c()){h=g.1c}F{h=g.3k()}d("#9f").1b(h);if(!7.3w()){7.9v("#3E",{2U:7.C.5x,2P:7.C.2P,2R:d.J(7.9Q,7),2X:d.J(y(j,i){7.1k("bU",i)},7)})}7.9s("3E",{3q:L,2U:7.C.5x,2R:d.J(7.9Q,7),2X:d.J(y(j,i){7.1k("bU",i)},7)})},7);7.4v(7.C.16.2Q,7.C.cK,hq,f)},9Q:y(g){7.1f();if(g!==D){B i=d("#9f").1b();if(i===""){i=g.9e}B h=\'\'+i+"";if(7.1B("3Y")&&!!7.31.98){h=h+"&1Z;"}7.1A("3O",h,D);B f=d(7.$I.U("a#6z-1E"));if(f.32()!=0){f.2z("id")}F{f=D}7.12();7.1k("5x",f,g)}7.26()},ag:y(){7.1r();B f=d.J(y(){if(7.C.5B){d.hs(7.C.5B,d.J(y(l){B i={},k=0;d.15(l,d.J(y(n,o){if(1s o.6M!=="1p"){k++;i[o.6M]=k}},7));B j=D;d.15(l,d.J(y(q,r){B p="";if(1s r.M!=="1p"){p=r.M}B n=0;if(!d.aW(i)&&1s r.6M!=="1p"){n=i[r.6M];if(j===D){j=".4H"+n}}B o=d(\'<2j 4r="\'+r.hu+\'" V="4H 4H\'+n+\'" 2J="\'+r.2D+\'" M="\'+p+\'" />\');d("#97").Y(o);d(o).1D(d.J(7.cW,7))},7));if(!d.aW(i)){d(".4H").1Y();d(j).1w();B m=y(n){d(".4H").1Y();d(".4H"+d(n.1S).1b()).1w()};B h=d(\'<5p id="ht">\');d.15(i,y(o,n){h.Y(d(\'<3c 2F="\'+n+\'">\'+o+""))});d("#97").2M(h);h.6t(m)}},7))}F{d("#3t").U("a").eq(1).1n()}if(7.C.4s||7.C.5Y){if(!7.3w()&&7.C.5Y===D){if(d("#3E").X){7.9v("#3E",{2U:7.C.4s,2P:7.C.2P,2R:d.J(7.9a,7),2X:d.J(y(i,h){7.1k("aM",h)},7)})}}if(7.C.5Y===D){7.9s("3E",{3q:L,2U:7.C.4s,2R:d.J(7.9a,7),2X:d.J(y(i,h){7.1k("aM",h)},7)})}F{d("#3E").1x("6t.Q",d.J(7.aN,7))}}F{d(".38").1Y();if(!7.C.5B){d("#3t").1n();d("#8R").1w()}F{B g=d("#3t").U("a");g.eq(0).1n();g.eq(1).1Q("4o");d("#8W").1w()}}d("#cc").1D(d.J(7.cS,7));if(!7.C.4s&&!7.C.5B){2e(y(){d("#4d").1i()},3W)}},7);7.4v(7.C.16.2D,7.C.d6,hC,f)},cT:y(h){B f=d(h.1S);B g=f.1O();B i=d.J(y(){d("#9k").1b(f.1a("9b"));d("#hD").1a("1g",f.1a("4r"));d("#9j").1b(f.11("6d"));if(d(g).1H(0).R==="A"){d("#4d").1b(d(g).1a("1g"))}d("#d1").1D(d.J(y(){7.e6(f)},7));d("#d7").1D(d.J(y(){7.cG(f)},7))},7);7.4v(7.C.16.2D,7.C.d0,hN,i)},e6:y(g){B f=d(g).1O();d(g).1n();if(f.X&&f[0].R==="P"){7.$I.1i();7.3y(f)}7.1k("hM",g);7.26();7.12()},cG:y(g){B f=d(g).1O();d(g).1a("9b",d("#9k").1b());B i=d("#9j").1b();if(i==="1C"){d(g).11({"6d":"1C",4M:"0 69 69 0"})}F{if(i==="3X"){d(g).11({"6d":"3X",4M:"0 0 69 69"})}F{d(g).11({"6d":"1K",4M:"0"})}}B h=d.2s(d("#4d").1b());if(h!==""){if(d(f).1H(0).R!=="A"){d(g).2f(\'\'+7.4V(g)+"")}F{d(f).1a("1g",h)}}F{if(d(f).1H(0).R==="A"){d(f).2f(7.4V(g))}}7.26();7.4j();7.12()},d8:y(h){B g=d(h),k=D,f=D,n,m,j=g.2u()/g.1G(),l=10,i=10;g.36("5R 9V 5m 1D 9X");g.5R(y(){g.11("79","hO-hP")},y(){g.11("79","");k=D});g.9V(y(o){o.1V();j=g.2u()/g.1G();k=L;f=L;n=2W.4C(o.9O-g.eq(0).3z().1C);m=2W.4C(o.9d-g.eq(0).3z().1M)});g.5m(d.J(y(o){k=D;g.11("79","");7.12()},7));g.1D(d.J(y(o){if(f){7.cT(o)}},7));g.9X(y(s){if(k){f=D;B p=2W.4C(s.9O-d(7).eq(0).3z().1C)-n;B o=2W.4C(s.9d-d(7).eq(0).3z().1M)-m;B r=g.1G();B t=9W(r,10)+o;B q=2W.4C(t*j);if(q>l){g.2u(q)}n=2W.4C(s.9O-d(7).eq(0).3z().1C);m=2W.4C(s.9d-d(7).eq(0).3z().1M)}})},cW:y(g){B f=\'<2j id="2D-1E" 4r="\'+d(g.1S).1a("2J")+\'" 9b="\'+d(g.1S).1a("M")+\'" />\';if(7.C.4w){f="

        "+f+"

        "}7.6A(f,L)},cS:y(){B g=d("#4d").1b();if(g!==""){B f=\'<2j id="2D-1E" 4r="\'+g+\'" />\';if(7.C.1z===D){f="

        "+f+"

        "}7.6A(f,L)}F{7.26()}},9a:y(f){7.6A(f)},6A:y(g,h){7.1f();if(g!==D){B f="";if(h!==L){f=\'<2j id="2D-1E" 4r="\'+g.6z+\'" />\';if(7.C.4w){f="

        "+f+"

        "}}F{f=g}7.1A("3O",f,D);B i=d(7.$I.U("2j#2D-1E"));if(i.X){i.2z("id")}F{i=D}7.12();h!==L&&7.1k("4s",i,g)}7.26();7.4j()},cL:y(){d.41(7.C,{cK:3i()+\'<1m><1o id="hQ" 5f="6y" 4z="" 6h="6C/1o-1L"><1j>\'+7.C.16.9e+\'<1q 1l="1c" id="9f" V="3n" /><1q 1l="2Q" id="3E" 2b="2Q" />\',d0:3i()+"<1m><1j>"+7.C.16.M+\'<1q id="9k" V="3n" /><1j>\'+7.C.16.2m+\'<1q id="4d" V="3n" /><1j>\'+7.C.16.dg+\'<5p id="9j"><3c 2F="1K">\'+7.C.16.1K+\'<3c 2F="1C">\'+7.C.16.1C+\'<3c 2F="3X">\'+7.C.16.3X+\'<2S>\'+7.C.16.d5+\'&1Z;&1Z;&1Z;\'+7.C.16.4L+\'<1q 1l="55" 2b="9g" V="2Y" id="d7" 2F="\'+7.C.16.9g+\'" />\',d6:3i()+\'<1m>\'+7.C.16.4y+\'\'+7.C.16.9h+\'\'+7.C.16.2m+\'<1o id="hK" 5f="6y" 4z="" 6h="6C/1o-1L"><1q 1l="2Q" id="3E" 2b="2Q" /><1j>\'+7.C.16.cd+\'<1q 1l="1c" 2b="4d" id="4d" V="3n" /><2S>\'+7.C.16.4L+\'<1q 1l="55" 2b="4y" V="2Y" id="cc" 2F="\'+7.C.16.5H+\'" />\',ch:3i()+\'<1m><1o id="hF" 5f="6y" 4z="">968U\'+7.C.16.8S+\'<1q 1l="6m" id="5N" 2F="1" /><1j>96<1q 1l="1c" id="5G" V="3n" /><1j>\'+7.C.16.1c+\'<1q 1l="1c" V="3n 64" id="cF" /><1j><1q 1l="hE" id="8V"> \'+7.C.16.cB+\'<1j>8U<1q 1l="1c" id="8T" V="3n" /><1j>\'+7.C.16.1c+\'<1q 1l="1c" V="3n 64" id="cx" /><1j>\'+7.C.16.8S+\'<1q 1l="1c" V="3n" id="8X" /><1j>\'+7.C.16.1c+\'<1q 1l="1c" V="3n 64" id="dU" /><2S>\'+7.C.16.4L+\'<1q 1l="55" V="2Y" id="dV" 2F="\'+7.C.16.5H+\'" />\',dT:3i()+"<1m><1j>"+7.C.16.dP+\'<1q 1l="1c" 32="5" 2F="2" id="8Y" /><1j>\'+7.C.16.dQ+\'<1q 1l="1c" 32="5" 2F="3" id="ec" /><2S>\'+7.C.16.4L+\'<1q 1l="55" 2b="4y" V="2Y" id="e8" 2F="\'+7.C.16.5H+\'" />\',e3:3i()+\'<1m><1o id="hG"><1j>\'+7.C.16.dM+\'<4K id="93" Z="2u: 99%; 1G: hH;"><2S>\'+7.C.16.4L+\'<1q 1l="55" V="2Y" id="dp" 2F="\'+7.C.16.5H+\'" />\'})},4v:y(l,i,g,m){B f=d("#9E");if(!f.X){7.$dK=f=d(\'\');d("2a").4N(7.$dK)}if(7.C.9F){f.1w().1x("1D",d.J(7.26,7))}B j=d("#9G");if(!j.X){7.$dA=j=d(\'&hI;<5y id="7a">\');d("2a").Y(7.$dA)}d("#9m").1x("1D",d.J(7.26,7));7.5q=d.J(y(n){if(n.2k===7.2k.92){7.26();E D}},7);d(N).3B(7.5q);7.$I.3B(7.5q);7.4p=D;if(i.39("#")==0){7.4p=d(i);d("#6V").71().Y(7.4p.T());7.4p.T("")}F{d("#6V").71().Y(i)}j.U("#7a").T(l);if(1s d.fn.dy!=="1p"){j.dy({im:"#7a"});j.U("#7a").11("79","io")}B k=d("#3t");if(k.X){B h=7;k.U("a").15(y(n,o){n++;d(o).1x("1D",y(q){q.1V();k.U("a").21("4o");d(7).1Q("4o");d(".38").1Y();d("#38"+n).1w();d("#5N").1b(n);if(h.3w()===D){B p=j.ay();j.11("4M-1M","-"+(p+10)/2+"2L")}})})}j.U(".4G").1x("1D",d.J(7.26,7));if(7.3w()===D){j.11({2w:"6Y",1M:"-9z",1C:"50%",2u:g+"2L",j2:"-"+(g+60)/2+"2L"}).1w();7.9I=d(N.2a).11("9H");d(N.2a).11("9H","6m")}F{j.11({2w:"6Y",2u:"2l%",1G:"2l%",1M:"0",1C:"0",4M:"0",5M:"j1"}).1w()}if(1s m==="y"){m()}if(7.3w()===D){2e(y(){B n=j.ay();j.11({1M:"50%",1G:"3q",5M:"3q",j3:"-"+(n+10)/2+"2L"})},20)}},26:y(){d("#9m").36("1D",7.26);d("#9G").4U("j4",d.J(y(){B f=d("#6V");if(7.4p!==D){7.4p.T(f.T());7.4p=D}f.T("");if(7.C.9F){d("#9E").1Y().36("1D",7.26)}d(N).aX("3B",7.5q);7.$I.aX("3B",7.5q);7.1f()},7));if(7.3w()===D){d(N.2a).11("9H",7.9I?7.9I:"b0")}E D},9N:y(f){d(".38").1Y();d("#3t").U("a").21("4o").eq(f-1).1Q("4o");d("#38"+f).1w()},aN:y(k){B h=k.1S.bd;2C(B g=0,j;j=h[g];g++){7.av(j)}},av:y(f){7.b2(f,d.J(y(g){7.ap(f,g)},7))},b2:y(f,h){B g=1N a2();g.6E("j5",7.C.5Y+"?2b="+f.2b+"&1l="+f.1l,L);g.j0("1c/iZ; iU=x-iT-iV");g.iW=y(i){if(7.a1==4&&7.9J==3W){d("#Q-2o").bX();h(iY(7.iX))}F{if(7.a1==4&&7.9J!=3W){}}};g.c7()},ao:y(h,f){B g=1N a2();if("j6"in g){g.6E(h,f,L)}F{if(1s au!="1p"){g=1N au();g.6E(h,f)}F{g=2h}}E g},ap:y(g,f){B h=7.ao("j7",f);if(!h){}F{h.jg=d.J(y(){if(h.9J==3W){d("#Q-2o").1Y();B k=f.6F("?");if(!k[0]){E D}7.1f();B i="";i=\'<2j id="2D-1E" 4r="\'+k[0]+\'" />\';if(7.C.4w){i="

        "+i+"

        "}7.1A("3O",i,D);B j=d(7.$I.U("2j#2D-1E"));if(j.X){j.2z("id")}F{j=D}7.12();7.1k("4s",j,D);7.26();7.4j()}F{}},7);h.jf=y(){};h.4y.jh=y(i){};h.bJ("ji-jj",g.1l);h.bJ("x-je-jd","j9-j8");h.c7(g)}},9s:y(h,f){7.2i={2U:D,2R:D,2X:D,5d:D,9q:D,3q:D,1q:D};d.41(7.2i,f);B g=d("#"+h);if(g.X&&g[0].R==="ja"){7.2i.1q=g;7.el=d(g[0].1o)}F{7.el=g}7.bs=7.el.1a("4z");if(7.2i.3q){d(7.2i.1q).6t(d.J(y(i){7.el.9y(y(j){E D});7.9p(i)},7))}F{if(7.2i.9q){d("#"+7.2i.9q).1D(d.J(7.9p,7))}}},9p:y(f){d("#Q-2o").bX();7.bi(7.3s,7.bY())},bY:y(){7.id="f"+2W.bZ(2W.bB()*be);B g=7.N.42("K");B f=\'<1h Z="2g:1K" id="\'+7.id+\'" 2b="\'+7.id+\'">\';g.4R=f;d(g).6u("2a");if(7.2i.5d){7.2i.5d()}d("#"+7.id).bg(d.J(7.bA,7));E 7.id},bi:y(j,i){if(7.2i.1q){B k="jb"+7.id,g="jc"+7.id;7.1o=d(\'<1o 4z="\'+7.2i.2U+\'" 5f="9K" 1S="\'+i+\'" 2b="\'+k+\'" id="\'+k+\'" 6h="6C/1o-1L" />\');if(7.C.2P!==D&&1s 7.C.2P==="2t"){d.15(7.C.2P,d.J(y(m,f){if(f.3k().39("#")===0){f=d(f).1b()}B n=d("<1q/>",{1l:"6m",2b:m,2F:f});d(7.1o).Y(n)},7))}B h=7.2i.1q;B l=d(h).4m();d(h).1a("id",g).2M(l).6u(7.1o);d(7.1o).11("2w","9t").11("1M","-9z").11("1C","-9z").6u("2a");7.1o.9y()}F{j.1a("1S",i).1a("5f","9K").1a("6h","6C/1o-1L").1a("4z",7.2i.2U);7.3s.9y()}},bA:y(){B j=d("#"+7.id)[0],k;if(j.bz){k=j.bz}F{if(j.9x){k=j.9x.N}F{k=31.iS[7.id].N}}if(7.2i.2R){d("#Q-2o").1Y();if(1s k!=="1p"){B h=k.2a.4R;B g=h.1W(/\\{(.|\\n)*\\}/)[0];g=g.G(/^\\[/,"");g=g.G(/\\]$/,"");B f=d.as(g);if(1s f.2X=="1p"){7.2i.2R(f)}F{7.2i.2X(7,f);7.26()}}F{7.26();iR("bo iz!")}}7.el.1a("4z",7.bs);7.el.1a("1S","")},9v:y(g,f){7.3l=d.41({2U:D,2R:D,2X:D,iy:D,2P:D,1c:7.C.16.bm,b8:7.C.16.bn},f);if(31.bI===1p){E D}7.9u=d(\'\');7.3v=d(\'\'+7.3l.1c+"");7.b6=d(\'\'+7.3l.b8+"");7.9u.Y(7.3v);d(g).2M(7.9u);d(g).2M(7.b6);7.3v.1x("ix",d.J(y(){E 7.at()},7));7.3v.1x("iw",d.J(y(){E 7.ar()},7));7.3v.1H(0).iq=d.J(y(h){h.1V();7.3v.21("5R").1Q("ip");7.bC(h.ir.bd[0])},7)},bC:y(g){B i=ea.it.ak();if(i.4y){i.4y.iv("2o",d.J(7.aa,7),D)}B h=y(){E i};B f=1N bI();if(7.3l.2P!==D&&1s 7.3l.2P==="2t"){d.15(7.3l.2P,d.J(y(l,j){if(j.3k().39("#")===0){j=d(j).1b()}f.Y(l,j)},7))}f.Y("2Q",g);d.bO({2U:7.3l.2U,iu:"T",1L:f,ak:h,iD:D,iE:D,iN:D,1l:"9K",2R:d.J(y(k){k=k.G(/^\\[/,"");k=k.G(/\\]$/,"");B j=d.as(k);if(1s j.2X=="1p"){7.3l.2R(j)}F{7.3l.2X(7,j);7.3l.2R(D)}},7)})},at:y(){7.3v.1Q("5R");E D},ar:y(){7.3v.21("5R");E D},aa:y(g,h){B f=g.aR?9W(g.aR/g.iM*2l,10):g;7.3v.1c("iO "+f+"% "+(h||""))},3w:y(){E/(iP|iQ|iL|iK)/.3r(94.95)},4V:y(f){E d("").Y(d(f).eq(0).4m()).T()},aD:y(f){E iG.3Z.3k.3m(f)=="[2t 3i]"},8Z:y(f){f=f.G(/>|
        ||&1Z;/gi,"");f=f.G(/\\s/g,"");f=f.G(/^

        [^\\w\\d]*?<\\/p>$/i,"");E f==""},1B:y(g){B h=94.95.3p();B f=/(98)[ \\/]([\\w.]+)/.1J(h)||/(3Y)[ \\/]([\\w.]+)/.1J(h)||/(6c)(?:.*6f|)[ \\/]([\\w.]+)/.1J(h)||/(30) ([\\w.]+)/.1J(h)||h.39("iF")<0&&/(5s)(?:.*? iH:([\\w.]+)|)/.1J(h)||[];if(g=="6f"){E f[2]}if(g=="3Y"){E(f[1]=="98"||f[1]=="3Y")}E f[1]==g},9c:y(){if(7.1B("30")&&9W(7.1B("6f"),10)<9){E L}E D},cu:y(g){B f=g.iI(L);B h=7.N.42("K");h.4F(f);E h.4R},9U:y(){B f=7.$I[0];B h=7.N.ad();B g;2n((g=f.7F)){h.4F(g)}E h},6L:y(f){if(!f){E D}if(7.C.1h){E f}if(d(f).7b("K.2O").X==0||d(f).33("2O")){E D}F{E f}},7N:y(f){B g=7.3f(),h=7.2p();E g&&g.R===f?g:h&&h.R===f?h:D},dx:y(){B g=7.25();B i=7.e9(g);B h=d.2s(d(g).1c()).G(/\\n\\r\\n/g,"");B f=h.X;if(i==f){E L}F{E D}},61:y(){B f,g=7.1v();if(g.44&&g.44>0){f=g.2q(0).4E}if(!f){E D}if(7.C.1h){if(7.cP().cZ()){E!7.$I.is(f)}F{E L}}E d(f).35("K.2O").X!=0},4A:y(g,f){if(d(g).1a(f)==""){d(g).2z(f)}},cb:y(h,g){B f=2h;2n((f=h.39(g))!==-1){h.6v(f,1)}E h}};c.3Z.59.3Z=c.3Z;d.43.fn.7w=y(l){B j=/(^|&5z;|\\s)(iJ\\..+?\\..+?)(\\s|>|$)/g,h=/(^|&5z;|\\s)(((e7?|dW):\\/\\/|5A:).+?)(\\s|>|$)/g;B k=(7.$I?7.$I.1H(0):7).8C,g=k.X;2n(g--){B m=k[g];if(m.3h===3){B f=m.5r;if(f&&(f.1W(j)||f.1W(h))){f=f.G(/&/g,"&8k;").G(//g,">").G(j,\'$1$2$3\').G(h,\'$1$2$5\');d(m).2d(f).1n()}}F{if(m.3h===1&&!/^(a|55|4K)$/i.3r(m.R)){d.43.fn.7w.3m(m,l)}}}}})(ea);',62,1278,'|||||||this|||||||||||||||||||||||||||function|||var|opts|false|return|else|replace||editor|proxy|div|true|title|document|span||redactor|tagName||html|find|class||length|append|style||css|sync|||each|curLang||func|toolbar|attr|val|text|source|table|selectionRestore|href|iframe|focus|label|callback|type|section|remove|form|undefined|input|selectionSave|typeof|td|bufferSet|getSelection|show|on|contents|linebreaks|execCommand|browser|left|click|marker|li|height|get|push|exec|none|data|top|new|parent|air|addClass|box|target|ul|pre|preventDefault|match|frame|hide|nbsp||removeClass|invisibleSpace|ol|buttonGet|getBlock|modalClose||selection||body|name|script|after|setTimeout|replaceWith|display|null|uploadOptions|img|keyCode|100|link|while|progress|getCurrent|getRangeAt|blockquote|trim|object|width|font|position|getBlocks|tr|removeAttr|video|RegExp|for|image|getRange|value|rangy|thead|dropdown|rel|fullpage|px|before|LI|redactor_editor|uploadFields|file|success|footer|italic|url|bold|Math|error|redactor_modal_btn|buttons|msie|window|size|hasClass|php|closest|off||redactor_tab|indexOf|substr|current_tr|option|insertNode|search|getParent|className|nodeType|String|backcolor|toString|draguploadOptions|call|redactor_input|tag|toLowerCase|auto|test|element|redactor_tabs|placeholder|dropareabox|isMobile|content|selectionStart|offset|contenteditable|keyup|strong|embed|redactor_file|audio|shortcutsLoad|emptyHtml|parentNode|shiftKey|buttonActive|savedSel|visual|fontcolor|inserthtml|verified|BLOCKQUOTE|formatBlocks|shortcutsLoadFormat|deleted|javascript|charAt|200|right|webkit|prototype||extend|createElement|Redactor|rangeCount|color||range|||indent|PRE|buffer|redactor_file_link|dir|orderedlist|unorderedlist|direction|scrollTop|observeImages|textareamode|Insert|clone|toolbarFixed|redactor_tabs_act|modalcontent|inlineMethods|src|imageUpload|removeAllRanges|redactor_placeholder|modalInit|paragraphy|formatting|upload|action|removeEmptyAttr|tbody|round|collapsed|startContainer|appendChild|redactor_btn_modal_close|redactorfolder|join|buttonBuild|textarea|cancel|margin|prepend|allowedTags|autosave|cleanGetTabs|innerHTML|background|dropact|fadeOut|outerHtml|justify|code|insert_link_node|inArray||||||button|getNodes|redactor_act|selectall|init|outdent|observeStart|addRange|start|createRange|method|autoresize|underline|param|selectionSet|endContainer|Delete|mouseup|Add|rebuffer|select|hdlModalClose|nodeValue|mozilla|isFunction|selectionEnd|cleanlevel|alignmentSet|fileUpload|header|lt|mailto|imageGetJson|tabindex|next|getElement|horizontalrule|redactor_link_url|insert|buttonActiveObserver|cleanStripTags|break|keydown|minHeight|redactor_tab_selected|unlink|phpTags|cleanRemoveSpaces|hover|insertunorderedlist|deniedTags|buttonSeparator|modified|shortcuts|comment|s3|insertAfter||isFocused|x200b|children|redactor_link_text|||insertLineBreak|prev|10px|activeButtonsAdd|head|opera|float|DIV|version|insertAfterLastElement|enctype|aligncenter|setEnd|selectNodeContents|bar|hidden|alignright|activeButtons|nodeTestBlocks|selectionSetMarker|ENTER|alignleft|change|appendTo|splice|Header|saveScroll|post|filelink|imageInsert|insertorderedlist|multipart|airBindMousemoveHide|open|split|cleanConvertInlineTags|redactor_btn_|alignmentTags|alignment|buildCodearea|isParentRedactor|folder|dropdownHideAll|insertHtmlAdvanced|del|placeTag|line|linkProtocol|autosaveInterval|toolbarFixedBox|redactor_modal_inner|strike|one|fixed|set|separator|empty|||||||first|cursor|redactor_modal_header|parents|formatBlock|align_center|catch|add_head|linkAnchor|delete_column|linkEmail|try|selnodes|tableAddRow|_blank|iframePage|redactor_button_disabled|selectionRemoveMarkers|link_insert|rTestBlock|align_right|delete_row|syncClean|tableAddColumn|formatLinkify|delete_table|current_td|getRangeSelectedNodes|tableObserver|insert_column_left|Column|delete_head|insert_column_right|firstChild|align_left|redactor_btn_right|Row|redactor_btn|airShow|tagTestBlock|insert_row_below|currentOrParentIs|Table|indentingStart|ownLine|pickerSet|sourceOld|blockLevelElements|createTextNode|z0|focusCallback|inlineEachNodes|cleanRemoveEmptyTags|meta|colors|th|SPAN|contOwnLine|tfoot|boldTag|cleannewLevel|alignmentLeft|RedactorPlugins|filter|plugins|cleanTag|align_justify|alignmentRight|align|italicTag|cleanSavePreCode|alignmentJustify|alignmentCenter|blurCallback|amp|BACKSPACE|buttonInactive|insert_table|indentingIndent|indentingOutdent|insideOutdent|cleanFinish|iframeDoc|selectionElement|cloneRange|collapse|insert_row_above|getTextNodesIn|case|setStart|insertHtml|pasteInsert|childNodes|buffer_|pasteHTML|parseHTML|iframeAppend|address|which|cleanConvertProtected|cleanEmpty|cleanEncodeEntities|cleanConverters|cleanParagraphy|convertDivs|activeButtonsStates|tableDeleteHead|redactor_tab3|anchor|redactor_link_mailto|Email|redactor_link_blank|redactor_tab2|redactor_link_anchor|redactor_table_rows|isEmpty|||ESC|redactor_insert_video_area|navigator|userAgent|URL|redactor_image_box|chrome||imageCallback|alt|oldIE|pageY|filename|redactor_filename|save|choose|iframeLoad|redactor_form_image_align|redactor_file_alt|iframeAddCss|redactor_modal_close|buildEnable|DOWN|uploadSubmit|trigger|focusSet|uploadInit|absolute|droparea|draguploadInit|sourceHeight|contentWindow|submit|2000px|toggle|altKey|buildOptions|buildAfter|redactor_modal_overlay|modalOverlay|redactor_modal|overflow|modalSaveBodyOveflow|status|POST|setFullpageOnInit|buildBindKeyboard|modalSetTab|pageX|rBlockTest|fileCallback|uuid|toolbarObserveScroll|toolbarExternal|extractContent|mousedown|parseInt|mousemove|ctrlKey|quot|7f7f7f|readyState|XMLHttpRequest|dropdownHide|cleanUnverified|redactor_dropdown|setInterval|mobile|returnValue|videoShow|uploadProgress|buildPlugins|buildMobile|createDocumentFragment|lang|langs|imageShow|paragraph|quote|dropdownShow|xhr|videoInsert|newLevel|toolbarBuild|s3createCORSRequest|s3uploadToS3|airEnable|draguploadOndragleave|parseJSON|draguploadOndrag|XDomainRequest|s3uploadFile|buttonsCustom|buttonsAdd|outerHeight|iframeStart|buttonSource|center|tableAddColumnRight|isString|formatEmpty|H1|H2|nextNode|formatQuote|formattingTags|formatblock|airButtons|imageUploadError|s3handleFileSelect|placeholderRemoveFromCode|placeholderFocus|cleanHtml|loaded|transparent|header1|TAB|cleanlineBefore|isEmptyObject|unbind|cleanlineAfter|Color|visible|getCodeIframe|s3executeOnSignedUrl|header3|prop|linkProcess|dropalternative|redactor_dropdown_link|atext|buttonActiveToggle|link_edit|cleanup|fileShow|files|99999|formattingPre|load|buttonActiveVisual|uploadForm|buttonInactiveAll|convertLinks|redactor_editor_wym|drop_file_here|or_choose|Upload|List|redactor_btn_html||element_action|wym|visibility|8203|checked|linkInsert|buttonInactiveVisual|contentDocument|uploadLoaded|random|draguploadUpload|buildContent|substring|dropdownBuild|linkShow|DELETE|FormData|setRequestHeader|header4|pickerBuild|fieldset|header2|ajax|H3|map|area|metaKey|cleanReplacer|fileUploadError|LEFT_WIN|toolbarFixedTopOffset|fadeIn|uploadFrame|floor|inserthorizontalrule|buildAddClasses|toolbar_fixed_box|cleanReConvertProtected|buildFromTextarea|buildFromElement|b7dde8|send|placeholderStart|TD|tableAddColumnLeft|removeFromArrayByValue|redactor_upload_btn|image_web_link|Image|observeTables|pop|modal_link|tableDeleteTable|selectionWrap|selectionRemove|endOffset|setCodeIframe|Left|FOOTER|formatChangeTag|Right|HEADER|redactor_tab1|Link|getFragmentHtml|documentElement|H4|redactor_link_mailto_text|write|pastePre|setEditor|link_new_tab|bufferUndo|bufferRedo|tableDeleteRow|redactor_link_url_text|imageSave|SECTION|setCaret|striped|modal_file|modalTemplatesInit|cloneContents|ARTICLE|tableShow|getCaretOffsetRange|ASIDE|getSelectedNodes|imageCallbackLink|imageEdit|unshift|nextSibling|imageThumbClick|textContent|getSelectionText|equals|modal_image_edit|redactor_image_delete_btn|innerWidth|selectionCreateMarker|apply|_delete|modal_image|redactorSaveBtn|imageResize|not|FIGCAPTION|close|Head||redactor_air|tableInsert|image_position|Video|tableDeleteColumn|clearInterval|HTML||BODY|http|H6|redactor_insert_video_btn|buildStart|H5|article||focusEnd|aside|initToolbar|isEndOfElement|draggable|tableAddRowBelow|modal|inlineSetStyle|Align|tableAddRowAbove|inlineSetMethods|inlineRemoveStyle|to|the|fontSize|unwrap|overlay|inlineUnwrapSpan|video_html_code|insertText|tableAddHead|rows|columns|ADDRESS|pasteClean|modal_table|redactor_link_anchor_text|redactor_insert_link_btn|ftp|iframeCreate|airBindHide|Code|replaceLineBreak|BR|setStartAfter|modal_video|tabFocus|deleteContents|imageRemove|https|redactor_insert_table_btn|getCaretOffset|jQuery|htmlEncode|redactor_table_columns|last|enableInlineTableEditing|about|Chrome|Callback|syncAfter|destroy|enableObjectResizing||||min|redo||1data|TH|undo|TEXTAREA|getBox|getToolbar|getIframe|redactor_|getEditor|redactor_box|_code|536|syncBefore|getObject|blank|paste|removeData|Cancel|e5b9b7|b8cce4|8db3e2|d7e3bc|ccc1d9|bfbfbf|ffe694|fbd5b5|c4bd97|595959|ebf1dd|f2dcdb|dbe5f1|e5e0ec|dbeef3|d8d8d8|fff2ca|fdeada|3f3f3f|938953|366092|17365d|494429|953734|76923c|e36c09|92cddc|5f497a|262626|a5a5a5|d99694|95b3d7|548dd4|c3d69b|b2a2c7|f2c314|fac08f|c6d9f0|ddd9c3|keydownCallback||changeCallback|initCallback|keyupCallback|execCommandCallback|autosaveCallback|pasteAfterCallback|pasteBeforeCallback|VERSION|such|startOffset|strict|use|Array|slice|No|string|arguments|imageUploadCallback|imageUploadErrorCallback|9bbb59|c0504d|4f81bd|8064a2|4bacc6|f2f2f2|ffff00|f79646|1f497d|eeece1|fileUploadErrorCallback|fileUploadCallback|imageDeleteCallback|ltr|redactor_separator|000000|ffffff|c09100|0c0c0c|Horizontal|Justify|Center|Rule|Deleted|tab|Open|Anchor|here|Drop|Embed|web|Text|File|download|Or|Choose|Download||Underline|Alignment|redactor_format_h3|redactor_format_h2|redactor_format_h1|redactor_format_h4|strikethrough|separator_drop2|separator_drop1|bull||redactor_format_pre|redactor_format_blockquote|CTRL|optional|Name|META|LEFT|sourceWidth|dropdowns|Web|None|DD|frameset|noscript|DL|DT|Unlink|Edit|OUTPUT|applet|7f6000|244061|0f243e|1d1b10|632423|4f6128|974806|31859b|3f3151|Formatting|Normal|Above|Save|||||||u0000|Below|Rows|Position|Title|Columns|Indent|Outdent|Italic|Bold|Quote|Font|Back|Ordered|Unordered|separator_drop3|insertDoubleLineBreak|xn|460|500||getJSON|redactor_image_box_select|thumb|location|self|getSelectionHtml|hasChildNodes|300|cellIndex|600|610|redactor_image_edit_src|checkbox|redactorInsertLinkForm|redactorInsertVideoForm|160px|times|void|redactorInsertImageForm|7px|imageDelete|380|nw|resize|redactorUploadFileForm|commonAncestorContainer|isCollapsed|inlineRemoveAttr|inlineSetClass|inlineSetAttr|inlineFormat|toUpperCase|inlineRemoveFormat|inlineRemoveClass|blockSetClass|blockSetAttr|blockRemoveAttr|blockRemoveStyle|blockSetStyle|blockRemoveClass|setEndAfter|pasteBefore|detach|saveSelection|restoreSelection|removeMarkers|nodeName||selectionAll||extractContents|internal|sid|innerText|pasteAfter|charCodeAt|handle||move|drop|ondrop|dataTransfer||ajaxSettings|dataType|addEventListener|dragleave|dragover|preview|failed|redactor_droparea|redactor_dropareabox|redactor_dropalternative|cache|contentType|compatible|Object|rv|cloneNode|www|Android|BlackBerry|total|processData|Loading|iPhone|iPod|alert|frames|user|charset|defined|onreadystatechange|responseText|decodeURIComponent|plain|overrideMimeType|300px|marginLeft|marginTop|fast|GET|withCredentials|PUT|read|public|INPUT|redactorUploadForm|redactorUploadFile|acl|amz|onerror|onload|onprogress|Content|Type|JustifyFull|unselectable|stopPropagation|redactor_dropdown_|buttonChangeIcon|buttonRemoveIcon|buttonAddSeparator|redactor_separator_drop|redactor_color_none|clientY|210|redactor_color_link|backgroundColor|buttonAddSeparatorAfter|buttonAddSeparatorBefore|buttonAddAfter|buttonAddBefore|buttonRemove|switch|buttonAddFirst|buttonAdd|buttonRemoveSeparatorAfter|buttonRemoveSeparatorBefore|buttonSetRight|buttonSetLeft|clientX|focusNode|placeholderRemove|defaultView|removeFormat|superscript|subscript|ownerDocument|isArray|blur|frameborder|removeChild|stylesheet|innerHeight|escape|scroll|zIndex|1005|relative|redactor_air_|redactor_toolbar_|encodeURIComponent|1000|delete|redactor_toolbar|default|collapseToStart|nav|cite|hgroup|legend|small|JustifyLeft|weight|hasOwnProperty|details|menu|ns|figcaption|figure|OL|summary|math|replaced|colgroup|sub|JustifyRight|UL|sup|u200B|caption|col|JustifyCenter|uFEFF|u200D'.split('|'),0,{})) \ No newline at end of file diff --git a/public/javascripts/vendor/redactor/style.css b/public/javascripts/vendor/redactor/style.css deleted file mode 100755 index 5fa9b5aba..000000000 --- a/public/javascripts/vendor/redactor/style.css +++ /dev/null @@ -1,26 +0,0 @@ -html, body { - margin: 0; - padding: 0; -} - - -/* =Typography ------------------------------------------------------------------------------*/ -body { - font-family: Helvetica, Arial, sans-serif; - font-size: 14px; -} - - -/* =Layout ------------------------------------------------------------------------------*/ -#page { - width: 940px; - margin: 50px auto; -} - -/* =Misc ------------------------------------------------------------------------------*/ -.list li { - margin: 10px 0; -} \ No newline at end of file diff --git a/public/javascripts/vendor/tabby.js b/public/javascripts/vendor/tabby.js deleted file mode 100755 index e30e76fbf..000000000 --- a/public/javascripts/vendor/tabby.js +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Tabby jQuery plugin version 0.12 - * - * Ted Devito - http://teddevito.com/demos/textarea.html - * - * Copyright (c) 2009 Ted Devito - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following - * conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ - -// create closure - -(function($) { - - // plugin definition - - $.fn.tabby = function(options) { - //debug(this); - // build main options before element iteration - var opts = $.extend({}, $.fn.tabby.defaults, options); - var pressed = $.fn.tabby.pressed; - - // iterate and reformat each matched element - return this.each(function() { - $this = $(this); - - // build element specific options - var options = $.meta ? $.extend({}, opts, $this.data()) : opts; - - $this.bind('keydown',function (e) { - var kc = $.fn.tabby.catch_kc(e); - if (16 == kc) pressed.shft = true; - /* - because both CTRL+TAB and ALT+TAB default to an event (changing tab/window) that - will prevent js from capturing the keyup event, we'll set a timer on releasing them. - */ - if (17 == kc) {pressed.ctrl = true; setTimeout("$.fn.tabby.pressed.ctrl = false;",1000);} - if (18 == kc) {pressed.alt = true; setTimeout("$.fn.tabby.pressed.alt = false;",1000);} - - if (9 == kc && !pressed.ctrl && !pressed.alt) { - e.preventDefault; // does not work in O9.63 ?? - pressed.last = kc; setTimeout("$.fn.tabby.pressed.last = null;",0); - process_keypress ($(e.target).get(0), pressed.shft, options); - return false; - } - - }).bind('keyup',function (e) { - if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false; - }).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588 - if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus(); - }); - - }); - }; - - // define and expose any extra methods - $.fn.tabby.catch_kc = function(e) { return e.keyCode ? e.keyCode : e.charCode ? e.charCode : e.which; }; - $.fn.tabby.pressed = {shft : false, ctrl : false, alt : false, last: null}; - - // private function for debugging - function debug($obj) { - if (window.console && window.console.log) - window.console.log('textarea count: ' + $obj.size()); - }; - - function process_keypress (o,shft,options) { - var scrollTo = o.scrollTop; - //var tabString = String.fromCharCode(9); - - // gecko; o.setSelectionRange is only available when the text box has focus - if (o.setSelectionRange) gecko_tab (o, shft, options); - - // ie; document.selection is always available - else if (document.selection) ie_tab (o, shft, options); - - o.scrollTop = scrollTo; - } - - // plugin defaults - $.fn.tabby.defaults = {tabString : String.fromCharCode(9)}; - - function gecko_tab (o, shft, options) { - var ss = o.selectionStart; - var es = o.selectionEnd; - - // when there's no selection and we're just working with the caret, we'll add/remove the tabs at the caret, providing more control - if(ss == es) { - // SHIFT+TAB - if (shft) { - // check to the left of the caret first - if ("\t" == o.value.substring(ss-options.tabString.length, ss)) { - o.value = o.value.substring(0, ss-options.tabString.length) + o.value.substring(ss); // put it back together omitting one character to the left - o.focus(); - o.setSelectionRange(ss - options.tabString.length, ss - options.tabString.length); - } - // then check to the right of the caret - else if ("\t" == o.value.substring(ss, ss + options.tabString.length)) { - o.value = o.value.substring(0, ss) + o.value.substring(ss + options.tabString.length); // put it back together omitting one character to the right - o.focus(); - o.setSelectionRange(ss,ss); - } - } - // TAB - else { - o.value = o.value.substring(0, ss) + options.tabString + o.value.substring(ss); - o.focus(); - o.setSelectionRange(ss + options.tabString.length, ss + options.tabString.length); - } - } - // selections will always add/remove tabs from the start of the line - else { - // split the textarea up into lines and figure out which lines are included in the selection - var lines = o.value.split("\n"); - var indices = new Array(); - var sl = 0; // start of the line - var el = 0; // end of the line - var sel = false; - for (var i in lines) { - el = sl + lines[i].length; - indices.push({start: sl, end: el, selected: (sl <= ss && el > ss) || (el >= es && sl < es) || (sl > ss && el < es)}); - sl = el + 1;// for "\n" - } - - // walk through the array of lines (indices) and add tabs where appropriate - var modifier = 0; - for (var i in indices) { - if (indices[i].selected) { - var pos = indices[i].start + modifier; // adjust for tabs already inserted/removed - // SHIFT+TAB - if (shft && options.tabString == o.value.substring(pos,pos+options.tabString.length)) { // only SHIFT+TAB if there's a tab at the start of the line - o.value = o.value.substring(0,pos) + o.value.substring(pos + options.tabString.length); // omit the tabstring to the right - modifier -= options.tabString.length; - } - // TAB - else if (!shft) { - o.value = o.value.substring(0,pos) + options.tabString + o.value.substring(pos); // insert the tabstring - modifier += options.tabString.length; - } - } - } - o.focus(); - var ns = ss + ((modifier > 0) ? options.tabString.length : (modifier < 0) ? -options.tabString.length : 0); - var ne = es + modifier; - o.setSelectionRange(ns,ne); - } - } - - function ie_tab (o, shft, options) { - var range = document.selection.createRange(); - - if (o == range.parentElement()) { - // when there's no selection and we're just working with the caret, we'll add/remove the tabs at the caret, providing more control - if ('' == range.text) { - // SHIFT+TAB - if (shft) { - var bookmark = range.getBookmark(); - //first try to the left by moving opening up our empty range to the left - range.moveStart('character', -options.tabString.length); - if (options.tabString == range.text) { - range.text = ''; - } else { - // if that didn't work then reset the range and try opening it to the right - range.moveToBookmark(bookmark); - range.moveEnd('character', options.tabString.length); - if (options.tabString == range.text) - range.text = ''; - } - // move the pointer to the start of them empty range and select it - range.collapse(true); - range.select(); - } - - else { - // very simple here. just insert the tab into the range and put the pointer at the end - range.text = options.tabString; - range.collapse(false); - range.select(); - } - } - // selections will always add/remove tabs from the start of the line - else { - - var selection_text = range.text; - var selection_len = selection_text.length; - var selection_arr = selection_text.split("\r\n"); - - var before_range = document.body.createTextRange(); - before_range.moveToElementText(o); - before_range.setEndPoint("EndToStart", range); - var before_text = before_range.text; - var before_arr = before_text.split("\r\n"); - var before_len = before_text.length; // - before_arr.length + 1; - - var after_range = document.body.createTextRange(); - after_range.moveToElementText(o); - after_range.setEndPoint("StartToEnd", range); - var after_text = after_range.text; // we can accurately calculate distance to the end because we're not worried about MSIE trimming a \r\n - - var end_range = document.body.createTextRange(); - end_range.moveToElementText(o); - end_range.setEndPoint("StartToEnd", before_range); - var end_text = end_range.text; // we can accurately calculate distance to the end because we're not worried about MSIE trimming a \r\n - - var check_html = $(o).html(); - $("#r3").text(before_len + " + " + selection_len + " + " + after_text.length + " = " + check_html.length); - if((before_len + end_text.length) < check_html.length) { - before_arr.push(""); - before_len += 2; // for the \r\n that was trimmed - if (shft && options.tabString == selection_arr[0].substring(0,options.tabString.length)) - selection_arr[0] = selection_arr[0].substring(options.tabString.length); - else if (!shft) selection_arr[0] = options.tabString + selection_arr[0]; - } else { - if (shft && options.tabString == before_arr[before_arr.length-1].substring(0,options.tabString.length)) - before_arr[before_arr.length-1] = before_arr[before_arr.length-1].substring(options.tabString.length); - else if (!shft) before_arr[before_arr.length-1] = options.tabString + before_arr[before_arr.length-1]; - } - - for (var i = 1; i < selection_arr.length; i++) { - if (shft && options.tabString == selection_arr[i].substring(0,options.tabString.length)) - selection_arr[i] = selection_arr[i].substring(options.tabString.length); - else if (!shft) selection_arr[i] = options.tabString + selection_arr[i]; - } - - if (1 == before_arr.length && 0 == before_len) { - if (shft && options.tabString == selection_arr[0].substring(0,options.tabString.length)) - selection_arr[0] = selection_arr[0].substring(options.tabString.length); - else if (!shft) selection_arr[0] = options.tabString + selection_arr[0]; - } - - if ((before_len + selection_len + after_text.length) < check_html.length) { - selection_arr.push(""); - selection_len += 2; // for the \r\n that was trimmed - } - - before_range.text = before_arr.join("\r\n"); - range.text = selection_arr.join("\r\n"); - - var new_range = document.body.createTextRange(); - new_range.moveToElementText(o); - - if (0 < before_len) new_range.setEndPoint("StartToEnd", before_range); - else new_range.setEndPoint("StartToStart", before_range); - new_range.setEndPoint("EndToEnd", range); - - new_range.select(); - - } - } - } - -// end of closure -})(jQuery); \ No newline at end of file diff --git a/public/javascripts/vendor/tabby.min.js b/public/javascripts/vendor/tabby.min.js deleted file mode 100644 index ba37afd67..000000000 --- a/public/javascripts/vendor/tabby.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(e){if(window.console&&window.console.log)window.console.log("textarea count: "+e.size())}function n(e,t,n){var s=e.scrollTop;if(e.setSelectionRange)r(e,t,n);else if(document.selection)i(e,t,n);e.scrollTop=s}function r(e,t,n){var r=e.selectionStart;var i=e.selectionEnd;if(r==i){if(t){if(r-n.tabString==e.value.substring(r-n.tabString.length,r)){e.value=e.value.substring(0,r-n.tabString.length)+e.value.substring(r);e.focus();e.setSelectionRange(r-n.tabString.length,r-n.tabString.length)}else if(r-n.tabString==e.value.substring(r,r+n.tabString.length)){e.value=e.value.substring(0,r)+e.value.substring(r+n.tabString.length);e.focus();e.setSelectionRange(r,r)}}else{e.value=e.value.substring(0,r)+n.tabString+e.value.substring(r);e.focus();e.setSelectionRange(r+n.tabString.length,r+n.tabString.length)}}else{while(rr||a>=i&&ur&&a0?n.tabString.length:c<0?-n.tabString.length:0);var d=i+c;e.setSelectionRange(p,d)}}function i(t,n,r){var i=document.selection.createRange();if(t==i.parentElement()){if(""==i.text){if(n){var s=i.getBookmark();i.moveStart("character",-r.tabString.length);if(r.tabString==i.text){i.text=""}else{i.moveToBookmark(s);i.moveEnd("character",r.tabString.length);if(r.tabString==i.text)i.text=""}i.collapse(true);i.select()}else{i.text=r.tabString;i.collapse(false);i.select()}}else{var o=i.text;var u=o.length;var a=o.split("\r\n");var f=document.body.createTextRange();f.moveToElementText(t);f.setEndPoint("EndToStart",i);var l=f.text;var c=l.split("\r\n");var h=l.length;var p=document.body.createTextRange();p.moveToElementText(t);p.setEndPoint("StartToEnd",i);var d=p.text;var v=document.body.createTextRange();v.moveToElementText(t);v.setEndPoint("StartToEnd",f);var m=v.text;var g=e(t).html();e("#r3").text(h+" + "+u+" + "+d.length+" = "+g.length);if(h+m.lengthdiv{margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;border-radius:3px 3px 3px 3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#fff;opacity:.8;-ms-filter:alpha(opacity=80);filter:alpha(opacity=80)}#toast-container>:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:alpha(opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=")!important}#toast-container>.toast-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=")!important}#toast-container>.toast-success{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==")!important}#toast-container>.toast-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=")!important}#toast-container.toast-top-full-width>div,#toast-container.toast-bottom-full-width>div{width:96%;margin:auto}.toast{background-color:#030303}.toast-success{background-color:#51a351}.toast-error{background-color:#bd362f}.toast-info{background-color:#2f96b4}.toast-warning{background-color:#f89406}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container .toast-close-button{right:-0.2em;top:-0.2em}}@media all and (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container .toast-close-button{right:-0.2em;top:-0.2em}}@media all and (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}} \ No newline at end of file diff --git a/public/javascripts/vendor/toastr/toastr.min.js b/public/javascripts/vendor/toastr/toastr.min.js deleted file mode 100644 index f47c149a7..000000000 --- a/public/javascripts/vendor/toastr/toastr.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(a){a(["jquery"],function(a){return function(){function b(a,b,c){return j({type:r.error,iconClass:l().iconClasses.error,message:a,optionsOverride:c,title:b})}function c(a,b,c){return j({type:r.info,iconClass:l().iconClasses.info,message:a,optionsOverride:c,title:b})}function d(a){o=a}function e(a,b,c){return j({type:r.success,iconClass:l().iconClasses.success,message:a,optionsOverride:c,title:b})}function f(a,b,c){return j({type:r.warning,iconClass:l().iconClasses.warning,message:a,optionsOverride:c,title:b})}function g(b){var c=l();return n||k(c),b&&0===a(":focus",b).length?(b[c.hideMethod]({duration:c.hideDuration,easing:c.hideEasing,complete:function(){m(b)}}),void 0):(n.children().length&&n[c.hideMethod]({duration:c.hideDuration,easing:c.hideEasing,complete:function(){n.remove()}}),void 0)}function h(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:"",newestOnTop:!0}}function i(a){o&&o(a)}function j(b){function c(b){return!a(":focus",j).length||b?j[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){m(j),f.onHidden&&f.onHidden(),s.state="hidden",s.endTime=new Date,i(s)}}):void 0}function d(){(f.timeOut>0||f.extendedTimeOut>0)&&(h=setTimeout(c,f.extendedTimeOut))}function e(){clearTimeout(h),j.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}var f=l(),g=b.iconClass||f.iconClass;"undefined"!=typeof b.optionsOverride&&(f=a.extend(f,b.optionsOverride),g=b.optionsOverride.iconClass||g),q++,n=k(f);var h=null,j=a("

        "),o=a("
        "),p=a("
        "),r=a(f.closeHtml),s={toastId:q,state:"visible",startTime:new Date,options:f,map:b};return b.iconClass&&j.addClass(f.toastClass).addClass(g),b.title&&(o.append(b.title).addClass(f.titleClass),j.append(o)),b.message&&(p.append(b.message).addClass(f.messageClass),j.append(p)),f.closeButton&&(r.addClass("toast-close-button"),j.prepend(r)),j.hide(),f.newestOnTop?n.prepend(j):n.append(j),j[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(h=setTimeout(c,f.timeOut)),j.hover(e,d),!f.onclick&&f.tapToDismiss&&j.click(c),f.closeButton&&r&&r.click(function(a){a.stopPropagation?a.stopPropagation():void 0!==a.cancelBubble&&a.cancelBubble!==!0&&(a.cancelBubble=!0),c(!0)}),f.onclick&&j.click(function(){f.onclick(),c()}),i(s),f.debug&&console&&console.log(s),j}function k(b){return b||(b=l()),n=a("#"+b.containerId),n.length?n:(n=a("
        ").attr("id",b.containerId).addClass(b.positionClass),n.appendTo(a(b.target)),n)}function l(){return a.extend({},h(),s.options)}function m(a){n||(n=k()),a.is(":visible")||(a.remove(),a=null,0===n.children().length&&n.remove())}var n,o,p="2.0.1",q=0,r={error:"error",info:"info",success:"success",warning:"warning"},s={clear:g,error:b,getContainer:k,info:c,options:{},subscribe:d,success:e,version:p,warning:f};return s}()})}("function"==typeof define&&define.amd?define:function(a,b){"undefined"!=typeof module&&module.exports?module.exports=b(require(a[0])):window.toastr=b(window.jQuery)}); \ No newline at end of file diff --git a/public/javascripts/vendor/zclip.min.js b/public/javascripts/vendor/zclip.min.js deleted file mode 100644 index 51471a109..000000000 --- a/public/javascripts/vendor/zclip.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - * zClip :: jQuery ZeroClipboard v1.1.1 - * http://steamdev.com/zclip - * - * Copyright 2011, SteamDev - * Released under the MIT license. - * http://www.opensource.org/licenses/mit-license.php - * - * Date: Wed Jun 01, 2011 - */ - -(function(a){a.fn.zclip=function(c){if(typeof c=="object"&&!c.length){var b=a.extend({path:"ZeroClipboard.swf",copy:null,beforeCopy:null,afterCopy:null,clickAfter:true,setHandCursor:true,setCSSEffects:true},c);return this.each(function(){var e=a(this);if(e.is(":visible")&&(typeof b.copy=="string"||a.isFunction(b.copy))){ZeroClipboard.setMoviePath(b.path);var d=new ZeroClipboard.Client();if(a.isFunction(b.copy)){e.bind("zClip_copy",b.copy)}if(a.isFunction(b.beforeCopy)){e.bind("zClip_beforeCopy",b.beforeCopy)}if(a.isFunction(b.afterCopy)){e.bind("zClip_afterCopy",b.afterCopy)}d.setHandCursor(b.setHandCursor);d.setCSSEffects(b.setCSSEffects);d.addEventListener("mouseOver",function(f){e.trigger("mouseenter")});d.addEventListener("mouseOut",function(f){e.trigger("mouseleave")});d.addEventListener("mouseDown",function(f){e.trigger("mousedown");if(!a.isFunction(b.copy)){d.setText(b.copy)}else{d.setText(e.triggerHandler("zClip_copy"))}if(a.isFunction(b.beforeCopy)){e.trigger("zClip_beforeCopy")}});d.addEventListener("complete",function(f,g){if(a.isFunction(b.afterCopy)){e.trigger("zClip_afterCopy")}else{if(g.length>500){g=g.substr(0,500)+"...\n\n("+(g.length-500)+" characters not shown)"}e.removeClass("hover");alert("Copied text to clipboard:\n\n "+g)}if(b.clickAfter){e.trigger("click")}});d.glue(e[0],e.parent()[0]);a(window).bind("load resize",function(){d.reposition()})}})}else{if(typeof c=="string"){return this.each(function(){var f=a(this);c=c.toLowerCase();var e=f.data("zclipId");var d=a("#"+e+".zclip");if(c=="remove"){d.remove();f.removeClass("active hover")}else{if(c=="hide"){d.hide();f.removeClass("active hover")}else{if(c=="show"){d.show()}}}})}}}})(jQuery);var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){if(typeof(a)=="string"){a=document.getElementById(a)}if(!a.addClass){a.hide=function(){this.style.display="none"};a.show=function(){this.style.display=""};a.addClass=function(b){this.removeClass(b);this.className+=" "+b};a.removeClass=function(d){var e=this.className.split(/\s+/);var b=-1;for(var c=0;c-1){e.splice(b,1);this.className=e.join(" ")}return this};a.hasClass=function(b){return !!this.className.match(new RegExp("\\s*"+b+"\\s*"))}}return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(d,b,c){var a=this.clients[d];if(a){a.receiveEvent(b,c)}},register:function(b,a){this.clients[b]=a},getDOMObjectPosition:function(c,a){var b={left:0,top:0,width:c.width?c.width:c.offsetWidth,height:c.height?c.height:c.offsetHeight};if(c&&(c!=a)){b.left+=c.offsetLeft;b.top+=c.offsetTop}return b},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);if(a){this.glue(a)}}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:"",handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(d,b,e){this.domElement=ZeroClipboard.$(d);var f=99;if(this.domElement.style.zIndex){f=parseInt(this.domElement.style.zIndex,10)+1}if(typeof(b)=="string"){b=ZeroClipboard.$(b)}else{if(typeof(b)=="undefined"){b=document.getElementsByTagName("body")[0]}}var c=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");this.div.className="zclip";this.div.id="zclip-"+this.movieId;$(this.domElement).data("zclipId","zclip-"+this.movieId);var a=this.div.style;a.position="absolute";a.left=""+c.left+"px";a.top=""+c.top+"px";a.width=""+c.width+"px";a.height=""+c.height+"px";a.zIndex=f;if(typeof(e)=="object"){for(addedStyle in e){a[addedStyle]=e[addedStyle]}}b.appendChild(this.div);this.div.innerHTML=this.getHTML(c.width,c.height)},getHTML:function(d,a){var c="";var b="id="+this.id+"&width="+d+"&height="+a;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+=''}else{c+=''}return c},hide:function(){if(this.div){this.div.style.left="-2000px"}},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML="";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.domElement=null;this.div=null}},reposition:function(c){if(c){this.domElement=ZeroClipboard.$(c);if(!this.domElement){this.hide()}}if(this.domElement&&this.div){var b=ZeroClipboard.getDOMObjectPosition(this.domElement);var a=this.div.style;a.left=""+b.left+"px";a.top=""+b.top+"px"}},setText:function(a){this.clipText=a;if(this.ready){this.movie.setText(a)}},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");if(!this.handlers[a]){this.handlers[a]=[]}this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;if(this.ready){this.movie.setHandCursor(a)}},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(d,f){d=d.toString().toLowerCase().replace(/^on/,"");switch(d){case"load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var c=this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=true;return}this.ready=true;try{this.movie.setText(this.clipText)}catch(h){}try{this.movie.setHandCursor(this.handCursorEnabled)}catch(h){}break;case"mouseover":if(this.domElement&&this.cssEffects){this.domElement.addClass("hover");if(this.recoverActive){this.domElement.addClass("active")}}break;case"mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass("active")){this.domElement.removeClass("active");this.recoverActive=true}this.domElement.removeClass("hover")}break;case"mousedown":if(this.domElement&&this.cssEffects){this.domElement.addClass("active")}break;case"mouseup":if(this.domElement&&this.cssEffects){this.domElement.removeClass("active");this.recoverActive=false}break}if(this.handlers[d]){for(var b=0,a=this.handlers[d].length;b>> 0, k = 0, accumulator - if(typeof fun != 'function') throw new TypeError() - if(len == 0 && arguments.length == 1) throw new TypeError() - - if(arguments.length >= 2) - accumulator = arguments[1] - else - do{ - if(k in t){ - accumulator = t[k++] - break - } - if(++k >= len) throw new TypeError() - } while (true) - - while (k < len){ - if(k in t) accumulator = fun.call(undefined, accumulator, t[k], k, t) - k++ - } - return accumulator - } - -})() - -var Zepto = (function() { - var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, - document = window.document, - elementDisplay = {}, classCache = {}, - getComputedStyle = document.defaultView.getComputedStyle, - cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 }, - fragmentRE = /^\s*<(\w+|!)[^>]*>/, - tagExpanderRE = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, - rootNodeRE = /^(?:body|html)$/i, - - // special attributes that should be get/set via method calls - methodAttributes = ['val', 'css', 'html', 'text', 'data', 'width', 'height', 'offset'], - - adjacencyOperators = [ 'after', 'prepend', 'before', 'append' ], - table = document.createElement('table'), - tableRow = document.createElement('tr'), - containers = { - 'tr': document.createElement('tbody'), - 'tbody': table, 'thead': table, 'tfoot': table, - 'td': tableRow, 'th': tableRow, - '*': document.createElement('div') - }, - readyRE = /complete|loaded|interactive/, - classSelectorRE = /^\.([\w-]+)$/, - idSelectorRE = /^#([\w-]*)$/, - tagSelectorRE = /^[\w-]+$/, - class2type = {}, - toString = class2type.toString, - zepto = {}, - camelize, uniq, - tempParent = document.createElement('div') - - zepto.matches = function(element, selector) { - if (!element || element.nodeType !== 1) return false - var matchesSelector = element.webkitMatchesSelector || element.mozMatchesSelector || - element.oMatchesSelector || element.matchesSelector - if (matchesSelector) return matchesSelector.call(element, selector) - // fall back to performing a selector: - var match, parent = element.parentNode, temp = !parent - if (temp) (parent = tempParent).appendChild(element) - match = ~zepto.qsa(parent, selector).indexOf(element) - temp && tempParent.removeChild(element) - return match - } - - function type(obj) { - return obj == null ? String(obj) : - class2type[toString.call(obj)] || "object" - } - - function isFunction(value) { return type(value) == "function" } - function isWindow(obj) { return obj != null && obj == obj.window } - function isDocument(obj) { return obj != null && obj.nodeType == obj.DOCUMENT_NODE } - function isObject(obj) { return type(obj) == "object" } - function isPlainObject(obj) { - return isObject(obj) && !isWindow(obj) && obj.__proto__ == Object.prototype - } - function isArray(value) { return value instanceof Array } - function likeArray(obj) { return typeof obj.length == 'number' } - - function compact(array) { return filter.call(array, function(item){ return item != null }) } - function flatten(array) { return array.length > 0 ? $.fn.concat.apply([], array) : array } - camelize = function(str){ return str.replace(/-+(.)?/g, function(match, chr){ return chr ? chr.toUpperCase() : '' }) } - function dasherize(str) { - return str.replace(/::/g, '/') - .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2') - .replace(/([a-z\d])([A-Z])/g, '$1_$2') - .replace(/_/g, '-') - .toLowerCase() - } - uniq = function(array){ return filter.call(array, function(item, idx){ return array.indexOf(item) == idx }) } - - function classRE(name) { - return name in classCache ? - classCache[name] : (classCache[name] = new RegExp('(^|\\s)' + name + '(\\s|$)')) - } - - function maybeAddPx(name, value) { - return (typeof value == "number" && !cssNumber[dasherize(name)]) ? value + "px" : value - } - - function defaultDisplay(nodeName) { - var element, display - if (!elementDisplay[nodeName]) { - element = document.createElement(nodeName) - document.body.appendChild(element) - display = getComputedStyle(element, '').getPropertyValue("display") - element.parentNode.removeChild(element) - display == "none" && (display = "block") - elementDisplay[nodeName] = display - } - return elementDisplay[nodeName] - } - - function children(element) { - return 'children' in element ? - slice.call(element.children) : - $.map(element.childNodes, function(node){ if (node.nodeType == 1) return node }) - } - - // `$.zepto.fragment` takes a html string and an optional tag name - // to generate DOM nodes nodes from the given html string. - // The generated DOM nodes are returned as an array. - // This function can be overriden in plugins for example to make - // it compatible with browsers that don't support the DOM fully. - zepto.fragment = function(html, name, properties) { - if (html.replace) html = html.replace(tagExpanderRE, "<$1>") - if (name === undefined) name = fragmentRE.test(html) && RegExp.$1 - if (!(name in containers)) name = '*' - - var nodes, dom, container = containers[name] - container.innerHTML = '' + html - dom = $.each(slice.call(container.childNodes), function(){ - container.removeChild(this) - }) - if (isPlainObject(properties)) { - nodes = $(dom) - $.each(properties, function(key, value) { - if (methodAttributes.indexOf(key) > -1) nodes[key](value) - else nodes.attr(key, value) - }) - } - return dom - } - - // `$.zepto.Z` swaps out the prototype of the given `dom` array - // of nodes with `$.fn` and thus supplying all the Zepto functions - // to the array. Note that `__proto__` is not supported on Internet - // Explorer. This method can be overriden in plugins. - zepto.Z = function(dom, selector) { - dom = dom || [] - dom.__proto__ = $.fn - dom.selector = selector || '' - return dom - } - - // `$.zepto.isZ` should return `true` if the given object is a Zepto - // collection. This method can be overriden in plugins. - zepto.isZ = function(object) { - return object instanceof zepto.Z - } - - // `$.zepto.init` is Zepto's counterpart to jQuery's `$.fn.init` and - // takes a CSS selector and an optional context (and handles various - // special cases). - // This method can be overriden in plugins. - zepto.init = function(selector, context) { - // If nothing given, return an empty Zepto collection - if (!selector) return zepto.Z() - // If a function is given, call it when the DOM is ready - else if (isFunction(selector)) return $(document).ready(selector) - // If a Zepto collection is given, juts return it - else if (zepto.isZ(selector)) return selector - else { - var dom - // normalize array if an array of nodes is given - if (isArray(selector)) dom = compact(selector) - // Wrap DOM nodes. If a plain object is given, duplicate it. - else if (isObject(selector)) - dom = [isPlainObject(selector) ? $.extend({}, selector) : selector], selector = null - // If it's a html fragment, create nodes from it - else if (fragmentRE.test(selector)) - dom = zepto.fragment(selector.trim(), RegExp.$1, context), selector = null - // If there's a context, create a collection on that context first, and select - // nodes from there - else if (context !== undefined) return $(context).find(selector) - // And last but no least, if it's a CSS selector, use it to select nodes. - else dom = zepto.qsa(document, selector) - // create a new Zepto collection from the nodes found - return zepto.Z(dom, selector) - } - } - - // `$` will be the base `Zepto` object. When calling this - // function just call `$.zepto.init, which makes the implementation - // details of selecting nodes and creating Zepto collections - // patchable in plugins. - $ = function(selector, context){ - return zepto.init(selector, context) - } - - function extend(target, source, deep) { - for (key in source) - if (deep && (isPlainObject(source[key]) || isArray(source[key]))) { - if (isPlainObject(source[key]) && !isPlainObject(target[key])) - target[key] = {} - if (isArray(source[key]) && !isArray(target[key])) - target[key] = [] - extend(target[key], source[key], deep) - } - else if (source[key] !== undefined) target[key] = source[key] - } - - // Copy all but undefined properties from one or more - // objects to the `target` object. - $.extend = function(target){ - var deep, args = slice.call(arguments, 1) - if (typeof target == 'boolean') { - deep = target - target = args.shift() - } - args.forEach(function(arg){ extend(target, arg, deep) }) - return target - } - - // `$.zepto.qsa` is Zepto's CSS selector implementation which - // uses `document.querySelectorAll` and optimizes for some special cases, like `#id`. - // This method can be overriden in plugins. - zepto.qsa = function(element, selector){ - var found - return (isDocument(element) && idSelectorRE.test(selector)) ? - ( (found = element.getElementById(RegExp.$1)) ? [found] : [] ) : - (element.nodeType !== 1 && element.nodeType !== 9) ? [] : - slice.call( - classSelectorRE.test(selector) ? element.getElementsByClassName(RegExp.$1) : - tagSelectorRE.test(selector) ? element.getElementsByTagName(selector) : - element.querySelectorAll(selector) - ) - } - - function filtered(nodes, selector) { - return selector === undefined ? $(nodes) : $(nodes).filter(selector) - } - - $.contains = function(parent, node) { - return parent !== node && parent.contains(node) - } - - function funcArg(context, arg, idx, payload) { - return isFunction(arg) ? arg.call(context, idx, payload) : arg - } - - function setAttribute(node, name, value) { - value == null ? node.removeAttribute(name) : node.setAttribute(name, value) - } - - // access className property while respecting SVGAnimatedString - function className(node, value){ - var klass = node.className, - svg = klass && klass.baseVal !== undefined - - if (value === undefined) return svg ? klass.baseVal : klass - svg ? (klass.baseVal = value) : (node.className = value) - } - - // "true" => true - // "false" => false - // "null" => null - // "42" => 42 - // "42.5" => 42.5 - // JSON => parse if valid - // String => self - function deserializeValue(value) { - var num - try { - return value ? - value == "true" || - ( value == "false" ? false : - value == "null" ? null : - !isNaN(num = Number(value)) ? num : - /^[\[\{]/.test(value) ? $.parseJSON(value) : - value ) - : value - } catch(e) { - return value - } - } - - $.type = type - $.isFunction = isFunction - $.isWindow = isWindow - $.isArray = isArray - $.isPlainObject = isPlainObject - - $.isEmptyObject = function(obj) { - var name - for (name in obj) return false - return true - } - - $.inArray = function(elem, array, i){ - return emptyArray.indexOf.call(array, elem, i) - } - - $.camelCase = camelize - $.trim = function(str) { return str.trim() } - - // plugin compatibility - $.uuid = 0 - $.support = { } - $.expr = { } - - $.map = function(elements, callback){ - var value, values = [], i, key - if (likeArray(elements)) - for (i = 0; i < elements.length; i++) { - value = callback(elements[i], i) - if (value != null) values.push(value) - } - else - for (key in elements) { - value = callback(elements[key], key) - if (value != null) values.push(value) - } - return flatten(values) - } - - $.each = function(elements, callback){ - var i, key - if (likeArray(elements)) { - for (i = 0; i < elements.length; i++) - if (callback.call(elements[i], i, elements[i]) === false) return elements - } else { - for (key in elements) - if (callback.call(elements[key], key, elements[key]) === false) return elements - } - - return elements - } - - $.grep = function(elements, callback){ - return filter.call(elements, callback) - } - - if (window.JSON) $.parseJSON = JSON.parse - - // Populate the class2type map - $.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase() - }) - - // Define methods that will be available on all - // Zepto collections - $.fn = { - // Because a collection acts like an array - // copy over these useful array functions. - forEach: emptyArray.forEach, - reduce: emptyArray.reduce, - push: emptyArray.push, - sort: emptyArray.sort, - indexOf: emptyArray.indexOf, - concat: emptyArray.concat, - - // `map` and `slice` in the jQuery API work differently - // from their array counterparts - map: function(fn){ - return $($.map(this, function(el, i){ return fn.call(el, i, el) })) - }, - slice: function(){ - return $(slice.apply(this, arguments)) - }, - - ready: function(callback){ - if (readyRE.test(document.readyState)) callback($) - else document.addEventListener('DOMContentLoaded', function(){ callback($) }, false) - return this - }, - get: function(idx){ - return idx === undefined ? slice.call(this) : this[idx >= 0 ? idx : idx + this.length] - }, - toArray: function(){ return this.get() }, - size: function(){ - return this.length - }, - remove: function(){ - return this.each(function(){ - if (this.parentNode != null) - this.parentNode.removeChild(this) - }) - }, - each: function(callback){ - emptyArray.every.call(this, function(el, idx){ - return callback.call(el, idx, el) !== false - }) - return this - }, - filter: function(selector){ - if (isFunction(selector)) return this.not(this.not(selector)) - return $(filter.call(this, function(element){ - return zepto.matches(element, selector) - })) - }, - add: function(selector,context){ - return $(uniq(this.concat($(selector,context)))) - }, - is: function(selector){ - return this.length > 0 && zepto.matches(this[0], selector) - }, - not: function(selector){ - var nodes=[] - if (isFunction(selector) && selector.call !== undefined) - this.each(function(idx){ - if (!selector.call(this,idx)) nodes.push(this) - }) - else { - var excludes = typeof selector == 'string' ? this.filter(selector) : - (likeArray(selector) && isFunction(selector.item)) ? slice.call(selector) : $(selector) - this.forEach(function(el){ - if (excludes.indexOf(el) < 0) nodes.push(el) - }) - } - return $(nodes) - }, - has: function(selector){ - return this.filter(function(){ - return isObject(selector) ? - $.contains(this, selector) : - $(this).find(selector).size() - }) - }, - eq: function(idx){ - return idx === -1 ? this.slice(idx) : this.slice(idx, + idx + 1) - }, - first: function(){ - var el = this[0] - return el && !isObject(el) ? el : $(el) - }, - last: function(){ - var el = this[this.length - 1] - return el && !isObject(el) ? el : $(el) - }, - find: function(selector){ - var result, $this = this - if (typeof selector == 'object') - result = $(selector).filter(function(){ - var node = this - return emptyArray.some.call($this, function(parent){ - return $.contains(parent, node) - }) - }) - else if (this.length == 1) result = $(zepto.qsa(this[0], selector)) - else result = this.map(function(){ return zepto.qsa(this, selector) }) - return result - }, - closest: function(selector, context){ - var node = this[0], collection = false - if (typeof selector == 'object') collection = $(selector) - while (node && !(collection ? collection.indexOf(node) >= 0 : zepto.matches(node, selector))) - node = node !== context && !isDocument(node) && node.parentNode - return $(node) - }, - parents: function(selector){ - var ancestors = [], nodes = this - while (nodes.length > 0) - nodes = $.map(nodes, function(node){ - if ((node = node.parentNode) && !isDocument(node) && ancestors.indexOf(node) < 0) { - ancestors.push(node) - return node - } - }) - return filtered(ancestors, selector) - }, - parent: function(selector){ - return filtered(uniq(this.pluck('parentNode')), selector) - }, - children: function(selector){ - return filtered(this.map(function(){ return children(this) }), selector) - }, - contents: function() { - return this.map(function() { return slice.call(this.childNodes) }) - }, - siblings: function(selector){ - return filtered(this.map(function(i, el){ - return filter.call(children(el.parentNode), function(child){ return child!==el }) - }), selector) - }, - empty: function(){ - return this.each(function(){ this.innerHTML = '' }) - }, - // `pluck` is borrowed from Prototype.js - pluck: function(property){ - return $.map(this, function(el){ return el[property] }) - }, - show: function(){ - return this.each(function(){ - this.style.display == "none" && (this.style.display = null) - if (getComputedStyle(this, '').getPropertyValue("display") == "none") - this.style.display = defaultDisplay(this.nodeName) - }) - }, - replaceWith: function(newContent){ - return this.before(newContent).remove() - }, - wrap: function(structure){ - var func = isFunction(structure) - if (this[0] && !func) - var dom = $(structure).get(0), - clone = dom.parentNode || this.length > 1 - - return this.each(function(index){ - $(this).wrapAll( - func ? structure.call(this, index) : - clone ? dom.cloneNode(true) : dom - ) - }) - }, - wrapAll: function(structure){ - if (this[0]) { - $(this[0]).before(structure = $(structure)) - var children - // drill down to the inmost element - while ((children = structure.children()).length) structure = children.first() - $(structure).append(this) - } - return this - }, - wrapInner: function(structure){ - var func = isFunction(structure) - return this.each(function(index){ - var self = $(this), contents = self.contents(), - dom = func ? structure.call(this, index) : structure - contents.length ? contents.wrapAll(dom) : self.append(dom) - }) - }, - unwrap: function(){ - this.parent().each(function(){ - $(this).replaceWith($(this).children()) - }) - return this - }, - clone: function(){ - return this.map(function(){ return this.cloneNode(true) }) - }, - hide: function(){ - return this.css("display", "none") - }, - toggle: function(setting){ - return this.each(function(){ - var el = $(this) - ;(setting === undefined ? el.css("display") == "none" : setting) ? el.show() : el.hide() - }) - }, - prev: function(selector){ return $(this.pluck('previousElementSibling')).filter(selector || '*') }, - next: function(selector){ return $(this.pluck('nextElementSibling')).filter(selector || '*') }, - html: function(html){ - return html === undefined ? - (this.length > 0 ? this[0].innerHTML : null) : - this.each(function(idx){ - var originHtml = this.innerHTML - $(this).empty().append( funcArg(this, html, idx, originHtml) ) - }) - }, - text: function(text){ - return text === undefined ? - (this.length > 0 ? this[0].textContent : null) : - this.each(function(){ this.textContent = text }) - }, - attr: function(name, value){ - var result - return (typeof name == 'string' && value === undefined) ? - (this.length == 0 || this[0].nodeType !== 1 ? undefined : - (name == 'value' && this[0].nodeName == 'INPUT') ? this.val() : - (!(result = this[0].getAttribute(name)) && name in this[0]) ? this[0][name] : result - ) : - this.each(function(idx){ - if (this.nodeType !== 1) return - if (isObject(name)) for (key in name) setAttribute(this, key, name[key]) - else setAttribute(this, name, funcArg(this, value, idx, this.getAttribute(name))) - }) - }, - removeAttr: function(name){ - return this.each(function(){ this.nodeType === 1 && setAttribute(this, name) }) - }, - prop: function(name, value){ - return (value === undefined) ? - (this[0] && this[0][name]) : - this.each(function(idx){ - this[name] = funcArg(this, value, idx, this[name]) - }) - }, - data: function(name, value){ - var data = this.attr('data-' + dasherize(name), value) - return data !== null ? deserializeValue(data) : undefined - }, - val: function(value){ - return (value === undefined) ? - (this[0] && (this[0].multiple ? - $(this[0]).find('option').filter(function(o){ return this.selected }).pluck('value') : - this[0].value) - ) : - this.each(function(idx){ - this.value = funcArg(this, value, idx, this.value) - }) - }, - offset: function(coordinates){ - if (coordinates) return this.each(function(index){ - var $this = $(this), - coords = funcArg(this, coordinates, index, $this.offset()), - parentOffset = $this.offsetParent().offset(), - props = { - top: coords.top - parentOffset.top, - left: coords.left - parentOffset.left - } - - if ($this.css('position') == 'static') props['position'] = 'relative' - $this.css(props) - }) - if (this.length==0) return null - var obj = this[0].getBoundingClientRect() - return { - left: obj.left + window.pageXOffset, - top: obj.top + window.pageYOffset, - width: Math.round(obj.width), - height: Math.round(obj.height) - } - }, - css: function(property, value){ - if (arguments.length < 2 && typeof property == 'string') - return this[0] && (this[0].style[camelize(property)] || getComputedStyle(this[0], '').getPropertyValue(property)) - - var css = '' - if (type(property) == 'string') { - if (!value && value !== 0) - this.each(function(){ this.style.removeProperty(dasherize(property)) }) - else - css = dasherize(property) + ":" + maybeAddPx(property, value) - } else { - for (key in property) - if (!property[key] && property[key] !== 0) - this.each(function(){ this.style.removeProperty(dasherize(key)) }) - else - css += dasherize(key) + ':' + maybeAddPx(key, property[key]) + ';' - } - - return this.each(function(){ this.style.cssText += ';' + css }) - }, - index: function(element){ - return element ? this.indexOf($(element)[0]) : this.parent().children().indexOf(this[0]) - }, - hasClass: function(name){ - return emptyArray.some.call(this, function(el){ - return this.test(className(el)) - }, classRE(name)) - }, - addClass: function(name){ - return this.each(function(idx){ - classList = [] - var cls = className(this), newName = funcArg(this, name, idx, cls) - newName.split(/\s+/g).forEach(function(klass){ - if (!$(this).hasClass(klass)) classList.push(klass) - }, this) - classList.length && className(this, cls + (cls ? " " : "") + classList.join(" ")) - }) - }, - removeClass: function(name){ - return this.each(function(idx){ - if (name === undefined) return className(this, '') - classList = className(this) - funcArg(this, name, idx, classList).split(/\s+/g).forEach(function(klass){ - classList = classList.replace(classRE(klass), " ") - }) - className(this, classList.trim()) - }) - }, - toggleClass: function(name, when){ - return this.each(function(idx){ - var $this = $(this), names = funcArg(this, name, idx, className(this)) - names.split(/\s+/g).forEach(function(klass){ - (when === undefined ? !$this.hasClass(klass) : when) ? - $this.addClass(klass) : $this.removeClass(klass) - }) - }) - }, - scrollTop: function(){ - if (!this.length) return - return ('scrollTop' in this[0]) ? this[0].scrollTop : this[0].scrollY - }, - position: function() { - if (!this.length) return - - var elem = this[0], - // Get *real* offsetParent - offsetParent = this.offsetParent(), - // Get correct offsets - offset = this.offset(), - parentOffset = rootNodeRE.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset() - - // Subtract element margins - // note: when an element has margin: auto the offsetLeft and marginLeft - // are the same in Safari causing offset.left to incorrectly be 0 - offset.top -= parseFloat( $(elem).css('margin-top') ) || 0 - offset.left -= parseFloat( $(elem).css('margin-left') ) || 0 - - // Add offsetParent borders - parentOffset.top += parseFloat( $(offsetParent[0]).css('border-top-width') ) || 0 - parentOffset.left += parseFloat( $(offsetParent[0]).css('border-left-width') ) || 0 - - // Subtract the two offsets - return { - top: offset.top - parentOffset.top, - left: offset.left - parentOffset.left - } - }, - offsetParent: function() { - return this.map(function(){ - var parent = this.offsetParent || document.body - while (parent && !rootNodeRE.test(parent.nodeName) && $(parent).css("position") == "static") - parent = parent.offsetParent - return parent - }) - } - } - - // for now - $.fn.detach = $.fn.remove - - // Generate the `width` and `height` functions - ;['width', 'height'].forEach(function(dimension){ - $.fn[dimension] = function(value){ - var offset, el = this[0], - Dimension = dimension.replace(/./, function(m){ return m[0].toUpperCase() }) - if (value === undefined) return isWindow(el) ? el['inner' + Dimension] : - isDocument(el) ? el.documentElement['offset' + Dimension] : - (offset = this.offset()) && offset[dimension] - else return this.each(function(idx){ - el = $(this) - el.css(dimension, funcArg(this, value, idx, el[dimension]())) - }) - } - }) - - function traverseNode(node, fun) { - fun(node) - for (var key in node.childNodes) traverseNode(node.childNodes[key], fun) - } - - // Generate the `after`, `prepend`, `before`, `append`, - // `insertAfter`, `insertBefore`, `appendTo`, and `prependTo` methods. - adjacencyOperators.forEach(function(operator, operatorIndex) { - var inside = operatorIndex % 2 //=> prepend, append - - $.fn[operator] = function(){ - // arguments can be nodes, arrays of nodes, Zepto objects and HTML strings - var argType, nodes = $.map(arguments, function(arg) { - argType = type(arg) - return argType == "object" || argType == "array" || arg == null ? - arg : zepto.fragment(arg) - }), - parent, copyByClone = this.length > 1 - if (nodes.length < 1) return this - - return this.each(function(_, target){ - parent = inside ? target : target.parentNode - - // convert all methods to a "before" operation - target = operatorIndex == 0 ? target.nextSibling : - operatorIndex == 1 ? target.firstChild : - operatorIndex == 2 ? target : - null - - nodes.forEach(function(node){ - if (copyByClone) node = node.cloneNode(true) - else if (!parent) return $(node).remove() - - traverseNode(parent.insertBefore(node, target), function(el){ - if (el.nodeName != null && el.nodeName.toUpperCase() === 'SCRIPT' && - (!el.type || el.type === 'text/javascript') && !el.src) - window['eval'].call(window, el.innerHTML) - }) - }) - }) - } - - // after => insertAfter - // prepend => prependTo - // before => insertBefore - // append => appendTo - $.fn[inside ? operator+'To' : 'insert'+(operatorIndex ? 'Before' : 'After')] = function(html){ - $(html)[operator](this) - return this - } - }) - - zepto.Z.prototype = $.fn - - // Export internal API functions in the `$.zepto` namespace - zepto.uniq = uniq - zepto.deserializeValue = deserializeValue - $.zepto = zepto - - return $ -})() - -window.Zepto = Zepto -'$' in window || (window.$ = Zepto) - -;(function($){ - function detect(ua){ - var os = this.os = {}, browser = this.browser = {}, - webkit = ua.match(/WebKit\/([\d.]+)/), - android = ua.match(/(Android)\s+([\d.]+)/), - ipad = ua.match(/(iPad).*OS\s([\d_]+)/), - iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/), - webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/), - touchpad = webos && ua.match(/TouchPad/), - kindle = ua.match(/Kindle\/([\d.]+)/), - silk = ua.match(/Silk\/([\d._]+)/), - blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/), - bb10 = ua.match(/(BB10).*Version\/([\d.]+)/), - rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/), - playbook = ua.match(/PlayBook/), - chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/), - firefox = ua.match(/Firefox\/([\d.]+)/) - - // Todo: clean this up with a better OS/browser seperation: - // - discern (more) between multiple browsers on android - // - decide if kindle fire in silk mode is android or not - // - Firefox on Android doesn't specify the Android version - // - possibly devide in os, device and browser hashes - - if (browser.webkit = !!webkit) browser.version = webkit[1] - - if (android) os.android = true, os.version = android[2] - if (iphone) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.') - if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.') - if (webos) os.webos = true, os.version = webos[2] - if (touchpad) os.touchpad = true - if (blackberry) os.blackberry = true, os.version = blackberry[2] - if (bb10) os.bb10 = true, os.version = bb10[2] - if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2] - if (playbook) browser.playbook = true - if (kindle) os.kindle = true, os.version = kindle[1] - if (silk) browser.silk = true, browser.version = silk[1] - if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true - if (chrome) browser.chrome = true, browser.version = chrome[1] - if (firefox) browser.firefox = true, browser.version = firefox[1] - - os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) || (firefox && ua.match(/Tablet/))) - os.phone = !!(!os.tablet && (android || iphone || webos || blackberry || bb10 || - (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) || (firefox && ua.match(/Mobile/)))) - } - - detect.call($, navigator.userAgent) - // make available to unit tests - $.__detect = detect - -})(Zepto) - -;(function($){ - var $$ = $.zepto.qsa, handlers = {}, _zid = 1, specialEvents={}, - hover = { mouseenter: 'mouseover', mouseleave: 'mouseout' } - - specialEvents.click = specialEvents.mousedown = specialEvents.mouseup = specialEvents.mousemove = 'MouseEvents' - - function zid(element) { - return element._zid || (element._zid = _zid++) - } - function findHandlers(element, event, fn, selector) { - event = parse(event) - if (event.ns) var matcher = matcherFor(event.ns) - return (handlers[zid(element)] || []).filter(function(handler) { - return handler - && (!event.e || handler.e == event.e) - && (!event.ns || matcher.test(handler.ns)) - && (!fn || zid(handler.fn) === zid(fn)) - && (!selector || handler.sel == selector) - }) - } - function parse(event) { - var parts = ('' + event).split('.') - return {e: parts[0], ns: parts.slice(1).sort().join(' ')} - } - function matcherFor(ns) { - return new RegExp('(?:^| )' + ns.replace(' ', ' .* ?') + '(?: |$)') - } - - function eachEvent(events, fn, iterator){ - if ($.type(events) != "string") $.each(events, iterator) - else events.split(/\s/).forEach(function(type){ iterator(type, fn) }) - } - - function eventCapture(handler, captureSetting) { - return handler.del && - (handler.e == 'focus' || handler.e == 'blur') || - !!captureSetting - } - - function realEvent(type) { - return hover[type] || type - } - - function add(element, events, fn, selector, getDelegate, capture){ - var id = zid(element), set = (handlers[id] || (handlers[id] = [])) - eachEvent(events, fn, function(event, fn){ - var handler = parse(event) - handler.fn = fn - handler.sel = selector - // emulate mouseenter, mouseleave - if (handler.e in hover) fn = function(e){ - var related = e.relatedTarget - if (!related || (related !== this && !$.contains(this, related))) - return handler.fn.apply(this, arguments) - } - handler.del = getDelegate && getDelegate(fn, event) - var callback = handler.del || fn - handler.proxy = function (e) { - var result = callback.apply(element, [e].concat(e.data)) - if (result === false) e.preventDefault(), e.stopPropagation() - return result - } - handler.i = set.length - set.push(handler) - element.addEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture)) - }) - } - function remove(element, events, fn, selector, capture){ - var id = zid(element) - eachEvent(events || '', fn, function(event, fn){ - findHandlers(element, event, fn, selector).forEach(function(handler){ - delete handlers[id][handler.i] - element.removeEventListener(realEvent(handler.e), handler.proxy, eventCapture(handler, capture)) - }) - }) - } - - $.event = { add: add, remove: remove } - - $.proxy = function(fn, context) { - if ($.isFunction(fn)) { - var proxyFn = function(){ return fn.apply(context, arguments) } - proxyFn._zid = zid(fn) - return proxyFn - } else if (typeof context == 'string') { - return $.proxy(fn[context], fn) - } else { - throw new TypeError("expected function") - } - } - - $.fn.bind = function(event, callback){ - return this.each(function(){ - add(this, event, callback) - }) - } - $.fn.unbind = function(event, callback){ - return this.each(function(){ - remove(this, event, callback) - }) - } - $.fn.one = function(event, callback){ - return this.each(function(i, element){ - add(this, event, callback, null, function(fn, type){ - return function(){ - var result = fn.apply(element, arguments) - remove(element, type, fn) - return result - } - }) - }) - } - - var returnTrue = function(){return true}, - returnFalse = function(){return false}, - ignoreProperties = /^([A-Z]|layer[XY]$)/, - eventMethods = { - preventDefault: 'isDefaultPrevented', - stopImmediatePropagation: 'isImmediatePropagationStopped', - stopPropagation: 'isPropagationStopped' - } - function createProxy(event) { - var key, proxy = { originalEvent: event } - for (key in event) - if (!ignoreProperties.test(key) && event[key] !== undefined) proxy[key] = event[key] - - $.each(eventMethods, function(name, predicate) { - proxy[name] = function(){ - this[predicate] = returnTrue - return event[name].apply(event, arguments) - } - proxy[predicate] = returnFalse - }) - return proxy - } - - // emulates the 'defaultPrevented' property for browsers that have none - function fix(event) { - if (!('defaultPrevented' in event)) { - event.defaultPrevented = false - var prevent = event.preventDefault - event.preventDefault = function() { - this.defaultPrevented = true - prevent.call(this) - } - } - } - - $.fn.delegate = function(selector, event, callback){ - return this.each(function(i, element){ - add(element, event, callback, selector, function(fn){ - return function(e){ - var evt, match = $(e.target).closest(selector, element).get(0) - if (match) { - evt = $.extend(createProxy(e), {currentTarget: match, liveFired: element}) - return fn.apply(match, [evt].concat([].slice.call(arguments, 1))) - } - } - }) - }) - } - $.fn.undelegate = function(selector, event, callback){ - return this.each(function(){ - remove(this, event, callback, selector) - }) - } - - $.fn.live = function(event, callback){ - $(document.body).delegate(this.selector, event, callback) - return this - } - $.fn.die = function(event, callback){ - $(document.body).undelegate(this.selector, event, callback) - return this - } - - $.fn.on = function(event, selector, callback){ - return !selector || $.isFunction(selector) ? - this.bind(event, selector || callback) : this.delegate(selector, event, callback) - } - $.fn.off = function(event, selector, callback){ - return !selector || $.isFunction(selector) ? - this.unbind(event, selector || callback) : this.undelegate(selector, event, callback) - } - - $.fn.trigger = function(event, data){ - if (typeof event == 'string' || $.isPlainObject(event)) event = $.Event(event) - fix(event) - event.data = data - return this.each(function(){ - // items in the collection might not be DOM elements - // (todo: possibly support events on plain old objects) - if('dispatchEvent' in this) this.dispatchEvent(event) - }) - } - - // triggers event handlers on current element just as if an event occurred, - // doesn't trigger an actual event, doesn't bubble - $.fn.triggerHandler = function(event, data){ - var e, result - this.each(function(i, element){ - e = createProxy(typeof event == 'string' ? $.Event(event) : event) - e.data = data - e.target = element - $.each(findHandlers(element, event.type || event), function(i, handler){ - result = handler.proxy(e) - if (e.isImmediatePropagationStopped()) return false - }) - }) - return result - } - - // shortcut methods for `.bind(event, fn)` for each event type - ;('focusin focusout load resize scroll unload click dblclick '+ - 'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave '+ - 'change select keydown keypress keyup error').split(' ').forEach(function(event) { - $.fn[event] = function(callback) { - return callback ? - this.bind(event, callback) : - this.trigger(event) - } - }) - - ;['focus', 'blur'].forEach(function(name) { - $.fn[name] = function(callback) { - if (callback) this.bind(name, callback) - else this.each(function(){ - try { this[name]() } - catch(e) {} - }) - return this - } - }) - - $.Event = function(type, props) { - if (typeof type != 'string') props = type, type = props.type - var event = document.createEvent(specialEvents[type] || 'Events'), bubbles = true - if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name]) - event.initEvent(type, bubbles, true, null, null, null, null, null, null, null, null, null, null, null, null) - event.isDefaultPrevented = function(){ return this.defaultPrevented } - return event - } - -})(Zepto) - -;(function($){ - var jsonpID = 0, - document = window.document, - key, - name, - rscript = /)<[^<]*)*<\/script>/gi, - scriptTypeRE = /^(?:text|application)\/javascript/i, - xmlTypeRE = /^(?:text|application)\/xml/i, - jsonType = 'application/json', - htmlType = 'text/html', - blankRE = /^\s*$/ - - // trigger a custom event and return false if it was cancelled - function triggerAndReturn(context, eventName, data) { - var event = $.Event(eventName) - $(context).trigger(event, data) - return !event.defaultPrevented - } - - // trigger an Ajax "global" event - function triggerGlobal(settings, context, eventName, data) { - if (settings.global) return triggerAndReturn(context || document, eventName, data) - } - - // Number of active Ajax requests - $.active = 0 - - function ajaxStart(settings) { - if (settings.global && $.active++ === 0) triggerGlobal(settings, null, 'ajaxStart') - } - function ajaxStop(settings) { - if (settings.global && !(--$.active)) triggerGlobal(settings, null, 'ajaxStop') - } - - // triggers an extra global event "ajaxBeforeSend" that's like "ajaxSend" but cancelable - function ajaxBeforeSend(xhr, settings) { - var context = settings.context - if (settings.beforeSend.call(context, xhr, settings) === false || - triggerGlobal(settings, context, 'ajaxBeforeSend', [xhr, settings]) === false) - return false - - triggerGlobal(settings, context, 'ajaxSend', [xhr, settings]) - } - function ajaxSuccess(data, xhr, settings) { - var context = settings.context, status = 'success' - settings.success.call(context, data, status, xhr) - triggerGlobal(settings, context, 'ajaxSuccess', [xhr, settings, data]) - ajaxComplete(status, xhr, settings) - } - // type: "timeout", "error", "abort", "parsererror" - function ajaxError(error, type, xhr, settings) { - var context = settings.context - settings.error.call(context, xhr, type, error) - triggerGlobal(settings, context, 'ajaxError', [xhr, settings, error]) - ajaxComplete(type, xhr, settings) - } - // status: "success", "notmodified", "error", "timeout", "abort", "parsererror" - function ajaxComplete(status, xhr, settings) { - var context = settings.context - settings.complete.call(context, xhr, status) - triggerGlobal(settings, context, 'ajaxComplete', [xhr, settings]) - ajaxStop(settings) - } - - // Empty function, used as default callback - function empty() {} - - $.ajaxJSONP = function(options){ - if (!('type' in options)) return $.ajax(options) - - var callbackName = 'jsonp' + (++jsonpID), - script = document.createElement('script'), - cleanup = function() { - clearTimeout(abortTimeout) - $(script).remove() - delete window[callbackName] - }, - abort = function(type){ - cleanup() - // In case of manual abort or timeout, keep an empty function as callback - // so that the SCRIPT tag that eventually loads won't result in an error. - if (!type || type == 'timeout') window[callbackName] = empty - ajaxError(null, type || 'abort', xhr, options) - }, - xhr = { abort: abort }, abortTimeout - - if (ajaxBeforeSend(xhr, options) === false) { - abort('abort') - return false - } - - window[callbackName] = function(data){ - cleanup() - ajaxSuccess(data, xhr, options) - } - - script.onerror = function() { abort('error') } - - script.src = options.url.replace(/=\?/, '=' + callbackName) - $('head').append(script) - - if (options.timeout > 0) abortTimeout = setTimeout(function(){ - abort('timeout') - }, options.timeout) - - return xhr - } - - $.ajaxSettings = { - // Default type of request - type: 'GET', - // Callback that is executed before request - beforeSend: empty, - // Callback that is executed if the request succeeds - success: empty, - // Callback that is executed the the server drops error - error: empty, - // Callback that is executed on request complete (both: error and success) - complete: empty, - // The context for the callbacks - context: null, - // Whether to trigger "global" Ajax events - global: true, - // Transport - xhr: function () { - return new window.XMLHttpRequest() - }, - // MIME types mapping - accepts: { - script: 'text/javascript, application/javascript', - json: jsonType, - xml: 'application/xml, text/xml', - html: htmlType, - text: 'text/plain' - }, - // Whether the request is to another domain - crossDomain: false, - // Default timeout - timeout: 0, - // Whether data should be serialized to string - processData: true, - // Whether the browser should be allowed to cache GET responses - cache: true, - } - - function mimeToDataType(mime) { - if (mime) mime = mime.split(';', 2)[0] - return mime && ( mime == htmlType ? 'html' : - mime == jsonType ? 'json' : - scriptTypeRE.test(mime) ? 'script' : - xmlTypeRE.test(mime) && 'xml' ) || 'text' - } - - function appendQuery(url, query) { - return (url + '&' + query).replace(/[&?]{1,2}/, '?') - } - - // serialize payload and append it to the URL for GET requests - function serializeData(options) { - if (options.processData && options.data && $.type(options.data) != "string") - options.data = $.param(options.data, options.traditional) - if (options.data && (!options.type || options.type.toUpperCase() == 'GET')) - options.url = appendQuery(options.url, options.data) - } - - $.ajax = function(options){ - var settings = $.extend({}, options || {}) - for (key in $.ajaxSettings) if (settings[key] === undefined) settings[key] = $.ajaxSettings[key] - - ajaxStart(settings) - - if (!settings.crossDomain) settings.crossDomain = /^([\w-]+:)?\/\/([^\/]+)/.test(settings.url) && - RegExp.$2 != window.location.host - - if (!settings.url) settings.url = window.location.toString() - serializeData(settings) - if (settings.cache === false) settings.url = appendQuery(settings.url, '_=' + Date.now()) - - var dataType = settings.dataType, hasPlaceholder = /=\?/.test(settings.url) - if (dataType == 'jsonp' || hasPlaceholder) { - if (!hasPlaceholder) settings.url = appendQuery(settings.url, 'callback=?') - return $.ajaxJSONP(settings) - } - - var mime = settings.accepts[dataType], - baseHeaders = { }, - protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol, - xhr = settings.xhr(), abortTimeout - - if (!settings.crossDomain) baseHeaders['X-Requested-With'] = 'XMLHttpRequest' - if (mime) { - baseHeaders['Accept'] = mime - if (mime.indexOf(',') > -1) mime = mime.split(',', 2)[0] - xhr.overrideMimeType && xhr.overrideMimeType(mime) - } - if (settings.contentType || (settings.contentType !== false && settings.data && settings.type.toUpperCase() != 'GET')) - baseHeaders['Content-Type'] = (settings.contentType || 'application/x-www-form-urlencoded') - settings.headers = $.extend(baseHeaders, settings.headers || {}) - - xhr.onreadystatechange = function(){ - if (xhr.readyState == 4) { - xhr.onreadystatechange = empty; - clearTimeout(abortTimeout) - var result, error = false - if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304 || (xhr.status == 0 && protocol == 'file:')) { - dataType = dataType || mimeToDataType(xhr.getResponseHeader('content-type')) - result = xhr.responseText - - try { - // http://perfectionkills.com/global-eval-what-are-the-options/ - if (dataType == 'script') (1,eval)(result) - else if (dataType == 'xml') result = xhr.responseXML - else if (dataType == 'json') result = blankRE.test(result) ? null : $.parseJSON(result) - } catch (e) { error = e } - - if (error) ajaxError(error, 'parsererror', xhr, settings) - else ajaxSuccess(result, xhr, settings) - } else { - ajaxError(null, xhr.status ? 'error' : 'abort', xhr, settings) - } - } - } - - var async = 'async' in settings ? settings.async : true - xhr.open(settings.type, settings.url, async) - - for (name in settings.headers) xhr.setRequestHeader(name, settings.headers[name]) - - if (ajaxBeforeSend(xhr, settings) === false) { - xhr.abort() - return false - } - - if (settings.timeout > 0) abortTimeout = setTimeout(function(){ - xhr.onreadystatechange = empty - xhr.abort() - ajaxError(null, 'timeout', xhr, settings) - }, settings.timeout) - - // avoid sending empty string (#319) - xhr.send(settings.data ? settings.data : null) - return xhr - } - - // handle optional data/success arguments - function parseArguments(url, data, success, dataType) { - var hasData = !$.isFunction(data) - return { - url: url, - data: hasData ? data : undefined, - success: !hasData ? data : $.isFunction(success) ? success : undefined, - dataType: hasData ? dataType || success : success - } - } - - $.get = function(url, data, success, dataType){ - return $.ajax(parseArguments.apply(null, arguments)) - } - - $.post = function(url, data, success, dataType){ - var options = parseArguments.apply(null, arguments) - options.type = 'POST' - return $.ajax(options) - } - - $.getJSON = function(url, data, success){ - var options = parseArguments.apply(null, arguments) - options.dataType = 'json' - return $.ajax(options) - } - - $.fn.load = function(url, data, success){ - if (!this.length) return this - var self = this, parts = url.split(/\s/), selector, - options = parseArguments(url, data, success), - callback = options.success - if (parts.length > 1) options.url = parts[0], selector = parts[1] - options.success = function(response){ - self.html(selector ? - $('
        ').html(response.replace(rscript, "")).find(selector) - : response) - callback && callback.apply(self, arguments) - } - $.ajax(options) - return this - } - - var escape = encodeURIComponent - - function serialize(params, obj, traditional, scope){ - var type, array = $.isArray(obj) - $.each(obj, function(key, value) { - type = $.type(value) - if (scope) key = traditional ? scope : scope + '[' + (array ? '' : key) + ']' - // handle data in serializeArray() format - if (!scope && array) params.add(value.name, value.value) - // recurse into nested objects - else if (type == "array" || (!traditional && type == "object")) - serialize(params, value, traditional, key) - else params.add(key, value) - }) - } - - $.param = function(obj, traditional){ - var params = [] - params.add = function(k, v){ this.push(escape(k) + '=' + escape(v)) } - serialize(params, obj, traditional) - return params.join('&').replace(/%20/g, '+') - } -})(Zepto) - -;(function ($) { - $.fn.serializeArray = function () { - var result = [], el - $( Array.prototype.slice.call(this.get(0).elements) ).each(function () { - el = $(this) - var type = el.attr('type') - if (this.nodeName.toLowerCase() != 'fieldset' && - !this.disabled && type != 'submit' && type != 'reset' && type != 'button' && - ((type != 'radio' && type != 'checkbox') || this.checked)) - result.push({ - name: el.attr('name'), - value: el.val() - }) - }) - return result - } - - $.fn.serialize = function () { - var result = [] - this.serializeArray().forEach(function (elm) { - result.push( encodeURIComponent(elm.name) + '=' + encodeURIComponent(elm.value) ) - }) - return result.join('&') - } - - $.fn.submit = function (callback) { - if (callback) this.bind('submit', callback) - else if (this.length) { - var event = $.Event('submit') - this.eq(0).trigger(event) - if (!event.defaultPrevented) this.get(0).submit() - } - return this - } - -})(Zepto) - -;(function($, undefined){ - var prefix = '', eventPrefix, endEventName, endAnimationName, - vendors = { Webkit: 'webkit', Moz: '', O: 'o', ms: 'MS' }, - document = window.document, testEl = document.createElement('div'), - supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i, - transform, - transitionProperty, transitionDuration, transitionTiming, - animationName, animationDuration, animationTiming, - cssReset = {} - - function dasherize(str) { return downcase(str.replace(/([a-z])([A-Z])/, '$1-$2')) } - function downcase(str) { return str.toLowerCase() } - function normalizeEvent(name) { return eventPrefix ? eventPrefix + name : downcase(name) } - - $.each(vendors, function(vendor, event){ - if (testEl.style[vendor + 'TransitionProperty'] !== undefined) { - prefix = '-' + downcase(vendor) + '-' - eventPrefix = event - return false - } - }) - - transform = prefix + 'transform' - cssReset[transitionProperty = prefix + 'transition-property'] = - cssReset[transitionDuration = prefix + 'transition-duration'] = - cssReset[transitionTiming = prefix + 'transition-timing-function'] = - cssReset[animationName = prefix + 'animation-name'] = - cssReset[animationDuration = prefix + 'animation-duration'] = - cssReset[animationTiming = prefix + 'animation-timing-function'] = '' - - $.fx = { - off: (eventPrefix === undefined && testEl.style.transitionProperty === undefined), - speeds: { _default: 400, fast: 200, slow: 600 }, - cssPrefix: prefix, - transitionEnd: normalizeEvent('TransitionEnd'), - animationEnd: normalizeEvent('AnimationEnd') - } - - $.fn.animate = function(properties, duration, ease, callback){ - if ($.isPlainObject(duration)) - ease = duration.easing, callback = duration.complete, duration = duration.duration - if (duration) duration = (typeof duration == 'number' ? duration : - ($.fx.speeds[duration] || $.fx.speeds._default)) / 1000 - return this.anim(properties, duration, ease, callback) - } - - $.fn.anim = function(properties, duration, ease, callback){ - var key, cssValues = {}, cssProperties, transforms = '', - that = this, wrappedCallback, endEvent = $.fx.transitionEnd - - if (duration === undefined) duration = 0.4 - if ($.fx.off) duration = 0 - - if (typeof properties == 'string') { - // keyframe animation - cssValues[animationName] = properties - cssValues[animationDuration] = duration + 's' - cssValues[animationTiming] = (ease || 'linear') - endEvent = $.fx.animationEnd - } else { - cssProperties = [] - // CSS transitions - for (key in properties) - if (supportedTransforms.test(key)) transforms += key + '(' + properties[key] + ') ' - else cssValues[key] = properties[key], cssProperties.push(dasherize(key)) - - if (transforms) cssValues[transform] = transforms, cssProperties.push(transform) - if (duration > 0 && typeof properties === 'object') { - cssValues[transitionProperty] = cssProperties.join(', ') - cssValues[transitionDuration] = duration + 's' - cssValues[transitionTiming] = (ease || 'linear') - } - } - - wrappedCallback = function(event){ - if (typeof event !== 'undefined') { - if (event.target !== event.currentTarget) return // makes sure the event didn't bubble from "below" - $(event.target).unbind(endEvent, wrappedCallback) - } - $(this).css(cssReset) - callback && callback.call(this) - } - if (duration > 0) this.bind(endEvent, wrappedCallback) - - // trigger page reflow so new elements can animate - this.size() && this.get(0).clientLeft - - this.css(cssValues) - - if (duration <= 0) setTimeout(function() { - that.each(function(){ wrappedCallback.call(this) }) - }, 0) - - return this - } - - testEl = null -})(Zepto) - -// Zepto.js -// (c) 2010-2012 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. - -;(function($, undefined){ - var document = window.document, docElem = document.documentElement, - origShow = $.fn.show, origHide = $.fn.hide, origToggle = $.fn.toggle - - function anim(el, speed, opacity, scale, callback) { - if (typeof speed == 'function' && !callback) callback = speed, speed = undefined - var props = { opacity: opacity } - if (scale) { - props.scale = scale - el.css($.fx.cssPrefix + 'transform-origin', '0 0') - } - return el.animate(props, speed, null, callback) - } - - function hide(el, speed, scale, callback) { - return anim(el, speed, 0, scale, function(){ - origHide.call($(this)) - callback && callback.call(this) - }) - } - - $.fn.show = function(speed, callback) { - origShow.call(this) - if (speed === undefined) speed = 0 - else this.css('opacity', 0) - return anim(this, speed, 1, '1,1', callback) - } - - $.fn.hide = function(speed, callback) { - if (speed === undefined) return origHide.call(this) - else return hide(this, speed, '0,0', callback) - } - - $.fn.toggle = function(speed, callback) { - if (speed === undefined || typeof speed == 'boolean') - return origToggle.call(this, speed) - else return this.each(function(){ - var el = $(this) - el[el.css('display') == 'none' ? 'show' : 'hide'](speed, callback) - }) - } - - $.fn.fadeTo = function(speed, opacity, callback) { - return anim(this, speed, opacity, null, callback) - } - - $.fn.fadeIn = function(speed, callback) { - var target = this.css('opacity') - if (target > 0) this.css('opacity', 0) - else target = 1 - return origShow.call(this).fadeTo(speed, target, callback) - } - - $.fn.fadeOut = function(speed, callback) { - return hide(this, speed, null, callback) - } - - $.fn.fadeToggle = function(speed, callback) { - return this.each(function(){ - var el = $(this) - el[ - (el.css('opacity') == 0 || el.css('display') == 'none') ? 'fadeIn' : 'fadeOut' - ](speed, callback) - }) - } - -})(Zepto) - -// Zepto.js -// (c) 2010-2012 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. - -;(function($){ - var cache = [], timeout - - $.fn.remove = function(){ - return this.each(function(){ - if(this.parentNode){ - if(this.tagName === 'IMG'){ - cache.push(this) - this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=' - if (timeout) clearTimeout(timeout) - timeout = setTimeout(function(){ cache = [] }, 60000) - } - this.parentNode.removeChild(this) - } - }) - } -})(Zepto) - -// Zepto.js -// (c) 2010-2012 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. - -// The following code is heavily inspired by jQuery's $.fn.data() - -;(function($) { - var data = {}, dataAttr = $.fn.data, camelize = $.camelCase, - exp = $.expando = 'Zepto' + (+new Date()) - - // Get value from node: - // 1. first try key as given, - // 2. then try camelized key, - // 3. fall back to reading "data-*" attribute. - function getData(node, name) { - var id = node[exp], store = id && data[id] - if (name === undefined) return store || setData(node) - else { - if (store) { - if (name in store) return store[name] - var camelName = camelize(name) - if (camelName in store) return store[camelName] - } - return dataAttr.call($(node), name) - } - } - - // Store value under camelized key on node - function setData(node, name, value) { - var id = node[exp] || (node[exp] = ++$.uuid), - store = data[id] || (data[id] = attributeData(node)) - if (name !== undefined) store[camelize(name)] = value - return store - } - - // Read all "data-*" attributes from a node - function attributeData(node) { - var store = {} - $.each(node.attributes, function(i, attr){ - if (attr.name.indexOf('data-') == 0) - store[camelize(attr.name.replace('data-', ''))] = - $.zepto.deserializeValue(attr.value) - }) - return store - } - - $.fn.data = function(name, value) { - return value === undefined ? - // set multiple values via object - $.isPlainObject(name) ? - this.each(function(i, node){ - $.each(name, function(key, value){ setData(node, key, value) }) - }) : - // get value from first element - this.length == 0 ? undefined : getData(this[0], name) : - // set value on all elements - this.each(function(){ setData(this, name, value) }) - } - - $.fn.removeData = function(names) { - if (typeof names == 'string') names = names.split(/\s+/) - return this.each(function(){ - var id = this[exp], store = id && data[id] - if (store) $.each(names, function(){ delete store[camelize(this)] }) - }) - } -})(Zepto) - -;(function($){ - var zepto = $.zepto, oldQsa = zepto.qsa, oldMatches = zepto.matches - - function visible(elem){ - elem = $(elem) - return !!(elem.width() || elem.height()) && elem.css("display") !== "none" - } - - // Implements a subset from: - // http://api.jquery.com/category/selectors/jquery-selector-extensions/ - // - // Each filter function receives the current index, all nodes in the - // considered set, and a value if there were parentheses. The value - // of `this` is the node currently being considered. The function returns the - // resulting node(s), null, or undefined. - // - // Complex selectors are not supported: - // li:has(label:contains("foo")) + li:has(label:contains("bar")) - // ul.inner:first > li - var filters = $.expr[':'] = { - visible: function(){ if (visible(this)) return this }, - hidden: function(){ if (!visible(this)) return this }, - selected: function(){ if (this.selected) return this }, - checked: function(){ if (this.checked) return this }, - parent: function(){ return this.parentNode }, - first: function(idx){ if (idx === 0) return this }, - last: function(idx, nodes){ if (idx === nodes.length - 1) return this }, - eq: function(idx, _, value){ if (idx === value) return this }, - contains: function(idx, _, text){ if ($(this).text().indexOf(text) > -1) return this }, - has: function(idx, _, sel){ if (zepto.qsa(this, sel).length) return this } - } - - var filterRe = new RegExp('(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*'), - childRe = /^\s*>/, - classTag = 'Zepto' + (+new Date()) - - function process(sel, fn) { - // quote the hash in `a[href^=#]` expression - sel = sel.replace(/=#\]/g, '="#"]') - var filter, arg, match = filterRe.exec(sel) - if (match && match[2] in filters) { - filter = filters[match[2]], arg = match[3] - sel = match[1] - if (arg) { - var num = Number(arg) - if (isNaN(num)) arg = arg.replace(/^["']|["']$/g, '') - else arg = num - } - } - return fn(sel, filter, arg) - } - - zepto.qsa = function(node, selector) { - return process(selector, function(sel, filter, arg){ - try { - var taggedParent - if (!sel && filter) sel = '*' - else if (childRe.test(sel)) - // support "> *" child queries by tagging the parent node with a - // unique class and prepending that classname onto the selector - taggedParent = $(node).addClass(classTag), sel = '.'+classTag+' '+sel - - var nodes = oldQsa(node, sel) - } catch(e) { - console.error('error performing selector: %o', selector) - throw e - } finally { - if (taggedParent) taggedParent.removeClass(classTag) - } - return !filter ? nodes : - zepto.uniq($.map(nodes, function(n, i){ return filter.call(n, i, nodes, arg) })) - }) - } - - zepto.matches = function(node, selector){ - return process(selector, function(sel, filter, arg){ - return (!sel || oldMatches(node, sel)) && - (!filter || filter.call(node, null, arg) === node) - }) - } -})(Zepto) - -// Zepto.js -// (c) 2010-2012 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. - -;(function($){ - $.fn.end = function(){ - return this.prevObject || $() - } - - $.fn.andSelf = function(){ - return this.add(this.prevObject || $()) - } - - 'filter,add,not,eq,first,last,find,closest,parents,parent,children,siblings'.split(',').forEach(function(property){ - var fn = $.fn[property] - $.fn[property] = function(){ - var ret = fn.apply(this, arguments) - ret.prevObject = this - return ret - } - }) -})(Zepto) - -// Zepto.js -// (c) 2010-2012 Thomas Fuchs -// Zepto.js may be freely distributed under the MIT license. - -;(function($){ - var touch = {}, - touchTimeout, tapTimeout, swipeTimeout, - longTapDelay = 750, longTapTimeout - - function parentIfText(node) { - return 'tagName' in node ? node : node.parentNode - } - - function swipeDirection(x1, x2, y1, y2) { - var xDelta = Math.abs(x1 - x2), yDelta = Math.abs(y1 - y2) - return xDelta >= yDelta ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down') - } - - function longTap() { - longTapTimeout = null - if (touch.last) { - touch.el.trigger('longTap') - touch = {} - } - } - - function cancelLongTap() { - if (longTapTimeout) clearTimeout(longTapTimeout) - longTapTimeout = null - } - - function cancelAll() { - if (touchTimeout) clearTimeout(touchTimeout) - if (tapTimeout) clearTimeout(tapTimeout) - if (swipeTimeout) clearTimeout(swipeTimeout) - if (longTapTimeout) clearTimeout(longTapTimeout) - touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null - touch = {} - } - - $(document).ready(function(){ - var now, delta - - $(document.body) - .bind('touchstart', function(e){ - now = Date.now() - delta = now - (touch.last || now) - touch.el = $(parentIfText(e.touches[0].target)) - touchTimeout && clearTimeout(touchTimeout) - touch.x1 = e.touches[0].pageX - touch.y1 = e.touches[0].pageY - if (delta > 0 && delta <= 250) touch.isDoubleTap = true - touch.last = now - longTapTimeout = setTimeout(longTap, longTapDelay) - }) - .bind('touchmove', function(e){ - cancelLongTap() - touch.x2 = e.touches[0].pageX - touch.y2 = e.touches[0].pageY - if (Math.abs(touch.x1 - touch.x2) > 10) - e.preventDefault() - }) - .bind('touchend', function(e){ - cancelLongTap() - - // swipe - if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) || - (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30)) - - swipeTimeout = setTimeout(function() { - touch.el.trigger('swipe') - touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2))) - touch = {} - }, 0) - - // normal tap - else if ('last' in touch) - - // delay by one tick so we can cancel the 'tap' event if 'scroll' fires - // ('tap' fires before 'scroll') - tapTimeout = setTimeout(function() { - - // trigger universal 'tap' with the option to cancelTouch() - // (cancelTouch cancels processing of single vs double taps for faster 'tap' response) - var event = $.Event('tap') - event.cancelTouch = cancelAll - touch.el.trigger(event) - - // trigger double tap immediately - if (touch.isDoubleTap) { - touch.el.trigger('doubleTap') - touch = {} - } - - // trigger single tap after 250ms of inactivity - else { - touchTimeout = setTimeout(function(){ - touchTimeout = null - touch.el.trigger('singleTap') - touch = {} - }, 250) - } - - }, 0) - - }) - .bind('touchcancel', cancelAll) - - $(window).bind('scroll', cancelAll) - }) - - ;['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown', 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(m){ - $.fn[m] = function(callback){ return this.bind(m, callback) } - }) -})(Zepto) - - -// outer and inner height/width support -if (this.Zepto) { - (function($) { - var ioDim, _base; - ioDim = function(elem, Dimension, dimension, includeBorder, includeMargin) { - var sides, size; - if (elem) { - size = elem[dimension](); - sides = { - width: ["left", "right"], - height: ["top", "bottom"] - }; - sides[dimension].forEach(function(side) { - size += parseInt(elem.css("padding-" + side), 10); - if (includeBorder) { - size += parseInt(elem.css("border-" + side + "-width"), 10); - } - if (includeMargin) { - return size += parseInt(elem.css("margin-" + side), 10); - } - }); - return size; - } else { - return null; - } - }; - ["width", "height"].forEach(function(dimension) { - var Dimension, _base, _base1, _name, _name1; - Dimension = dimension.replace(/./, function(m) { - return m[0].toUpperCase(); - }); - (_base = $.fn)[_name = "inner" + Dimension] || (_base[_name] = function(includeMargin) { - return ioDim(this, Dimension, dimension, false, includeMargin); - }); - return (_base1 = $.fn)[_name1 = "outer" + Dimension] || (_base1[_name1] = function(includeMargin) { - return ioDim(this, Dimension, dimension, true, includeMargin); - }); - }); - return (_base = $.fn).detach || (_base.detach = function(selector) { - var cloned, set; - set = this; - if (selector != null) { - set = set.filter(selector); - } - cloned = set.clone(true); - set.remove(); - return cloned; - }); - })(Zepto); -} \ No newline at end of file diff --git a/public/scss/_elements.scss b/public/scss/_elements.scss deleted file mode 100644 index 055d39e6a..000000000 --- a/public/scss/_elements.scss +++ /dev/null @@ -1,7 +0,0 @@ -/* ========================================================================== - Anchors - ========================================================================== */ -a { - text-decoration: none; - color: $primary-color; -} diff --git a/public/scss/_settings.scss b/public/scss/_settings.scss deleted file mode 100644 index 4ca1f4f90..000000000 --- a/public/scss/_settings.scss +++ /dev/null @@ -1,24 +0,0 @@ -/* ========================================================================== - Grid settings - ========================================================================== */ - -$column: 70px; -$gutter: 30px; -$grid-columns: 12; -$max-width: 100%; - -/* ========================================================================== - Visual grid settings - ========================================================================== */ -$visual-grid: false; -$visual-grid-color: gray; - -/* ========================================================================== - Custom settings - ========================================================================== */ -$lioRed: #F0523F; -$lioGrey: #444; -$topbar-bg: $lioGrey; - -$primary-color: $lioRed; -$secondary-color: $lioGrey; \ No newline at end of file diff --git a/public/scss/app.scss b/public/scss/app.scss deleted file mode 100644 index 5f8a6f777..000000000 --- a/public/scss/app.scss +++ /dev/null @@ -1,47 +0,0 @@ -@charset "UTF-8"; -/* ========================================================================== - Neat helpers - ========================================================================== */ -@import "vendor/neat/neat-helpers"; - -/* ========================================================================== - Settings - ========================================================================== */ -@import "settings"; -@import "elements"; - -/* ========================================================================== - Vendor - ========================================================================== */ -@import "vendor/normalize/normalize"; -@import "vendor/bourbon/bourbon"; -@import "vendor/neat/neat"; -@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700); -@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css); - - -/* ========================================================================== - Modules - ========================================================================== */ -@import "modules/_header"; -@import "modules/_navigation"; -@import "modules/_global"; -@import "modules/_forum"; -@import "modules/_buttons"; -@import "modules/_sidebar"; -@import "modules/_empty-state"; -@import "modules/_comments"; -@import "modules/_user"; -@import "modules/_reply"; -@import "modules/_pagination"; -@import "modules/_form"; -@import "modules/_section-headers"; -@import "modules/_tags"; -@import "modules/_alert"; -@import "modules/_footer"; -@import "modules/_profile"; -@import "modules/_bin"; -@import "modules/_markdown"; -@import "modules/_naver"; -@import "modules/_solution"; -@import "modules/_filter"; diff --git a/public/scss/modules/__clean-module-skeleton.scss b/public/scss/modules/__clean-module-skeleton.scss deleted file mode 100644 index 994033cec..000000000 --- a/public/scss/modules/__clean-module-skeleton.scss +++ /dev/null @@ -1,40 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.module {} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_alert.scss b/public/scss/modules/_alert.scss deleted file mode 100644 index 9ff4e539b..000000000 --- a/public/scss/modules/_alert.scss +++ /dev/null @@ -1,45 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.alert-box { - width:100%; - padding: 15px; - background: $lioRed; - color:white; -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_bin.scss b/public/scss/modules/_bin.scss deleted file mode 100644 index b86aa184c..000000000 --- a/public/scss/modules/_bin.scss +++ /dev/null @@ -1,292 +0,0 @@ -$orange_button_bg: #f0523f; -$orange_button_bg_hover: #c73e2d; -$sidebar_transition: 0.5s ease; - -body.bin { - background: #1D1F21; - -webkit-font-smoothing: antialiased; - - #copy-data { - position: absolute; - right: -200%; - } - - .show-container { - background: #1D1F21; - -ms-word-break: break-all; - word-break: break-all; - - // Non standard for webkit - word-break: break-word; - - -webkit-hyphens: auto; - -moz-hyphens: auto; - hyphens: auto; - - padding-right: 2em; - -webkit-transition: width $sidebar_transition, padding-right $sidebar_transition; - transition: width $sidebar_transition, padding-right $sidebar_transition; - } - - .prettyprint { - background: #1D1F21; - border: 0; - margin: 3em 0 0 0; - padding: 0; - padding-bottom: 300px; - - .linenums { - color: #a0a0a0; - - li { - padding: 4px 0; - } - - li.selected { - background: #383838; - } - } - } - - .editor { - background: transparent; - border: 0; - color: #fff; - font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; - font-size: 12px; - -webkit-font-smoothing: antialiased; - line-height: 1.8em; - height: 100%; - margin-top: 1em; - outline: none; - padding: 2em; - position: fixed; - resize: none; - -webkit-transition: width $sidebar_transition, padding-right $sidebar_transition; - transition: width $sidebar_transition, padding-right $sidebar_transition; - -ms-word-break: break-all; - word-break: break-all; - // Non standard for webkit - word-break: break-word; - z-index: 1; - width: 100%; - } - - .show-sidebar { - background: #444; - color: #888; - font-size: 1em; - height: 3.15em; - padding: 1em 1em; - position: fixed; - right: 0; - text-align: center; - transition: right $sidebar_transition; - top: 0; - width: 3em; - z-index: 15; - - &:hover { - background: #666; - color: #eee; - } - - &.show { - right: 50%; - } - } - - .sidebar { - background: #2d2e2f; - border: 0; - box-shadow: -2px 0 3px rgba(black, 0.2); - -o-box-shadow: -2px 0 3px rgba(black, 0.2); - -moz-box-shadow: -2px 0 3px rgba(black, 0.2); - -webkit-box-shadow: -2px 0 3px rgba(black, 0.2); - color: #fff; - height: 100%; - padding: 15px; - position: fixed; - right: 0; - -webkit-transition: -webkit-transform $sidebar_transition; - transition: transform $sidebar_transition; - top: 0; - width: 50%; - z-index: 10; - - p { - margin-bottom: 0; - } - - .logo { - display: block; - margin: auto; - max-width: 100%; - padding: 15px 0; - width: 150px; - } - - .options { - border-bottom: 2px solid #747474; - overflow: hidden; - margin-bottom: 15px; - padding-bottom: 15px; - - ul { - margin: 0; - padding: 0; - - li { - margin-bottom: 10px; - width: 100%; - } - - li:last-child { - margin-bottom: 0; - } - } - } - - &.hide { - -webkit-transform: translateX(100%); - transform: translateX(100%); - } - } - - .button { - background: $orange_button_bg; - border: 0; - border-radius: 2px; - color: #fff; - display: inline-block; - -webkit-font-smoothing: antialiased; - outline: none; - padding: 10px 5px; - width: 100%; - - .fa { - font-size: 10px; - margin-right: 3px; - } - - &:hover { - background: $orange_button_bg_hover; - } - } - - .button.back { - .fa { - font-size: 12px; - } - } - - .comments { - color: #a6a6a6; - width: 100%; - - h3 { - color: #fff; - } - } - - .toast { - box-shadow: none !important; - } - - .toast-info { - background: rgba(#f0523f, 0.8); - } - - .cartalyst-ad { - border-top: 2px solid #747474; - color: white; - display: inline-block; - font-size: 12px; - line-height: 18px; - margin-top: 15px; - padding-top: 15px; - - img { - float: left; - padding: 0 10px 10px 0; - } - } - - // BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 480px) { - .sidebar { - width: 30%; - } - - .show-sidebar.show { - right: 30%; - } - - .editor { - margin-top: 1em; - } - } - - - // BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - - @media screen and (min-width: 768px) { - .show-container, - .editor { - width: 70%; - } - .show-container.sidebar-hidden, - .editor.sidebar-hidden { - width: 100%; - padding-right: 2em; - } - } - - - // BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - - @media screen and (min-width: 1024px) { - .show-container, - .editor { - width: 100%; - padding-right: 290px; - } - .sidebar { - width: 250px; - } - .show-sidebar.show { - right: 250px; - } - } - - - // BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 1440px) { - - } - - // SPECIAL HEIGHT BREAKPOINT - @media only screen and (max-height: 400px) { - .show-container, - .editor { - padding-right: 360px; - } - - .sidebar { - width: 320px; - } - - .show-sidebar.show { - right: 320px; - } - - .sidebar .options ul li { - float: left; - margin-right: 5%; - width: 45%; - } - } - -} diff --git a/public/scss/modules/_buttons.scss b/public/scss/modules/_buttons.scss deleted file mode 100644 index 689453189..000000000 --- a/public/scss/modules/_buttons.scss +++ /dev/null @@ -1,65 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.button { - padding: 5px 10px; - text-align: center; - background: $lioRed; - color:white; - - &:hover { - background:#cdcdcd; - color:$lioGrey; - } - - &.inverse { - background: $lioGrey; - - &:hover { - background: $lioRed; - } - } -} - -button[type=submit] { - font-family: 'Source Sans Pro', sans-serif; - font-weight:400; - padding: 10px 20px; - font-size:1.1em; -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .module {} -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_comments.scss b/public/scss/modules/_comments.scss deleted file mode 100644 index b064d62a3..000000000 --- a/public/scss/modules/_comments.scss +++ /dev/null @@ -1,85 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.comments { - h6.title { - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - font-size:14px; - display: block; - width:70px; - background: #cdcdcd; - margin: auto; - padding: 5px 10px; - text-align: center; - } - - .comment { - @include clearfix; - background: white; - padding: 15px; - margin: 15px; - - &.solution-border { - border-right:3px solid $lioRed; - } - - p { - margin: 0; - line-height: 1.5; - } - - ul, li { - margin: 0; - padding: 0; - } - - li { - margin: 0 0 0 15px; - line-height: 1.5; - } - - img { - max-width: 100%; - } - } -} - - - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_empty-state.scss b/public/scss/modules/_empty-state.scss deleted file mode 100644 index bfc796e43..000000000 --- a/public/scss/modules/_empty-state.scss +++ /dev/null @@ -1,57 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.module {} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .empty-state { - - text-align: center; - - h3 { - margin: 0; - padding: 25px 0 25px 0; - } - - p { - padding: 0 0 15px 0; - } - - .fa { - padding: 30px 0 0 0; - font-size:60px; - } - } -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_filter.scss b/public/scss/modules/_filter.scss deleted file mode 100644 index 18001599b..000000000 --- a/public/scss/modules/_filter.scss +++ /dev/null @@ -1,74 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.filter { - @include clearfix; - padding: 15px 0 15px 15px; - - p { - float: left; - margin: 0; - padding: 4px 10px 0 0; - font-weight:bold; - } - - ul { - float: left; - margin: 0; - padding: 0; - } - - li { - display: inline; - - a { - float: left; - display: block; - height: 25px; - padding: 5px 9px 0 9px; - margin: 0 8px 0 0; - color:$lioGrey; - - &:hover, &.current { - background:$lioRed; - color:white; - } - } - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_footer.scss b/public/scss/modules/_footer.scss deleted file mode 100644 index 2b4cef53a..000000000 --- a/public/scss/modules/_footer.scss +++ /dev/null @@ -1,91 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.push { - height: 84px; -} - -.site-footer { - background: #cdcdcd; - padding: 15px 15px 20px 15px; - color: #333; - font-size: 18px; - margin: 25px 0 0 0; - line-height: 18px; - text-align: center; -} - -.sponsors { - .span2, - .span4 { - margin-bottom: 15px; - } - - .fortrabbit { - font-family: Georgia, serif; - font-weight: bold; - font-style: italic; - color: #333; - text-transform: lowercase; - font-size: 30px; - display: inline; - } - .fortrabbit:hover { - text-decoration: none; - } - .fortrabbit:hover em { - color: red; - } - - .cartalyst a { - font-weight: bold; - color: #333; - font-size: 21px; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - .row { - padding-top: 10px; - padding-bottom: 10px; - } - .span2 { - float: left; - width: 16.6666665%; - } - .span4 { - float: left; - text-align: center; - width: 33.333333%; - } -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - .container{ - max-width: 1024px; - margin: 0 auto; - } -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - .module {} -} diff --git a/public/scss/modules/_form.scss b/public/scss/modules/_form.scss deleted file mode 100644 index a9b225375..000000000 --- a/public/scss/modules/_form.scss +++ /dev/null @@ -1,114 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.form-row { - @include span-columns(12); - margin: 0 0 15px 0; - - label.field-title { - display: block; - margin: 0; - padding: 0 0 10px 0; - font-size:16px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - } - - input[type=text] { - padding: 15px; - border:none; - width:100%; - } - - textarea { - @include span-columns(12); - float: none; - padding: 15px; - border:none; - } - - small { - display: block; - } - - textarea { - width:100%; - } - - button { - border: none; - } - - small { - padding: 10px 0; - display: block; - font-size:12px; - } - - .version { - margin: 0; - padding: 0; - - li { - display: inline; - } - - label { - float: left; - cursor: pointer; - } - - label.selected { - background: $lioRed; - color:white; - } - - input { - display: none; - } - } - - small.error { - width:100%; - padding: 5px; - background: $lioRed; - color:white; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_forum.scss b/public/scss/modules/_forum.scss deleted file mode 100644 index 4899806dd..000000000 --- a/public/scss/modules/_forum.scss +++ /dev/null @@ -1,245 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.quote { - float: right; -} - -.threads { - @include span-columns(12); - float: none; - padding: 0 15px 15px 15px; - - .thread-summary { - position: relative; - width:100%; - @include clearfix; - padding: 12px 20px 12px 10px; - margin: 0 0 6px 0; - - .info { - float: none; - - .post-info { - display: block; - position: absolute; - right:0px; - top:0px; - - .accepted { - display: none; - } - - .mini { - margin: 0 0 3px 0; - float: none; - display: block; - } - } - } - - .post-info { - display: none; - } - - img { - display: none; - } - - h3 { - margin:0; - padding: 0 0 3px 0; - font-size:16px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - - a { - color:$lioGrey; - - &:hover { - color:$lioRed; - } - } - } - - ul { - margin:0; - padding: 0; - } - - ul li { - display: inline; - float: left; - color:#959595; - padding: 0 5px 0 0; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - font-style: italic; - } - - .comment-count { - display: block; - min-width:25px; - background: #cdcdcd; - padding: 5px; - text-align: center; - color:white; - - &.new, &:hover { - background: $lioRed; - } - } - } - - .thread-summary { - background: white; - } -} - -.forum { - - @include span-columns(12); - float: none; - - .thread { - padding: 15px; - margin: 15px; - background: white; - - h1 { - padding: 3px 0 15px 0; - margin: 0 0 15px 0; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 600; - border-bottom:1px solid #cdcdcd; - font-size:1.4em; - } - - p { - margin: 0; - line-height: 1.5; - } - - ul, li { - margin: 0; - padding: 0; - } - - li { - margin: 0 0 0 15px; - line-height: 1.5; - } - - img { - max-width: 100%; - } - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - -.threads { - @include span-columns(12); - @include clearfix; - padding: 0 15px 15px 15px; - float: none; - - .post-info { - display: none; - } - - - .thread-summary { - .info { - float: none; - - .post-info { - display: block; - } - } - - .comment-count { - position: relative; - min-width:25px; - float: right; - background: #cdcdcd; - padding: 5px; - margin: 7px 0 0 0; - text-align: center; - color:white; - } - } - } - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .threads { - .thread-summary { - - img { - float: left; - height: auto; - width:7%; - display: block; - padding: 0 10px 0 0; - } - - - .post-info { - width:23%; - float: right; - display: block; - } - - .info { - float: left; - width:65%; - .post-info { - display: none; - } - } - } - } - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .threads { - .thread-summary { - - .post-info { - width:15%; - } - - .info { - width:73%; - } - } - } - -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_global.scss b/public/scss/modules/_global.scss deleted file mode 100644 index a2836086e..000000000 --- a/public/scss/modules/_global.scss +++ /dev/null @@ -1,107 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -body,html { - background: #ebebeb; - font-size:13px; - height: 100%; -} - -.padding { - padding: 15px; -} -.clear { - clear: both; -} - - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - - .holder { - @include outer-container; - } - - .wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin-bottom:-84px; - } - - .table { - @include span-columns(12); - @include row(table); - } - - .sidebar { - @include span-columns(3.5); - padding: 0; - vertical-align:top; - } - - .content { - @include span-columns(8.5); - @include reset-display; - @include clearfix; - } - - // Lets put this here for now - - .gist-data { - max-height: 300px; - overflow: auto; - } -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - .holder { - max-width: 1024px; - margin: auto; - } - - .table { - @include span-columns(12); - @include row(table); - } - - - .sidebar { - @include span-columns(3); - padding: 0; - vertical-align:top; - } - - .content { - @include span-columns(9); - @include reset-display; - @include clearfix; - } -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - - -} \ No newline at end of file diff --git a/public/scss/modules/_header.scss b/public/scss/modules/_header.scss deleted file mode 100644 index c4510cd90..000000000 --- a/public/scss/modules/_header.scss +++ /dev/null @@ -1,87 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - - -.top-header { - background: $lioGrey; - - header { - text-align: center; - - li { - display: inline; - } - - @include clearfix; - padding: 15px 15px; - - } - - .user-navigation { - padding: 17px 0 0 0; - } - - .logo { - padding: 15px 0 15px 5px; - margin: auto; - width:125px; - } -} - - - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .top-header { - .logo { - float: left; - padding: 15px 0 15px 5px; - width:125px; - } - - header { - @include clearfix; - padding: 15px 15px; - background: $lioGrey; - } - - .user-navigation { - padding: 17px 0 0 0; - float: right; - } - } -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .top-header header { - max-width: 1024px; - margin: auto; - } -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - -} \ No newline at end of file diff --git a/public/scss/modules/_markdown.scss b/public/scss/modules/_markdown.scss deleted file mode 100644 index 784a50b61..000000000 --- a/public/scss/modules/_markdown.scss +++ /dev/null @@ -1,172 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.forum .markdown, .comment .markdown { - - br:last-child { - display:none; - } - - h1,h2,h3,h4,h5,h6,p,li,ul,ol { - margin: 0; - padding: 0; - border:none !important; - padding: 0 0 3px 0; - } - - h1,h2,h3,h4,h5 { - font-family: 'Source Sans Pro', sans-serif; - font-weight:400; - } - - h1 { - font-size:1.4em; - font-weight: 600; - padding: 0 0 7px 0; - } - - h2 { - font-size:1.3em; - font-weight: 600; - padding: 0 0 7px 0; - } - - h3 { - font-size:1.2em; - font-weight: 600; - padding: 0 0 7px 0; - } - - h4,h5,h6 - { - font-size:1.1em; - font-weight: 600; - padding: 0 0 6px 0; - } - - p { - margin: 0; - line-height: 1.7; - padding: 0 0 14px 0; - - br:last-child { - display: block; - } - - &:nth-last-child(1) { - padding: 0; - } - } - - p:nth-last-child(1) { - padding:0 !important; - } - - ul { - margin: 0; - padding: 0 0 14px 0; - } - - li { - margin: 0 0 0 18px; - line-height: 1.5; - } - - li p { - padding: 0; - } - - blockquote { - background: #f9f9f9; - border-left: 5px solid $lioRed; - margin: 1.5em 0; - padding: 0.5em 7px; - quotes: "\201C""\201D""\2018""\2019"; - - blockquote { - margin: 0 0 0 10px; - border-top:1px solid #cdcdcd; - border-right:1px solid #cdcdcd; - border-bottom:1px solid #cdcdcd; - margin: 0 0 10px 10px; - } - } - - blockquote:before { - font-family: 'Source Sans Pro', sans-serif; - color: #ccc; - content: open-quote; - font-size: 4em; - line-height: 0.1em; - margin-right: 0.25em; - vertical-align: -0.4em; - } - blockquote p { - margin: 0 0 0 15px; - padding: 0; - - &:first-child { - padding:0; - } - - margin: 0 0 0 15px; - padding: 0 0 14px 0; - } - - pre { - margin: 0; - padding: 0 0 14px 0; - line-height: 2; - - code { - padding: 10px 15px; - - } - } - - .comment { - padding: 0 !important; - margin: 0 !important; - background: none; - } - - .comment:before, .comment:after { - display: none - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_naver.scss b/public/scss/modules/_naver.scss deleted file mode 100644 index c3e1e0b58..000000000 --- a/public/scss/modules/_naver.scss +++ /dev/null @@ -1,14 +0,0 @@ - .naver .naver-handle { color: #333; cursor: pointer; display: none; font-size: 14px; height: 30px; line-height: 28px; text-transform: uppercase; - padding: 0 13px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; - } - .naver .naver-handle:before { background: url(../images/jquery.fs.naver-icon.png) no-repeat center; content: ''; display: block; float: left; height: 15px; margin: 7px 10px 0 0; width: 20px; } - .naver .naver-wrapper { height: auto; } - .naver .naver-container:after { clear: both; content: "."; display: block; height: 0; line-height: 0; visibility: hidden; } - - .naver.enabled .naver-handle { display: block; } - .naver.enabled .naver-wrapper { height: 0px; overflow: hidden; } \ No newline at end of file diff --git a/public/scss/modules/_navigation.scss b/public/scss/modules/_navigation.scss deleted file mode 100644 index 5892a0bed..000000000 --- a/public/scss/modules/_navigation.scss +++ /dev/null @@ -1,84 +0,0 @@ - /* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - - // MOBILE STYLES //////////////////////////////////////////////////////////// - - nav { - ul li { - display: inline; - } - - ul { - margin: 0; - padding: 0; - } - - ul li a { - padding: 0 3px 3px 3px; - margin: 0 10px; - font-size:16px; - color:white; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 300; - - &:hover, &.active { - border-bottom:3px solid $lioRed; - } - - } - } - - - // BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 480px) { - - .module {} - - } - - - // BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 768px) { - - nav { - float: left; - padding: 23px 0 0 15px; - - ul li { - display: inline; - } - - ul li a { - padding: 0 3px 3px 3px; - margin: 0 10px; - font-size:16px; - color:white; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 300; - - &:hover { - border-bottom:3px solid $lioRed; - } - - } - } - } - - - // BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 1024px) { - - .module {} - } - - - // BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - - @media only screen and (min-width: 1440px) { - - .module {} - } \ No newline at end of file diff --git a/public/scss/modules/_pagination.scss b/public/scss/modules/_pagination.scss deleted file mode 100644 index c9cc4c042..000000000 --- a/public/scss/modules/_pagination.scss +++ /dev/null @@ -1,76 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.pagination { - @include clearfix; - text-align: center; - - ul { - margin:0; - padding: 0; - display: inline-block; - margin: auto; - } - - li { - float: left; - margin: 0; - list-style-type: none; - } - - li a, .disabled, .active { - display: inline-block; - padding: 7px 15px; - font-size: 13px; - color:$lioGrey; - } - - a:hover { - background: $lioRed; - color:white; - } - - .active { - background: #cdcdcd; - color:white; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .pagination { - float: right; - } - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_profile.scss b/public/scss/modules/_profile.scss deleted file mode 100644 index 78060e281..000000000 --- a/public/scss/modules/_profile.scss +++ /dev/null @@ -1,67 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.user-sidebar { - padding: 15px; - - img { - max-width: 100%; - } - - h1 { - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - } -} - -.user-content { - .section-navigation { - padding-left: 15px; - padding-bottom: 15px; - } - - div.pagination { - float: none; - text-align: center; - - ul.pagination { - float: none; - } - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_reply.scss b/public/scss/modules/_reply.scss deleted file mode 100644 index 4a4438364..000000000 --- a/public/scss/modules/_reply.scss +++ /dev/null @@ -1,70 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.reply-form { - @include clearfix; - padding: 30px 15px; - - h5 { - margin: 0; - padding: 0 0 10px 0; - font-size:16px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - } -} - -.login-cta -{ - @include clearfix; - padding: 15px 15px; - text-align: center; - - p { - float: none; - font-size:15px; - display: block; - padding: 0 0 7px 0; - } - - .button { - float: none; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_section-headers.scss b/public/scss/modules/_section-headers.scss deleted file mode 100644 index 71814a7aa..000000000 --- a/public/scss/modules/_section-headers.scss +++ /dev/null @@ -1,106 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.header { - @include clearfix; - padding: 19px 15px 18px 15px; - border-bottom:1px solid #cdcdcd; - - &.double { - border-top:1px solid #cdcdcd; - } - - h1, h2 { - font-size:22px; - margin: 0; - float: left; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 800; - } - - .tags { - display: block; - float: left; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - font-size:16px; - padding: 5px 0 0 7px; - font-style: italic; - - a { - color:$lioGrey; - - &:hover { - color:$lioRed; - } - } - } - - .button { - float: right; - } - - .pagination { - display: none; - } - - img { - float: left; - height: 35px; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - -.header { - - padding-right:0; - - .button { - margin: 0 15px 0 0; - } - - .pagination { - display: block; - float: right; - margin: 0; - padding: 0; - - li { - line-height: 1; - } - } -} - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_sidebar.scss b/public/scss/modules/_sidebar.scss deleted file mode 100644 index 9e2293e37..000000000 --- a/public/scss/modules/_sidebar.scss +++ /dev/null @@ -1,106 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.sidebar { - - border-bottom:1px solid #cdcdcd; - - .search { - padding: 15px; - border-bottom:1px solid #cdcdcd; - - input { - width:100%; - padding: 10px 15px; - border:none; - } - } - - ul { - margin:0; - padding: 10px 10px 10px 5px; - } - - ul li { - list-style-type: none; - margin: 0; - @include clearfix; - - span { - padding: 5px 7px; - margin: 5px; - background: #cdcdcd; - color:$lioGrey; - font-size:11px; - position: absolute; - right:3px; - top:1px; - text-align: center; - min-width: 25px; - } - - a { - position: relative; - width:100%; - display: block; - padding: 10px 13px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - border-right:3px solid #ebebeb; - - &:hover { - background:$lioRed; - color:white; - - span { - background: $lioGrey; - color:white; - } - } - - &.active { - border-right:3px solid $lioRed; - } - } - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - .sidebar { - border-right:1px solid #cdcdcd; - border-bottom:none; - } -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} diff --git a/public/scss/modules/_solution.scss b/public/scss/modules/_solution.scss deleted file mode 100644 index dff9a8e80..000000000 --- a/public/scss/modules/_solution.scss +++ /dev/null @@ -1,80 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.solution { - float: right; - display: block; - background: #ebebeb; - height: 25px; - padding: 5px 5px 0 5px; - color:$lioGrey; - - i { - margin: 0 8px 0 0; - } - - &:hover { - background:$lioRed; - color:white; - } - - &.accepted { - background: $lioRed; - padding: 5px 8px 2px 8px; - text-align: center; - color:white; - - &:hover{ - background: #ebebeb; - color:$lioGrey; - } - - i { - margin: 0; - } - } -} - -.thread-summary { - .solution { - float: right; - margin: 7px 6px 0 0; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} - diff --git a/public/scss/modules/_tags.scss b/public/scss/modules/_tags.scss deleted file mode 100644 index 993655b45..000000000 --- a/public/scss/modules/_tags.scss +++ /dev/null @@ -1,95 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.tags { - - .tag { - display: block; - padding: 7px; - background: #cdcdcd; - text-align: center; - margin:0 5px 5px 0; - color:#444444; - cursor: pointer; - - &.active { - background: $lioRed; - color:white; - } - } - - margin: 0; - padding: 0; - - @include clearfix; - - ._tag_list ul, ._tag_list li { - margin: 0; - padding: 0; - } - - ._tag_list li { - display: inline; - } - - .tag { - float: left; - } -} - -._tag_description_container { - - padding: 15px 0 0 0; - - strong { - display: block; - margin: 0; - padding: 0 0 10px 0; - font-size:16px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - } - - li { - list-style-type: disc; - padding: 5px 0; - float: none; - } -} - - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} \ No newline at end of file diff --git a/public/scss/modules/_user.scss b/public/scss/modules/_user.scss deleted file mode 100644 index cf53abfc1..000000000 --- a/public/scss/modules/_user.scss +++ /dev/null @@ -1,160 +0,0 @@ -/* ========================================================================== - MOBILE FIRST MODULE SKELETON - ========================================================================== */ - -// MOBILE STYLES //////////////////////////////////////////////////////////// - -.thread .user { - @include clearfix; - border-top:1px solid #cdcdcd; - border-bottom:none; - padding: 15px 0 0 0; - margin: 15px 0 0 0; -} - -.auth { - label { - display: inline-block; - width: 65px; - } - input { - display: inline-block; - padding: 5px 7px; - width: 100%; - max-width: 300px; - } -} - -.user { - @include clearfix; - border-bottom:1px solid #cdcdcd; - padding: 0 0 15px 0; - margin: 0 0 15px 0; - - img { - height: auto; - width:50px; - display: block; - padding: 0 10px 0 0; - } - - h6 { - margin:0; - padding: 0 0 3px 0; - font-size:16px; - color:$lioGrey; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - - a { - color:$lioGrey; - - &:hover { - color:$lioRed; - } - } - } - - .info { - float: left; - } - - ul { - margin:0; - padding: 0; - } - - li { - display: inline; - float: left; - color:#959595; - padding: 0 5px 0 0; - // Something is overwriting this, need to fix it - margin: 0 !important; - font-family: 'Source Sans Pro', sans-serif; - font-weight: 400; - font-style: italic; - } -} - -.user-settings { - padding: 15px; - - label { - display: inline-block; - width: 65px; - } - input { - display: inline-block; - padding: 5px 7px; - width: 100%; - max-width: 300px; - } -} - -.admin-bar { - margin: 15px 0 0 0; - padding: 15px 0 0 0; - border-top:1px solid #cdcdcd; - - ul, li { - @include display('flex'); - @include justify-content; - margin:0 !important; - } - - a:hover { - color:$lioGrey; - } - - li { - padding: 0 10px 0 0 !important; - margin: 0 10px 0 0 !important; - border-right:1px solid #cdcdcd; - } - - .space { - @include flex(1); - border: none; - } - - li:last-child - { - margin-right: 0px !important; - padding-right: 0px !important; - border:none; - } -} - -// BREAKPOINT 1 (480) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 480px) { - - .module {} - -} - - -// BREAKPOINT 2 (768) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 768px) { - - - -} - - -// BREAKPOINT 3 (1024) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1024px) { - - .module {} -} - - -// BREAKPOINT 4 (1440) //////////////////////////////////////////////////////////// - -@media only screen and (min-width: 1440px) { - - .module {} -} diff --git a/public/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss b/public/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss deleted file mode 100755 index 5332496d8..000000000 --- a/public/scss/vendor/bourbon/_bourbon-deprecated-upcoming.scss +++ /dev/null @@ -1,13 +0,0 @@ -//************************************************************************// -// These mixins/functions are deprecated -// They will be removed in the next MAJOR version release -//************************************************************************// -@mixin box-shadow ($shadows...) { - @include prefixer(box-shadow, $shadows, spec); - @warn "box-shadow is deprecated and will be removed in the next major version release"; -} - -@mixin background-size ($lengths...) { - @include prefixer(background-size, $lengths, spec); - @warn "background-size is deprecated and will be removed in the next major version release"; -} diff --git a/public/scss/vendor/bourbon/_bourbon.scss b/public/scss/vendor/bourbon/_bourbon.scss deleted file mode 100755 index 53fbca877..000000000 --- a/public/scss/vendor/bourbon/_bourbon.scss +++ /dev/null @@ -1,59 +0,0 @@ -// Custom Helpers -@import "helpers/deprecated-webkit-gradient"; -@import "helpers/gradient-positions-parser"; -@import "helpers/linear-positions-parser"; -@import "helpers/radial-arg-parser"; -@import "helpers/radial-positions-parser"; -@import "helpers/render-gradients"; -@import "helpers/shape-size-stripper"; - -// Custom Functions -@import "functions/compact"; -@import "functions/flex-grid"; -@import "functions/grid-width"; -@import "functions/linear-gradient"; -@import "functions/modular-scale"; -@import "functions/px-to-em"; -@import "functions/radial-gradient"; -@import "functions/tint-shade"; -@import "functions/transition-property-name"; - -// CSS3 Mixins -@import "css3/animation"; -@import "css3/appearance"; -@import "css3/backface-visibility"; -@import "css3/background"; -@import "css3/background-image"; -@import "css3/border-image"; -@import "css3/border-radius"; -@import "css3/box-sizing"; -@import "css3/columns"; -@import "css3/flex-box"; -@import "css3/font-face"; -@import "css3/hidpi-media-query"; -@import "css3/image-rendering"; -@import "css3/inline-block"; -@import "css3/keyframes"; -@import "css3/linear-gradient"; -@import "css3/perspective"; -@import "css3/radial-gradient"; -@import "css3/transform"; -@import "css3/transition"; -@import "css3/user-select"; -@import "css3/placeholder"; - -// Addons & other mixins -@import "addons/button"; -@import "addons/clearfix"; -@import "addons/font-family"; -@import "addons/hide-text"; -@import "addons/html5-input-types"; -@import "addons/position"; -@import "addons/prefixer"; -@import "addons/retina-image"; -@import "addons/size"; -@import "addons/timing-functions"; -@import "addons/triangle"; - -// Soon to be deprecated Mixins -@import "bourbon-deprecated-upcoming"; diff --git a/public/scss/vendor/bourbon/addons/_button.scss b/public/scss/vendor/bourbon/addons/_button.scss deleted file mode 100755 index 3ae393c09..000000000 --- a/public/scss/vendor/bourbon/addons/_button.scss +++ /dev/null @@ -1,273 +0,0 @@ -@mixin button ($style: simple, $base-color: #4294f0) { - - @if type-of($style) == color { - $base-color: $style; - $style: simple; - } - - // Grayscale button - @if $base-color == grayscale($base-color) { - @if $style == simple { - @include simple($base-color, $grayscale: true); - } - - @else if $style == shiny { - @include shiny($base-color, $grayscale: true); - } - - @else if $style == pill { - @include pill($base-color, $grayscale: true); - } - } - - // Colored button - @else { - @if $style == simple { - @include simple($base-color); - } - - @else if $style == shiny { - @include shiny($base-color); - } - - @else if $style == pill { - @include pill($base-color); - } - } - - &:disabled { - opacity: 0.5; - cursor: not-allowed; - } -} - - -// Simple Button -//************************************************************************// -@mixin simple($base-color, $grayscale: false) { - $color: hsl(0, 0, 100%); - $border: adjust-color($base-color, $saturation: 9%, $lightness: -14%); - $inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%); - $stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%); - $text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%); - - @if lightness($base-color) > 70% { - $color: hsl(0, 0, 20%); - $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%); - } - - @if $grayscale == true { - $border: grayscale($border); - $inset-shadow: grayscale($inset-shadow); - $stop-gradient: grayscale($stop-gradient); - $text-shadow: grayscale($text-shadow); - } - - border: 1px solid $border; - border-radius: 3px; - box-shadow: inset 0 1px 0 0 $inset-shadow; - color: $color; - display: inline-block; - font-size: 11px; - font-weight: bold; - @include linear-gradient ($base-color, $stop-gradient); - padding: 7px 18px; - text-decoration: none; - text-shadow: 0 1px 0 $text-shadow; - background-clip: padding-box; - - &:hover:not(:disabled) { - $base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%); - $inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%); - $stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%); - - @if $grayscale == true { - $base-color-hover: grayscale($base-color-hover); - $inset-shadow-hover: grayscale($inset-shadow-hover); - $stop-gradient-hover: grayscale($stop-gradient-hover); - } - - box-shadow: inset 0 1px 0 0 $inset-shadow-hover; - cursor: pointer; - @include linear-gradient ($base-color-hover, $stop-gradient-hover); - } - - &:active:not(:disabled) { - $border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%); - $inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%); - - @if $grayscale == true { - $border-active: grayscale($border-active); - $inset-shadow-active: grayscale($inset-shadow-active); - } - - border: 1px solid $border-active; - box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active, 0 1px 1px 0 #eee; - } -} - - -// Shiny Button -//************************************************************************// -@mixin shiny($base-color, $grayscale: false) { - $color: hsl(0, 0, 100%); - $border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81); - $border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122); - $fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46); - $inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12); - $second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33); - $text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114); - $third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48); - - @if lightness($base-color) > 70% { - $color: hsl(0, 0, 20%); - $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%); - } - - @if $grayscale == true { - $border: grayscale($border); - $border-bottom: grayscale($border-bottom); - $fourth-stop: grayscale($fourth-stop); - $inset-shadow: grayscale($inset-shadow); - $second-stop: grayscale($second-stop); - $text-shadow: grayscale($text-shadow); - $third-stop: grayscale($third-stop); - } - - border: 1px solid $border; - border-bottom: 1px solid $border-bottom; - border-radius: 5px; - box-shadow: inset 0 1px 0 0 $inset-shadow; - color: $color; - display: inline-block; - font-size: 14px; - font-weight: bold; - @include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%); - padding: 8px 20px; - text-align: center; - text-decoration: none; - text-shadow: 0 -1px 1px $text-shadow; - - &:hover:not(:disabled) { - $first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18); - $second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51); - $third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66); - $fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63); - - @if $grayscale == true { - $first-stop-hover: grayscale($first-stop-hover); - $second-stop-hover: grayscale($second-stop-hover); - $third-stop-hover: grayscale($third-stop-hover); - $fourth-stop-hover: grayscale($fourth-stop-hover); - } - - cursor: pointer; - @include linear-gradient(top, $first-stop-hover 0%, - $second-stop-hover 50%, - $third-stop-hover 50%, - $fourth-stop-hover 100%); - } - - &:active:not(:disabled) { - $inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122); - - @if $grayscale == true { - $inset-shadow-active: grayscale($inset-shadow-active); - } - - box-shadow: inset 0 0 20px 0 $inset-shadow-active, 0 1px 0 #fff; - } -} - - -// Pill Button -//************************************************************************// -@mixin pill($base-color, $grayscale: false) { - $color: hsl(0, 0, 100%); - $border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%); - $border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%); - $border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%); - $inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%); - $stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%); - $text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%); - - @if lightness($base-color) > 70% { - $color: hsl(0, 0, 20%); - $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%); - } - - @if $grayscale == true { - $border-bottom: grayscale($border-bottom); - $border-sides: grayscale($border-sides); - $border-top: grayscale($border-top); - $inset-shadow: grayscale($inset-shadow); - $stop-gradient: grayscale($stop-gradient); - $text-shadow: grayscale($text-shadow); - } - - border: 1px solid $border-top; - border-color: $border-top $border-sides $border-bottom; - border-radius: 16px; - box-shadow: inset 0 1px 0 0 $inset-shadow, 0 1px 2px 0 #b3b3b3; - color: $color; - display: inline-block; - font-size: 11px; - font-weight: normal; - line-height: 1; - @include linear-gradient ($base-color, $stop-gradient); - padding: 5px 16px; - text-align: center; - text-decoration: none; - text-shadow: 0 -1px 1px $text-shadow; - background-clip: padding-box; - - &:hover:not(:disabled) { - $base-color-hover: adjust-color($base-color, $lightness: -4.5%); - $border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%); - $border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%); - $border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%); - $inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%); - $stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%); - $text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%); - - @if $grayscale == true { - $base-color-hover: grayscale($base-color-hover); - $border-bottom: grayscale($border-bottom); - $border-sides: grayscale($border-sides); - $border-top: grayscale($border-top); - $inset-shadow-hover: grayscale($inset-shadow-hover); - $stop-gradient-hover: grayscale($stop-gradient-hover); - $text-shadow-hover: grayscale($text-shadow-hover); - } - - border: 1px solid $border-top; - border-color: $border-top $border-sides $border-bottom; - box-shadow: inset 0 1px 0 0 $inset-shadow-hover; - cursor: pointer; - @include linear-gradient ($base-color-hover, $stop-gradient-hover); - text-shadow: 0 -1px 1px $text-shadow-hover; - background-clip: padding-box; - } - - &:active:not(:disabled) { - $active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%); - $border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%); - $border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%); - $inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%); - $text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%); - - @if $grayscale == true { - $active-color: grayscale($active-color); - $border-active: grayscale($border-active); - $border-bottom-active: grayscale($border-bottom-active); - $inset-shadow-active: grayscale($inset-shadow-active); - $text-shadow-active: grayscale($text-shadow-active); - } - - background: $active-color; - border: 1px solid $border-active; - border-bottom: 1px solid $border-bottom-active; - box-shadow: inset 0 0 6px 3px $inset-shadow-active, 0 1px 0 0 #fff; - text-shadow: 0 -1px 1px $text-shadow-active; - } -} diff --git a/public/scss/vendor/bourbon/addons/_clearfix.scss b/public/scss/vendor/bourbon/addons/_clearfix.scss deleted file mode 100755 index ca9903cf0..000000000 --- a/public/scss/vendor/bourbon/addons/_clearfix.scss +++ /dev/null @@ -1,29 +0,0 @@ -// Micro clearfix provides an easy way to contain floats without adding additional markup -// -// Example usage: -// -// // Contain all floats within .wrapper -// .wrapper { -// @include clearfix; -// .content, -// .sidebar { -// float : left; -// } -// } - -@mixin clearfix { - *zoom: 1; - - &:before, - &:after { - content: " "; - display: table; - } - - &:after { - clear: both; - } -} - -// Acknowledgements -// Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/) diff --git a/public/scss/vendor/bourbon/addons/_font-family.scss b/public/scss/vendor/bourbon/addons/_font-family.scss deleted file mode 100755 index df8a80ddf..000000000 --- a/public/scss/vendor/bourbon/addons/_font-family.scss +++ /dev/null @@ -1,5 +0,0 @@ -$georgia: Georgia, Cambria, "Times New Roman", Times, serif; -$helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif; -$lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif; -$monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace; -$verdana: Verdana, Geneva, sans-serif; diff --git a/public/scss/vendor/bourbon/addons/_hide-text.scss b/public/scss/vendor/bourbon/addons/_hide-text.scss deleted file mode 100755 index 68d4bf86c..000000000 --- a/public/scss/vendor/bourbon/addons/_hide-text.scss +++ /dev/null @@ -1,5 +0,0 @@ -@mixin hide-text { - color: transparent; - font: 0/0 a; - text-shadow: none; -} diff --git a/public/scss/vendor/bourbon/addons/_html5-input-types.scss b/public/scss/vendor/bourbon/addons/_html5-input-types.scss deleted file mode 100755 index b184382d9..000000000 --- a/public/scss/vendor/bourbon/addons/_html5-input-types.scss +++ /dev/null @@ -1,56 +0,0 @@ -//************************************************************************// -// Generate a variable ($all-text-inputs) with a list of all html5 -// input types that have a text-based input, excluding textarea. -// http://diveintohtml5.org/forms.html -//************************************************************************// -$inputs-list: 'input[type="email"]', - 'input[type="number"]', - 'input[type="password"]', - 'input[type="search"]', - 'input[type="tel"]', - 'input[type="text"]', - 'input[type="url"]', - - // Webkit & Gecko may change the display of these in the future - 'input[type="color"]', - 'input[type="date"]', - 'input[type="datetime"]', - 'input[type="datetime-local"]', - 'input[type="month"]', - 'input[type="time"]', - 'input[type="week"]'; - -$unquoted-inputs-list: (); -@each $input-type in $inputs-list { - $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma); -} - -$all-text-inputs: $unquoted-inputs-list; - - -// Hover Pseudo-class -//************************************************************************// -$all-text-inputs-hover: (); -@each $input-type in $unquoted-inputs-list { - $input-type-hover: $input-type + ":hover"; - $all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma); -} - -// Focus Pseudo-class -//************************************************************************// -$all-text-inputs-focus: (); -@each $input-type in $unquoted-inputs-list { - $input-type-focus: $input-type + ":focus"; - $all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma); -} - -// You must use interpolation on the variable: -// #{$all-text-inputs} -// #{$all-text-inputs-hover} -// #{$all-text-inputs-focus} - -// Example -//************************************************************************// -// #{$all-text-inputs}, textarea { -// border: 1px solid red; -// } diff --git a/public/scss/vendor/bourbon/addons/_position.scss b/public/scss/vendor/bourbon/addons/_position.scss deleted file mode 100755 index faad1cae5..000000000 --- a/public/scss/vendor/bourbon/addons/_position.scss +++ /dev/null @@ -1,42 +0,0 @@ -@mixin position ($position: relative, $coordinates: 0 0 0 0) { - - @if type-of($position) == list { - $coordinates: $position; - $position: relative; - } - - $top: nth($coordinates, 1); - $right: nth($coordinates, 2); - $bottom: nth($coordinates, 3); - $left: nth($coordinates, 4); - - position: $position; - - @if $top == auto { - top: $top; - } - @else if not(unitless($top)) { - top: $top; - } - - @if $right == auto { - right: $right; - } - @else if not(unitless($right)) { - right: $right; - } - - @if $bottom == auto { - bottom: $bottom; - } - @else if not(unitless($bottom)) { - bottom: $bottom; - } - - @if $left == auto { - left: $left; - } - @else if not(unitless($left)) { - left: $left; - } -} diff --git a/public/scss/vendor/bourbon/addons/_prefixer.scss b/public/scss/vendor/bourbon/addons/_prefixer.scss deleted file mode 100755 index 6bfd23a1d..000000000 --- a/public/scss/vendor/bourbon/addons/_prefixer.scss +++ /dev/null @@ -1,49 +0,0 @@ -//************************************************************************// -// Example: @include prefixer(border-radius, $radii, webkit ms spec); -//************************************************************************// -$prefix-for-webkit: true !default; -$prefix-for-mozilla: true !default; -$prefix-for-microsoft: true !default; -$prefix-for-opera: true !default; -$prefix-for-spec: true !default; // required for keyframe mixin - -@mixin prefixer ($property, $value, $prefixes) { - @each $prefix in $prefixes { - @if $prefix == webkit { - @if $prefix-for-webkit { - -webkit-#{$property}: $value; - } - } - @else if $prefix == moz { - @if $prefix-for-mozilla { - -moz-#{$property}: $value; - } - } - @else if $prefix == ms { - @if $prefix-for-microsoft { - -ms-#{$property}: $value; - } - } - @else if $prefix == o { - @if $prefix-for-opera { - -o-#{$property}: $value; - } - } - @else if $prefix == spec { - @if $prefix-for-spec { - #{$property}: $value; - } - } - @else { - @warn "Unrecognized prefix: #{$prefix}"; - } - } -} - -@mixin disable-prefix-for-all() { - $prefix-for-webkit: false; - $prefix-for-mozilla: false; - $prefix-for-microsoft: false; - $prefix-for-opera: false; - $prefix-for-spec: false; -} diff --git a/public/scss/vendor/bourbon/addons/_retina-image.scss b/public/scss/vendor/bourbon/addons/_retina-image.scss deleted file mode 100755 index a84b6faeb..000000000 --- a/public/scss/vendor/bourbon/addons/_retina-image.scss +++ /dev/null @@ -1,32 +0,0 @@ -@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) { - @if $asset-pipeline { - background-image: image-url("#{$filename}.#{$extension}"); - } - @else { - background-image: url("#{$filename}.#{$extension}"); - } - - @include hidpi { - - @if $asset-pipeline { - @if $retina-filename { - background-image: image-url("#{$retina-filename}.#{$extension}"); - } - @else { - background-image: image-url("#{$filename}@2x.#{$extension}"); - } - } - - @else { - @if $retina-filename { - background-image: url("#{$retina-filename}.#{$extension}"); - } - @else { - background-image: url("#{$filename}@2x.#{$extension}"); - } - } - - background-size: $background-size; - - } -} diff --git a/public/scss/vendor/bourbon/addons/_size.scss b/public/scss/vendor/bourbon/addons/_size.scss deleted file mode 100755 index 342e41b79..000000000 --- a/public/scss/vendor/bourbon/addons/_size.scss +++ /dev/null @@ -1,44 +0,0 @@ -@mixin size($size) { - @if length($size) == 1 { - @if $size == auto { - width: $size; - height: $size; - } - - @else if unitless($size) { - width: $size + px; - height: $size + px; - } - - @else if not(unitless($size)) { - width: $size; - height: $size; - } - } - - // Width x Height - @if length($size) == 2 { - $width: nth($size, 1); - $height: nth($size, 2); - - @if $width == auto { - width: $width; - } - @else if not(unitless($width)) { - width: $width; - } - @else if unitless($width) { - width: $width + px; - } - - @if $height == auto { - height: $height; - } - @else if not(unitless($height)) { - height: $height; - } - @else if unitless($height) { - height: $height + px; - } - } -} diff --git a/public/scss/vendor/bourbon/addons/_timing-functions.scss b/public/scss/vendor/bourbon/addons/_timing-functions.scss deleted file mode 100755 index 51b241091..000000000 --- a/public/scss/vendor/bourbon/addons/_timing-functions.scss +++ /dev/null @@ -1,32 +0,0 @@ -// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie) -// Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html - -// EASE IN -$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530); -$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190); -$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220); -$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060); -$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715); -$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035); -$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335); -$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045); - -// EASE OUT -$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940); -$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000); -$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000); -$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000); -$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000); -$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000); -$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000); -$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275); - -// EASE IN OUT -$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955); -$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000); -$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000); -$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000); -$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950); -$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000); -$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860); -$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550); diff --git a/public/scss/vendor/bourbon/addons/_triangle.scss b/public/scss/vendor/bourbon/addons/_triangle.scss deleted file mode 100755 index 0e02aca2c..000000000 --- a/public/scss/vendor/bourbon/addons/_triangle.scss +++ /dev/null @@ -1,45 +0,0 @@ -@mixin triangle ($size, $color, $direction) { - height: 0; - width: 0; - - @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) { - border-color: transparent; - border-style: solid; - border-width: $size / 2; - - @if $direction == up { - border-bottom-color: $color; - - } @else if $direction == right { - border-left-color: $color; - - } @else if $direction == down { - border-top-color: $color; - - } @else if $direction == left { - border-right-color: $color; - } - } - - @else if ($direction == up-right) or ($direction == up-left) { - border-top: $size solid $color; - - @if $direction == up-right { - border-left: $size solid transparent; - - } @else if $direction == up-left { - border-right: $size solid transparent; - } - } - - @else if ($direction == down-right) or ($direction == down-left) { - border-bottom: $size solid $color; - - @if $direction == down-right { - border-left: $size solid transparent; - - } @else if $direction == down-left { - border-right: $size solid transparent; - } - } -} diff --git a/public/scss/vendor/bourbon/css3/_animation.scss b/public/scss/vendor/bourbon/css3/_animation.scss deleted file mode 100755 index 08c3dbf15..000000000 --- a/public/scss/vendor/bourbon/css3/_animation.scss +++ /dev/null @@ -1,52 +0,0 @@ -// http://www.w3.org/TR/css3-animations/#the-animation-name-property- -// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties. - -// Official animation shorthand property. -@mixin animation ($animations...) { - @include prefixer(animation, $animations, webkit moz spec); -} - -// Individual Animation Properties -@mixin animation-name ($names...) { - @include prefixer(animation-name, $names, webkit moz spec); -} - - -@mixin animation-duration ($times...) { - @include prefixer(animation-duration, $times, webkit moz spec); -} - - -@mixin animation-timing-function ($motions...) { -// ease | linear | ease-in | ease-out | ease-in-out - @include prefixer(animation-timing-function, $motions, webkit moz spec); -} - - -@mixin animation-iteration-count ($values...) { -// infinite | - @include prefixer(animation-iteration-count, $values, webkit moz spec); -} - - -@mixin animation-direction ($directions...) { -// normal | alternate - @include prefixer(animation-direction, $directions, webkit moz spec); -} - - -@mixin animation-play-state ($states...) { -// running | paused - @include prefixer(animation-play-state, $states, webkit moz spec); -} - - -@mixin animation-delay ($times...) { - @include prefixer(animation-delay, $times, webkit moz spec); -} - - -@mixin animation-fill-mode ($modes...) { -// none | forwards | backwards | both - @include prefixer(animation-fill-mode, $modes, webkit moz spec); -} diff --git a/public/scss/vendor/bourbon/css3/_appearance.scss b/public/scss/vendor/bourbon/css3/_appearance.scss deleted file mode 100755 index 3eb16e45d..000000000 --- a/public/scss/vendor/bourbon/css3/_appearance.scss +++ /dev/null @@ -1,3 +0,0 @@ -@mixin appearance ($value) { - @include prefixer(appearance, $value, webkit moz ms o spec); -} diff --git a/public/scss/vendor/bourbon/css3/_backface-visibility.scss b/public/scss/vendor/bourbon/css3/_backface-visibility.scss deleted file mode 100755 index 1161fe60d..000000000 --- a/public/scss/vendor/bourbon/css3/_backface-visibility.scss +++ /dev/null @@ -1,6 +0,0 @@ -//************************************************************************// -// Backface-visibility mixin -//************************************************************************// -@mixin backface-visibility($visibility) { - @include prefixer(backface-visibility, $visibility, webkit spec); -} diff --git a/public/scss/vendor/bourbon/css3/_background-image.scss b/public/scss/vendor/bourbon/css3/_background-image.scss deleted file mode 100755 index 17016b91b..000000000 --- a/public/scss/vendor/bourbon/css3/_background-image.scss +++ /dev/null @@ -1,48 +0,0 @@ -//************************************************************************// -// Background-image property for adding multiple background images with -// gradients, or for stringing multiple gradients together. -//************************************************************************// - -@mixin background-image($images...) { - background-image: _add-prefix($images, webkit); - background-image: _add-prefix($images); -} - -@function _add-prefix($images, $vendor: false) { - $images-prefixed: (); - $gradient-positions: false; - @for $i from 1 through length($images) { - $type: type-of(nth($images, $i)); // Get type of variable - List or String - - // If variable is a list - Gradient - @if $type == list { - $gradient-type: nth(nth($images, $i), 1); // linear or radial - $gradient-pos: null; - $gradient-args: null; - - @if ($gradient-type == linear) or ($gradient-type == radial) { - $gradient-pos: nth(nth($images, $i), 2); // Get gradient position - $gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue) - } - @else { - $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue) - } - - $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos); - $gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor); - $images-prefixed: append($images-prefixed, $gradient, comma); - } - // If variable is a string - Image - @else if $type == string { - $images-prefixed: join($images-prefixed, nth($images, $i), comma); - } - } - @return $images-prefixed; -} - -//Examples: - //@include background-image(linear-gradient(top, orange, red)); - //@include background-image(radial-gradient(50% 50%, cover circle, orange, red)); - //@include background-image(url("/images/a.png"), linear-gradient(orange, red)); - //@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png")); - //@include background-image(linear-gradient(hsla(0, 100%, 100%, 0.25) 0%, hsla(0, 100%, 100%, 0.08) 50%, transparent 50%), linear-gradient(orange, red)); diff --git a/public/scss/vendor/bourbon/css3/_background.scss b/public/scss/vendor/bourbon/css3/_background.scss deleted file mode 100755 index 766d5d322..000000000 --- a/public/scss/vendor/bourbon/css3/_background.scss +++ /dev/null @@ -1,103 +0,0 @@ -//************************************************************************// -// Background property for adding multiple backgrounds using shorthand -// notation. -//************************************************************************// - -@mixin background( - $background-1 , $background-2: false, - $background-3: false, $background-4: false, - $background-5: false, $background-6: false, - $background-7: false, $background-8: false, - $background-9: false, $background-10: false, - $fallback: false -) { - $backgrounds: compact($background-1, $background-2, - $background-3, $background-4, - $background-5, $background-6, - $background-7, $background-8, - $background-9, $background-10); - - $fallback-color: false; - @if (type-of($fallback) == color) or ($fallback == "transparent") { - $fallback-color: $fallback; - } - @else { - $fallback-color: _extract-background-color($backgrounds); - } - - @if $fallback-color { - background-color: $fallback-color; - } - background: _background-add-prefix($backgrounds, webkit); - background: _background-add-prefix($backgrounds); -} - -@function _extract-background-color($backgrounds) { - $final-bg-layer: nth($backgrounds, length($backgrounds)); - @if type-of($final-bg-layer) == list { - @for $i from 1 through length($final-bg-layer) { - $value: nth($final-bg-layer, $i); - @if type-of($value) == color { - @return $value; - } - } - } - @return false; -} - -@function _background-add-prefix($backgrounds, $vendor: false) { - $backgrounds-prefixed: (); - - @for $i from 1 through length($backgrounds) { - $shorthand: nth($backgrounds, $i); // Get member for current index - $type: type-of($shorthand); // Get type of variable - List (gradient) or String (image) - - // If shorthand is a list (gradient) - @if $type == list { - $first-member: nth($shorthand, 1); // Get first member of shorthand - - // Linear Gradient - @if index(linear radial, nth($first-member, 1)) { - $gradient-type: nth($first-member, 1); // linear || radial - $gradient-args: false; - $gradient-positions: false; - $shorthand-start: false; - @if type-of($first-member) == list { // Linear gradient plus additional shorthand values - lg(red,orange)repeat,... - $gradient-positions: nth($first-member, 2); - $gradient-args: nth($first-member, 3); - $shorthand-start: 2; - } - @else { // Linear gradient only - lg(red,orange),... - $gradient-positions: nth($shorthand, 2); - $gradient-args: nth($shorthand, 3); // Get gradient (red, blue) - } - - $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-positions); - $gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor); - - // Append any additional shorthand args to gradient - @if $shorthand-start { - @for $j from $shorthand-start through length($shorthand) { - $gradient: join($gradient, nth($shorthand, $j), space); - } - } - $backgrounds-prefixed: append($backgrounds-prefixed, $gradient, comma); - } - // Image with additional properties - @else { - $backgrounds-prefixed: append($backgrounds-prefixed, $shorthand, comma); - } - } - // If shorthand is a simple string (color or image) - @else if $type == string { - $backgrounds-prefixed: join($backgrounds-prefixed, $shorthand, comma); - } - } - @return $backgrounds-prefixed; -} - -//Examples: - //@include background(linear-gradient(top, orange, red)); - //@include background(radial-gradient(circle at 40% 40%, orange, red)); - //@include background(url("/images/a.png") no-repeat, linear-gradient(orange, red)); - //@include background(url("image.png") center center, linear-gradient(orange, red), url("image.png")); diff --git a/public/scss/vendor/bourbon/css3/_border-image.scss b/public/scss/vendor/bourbon/css3/_border-image.scss deleted file mode 100755 index 1fff212df..000000000 --- a/public/scss/vendor/bourbon/css3/_border-image.scss +++ /dev/null @@ -1,55 +0,0 @@ -@mixin border-image($images) { - -webkit-border-image: _border-add-prefix($images, webkit); - -moz-border-image: _border-add-prefix($images, moz); - -o-border-image: _border-add-prefix($images, o); - border-image: _border-add-prefix($images); -} - -@function _border-add-prefix($images, $vendor: false) { - $border-image: null; - $images-type: type-of(nth($images, 1)); - $first-var: nth(nth($images, 1), 1); // Get type of Gradient (Linear || radial) - - // If input is a gradient - @if $images-type == string { - @if ($first-var == "linear") or ($first-var == "radial") { - $gradient-type: nth($images, 1); // Get type of gradient (linear || radial) - $gradient-pos: nth($images, 2); // Get gradient position - $gradient-args: nth($images, 3); // Get actual gradient (red, blue) - $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos); - $border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor); - } - // If input is a URL - @else { - $border-image: $images; - } - } - // If input is gradient or url + additional args - @else if $images-type == list { - $type: type-of(nth($images, 1)); // Get type of variable - List or String - - // If variable is a list - Gradient - @if $type == list { - $gradient: nth($images, 1); - $gradient-type: nth($gradient, 1); // Get type of gradient (linear || radial) - $gradient-pos: nth($gradient, 2); // Get gradient position - $gradient-args: nth($gradient, 3); // Get actual gradient (red, blue) - $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos); - $border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor); - - @for $i from 2 through length($images) { - $border-image: append($border-image, nth($images, $i)); - } - } - } - @return $border-image; -} - -//Examples: -// @include border-image(url("image.png")); -// @include border-image(url("image.png") 20 stretch); -// @include border-image(linear-gradient(45deg, orange, yellow)); -// @include border-image(linear-gradient(45deg, orange, yellow) stretch); -// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round); -// @include border-image(radial-gradient(top, cover, orange, yellow, orange)); - diff --git a/public/scss/vendor/bourbon/css3/_border-radius.scss b/public/scss/vendor/bourbon/css3/_border-radius.scss deleted file mode 100755 index 7c1719010..000000000 --- a/public/scss/vendor/bourbon/css3/_border-radius.scss +++ /dev/null @@ -1,22 +0,0 @@ -//************************************************************************// -// Shorthand Border-radius mixins -//************************************************************************// -@mixin border-top-radius($radii) { - @include prefixer(border-top-left-radius, $radii, spec); - @include prefixer(border-top-right-radius, $radii, spec); -} - -@mixin border-bottom-radius($radii) { - @include prefixer(border-bottom-left-radius, $radii, spec); - @include prefixer(border-bottom-right-radius, $radii, spec); -} - -@mixin border-left-radius($radii) { - @include prefixer(border-top-left-radius, $radii, spec); - @include prefixer(border-bottom-left-radius, $radii, spec); -} - -@mixin border-right-radius($radii) { - @include prefixer(border-top-right-radius, $radii, spec); - @include prefixer(border-bottom-right-radius, $radii, spec); -} diff --git a/public/scss/vendor/bourbon/css3/_box-sizing.scss b/public/scss/vendor/bourbon/css3/_box-sizing.scss deleted file mode 100755 index f07e1d412..000000000 --- a/public/scss/vendor/bourbon/css3/_box-sizing.scss +++ /dev/null @@ -1,4 +0,0 @@ -@mixin box-sizing ($box) { -// content-box | border-box | inherit - @include prefixer(box-sizing, $box, webkit moz spec); -} diff --git a/public/scss/vendor/bourbon/css3/_columns.scss b/public/scss/vendor/bourbon/css3/_columns.scss deleted file mode 100755 index 42274a4ee..000000000 --- a/public/scss/vendor/bourbon/css3/_columns.scss +++ /dev/null @@ -1,47 +0,0 @@ -@mixin columns($arg: auto) { -// || - @include prefixer(columns, $arg, webkit moz spec); -} - -@mixin column-count($int: auto) { -// auto || integer - @include prefixer(column-count, $int, webkit moz spec); -} - -@mixin column-gap($length: normal) { -// normal || length - @include prefixer(column-gap, $length, webkit moz spec); -} - -@mixin column-fill($arg: auto) { -// auto || length - @include prefixer(columns-fill, $arg, webkit moz spec); -} - -@mixin column-rule($arg) { -// || || - @include prefixer(column-rule, $arg, webkit moz spec); -} - -@mixin column-rule-color($color) { - @include prefixer(column-rule-color, $color, webkit moz spec); -} - -@mixin column-rule-style($style: none) { -// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid - @include prefixer(column-rule-style, $style, webkit moz spec); -} - -@mixin column-rule-width ($width: none) { - @include prefixer(column-rule-width, $width, webkit moz spec); -} - -@mixin column-span($arg: none) { -// none || all - @include prefixer(column-span, $arg, webkit moz spec); -} - -@mixin column-width($length: auto) { -// auto || length - @include prefixer(column-width, $length, webkit moz spec); -} diff --git a/public/scss/vendor/bourbon/css3/_flex-box.scss b/public/scss/vendor/bourbon/css3/_flex-box.scss deleted file mode 100755 index 03ee836c5..000000000 --- a/public/scss/vendor/bourbon/css3/_flex-box.scss +++ /dev/null @@ -1,320 +0,0 @@ -// CSS3 Flexible Box Model and property defaults - -// Custom shorthand notation for flexbox -@mixin box($orient: inline-axis, $pack: start, $align: stretch) { - @include display-box; - @include box-orient($orient); - @include box-pack($pack); - @include box-align($align); -} - -@mixin display-box { - display: -webkit-box; - display: -moz-box; - display: -ms-flexbox; // IE 10 - display: box; -} - -@mixin box-orient($orient: inline-axis) { -// horizontal|vertical|inline-axis|block-axis|inherit - @include prefixer(box-orient, $orient, webkit moz spec); -} - -@mixin box-pack($pack: start) { -// start|end|center|justify - @include prefixer(box-pack, $pack, webkit moz spec); - -ms-flex-pack: $pack; // IE 10 -} - -@mixin box-align($align: stretch) { -// start|end|center|baseline|stretch - @include prefixer(box-align, $align, webkit moz spec); - -ms-flex-align: $align; // IE 10 -} - -@mixin box-direction($direction: normal) { -// normal|reverse|inherit - @include prefixer(box-direction, $direction, webkit moz spec); - -ms-flex-direction: $direction; // IE 10 -} - -@mixin box-lines($lines: single) { -// single|multiple - @include prefixer(box-lines, $lines, webkit moz spec); -} - -@mixin box-ordinal-group($int: 1) { - @include prefixer(box-ordinal-group, $int, webkit moz spec); - -ms-flex-order: $int; // IE 10 -} - -@mixin box-flex($value: 0.0) { - @include prefixer(box-flex, $value, webkit moz spec); - -ms-flex: $value; // IE 10 -} - -@mixin box-flex-group($int: 1) { - @include prefixer(box-flex-group, $int, webkit moz spec); -} - -// CSS3 Flexible Box Model and property defaults -// Unified attributes for 2009, 2011, and 2012 flavours. - -// 2009 - display (box | inline-box) -// 2011 - display (flexbox | inline-flexbox) -// 2012 - display (flex | inline-flex) -@mixin display($value) { -// flex | inline-flex - @if $value == "flex" { - // 2009 - display: -webkit-box; - display: -moz-box; - display: box; - - // 2012 - display: -webkit-flex; - display: -moz-flex; - display: -ms-flexbox; // 2011 (IE 10) - display: flex; - } - - @elseif $value == "inline-flex" { - display: -webkit-inline-box; - display: -moz-inline-box; - display: inline-box; - - display: -webkit-inline-flex; - display: -moz-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - } - - @else { - display: $value; - } -} - -// 2009 - box-flex (integer) -// 2011 - flex (decimal | width decimal) -// 2012 - flex (integer integer width) -@mixin flex($value) { - - // Grab flex-grow for older browsers. - $flex-grow: nth($value, 1); - - // 2009 - @include prefixer(box-flex, $flex-grow, webkit moz spec); - - // 2011 (IE 10), 2012 - @include prefixer(flex, $value, webkit moz ms spec); -} - -// 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis) -// - box-direction (normal | reverse) -// 2011 - flex-direction (row | row-reverse | column | column-reverse) -// 2012 - flex-direction (row | row-reverse | column | column-reverse) -@mixin flex-direction($value: row) { - - // Alt values. - $value-2009: $value; - $value-2011: $value; - $direction: "normal"; - - @if $value == row { - $value-2009: horizontal; - } - - @elseif $value == "row-reverse" { - $value-2009: horizontal; - $direction: reverse; - } - - @elseif $value == column { - $value-2009: vertical; - } - - @elseif $value == "column-reverse" { - $value-2009: vertical; - $direction: reverse; - } - - // 2009 - @include prefixer(box-orient, $value-2009, webkit moz spec); - @if $direction == "reverse" { - @include prefixer(box-direction, $direction, webkit moz spec); - } - - // 2012 - @include prefixer(flex-direction, $value, webkit moz spec); - - // 2011 (IE 10) - -ms-flex-direction: $value; -} - -// 2009 - box-lines (single | multiple) -// 2011 - flex-wrap (nowrap | wrap | wrap-reverse) -// 2012 - flex-wrap (nowrap | wrap | wrap-reverse) -@mixin flex-wrap($value: nowrap) { - - // Alt values. - $alt-value: $value; - @if $value == nowrap { - $alt-value: single; - } - - @elseif $value == wrap { - $alt-value: multiple; - } - - @elseif $value == "wrap-reverse" { - $alt-value: multiple; - } - - @include prefixer(box-lines, $alt-value, webkit moz spec); - @include prefixer(flex-wrap, $value, webkit moz ms spec); -} - -// 2009 - TODO: parse values into flex-direction/flex-wrap -// 2011 - TODO: parse values into flex-direction/flex-wrap -// 2012 - flex-flow (flex-direction || flex-wrap) -@mixin flex-flow($value) { - @include prefixer(flex-flow, $value, webkit moz spec); -} - -// 2009 - box-ordinal-group (integer) -// 2011 - flex-order (integer) -// 2012 - order (integer) -@mixin order($int: 0) { - // 2009 - @include prefixer(box-ordinal-group, $int, webkit moz spec); - - // 2012 - @include prefixer(order, $int, webkit moz spec); - - // 2011 (IE 10) - -ms-flex-order: $int; -} - -// 2012 - flex-grow (number) -@mixin flex-grow($number: 0) { - @include prefixer(flex-grow, $number, webkit moz spec); - -ms-flex-positive: $number; -} - -// 2012 - flex-shrink (number) -@mixin flex-shrink($number: 1) { - @include prefixer(flex-shrink, $number, webkit moz spec); - -ms-flex-negative: $number; -} - -// 2012 - flex-basis (number) -@mixin flex-basis($width: auto) { - @include prefixer(flex-basis, $width, webkit moz spec); - -ms-flex-preferred-size: $width; -} - -// 2009 - box-pack (start | end | center | justify) -// 2011 - flex-pack (start | end | center | justify) -// 2012 - justify-content (flex-start | flex-end | center | space-between | space-around) -@mixin justify-content ($value: flex-start) { - - // Alt values. - $alt-value: $value; - @if $value == "flex-start" { - $alt-value: start; - } - - @elseif $value == "flex-end" { - $alt-value: end; - } - - @elseif $value == "space-between" { - $alt-value: justify; - } - - @elseif $value == "space-around" { - $alt-value: center; - } - - // 2009 - @include prefixer(box-pack, $alt-value, webkit moz spec); - - // 2012 - @include prefixer(justify-content, $value, webkit moz ms o spec); - - // 2011 (IE 10) - -ms-flex-pack: $alt-value; -} - -// 2009 - box-align (start | end | center | baseline | stretch) -// 2011 - flex-align (start | end | center | baseline | stretch) -// 2012 - align-items (flex-start | flex-end | center | baseline | stretch) -@mixin align-items($value: stretch) { - - $alt-value: $value; - - @if $value == "flex-start" { - $alt-value: start; - } - - @elseif $value == "flex-end" { - $alt-value: end; - } - - // 2009 - @include prefixer(box-align, $alt-value, webkit moz spec); - - // 2012 - @include prefixer(align-items, $value, webkit moz ms o spec); - - // 2011 (IE 10) - -ms-flex-align: $alt-value; -} - -// 2011 - flex-item-align (auto | start | end | center | baseline | stretch) -// 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch) -@mixin align-self($value: auto) { - - $value-2011: $value; - @if $value == "flex-start" { - $value-2011: start; - } - - @elseif $value == "flex-end" { - $value-2011: end; - } - - // 2012 - @include prefixer(align-self, $value, webkit moz spec); - - // 2011 (IE 10) - -ms-flex-item-align: $value-2011; -} - -// 2011 - flex-line-pack (start | end | center | justify | distribute | stretch) -// 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch) -@mixin align-content($value: stretch) { - - $value-2011: $value; - @if $value == "flex-start" { - $value-2011: start; - } - - @elseif $value == "flex-end" { - $value-2011: end; - } - - @elseif $value == "space-between" { - $value-2011: justify; - } - - @elseif $value == "space-around" { - $value-2011: distribute; - } - - // 2012 - @include prefixer(align-content, $value, webkit moz spec); - - // 2011 (IE 10) - -ms-flex-line-pack: $value-2011; -} \ No newline at end of file diff --git a/public/scss/vendor/bourbon/css3/_font-face.scss b/public/scss/vendor/bourbon/css3/_font-face.scss deleted file mode 100755 index 029ee8fe8..000000000 --- a/public/scss/vendor/bourbon/css3/_font-face.scss +++ /dev/null @@ -1,23 +0,0 @@ -// Order of the includes matters, and it is: normal, bold, italic, bold+italic. - -@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) { - @font-face { - font-family: $font-family; - font-weight: $weight; - font-style: $style; - - @if $asset-pipeline == true { - src: font-url('#{$file-path}.eot'); - src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'), - font-url('#{$file-path}.woff') format('woff'), - font-url('#{$file-path}.ttf') format('truetype'), - font-url('#{$file-path}.svg##{$font-family}') format('svg'); - } @else { - src: url('#{$file-path}.eot'); - src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'), - url('#{$file-path}.woff') format('woff'), - url('#{$file-path}.ttf') format('truetype'), - url('#{$file-path}.svg##{$font-family}') format('svg'); - } - } -} diff --git a/public/scss/vendor/bourbon/css3/_hidpi-media-query.scss b/public/scss/vendor/bourbon/css3/_hidpi-media-query.scss deleted file mode 100755 index 111e4009b..000000000 --- a/public/scss/vendor/bourbon/css3/_hidpi-media-query.scss +++ /dev/null @@ -1,10 +0,0 @@ -// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/) -@mixin hidpi($ratio: 1.3) { - @media only screen and (-webkit-min-device-pixel-ratio: $ratio), - only screen and (min--moz-device-pixel-ratio: $ratio), - only screen and (-o-min-device-pixel-ratio: #{$ratio}/1), - only screen and (min-resolution: #{round($ratio*96)}dpi), - only screen and (min-resolution: #{$ratio}dppx) { - @content; - } -} diff --git a/public/scss/vendor/bourbon/css3/_image-rendering.scss b/public/scss/vendor/bourbon/css3/_image-rendering.scss deleted file mode 100755 index abc7ee1aa..000000000 --- a/public/scss/vendor/bourbon/css3/_image-rendering.scss +++ /dev/null @@ -1,13 +0,0 @@ -@mixin image-rendering ($mode:optimizeQuality) { - - @if ($mode == optimize-contrast) { - image-rendering: -moz-crisp-edges; - image-rendering: -o-crisp-edges; - image-rendering: -webkit-optimize-contrast; - image-rendering: optimize-contrast; - } - - @else { - image-rendering: $mode; - } -} diff --git a/public/scss/vendor/bourbon/css3/_inline-block.scss b/public/scss/vendor/bourbon/css3/_inline-block.scss deleted file mode 100755 index 3272a0010..000000000 --- a/public/scss/vendor/bourbon/css3/_inline-block.scss +++ /dev/null @@ -1,8 +0,0 @@ -// Legacy support for inline-block in IE7 (maybe IE6) -@mixin inline-block { - display: inline-block; - vertical-align: baseline; - zoom: 1; - *display: inline; - *vertical-align: auto; -} diff --git a/public/scss/vendor/bourbon/css3/_keyframes.scss b/public/scss/vendor/bourbon/css3/_keyframes.scss deleted file mode 100755 index dca61f2a0..000000000 --- a/public/scss/vendor/bourbon/css3/_keyframes.scss +++ /dev/null @@ -1,43 +0,0 @@ -// Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content -@mixin keyframes($name) { - $original-prefix-for-webkit: $prefix-for-webkit; - $original-prefix-for-mozilla: $prefix-for-mozilla; - $original-prefix-for-microsoft: $prefix-for-microsoft; - $original-prefix-for-opera: $prefix-for-opera; - $original-prefix-for-spec: $prefix-for-spec; - - @if $original-prefix-for-webkit { - @include disable-prefix-for-all(); - $prefix-for-webkit: true; - @-webkit-keyframes #{$name} { - @content; - } - } - @if $original-prefix-for-mozilla { - @include disable-prefix-for-all(); - $prefix-for-mozilla: true; - @-moz-keyframes #{$name} { - @content; - } - } - @if $original-prefix-for-opera { - @include disable-prefix-for-all(); - $prefix-for-opera: true; - @-o-keyframes #{$name} { - @content; - } - } - @if $original-prefix-for-spec { - @include disable-prefix-for-all(); - $prefix-for-spec: true; - @keyframes #{$name} { - @content; - } - } - - $prefix-for-webkit: $original-prefix-for-webkit; - $prefix-for-mozilla: $original-prefix-for-mozilla; - $prefix-for-microsoft: $original-prefix-for-microsoft; - $prefix-for-opera: $original-prefix-for-opera; - $prefix-for-spec: $original-prefix-for-spec; -} diff --git a/public/scss/vendor/bourbon/css3/_linear-gradient.scss b/public/scss/vendor/bourbon/css3/_linear-gradient.scss deleted file mode 100755 index d5b687b00..000000000 --- a/public/scss/vendor/bourbon/css3/_linear-gradient.scss +++ /dev/null @@ -1,41 +0,0 @@ -@mixin linear-gradient($pos, $G1, $G2: false, - $G3: false, $G4: false, - $G5: false, $G6: false, - $G7: false, $G8: false, - $G9: false, $G10: false, - $deprecated-pos1: left top, - $deprecated-pos2: left bottom, - $fallback: false) { - // Detect what type of value exists in $pos - $pos-type: type-of(nth($pos, 1)); - $pos-spec: null; - $pos-degree: null; - - // If $pos is missing from mixin, reassign vars and add default position - @if ($pos-type == color) or (nth($pos, 1) == "transparent") { - $G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5; - $G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos; - $pos: null; - } - - @if $pos { - $positions: _linear-positions-parser($pos); - $pos-degree: nth($positions, 1); - $pos-spec: nth($positions, 2); - } - - $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10); - - // Set $G1 as the default fallback color - $fallback-color: nth($G1, 1); - - // If $fallback is a color use that color as the fallback color - @if (type-of($fallback) == color) or ($fallback == "transparent") { - $fallback-color: $fallback; - } - - background-color: $fallback-color; - background-image: _deprecated-webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $full); // Safari <= 5.0 - background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome - background-image: unquote("linear-gradient(#{$pos-spec}#{$full})"); -} diff --git a/public/scss/vendor/bourbon/css3/_perspective.scss b/public/scss/vendor/bourbon/css3/_perspective.scss deleted file mode 100755 index 0e4deb80f..000000000 --- a/public/scss/vendor/bourbon/css3/_perspective.scss +++ /dev/null @@ -1,8 +0,0 @@ -@mixin perspective($depth: none) { - // none | - @include prefixer(perspective, $depth, webkit moz spec); -} - -@mixin perspective-origin($value: 50% 50%) { - @include prefixer(perspective-origin, $value, webkit moz spec); -} diff --git a/public/scss/vendor/bourbon/css3/_placeholder.scss b/public/scss/vendor/bourbon/css3/_placeholder.scss deleted file mode 100755 index 22fd92b4f..000000000 --- a/public/scss/vendor/bourbon/css3/_placeholder.scss +++ /dev/null @@ -1,29 +0,0 @@ -$placeholders: '-webkit-input-placeholder', - '-moz-placeholder', - '-ms-input-placeholder'; - -@mixin placeholder { - @each $placeholder in $placeholders { - @if $placeholder == "-webkit-input-placeholder" { - &::#{$placeholder} { - @content; - } - } - @else if $placeholder == "-moz-placeholder" { - // FF 18- - &:#{$placeholder} { - @content; - } - - // FF 19+ - &::#{$placeholder} { - @content; - } - } - @else { - &:#{$placeholder} { - @content; - } - } - } -} diff --git a/public/scss/vendor/bourbon/css3/_radial-gradient.scss b/public/scss/vendor/bourbon/css3/_radial-gradient.scss deleted file mode 100755 index e87b45a5a..000000000 --- a/public/scss/vendor/bourbon/css3/_radial-gradient.scss +++ /dev/null @@ -1,44 +0,0 @@ -// Requires Sass 3.1+ -@mixin radial-gradient($G1, $G2, - $G3: false, $G4: false, - $G5: false, $G6: false, - $G7: false, $G8: false, - $G9: false, $G10: false, - $pos: null, - $shape-size: null, - $deprecated-pos1: center center, - $deprecated-pos2: center center, - $deprecated-radius1: 0, - $deprecated-radius2: 460, - $fallback: false) { - - $data: _radial-arg-parser($G1, $G2, $pos, $shape-size); - $G1: nth($data, 1); - $G2: nth($data, 2); - $pos: nth($data, 3); - $shape-size: nth($data, 4); - - $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10); - - // Strip deprecated cover/contain for spec - $shape-size-spec: _shape-size-stripper($shape-size); - - // Set $G1 as the default fallback color - $first-color: nth($full, 1); - $fallback-color: nth($first-color, 1); - - @if (type-of($fallback) == color) or ($fallback == "transparent") { - $fallback-color: $fallback; - } - - // Add Commas and spaces - $shape-size: if($shape-size, '#{$shape-size}, ', null); - $pos: if($pos, '#{$pos}, ', null); - $pos-spec: if($pos, 'at #{$pos}', null); - $shape-size-spec: if(($shape-size-spec != ' ') and ($pos == null), '#{$shape-size-spec}, ', '#{$shape-size-spec} '); - - background-color: $fallback-color; - background-image: _deprecated-webkit-gradient(radial, $deprecated-pos1, $deprecated-pos2, $full, $deprecated-radius1, $deprecated-radius2); // Safari <= 5.0 && IOS 4 - background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full})); - background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})"); -} diff --git a/public/scss/vendor/bourbon/css3/_transform.scss b/public/scss/vendor/bourbon/css3/_transform.scss deleted file mode 100755 index 8cc35963d..000000000 --- a/public/scss/vendor/bourbon/css3/_transform.scss +++ /dev/null @@ -1,15 +0,0 @@ -@mixin transform($property: none) { -// none | - @include prefixer(transform, $property, webkit moz ms o spec); -} - -@mixin transform-origin($axes: 50%) { -// x-axis - left | center | right | length | % -// y-axis - top | center | bottom | length | % -// z-axis - length - @include prefixer(transform-origin, $axes, webkit moz ms o spec); -} - -@mixin transform-style ($style: flat) { - @include prefixer(transform-style, $style, webkit moz ms o spec); -} diff --git a/public/scss/vendor/bourbon/css3/_transition.scss b/public/scss/vendor/bourbon/css3/_transition.scss deleted file mode 100755 index 180cde6c8..000000000 --- a/public/scss/vendor/bourbon/css3/_transition.scss +++ /dev/null @@ -1,34 +0,0 @@ -// Shorthand mixin. Supports multiple parentheses-deliminated values for each variable. -// Example: @include transition (all, 2.0s, ease-in-out); -// @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s)); -// @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s)); - -@mixin transition ($properties...) { - @if length($properties) >= 1 { - @include prefixer(transition, $properties, webkit moz spec); - } - - @else { - $properties: all 0.15s ease-out 0; - @include prefixer(transition, $properties, webkit moz spec); - } -} - -@mixin transition-property ($properties...) { - -webkit-transition-property: transition-property-names($properties, 'webkit'); - -moz-transition-property: transition-property-names($properties, 'moz'); - transition-property: transition-property-names($properties, false); -} - -@mixin transition-duration ($times...) { - @include prefixer(transition-duration, $times, webkit moz spec); -} - -@mixin transition-timing-function ($motions...) { -// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier() - @include prefixer(transition-timing-function, $motions, webkit moz spec); -} - -@mixin transition-delay ($times...) { - @include prefixer(transition-delay, $times, webkit moz spec); -} diff --git a/public/scss/vendor/bourbon/css3/_user-select.scss b/public/scss/vendor/bourbon/css3/_user-select.scss deleted file mode 100755 index 1380aa8ba..000000000 --- a/public/scss/vendor/bourbon/css3/_user-select.scss +++ /dev/null @@ -1,3 +0,0 @@ -@mixin user-select($arg: none) { - @include prefixer(user-select, $arg, webkit moz ms spec); -} diff --git a/public/scss/vendor/bourbon/functions/_compact.scss b/public/scss/vendor/bourbon/functions/_compact.scss deleted file mode 100755 index 871500e33..000000000 --- a/public/scss/vendor/bourbon/functions/_compact.scss +++ /dev/null @@ -1,11 +0,0 @@ -// Remove `false` values from a list - -@function compact($vars...) { - $list: (); - @each $var in $vars { - @if $var { - $list: append($list, $var, comma); - } - } - @return $list; -} diff --git a/public/scss/vendor/bourbon/functions/_flex-grid.scss b/public/scss/vendor/bourbon/functions/_flex-grid.scss deleted file mode 100755 index 3bbd86657..000000000 --- a/public/scss/vendor/bourbon/functions/_flex-grid.scss +++ /dev/null @@ -1,39 +0,0 @@ -// Flexible grid -@function flex-grid($columns, $container-columns: $fg-max-columns) { - $width: $columns * $fg-column + ($columns - 1) * $fg-gutter; - $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter; - @return percentage($width / $container-width); -} - -// Flexible gutter -@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) { - $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter; - @return percentage($gutter / $container-width); -} - -// The $fg-column, $fg-gutter and $fg-max-columns variables must be defined in your base stylesheet to properly use the flex-grid function. -// This function takes the fluid grid equation (target / context = result) and uses columns to help define each. -// -// The calculation presumes that your column structure will be missing the last gutter: -// -// -- column -- gutter -- column -- gutter -- column -// -// $fg-column: 60px; // Column Width -// $fg-gutter: 25px; // Gutter Width -// $fg-max-columns: 12; // Total Columns For Main Container -// -// div { -// width: flex-grid(4); // returns (315px / 995px) = 31.65829%; -// margin-left: flex-gutter(); // returns (25px / 995px) = 2.51256%; -// -// p { -// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%; -// float: left; -// margin: flex-gutter(4); // returns (25px / 315px) = 7.936508%; -// } -// -// blockquote { -// float: left; -// width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%; -// } -// } \ No newline at end of file diff --git a/public/scss/vendor/bourbon/functions/_grid-width.scss b/public/scss/vendor/bourbon/functions/_grid-width.scss deleted file mode 100755 index 8e63d83d6..000000000 --- a/public/scss/vendor/bourbon/functions/_grid-width.scss +++ /dev/null @@ -1,13 +0,0 @@ -@function grid-width($n) { - @return $n * $gw-column + ($n - 1) * $gw-gutter; -} - -// The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function. -// -// $gw-column: 100px; // Column Width -// $gw-gutter: 40px; // Gutter Width -// -// div { -// width: grid-width(4); // returns 520px; -// margin-left: $gw-gutter; // returns 40px; -// } diff --git a/public/scss/vendor/bourbon/functions/_linear-gradient.scss b/public/scss/vendor/bourbon/functions/_linear-gradient.scss deleted file mode 100755 index c8454d83f..000000000 --- a/public/scss/vendor/bourbon/functions/_linear-gradient.scss +++ /dev/null @@ -1,13 +0,0 @@ -@function linear-gradient($pos, $gradients...) { - $type: linear; - $pos-type: type-of(nth($pos, 1)); - - // if $pos doesn't exist, fix $gradient - @if ($pos-type == color) or (nth($pos, 1) == "transparent") { - $gradients: zip($pos $gradients); - $pos: false; - } - - $type-gradient: $type, $pos, $gradients; - @return $type-gradient; -} diff --git a/public/scss/vendor/bourbon/functions/_modular-scale.scss b/public/scss/vendor/bourbon/functions/_modular-scale.scss deleted file mode 100755 index dddccb522..000000000 --- a/public/scss/vendor/bourbon/functions/_modular-scale.scss +++ /dev/null @@ -1,40 +0,0 @@ -@function modular-scale($value, $increment, $ratio) { - @if $increment > 0 { - @for $i from 1 through $increment { - $value: ($value * $ratio); - } - } - - @if $increment < 0 { - $increment: abs($increment); - @for $i from 1 through $increment { - $value: ($value / $ratio); - } - } - - @return $value; -} - -// div { -// Increment Up GR with positive value -// font-size: modular-scale(14px, 1, 1.618); // returns: 22.652px -// -// Increment Down GR with negative value -// font-size: modular-scale(14px, -1, 1.618); // returns: 8.653px -// -// Can be used with ceil(round up) or floor(round down) -// font-size: floor( modular-scale(14px, 1, 1.618) ); // returns: 22px -// font-size: ceil( modular-scale(14px, 1, 1.618) ); // returns: 23px -// } -// -// modularscale.com - -@function golden-ratio($value, $increment) { - @return modular-scale($value, $increment, 1.618) -} - -// div { -// font-size: golden-ratio(14px, 1); // returns: 22.652px -// } -// -// goldenratiocalculator.com diff --git a/public/scss/vendor/bourbon/functions/_px-to-em.scss b/public/scss/vendor/bourbon/functions/_px-to-em.scss deleted file mode 100755 index 2eb1031c6..000000000 --- a/public/scss/vendor/bourbon/functions/_px-to-em.scss +++ /dev/null @@ -1,8 +0,0 @@ -// Convert pixels to ems -// eg. for a relational value of 12px write em(12) when the parent is 16px -// if the parent is another value say 24px write em(12, 24) - -@function em($pxval, $base: 16) { - @return ($pxval / $base) * 1em; -} - diff --git a/public/scss/vendor/bourbon/functions/_radial-gradient.scss b/public/scss/vendor/bourbon/functions/_radial-gradient.scss deleted file mode 100755 index 75584060d..000000000 --- a/public/scss/vendor/bourbon/functions/_radial-gradient.scss +++ /dev/null @@ -1,23 +0,0 @@ -// This function is required and used by the background-image mixin. -@function radial-gradient($G1, $G2, - $G3: false, $G4: false, - $G5: false, $G6: false, - $G7: false, $G8: false, - $G9: false, $G10: false, - $pos: null, - $shape-size: null) { - - $data: _radial-arg-parser($G1, $G2, $pos, $shape-size); - $G1: nth($data, 1); - $G2: nth($data, 2); - $pos: nth($data, 3); - $shape-size: nth($data, 4); - - $type: radial; - $gradient: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10); - - $type-gradient: $type, $shape-size $pos, $gradient; - @return $type-gradient; -} - - diff --git a/public/scss/vendor/bourbon/functions/_tint-shade.scss b/public/scss/vendor/bourbon/functions/_tint-shade.scss deleted file mode 100755 index f7172004a..000000000 --- a/public/scss/vendor/bourbon/functions/_tint-shade.scss +++ /dev/null @@ -1,9 +0,0 @@ -// Add percentage of white to a color -@function tint($color, $percent){ - @return mix(white, $color, $percent); -} - -// Add percentage of black to a color -@function shade($color, $percent){ - @return mix(black, $color, $percent); -} diff --git a/public/scss/vendor/bourbon/functions/_transition-property-name.scss b/public/scss/vendor/bourbon/functions/_transition-property-name.scss deleted file mode 100755 index 54cd42281..000000000 --- a/public/scss/vendor/bourbon/functions/_transition-property-name.scss +++ /dev/null @@ -1,22 +0,0 @@ -// Return vendor-prefixed property names if appropriate -// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background -//************************************************************************// -@function transition-property-names($props, $vendor: false) { - $new-props: (); - - @each $prop in $props { - $new-props: append($new-props, transition-property-name($prop, $vendor), comma); - } - - @return $new-props; -} - -@function transition-property-name($prop, $vendor: false) { - // put other properties that need to be prefixed here aswell - @if $vendor and $prop == transform { - @return unquote('-'+$vendor+'-'+$prop); - } - @else { - @return $prop; - } -} \ No newline at end of file diff --git a/public/scss/vendor/bourbon/helpers/_deprecated-webkit-gradient.scss b/public/scss/vendor/bourbon/helpers/_deprecated-webkit-gradient.scss deleted file mode 100755 index cd17e2832..000000000 --- a/public/scss/vendor/bourbon/helpers/_deprecated-webkit-gradient.scss +++ /dev/null @@ -1,39 +0,0 @@ -// Render Deprecated Webkit Gradient - Linear || Radial -//************************************************************************// -@function _deprecated-webkit-gradient($type, - $deprecated-pos1, $deprecated-pos2, - $full, - $deprecated-radius1: false, $deprecated-radius2: false) { - $gradient-list: (); - $gradient: false; - $full-length: length($full); - $percentage: false; - $gradient-type: $type; - - @for $i from 1 through $full-length { - $gradient: nth($full, $i); - - @if length($gradient) == 2 { - $color-stop: color-stop(nth($gradient, 2), nth($gradient, 1)); - $gradient-list: join($gradient-list, $color-stop, comma); - } - @else if $gradient != null { - @if $i == $full-length { - $percentage: 100%; - } - @else { - $percentage: ($i - 1) * (100 / ($full-length - 1)) + "%"; - } - $color-stop: color-stop(unquote($percentage), $gradient); - $gradient-list: join($gradient-list, $color-stop, comma); - } - } - - @if $type == radial { - $gradient: -webkit-gradient(radial, $deprecated-pos1, $deprecated-radius1, $deprecated-pos2, $deprecated-radius2, $gradient-list); - } - @else if $type == linear { - $gradient: -webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $gradient-list); - } - @return $gradient; -} diff --git a/public/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss b/public/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss deleted file mode 100755 index 07d30b6cf..000000000 --- a/public/scss/vendor/bourbon/helpers/_gradient-positions-parser.scss +++ /dev/null @@ -1,13 +0,0 @@ -@function _gradient-positions-parser($gradient-type, $gradient-positions) { - @if $gradient-positions - and ($gradient-type == linear) - and (type-of($gradient-positions) != color) { - $gradient-positions: _linear-positions-parser($gradient-positions); - } - @else if $gradient-positions - and ($gradient-type == radial) - and (type-of($gradient-positions) != color) { - $gradient-positions: _radial-positions-parser($gradient-positions); - } - @return $gradient-positions; -} diff --git a/public/scss/vendor/bourbon/helpers/_linear-positions-parser.scss b/public/scss/vendor/bourbon/helpers/_linear-positions-parser.scss deleted file mode 100755 index d26383edc..000000000 --- a/public/scss/vendor/bourbon/helpers/_linear-positions-parser.scss +++ /dev/null @@ -1,61 +0,0 @@ -@function _linear-positions-parser($pos) { - $type: type-of(nth($pos, 1)); - $spec: null; - $degree: null; - $side: null; - $corner: null; - $length: length($pos); - // Parse Side and corner positions - @if ($length > 1) { - @if nth($pos, 1) == "to" { // Newer syntax - $side: nth($pos, 2); - - @if $length == 2 { // eg. to top - // Swap for backwards compatability - $degree: _position-flipper(nth($pos, 2)); - } - @else if $length == 3 { // eg. to top left - $corner: nth($pos, 3); - } - } - @else if $length == 2 { // Older syntax ("top left") - $side: _position-flipper(nth($pos, 1)); - $corner: _position-flipper(nth($pos, 2)); - } - - @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") { - $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); - } - @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") { - $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); - } - @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") { - $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); - } - @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") { - $degree: _position-flipper(#{$side}) _position-flipper(#{$corner}); - } - $spec: to $side $corner; - } - @else if $length == 1 { - // Swap for backwards compatability - @if $type == string { - $degree: $pos; - $spec: to _position-flipper($pos); - } - @else { - $degree: -270 - $pos; //rotate the gradient opposite from spec - $spec: $pos; - } - } - $degree: unquote($degree + ","); - $spec: unquote($spec + ","); - @return $degree $spec; -} - -@function _position-flipper($pos) { - @return if($pos == left, right, null) - if($pos == right, left, null) - if($pos == top, bottom, null) - if($pos == bottom, top, null); -} diff --git a/public/scss/vendor/bourbon/helpers/_radial-arg-parser.scss b/public/scss/vendor/bourbon/helpers/_radial-arg-parser.scss deleted file mode 100755 index 3466695bd..000000000 --- a/public/scss/vendor/bourbon/helpers/_radial-arg-parser.scss +++ /dev/null @@ -1,69 +0,0 @@ -@function _radial-arg-parser($G1, $G2, $pos, $shape-size) { - @each $value in $G1, $G2 { - $first-val: nth($value, 1); - $pos-type: type-of($first-val); - $spec-at-index: null; - - // Determine if spec was passed to mixin - @if type-of($value) == list { - $spec-at-index: if(index($value, at), index($value, at), false); - } - @if $spec-at-index { - @if $spec-at-index > 1 { - @for $i from 1 through ($spec-at-index - 1) { - $shape-size: $shape-size nth($value, $i); - } - @for $i from ($spec-at-index + 1) through length($value) { - $pos: $pos nth($value, $i); - } - } - @else if $spec-at-index == 1 { - @for $i from ($spec-at-index + 1) through length($value) { - $pos: $pos nth($value, $i); - } - } - $G1: false; - } - - // If not spec calculate correct values - @else { - @if ($pos-type != color) or ($first-val != "transparent") { - @if ($pos-type == number) - or ($first-val == "center") - or ($first-val == "top") - or ($first-val == "right") - or ($first-val == "bottom") - or ($first-val == "left") { - - $pos: $value; - - @if $pos == $G1 { - $G1: false; - } - } - - @else if - ($first-val == "ellipse") - or ($first-val == "circle") - or ($first-val == "closest-side") - or ($first-val == "closest-corner") - or ($first-val == "farthest-side") - or ($first-val == "farthest-corner") - or ($first-val == "contain") - or ($first-val == "cover") { - - $shape-size: $value; - - @if $value == $G1 { - $G1: false; - } - - @else if $value == $G2 { - $G2: false; - } - } - } - } - } - @return $G1, $G2, $pos, $shape-size; -} diff --git a/public/scss/vendor/bourbon/helpers/_radial-positions-parser.scss b/public/scss/vendor/bourbon/helpers/_radial-positions-parser.scss deleted file mode 100755 index 6a5b47777..000000000 --- a/public/scss/vendor/bourbon/helpers/_radial-positions-parser.scss +++ /dev/null @@ -1,18 +0,0 @@ -@function _radial-positions-parser($gradient-pos) { - $shape-size: nth($gradient-pos, 1); - $pos: nth($gradient-pos, 2); - $shape-size-spec: _shape-size-stripper($shape-size); - - $pre-spec: unquote(if($pos, "#{$pos}, ", null)) - unquote(if($shape-size, "#{$shape-size},", null)); - $pos-spec: if($pos, "at #{$pos}", null); - - $spec: "#{$shape-size-spec} #{$pos-spec}"; - - // Add comma - @if ($spec != ' ') { - $spec: "#{$spec}," - } - - @return $pre-spec $spec; -} diff --git a/public/scss/vendor/bourbon/helpers/_render-gradients.scss b/public/scss/vendor/bourbon/helpers/_render-gradients.scss deleted file mode 100755 index 576567683..000000000 --- a/public/scss/vendor/bourbon/helpers/_render-gradients.scss +++ /dev/null @@ -1,26 +0,0 @@ -// User for linear and radial gradients within background-image or border-image properties - -@function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) { - $pre-spec: null; - $spec: null; - $vendor-gradients: null; - @if $gradient-type == linear { - @if $gradient-positions { - $pre-spec: nth($gradient-positions, 1); - $spec: nth($gradient-positions, 2); - } - } - @else if $gradient-type == radial { - $pre-spec: nth($gradient-positions, 1); - $spec: nth($gradient-positions, 2); - } - - @if $vendor { - $vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient(#{$pre-spec} $gradients); - } - @else if $vendor == false { - $vendor-gradients: "#{$gradient-type}-gradient(#{$spec} #{$gradients})"; - $vendor-gradients: unquote($vendor-gradients); - } - @return $vendor-gradients; -} diff --git a/public/scss/vendor/bourbon/helpers/_shape-size-stripper.scss b/public/scss/vendor/bourbon/helpers/_shape-size-stripper.scss deleted file mode 100755 index ee5eda422..000000000 --- a/public/scss/vendor/bourbon/helpers/_shape-size-stripper.scss +++ /dev/null @@ -1,10 +0,0 @@ -@function _shape-size-stripper($shape-size) { - $shape-size-spec: null; - @each $value in $shape-size { - @if ($value == "cover") or ($value == "contain") { - $value: null; - } - $shape-size-spec: "#{$shape-size-spec} #{$value}"; - } - @return $shape-size-spec; -} diff --git a/public/scss/vendor/foundation/_alert-boxes.scss b/public/scss/vendor/foundation/_alert-boxes.scss deleted file mode 100755 index 01c536025..000000000 --- a/public/scss/vendor/foundation/_alert-boxes.scss +++ /dev/null @@ -1,107 +0,0 @@ -// -// Alert Box Variables -// -$include-html-alert-classes: $include-html-classes !default; - -// We use this to control alert padding. -$alert-padding-top: em-calc(11) !default; -$alert-padding-default-float: $alert-padding-top !default; -$alert-padding-opposite-direction: $alert-padding-top + em-calc(10) !default; -$alert-padding-bottom: $alert-padding-top + em-calc(1) !default; - -// We use these to control text style. -$alert-font-weight: bold !default; -$alert-font-size: em-calc(14) !default; -$alert-font-color: #fff !default; -$alert-font-color-alt: darken($secondary-color, 60%) !default; - -// We use this for close hover effect. -$alert-function-factor: 10% !default; - -// We use these to control border styles. -$alert-border-style: solid !default; -$alert-border-width: 1px !default; -$alert-border-color: darken($primary-color, $alert-function-factor) !default; -$alert-bottom-margin: em-calc(20) !default; - -// We use these to style the close buttons -$alert-close-color: #333 !default; -$alert-close-position: em-calc(5) !default; -$alert-close-font-size: em-calc(22) !default; -$alert-close-opacity: 0.3 !default; -$alert-close-opacity-hover: 0.5 !default; -$alert-close-padding: 5px 4px 4px !default; - -// We use this to control border radius -$alert-radius: $global-radius !default; - -// -// Alert Mixins -// - -// We use this mixin to create a default alert base. -@mixin alert-base { - border-style: $alert-border-style; - border-width: $alert-border-width; - display: block; - font-weight: $alert-font-weight; - margin-bottom: $alert-bottom-margin; - position: relative; - padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float; - font-size: $alert-font-size; -} - -// We use this mixin to add alert styles -@mixin alert-style($bg:$primary-color) { - - // This find the lightness percentage of the background color. - $bg-lightness: lightness($bg); - - // We control which background color and border come through. - background-color: $bg; - border-color: darken($bg, $alert-function-factor); - - // We control the text color for you based on the background color. - @if $bg-lightness > 70% { color: $alert-font-color-alt; } - @else { color: $alert-font-color; } - -} - -// We use this to create the close button. -@mixin alert-close { - font-size: $alert-close-font-size; - padding: $alert-close-padding; - line-height: 0; - position: absolute; - top: $alert-close-position + em-calc(2); - #{$opposite-direction}: $alert-close-position; - color: $alert-close-color; - opacity: $alert-close-opacity; - &:hover, - &:focus { opacity: $alert-close-opacity-hover; } -} - -// We use this to quickly create alerts with a single mixin. -@mixin alert($bg:$primary-color, $radius:false) { - @include alert-base; - @include alert-style($bg); - @include radius($radius); -} - -@if $include-html-alert-classes != false { - - /* Foundation Alerts */ - .alert-box { - @include alert; - - .close { @include alert-close; } - - &.radius { @include radius($alert-radius); } - &.round { @include radius($global-rounded); } - - &.success { @include alert-style($success-color); } - &.alert { @include alert-style($alert-color); } - &.secondary { @include alert-style($secondary-color); } - } - -} diff --git a/public/scss/vendor/foundation/_block-grid.scss b/public/scss/vendor/foundation/_block-grid.scss deleted file mode 100755 index 4b1474ab9..000000000 --- a/public/scss/vendor/foundation/_block-grid.scss +++ /dev/null @@ -1,71 +0,0 @@ -// -// Block Grid Variables -// -$include-html-grid-classes: $include-html-classes !default; - -// We use this to control the maximum number of block grid elements per row -$block-grid-elements: 12 !default; -$block-grid-default-spacing: em-calc(20) !default; - -// Enables media queries for block-grid classes. Set to false if writing semantic HTML. -$block-grid-media-queries: true !default; - -// -// Block Grid Mixins -// - -// We use this mixin to create different block-grids. You can apply per-row and spacing options. -// Setting $base-style to false will ommit default styles. -@mixin block-grid($per-row:false, $spacing:$block-grid-default-spacing, $base-style:true) { - - @if $base-style { - display: block; - padding: 0; - margin: 0 (-$spacing/2); - @include clearfix; - - &>li { - display: inline; - height: auto; - float: $default-float; - padding: 0 ($spacing/2) $spacing; - } - } - - @if $per-row { - &>li { - width: 100%/$per-row; - padding: 0 ($spacing/2) $spacing; - - &:nth-of-type(n) { clear: none; } - &:nth-of-type(#{$per-row}n+1) { clear: both; } - } - } - -} - -@if $include-html-grid-classes { - /* Foundation Block Grids for below small breakpoint */ - @media only screen { - [class*="block-grid-"] { @include block-grid; } - - @for $i from 1 through $block-grid-elements { - .small-block-grid-#{($i)} { - @include block-grid($i,$block-grid-default-spacing,false); - } - } - } - - /* Foundation Block Grids for above small breakpoint */ - @media #{$small} { - /* Remove small grid clearing */ - @for $i from 1 through $block-grid-elements { - .small-block-grid-#{($i)} > li:nth-of-type(#{$i}n+1) { clear: none; } - } - @for $i from 1 through $block-grid-elements { - .large-block-grid-#{($i)} { - @include block-grid($i,$block-grid-default-spacing,false); - } - } - } -} diff --git a/public/scss/vendor/foundation/_breadcrumbs.scss b/public/scss/vendor/foundation/_breadcrumbs.scss deleted file mode 100755 index 24b42246a..000000000 --- a/public/scss/vendor/foundation/_breadcrumbs.scss +++ /dev/null @@ -1,124 +0,0 @@ -// -// Breadcrumb Variables -// -$include-html-nav-classes: $include-html-classes !default; - -// We use this to set the background color for the breadcrumb container. -$crumb-bg: lighten($secondary-color, 5%) !default; - -// We use these to set the padding around the breadcrumbs. -$crumb-padding: em-calc(9 14 9) !default; -$crumb-side-padding: em-calc(12) !default; - -// We use these to control border styles. -$crumb-function-factor: 10% !default; -$crumb-border-size: 1px !default; -$crumb-border-style: solid !default; -$crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default; -$crumb-radius: $global-radius !default; - -// We use these to set various text styles for breadcrumbs. -$crumb-font-size: em-calc(11) !default; -$crumb-font-color: $primary-color !default; -$crumb-font-color-current: #333 !default; -$crumb-font-color-unavailable: #999 !default; -$crumb-font-transform: uppercase !default; -$crumb-link-decor: underline !default; - -// We use these to control the slash between breadcrumbs -$crumb-slash-color: #aaa !default; -$crumb-slash: "/" !default; - -// -// Breakcrumb Mixins -// - -// We use this mixin to create a container around our breadcrumbs -@mixin crumb-container { - display: block; - padding: $crumb-padding; - overflow: hidden; - margin-#{$default-float}: 0; - list-style: none; - border-style: $crumb-border-style; - border-width: $crumb-border-size; - - // We control which background color and border come through. - background-color: $crumb-bg; - border-color: $crumb-border-color; -} - -// We use this mixin to create breadcrumb styles from list items. -@mixin crumbs { - - // A normal state will make the links look and act like clickable breadcrumbs. - margin: 0; - float: $default-float; - font-size: $crumb-font-size; - text-transform: $crumb-font-transform; - - &:hover a, &:focus a { text-decoration: $crumb-link-decor; } - - a, - span { - text-transform: $crumb-font-transform; - color: $crumb-font-color; - } - - // Current is for the link of the current page - &.current { - cursor: $cursor-default-value; - color: $crumb-font-color-current; - a { - cursor: $cursor-default-value; - color: $crumb-font-color-current; - } - - &:hover, &:hover a, - &:focus, &:focus a { text-decoration: none; } - } - - // Unavailable removed color and link styles so it looks inactive. - &.unavailable { - color: $crumb-font-color-unavailable; - a { color: $crumb-font-color-unavailable; } - - &:hover, - &:hover a, - &:focus, - a:focus { - text-decoration: none; - color: $crumb-font-color-unavailable; - cursor: $cursor-default-value; - } - } - - &:before { - content: "#{$crumb-slash}"; - color: $crumb-slash-color; - margin: 0 $crumb-side-padding; - position: relative; - top: 1px; - } - - &:first-child:before { - content: " "; - margin: 0; - } - -} - - -@if $include-html-nav-classes != false { - - /* Breadcrumbs */ - .breadcrumbs { - @include crumb-container; - @include radius($crumb-radius); - - &>* { - @include crumbs; - } - } - -} diff --git a/public/scss/vendor/foundation/_button-groups.scss b/public/scss/vendor/foundation/_button-groups.scss deleted file mode 100755 index d35e05ad9..000000000 --- a/public/scss/vendor/foundation/_button-groups.scss +++ /dev/null @@ -1,89 +0,0 @@ -// -// Button Group Variables -// -$include-html-button-classes: $include-html-classes !default; - -// Sets the margin for the right side by default, and the left margin if right-to-left direction is used -$button-bar-margin-opposite: em-calc(10) !default; - -// -// Button Group Mixins -// - -// We use this to add styles for a button group container -@mixin button-group-container($styles:true, $float:false) { - @if $styles { - list-style: none; - margin: 0; - @include clearfix(); - } - @if $float { - float: #{$default-float}; - margin-#{$opposite-direction}: $button-bar-margin-opposite; - & div { overflow: hidden; } - } -} - -// We use this to control styles for button groups -@mixin button-group-style($radius:false, $even:false, $float:$default-float) { - - // We use this to control the flow, or remove those styles completely. - @if $float { - margin: 0 0 0 (-$button-border-width); - float: $float; - // Make sure the first child doesn't get the negative margin. - &:first-child { margin-#{$default-float}: 0; } - } - - // We use these to control left and right radius on first/last buttons in the group. - @if $radius == true { - &:first-child, - &:first-child > a, - &:first-child > button, - &:first-child > .button { @include side-radius($default-float, $button-radius); } - &:last-child, - &:last-child > a, - &:last-child > button, - &:last-child > .button { @include side-radius($opposite-direction, $button-radius); } - } - @else if $radius { - &:first-child, - &:first-child > a, - &:first-child > button, - &:first-child > .button { @include side-radius($default-float, $radius); } - &:last-child, - &:last-child > a, - &:last-child > button, - &:last-child > .button { @include side-radius($opposite-direction, $radius); } - } - - // We use this to make the buttons even width across their container - @if $even { - width: percentage((100/$even) / 100); - button, .button { width: 100%; } - } - -} - -// Only include these CSS classes if $include-html-classes: true -@if $include-html-button-classes != false { - - /* Button Groups */ - .button-group { @include button-group-container; - - &> * { @include button-group-style(); } - - &.radius > * { @include button-group-style($radius:$button-radius, $float:null); } - &.round > * { @include button-group-style($radius:$button-round, $float:null); } - - @for $i from 2 through 8 { - &.even#{-$i} li { @include button-group-style($even:$i, $float:null); } - } - } - - .button-bar { - @include clearfix; - .button-group { @include button-group-container($styles:false,$float:true); } - } - -} diff --git a/public/scss/vendor/foundation/_buttons.scss b/public/scss/vendor/foundation/_buttons.scss deleted file mode 100755 index c5954ad82..000000000 --- a/public/scss/vendor/foundation/_buttons.scss +++ /dev/null @@ -1,230 +0,0 @@ -// -// Button Variables -// -$include-html-button-classes: $include-html-classes !default; - -// We use these to build padding for buttons. -$button-med: em-calc(12) !default; -$button-tny: em-calc(7) !default; -$button-sml: em-calc(9) !default; -$button-lrg: em-calc(16) !default; - -// We use this to control the display property. -$button-display: inline-block !default; -$button-margin-bottom: em-calc(20) !default; - -// We use these to control button text styles. -$button-font-family: inherit !default; -$button-font-color: #fff !default; -$button-font-color-alt: #333 !default; -$button-font-med: em-calc(16) !default; -$button-font-tny: em-calc(11) !default; -$button-font-sml: em-calc(13) !default; -$button-font-lrg: em-calc(20) !default; -$button-font-weight: bold !default; -$button-font-align: center !default; - -// We use these to control various hover effects. -$button-function-factor: 10% !default; - -// We use these to control button border styles. -$button-border-width: 1px !default; -$button-border-style: solid !default; - -// We use this to set the default radius used throughout the core. -$button-radius: $global-radius !default; -$button-round: $global-rounded !default; - -// We use this to set default opacity for disabled buttons. -$button-disabled-opacity: 0.6 !default; - - -// -// Button Mixins -// - -// We use this mixin to create a default button base. -@mixin button-base($style:true, $display:$button-display) { - @if $style { - border-style: $button-border-style; - border-width: $button-border-width; - cursor: $cursor-pointer-value; - font-family: $button-font-family; - font-weight: $button-font-weight; - line-height: normal; - margin: 0 0 $button-margin-bottom; - position: relative; - text-decoration: none; - text-align: $button-font-align; - } - @if $display { display: $display; } -} - -// We use this mixin to add button size styles -@mixin button-size($padding:$button-med, $full-width:false, $is-input:false) { - - // We control which padding styles come through, - // these can be turned off by setting $padding:false - @if $padding { - padding-top: $padding; - padding-#{$opposite-direction}: $padding * 2; - padding-bottom: $padding + em-calc(1); - padding-#{$default-float}: $padding * 2; - - // We control the font-size based on mixin input. - @if $padding == $button-med { font-size: $button-font-med; } - @else if $padding == $button-tny { font-size: $button-font-tny; } - @else if $padding == $button-sml { font-size: $button-font-sml; } - @else if $padding == $button-lrg { font-size: $button-font-lrg; } - @else { font-size: $padding - em-calc(2); } - } - - // We can set $full-width:true to remove side padding extend width. - @if $full-width { - // We still need to check if $padding is set. - @if $padding { - padding-top: $padding; - padding-bottom: $padding + em-calc(1); - } @else if $padding == false { - padding-top:0; - padding-bottom:0; - } - padding-right: 0; - padding-left: 0; - width: 100%; - } - - // 's and + +
        + + + {{ Form::close() }} +
        +
        +
        diff --git a/resources/views/_partials/_update_modal.blade.php b/resources/views/_partials/_update_modal.blade.php new file mode 100644 index 000000000..be67e90db --- /dev/null +++ b/resources/views/_partials/_update_modal.blade.php @@ -0,0 +1,19 @@ + diff --git a/resources/views/admin/overview.blade.php b/resources/views/admin/overview.blade.php new file mode 100644 index 000000000..a95710e6e --- /dev/null +++ b/resources/views/admin/overview.blade.php @@ -0,0 +1,46 @@ +@title('Users') + +@extends('layouts.default') + +@section('content') +
        +
        Users
        + + + + + + + + + + + + + @foreach ($users as $user) + + + + + + + + @endforeach + +
        Joined OnNameEmail AddressStatus
        {{ $user->createdAt() }}{{ $user->name() }}{{ $user->emailAddress() }} + @if ($user->isBanned()) + Banned + @elseif ($user->isAdmin()) + Admin + @else + User + @endif + + +
        +
        + +
        + {!! $users->render() !!} +
        +@endsection diff --git a/resources/views/admin/users/edit.blade.php b/resources/views/admin/users/edit.blade.php deleted file mode 100644 index 61f48f1f2..000000000 --- a/resources/views/admin/users/edit.blade.php +++ /dev/null @@ -1,72 +0,0 @@ -@extends('layouts.default') - -@section('table') - -
        -
        -

        Editing User {{ $user->name }}

        - - GitHub Information - -
          -
        • ID: {{ $user->id }}
        • -
        • Github ID: {{ $user->github_id }}
        • -
        • Github url: {{ $user->github_url }}
        • -
        • Github username: {{ $user->name }}
        • -
        • Email: {{ $user->email }}
        • -
        - - {!! Form::open() !!} -
        - Roles - - @foreach ($roles as $role) -
        -
        - - {!! Form::checkbox('roles[]', $role->id, $user->hasRole($role->name), ['id' => "role_{$role->id}"]) !!} - -
        -
        - {!! Form::label("role_{$role->id}", $role->name) !!} -

        - {{ $role->description }} -

        -
        -
        - @endforeach -
        - -
        - Ban - -
        -
        - User is banned: {!! Form::checkbox('is_banned', 1, $user->is_banned == 1) !!} -

        - When a user is banned, they'll be unable to log into the site using their GitHub account. This option should mostly be unnecessary. -

        -
        -
        -
        - -
        -
        - {!! Form::button('Save', ['type' => 'submit']) !!} -
        -
        - {!! Form::close() !!} - - @if (! $user->is_banned) - {!! Form::open(['action' => ['Admin\UsersController@putBanAndDeleteThreads', $user->id], 'method' => 'put']) !!} -
        -
        - {!! Form::button('Ban and delete threads', ['type' => 'submit']) !!} -
        -
        - {!! Form::close() !!} - @endif -
        -
        - -@stop diff --git a/resources/views/admin/users/index.blade.php b/resources/views/admin/users/index.blade.php deleted file mode 100644 index cd714bfd2..000000000 --- a/resources/views/admin/users/index.blade.php +++ /dev/null @@ -1,64 +0,0 @@ -@extends('layouts.default') - -@section('table') - -
        -
        -
        -

        Users

        -
        -
        -
        - -
        - {!! Form::open(['route' => 'admin.users.search', 'method' => 'GET']) !!} - {!! Form::text('q') !!} - {!! Form::submit('Search Users') !!} - {!! Form::close() !!} -
        - -
        -
        - @if ($users->count() > 0) - - - - - - - - - - - - - @foreach ($users as $user) - - - - - - - - - @endforeach - - {!! $users->render() !!} - -
        NameEmailSigned up atGitHub URLStatusRoles
        {{ $user->name }}
        {{ $user->email }}{{ $user->created_at->format('Y-m-d H:i:s') }}{{ $user->github_url }}{{ $user->is_banned ? 'Banned' : 'Active' }}{{ $user->roleList }}
        - @else -
        -
        -
        -

        Sorry…

        -

        - There are currently no users in the system. -

        -
        -
        -
        - @endif -
        -
        - -@stop diff --git a/resources/views/admin/users/show.blade.php b/resources/views/admin/users/show.blade.php new file mode 100644 index 000000000..58881444e --- /dev/null +++ b/resources/views/admin/users/show.blade.php @@ -0,0 +1,68 @@ +@title($user->name()) + +@extends('layouts.base') + +@section('body') +
        +
        +
        +
        +
        + View Profile + + @can(App\Policies\UserPolicy::BAN, $user) + @if ($user->isBanned()) + + @else + + @endif + @endcan + + @can(App\Policies\UserPolicy::DELETE, $user) + + @endcan +
        +
        + +

        Back

        +
        +
        + @include('layouts._alerts') + +
        +
        + @include('users._user_info') +
        +
        +
        +
        +
        + + {{-- The reason why we put the modals here is because otherwise UI gets broken --}} + @can(App\Policies\UserPolicy::BAN, $user) + @if ($user->isBanned()) + @include('_partials._update_modal', [ + 'id' => 'unbanUser', + 'route' => ['admin.users.unban', $user->username()], + 'title' => "Unban {$user->name()}", + 'body' => '

        Banning this user will prevent them from logging in, posting threads and replying to threads.

        ', + ]) + @else + @include('_partials._update_modal', [ + 'id' => 'banUser', + 'route' => ['admin.users.ban', $user->username()], + 'title' => "Ban {$user->name()}", + 'body' => '

        Unbanning this user will allow them to login again and post content.

        ', + ]) + @endif + @endcan + + @can(App\Policies\UserPolicy::DELETE, $user) + @include('_partials._delete_modal', [ + 'id' => 'deleteUser', + 'route' => ['admin.users.delete', $user->username()], + 'title' => "Delete {$user->name()}", + 'body' => '

        Deleting this user will remove their account and any related content like threads & replies. This cannot be undone.

        ', + ]) + @endcan +@endsection diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 000000000..57bf0bfcf --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,35 @@ +@title('Login') + +@extends('layouts.small') + +@section('small-content') + {!! Form::open(['route' => 'login.post']) !!} + @formGroup('username') + {!! Form::label('username') !!} + {!! Form::text('username', null, ['class' => 'form-control', 'required']) !!} + @error('username') + @endFormGroup + + @formGroup('password') + {!! Form::label('password') !!} + {!! Form::password('password', ['class' => 'form-control', 'required']) !!} + @error('password') + @endFormGroup + +
        + +
        + + {!! Form::submit('Login', ['class' => 'btn btn-primary btn-block']) !!} + + Github + + {!! Form::close() !!} +@endsection + +@section('small-content-after') + Forgot your password? +@endsection diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php new file mode 100644 index 000000000..1d8c71b13 --- /dev/null +++ b/resources/views/auth/passwords/email.blade.php @@ -0,0 +1,17 @@ +@title('Password Reset') + +@extends('layouts.small') + +@section('small-content') +

        {{ Session::get('status', 'Please fill in your email address below.') }}

        + + {!! Form::open(['route' => 'password.forgot.post']) !!} + @formGroup('email') + {!! Form::label('email') !!} + {!! Form::email('email', null, ['class' => 'form-control', 'required']) !!} + @error('email') + @endFormGroup + + {!! Form::submit('Send Password Reset Link', ['class' => 'btn btn-primary btn-block']) !!} + {!! Form::close() !!} +@endsection diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php new file mode 100644 index 000000000..d5753aa32 --- /dev/null +++ b/resources/views/auth/passwords/reset.blade.php @@ -0,0 +1,28 @@ +@title('Reset Password') + +@extends('layouts.small') + +@section('small-content') + {!! Form::open(['route' => 'password.reset.post']) !!} + {!! Form::hidden('token', $token) !!} + + @formGroup('email') + {!! Form::label('email') !!} + {!! Form::email('email', null, ['class' => 'form-control', 'required']) !!} + @error('email') + @endFormGroup + + @formGroup('password') + {!! Form::label('password') !!} + {!! Form::password('password', ['class' => 'form-control', 'required']) !!} + @error('password') + @endFormGroup + +
        + {!! Form::label('password_confirmation') !!} + {!! Form::password('password_confirmation', ['class' => 'form-control', 'required']) !!} +
        + + {!! Form::submit('Reset Password', ['class' => 'btn btn-primary btn-block']) !!} + {!! Form::close() !!} +@endsection diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php new file mode 100644 index 000000000..b479beb62 --- /dev/null +++ b/resources/views/auth/register.blade.php @@ -0,0 +1,54 @@ +@title('Register') + +@extends('layouts.small') + +@section('small-content') + {!! Form::open(['route' => 'register.post']) !!} + @formGroup('name') + {!! Form::label('name') !!} + {!! Form::text('name', session('githubData.name'), ['class' => 'form-control', 'required', 'placeholder' => 'John Doe']) !!} + @error('name') + @endFormGroup + + @formGroup('email') + {!! Form::label('email') !!} + {!! Form::email('email', session('githubData.email'), ['class' => 'form-control', 'required', 'placeholder' => 'john@example.com']) !!} + @error('email') + @endFormGroup + + @formGroup('username') + {!! Form::label('username') !!} + {!! Form::text('username', session('githubData.username'), ['class' => 'form-control', 'required', 'placeholder' => 'johndoe']) !!} + @error('username') + @endFormGroup + + @if (! session()->has('githubData')) + @formGroup('password') + {!! Form::label('password') !!} + {!! Form::password('password', ['class' => 'form-control', Session::has('githubData') ? null : 'required']) !!} + @error('password') + @endFormGroup + +
        + {!! Form::label('password_confirmation') !!} + {!! Form::password('password_confirmation', ['class' => 'form-control', Session::has('githubData') ? null : 'required']) !!} +
        + @endif + + @formGroup('rules') + + @error('rules') + @endFormGroup + + {!! Form::submit('Register', ['class' => 'btn btn-primary btn-block']) !!} + + @if (! session()->has('githubData')) + + Github + + @endif + {!! Form::close() !!} +@endsection diff --git a/resources/views/auth/signup.blade.php b/resources/views/auth/signup.blade.php deleted file mode 100644 index 58719da6a..000000000 --- a/resources/views/auth/signup.blade.php +++ /dev/null @@ -1,41 +0,0 @@ -@extends('layouts._one_column') - -@section('content') -
        -

        We're going to create an account with this information.

        - -
        - {!! Form::open() !!} -
        -

        - -

        - {!! Form::label('name', 'Username') !!} - {!! Form::text('name', Input::old('name', $githubData['name'])) !!} -

        - - @if ($errors->has('name')) -

        {!! $errors->first('name') !!}

        - @endif - -

        - {!! Form::label('email') !!} - {!! Form::email('email', Input::old('email', $githubData['email'])) !!} -

        - - @if ($errors->has('email')) -

        {!! $errors->first('email') !!}

        - @endif - -

        {!! app('captcha')->display(); !!}

        - - @if ($errors->has('g-recaptcha-response')) - g

        Please fill in the captcha field correctly.

        - @endif - - {!! Form::submit('Create My Laravel.io Account', ['class' => 'button']) !!} -
        - {!! Form::close() !!} -
        -
        -@stop diff --git a/resources/views/bin/_cartalyst-ad.blade.php b/resources/views/bin/_cartalyst-ad.blade.php deleted file mode 100644 index daf154a9d..000000000 --- a/resources/views/bin/_cartalyst-ad.blade.php +++ /dev/null @@ -1,4 +0,0 @@ - - cartalyst -

        Well coded, documented, tested & maintained packages.

        -
        \ No newline at end of file diff --git a/resources/views/bin/_editor.blade.php b/resources/views/bin/_editor.blade.php deleted file mode 100644 index 727a43648..000000000 --- a/resources/views/bin/_editor.blade.php +++ /dev/null @@ -1,6 +0,0 @@ -
        - - 'disabled'] ?> - {!! Form::textarea('code', $placeholder, array_merge(['class' => 'editor mousetrap', 'wrap' => 'off'], $disabled)) !!} - -
        diff --git a/resources/views/bin/_logo.blade.php b/resources/views/bin/_logo.blade.php deleted file mode 100644 index 1cf393b80..000000000 --- a/resources/views/bin/_logo.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/bin/_scripts.blade.php b/resources/views/bin/_scripts.blade.php deleted file mode 100644 index 9ccb3dfee..000000000 --- a/resources/views/bin/_scripts.blade.php +++ /dev/null @@ -1,10 +0,0 @@ -@section('scripts') - @parent - - - - - - - -@stop \ No newline at end of file diff --git a/resources/views/bin/_sidebar_toggle.php b/resources/views/bin/_sidebar_toggle.php deleted file mode 100644 index bb5e02bd3..000000000 --- a/resources/views/bin/_sidebar_toggle.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/bin/_styles.blade.php b/resources/views/bin/_styles.blade.php deleted file mode 100644 index 406524698..000000000 --- a/resources/views/bin/_styles.blade.php +++ /dev/null @@ -1,6 +0,0 @@ -@section('styles') - @parent - - - -@stop \ No newline at end of file diff --git a/resources/views/bin/create.blade.php b/resources/views/bin/create.blade.php deleted file mode 100755 index ca388f97c..000000000 --- a/resources/views/bin/create.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('layouts.bin') - -@section('table') - @include('bin._scripts') - @include('bin._styles') - - @include('bin._sidebar_toggle') - - {!! Form::open(['class' => 'editor-form']) !!} - - - @include('bin._editor') - {!! Form::close() !!} -@stop diff --git a/resources/views/bin/fork.blade.php b/resources/views/bin/fork.blade.php deleted file mode 100644 index 045515249..000000000 --- a/resources/views/bin/fork.blade.php +++ /dev/null @@ -1,36 +0,0 @@ -@extends('layouts.bin', ['pageTitle' => 'Fork Paste']) - -@section('table') - @include('bin._scripts') - @include('bin._styles') - - @include('bin._sidebar_toggle') - - {!! Form::model($paste, ['class' => 'editor-form']) !!} - - - @include('bin._editor') - {!! Form::close() !!} -@stop diff --git a/resources/views/bin/raw.blade.php b/resources/views/bin/raw.blade.php deleted file mode 100644 index 85b3f43ac..000000000 --- a/resources/views/bin/raw.blade.php +++ /dev/null @@ -1 +0,0 @@ -
        {{ htmlentities($paste->code) }}
        diff --git a/resources/views/bin/show.blade.php b/resources/views/bin/show.blade.php deleted file mode 100755 index e992c3612..000000000 --- a/resources/views/bin/show.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('layouts.bin', ['pageTitle' => 'Paste Viewer']) - -@section('table') - @include('bin._scripts') - @include('bin._styles') - - @include('bin._sidebar_toggle') - - -
        -
        -{{{ $paste->code }}}
        -        
        -
        -@stop diff --git a/resources/views/chat/index.blade.php b/resources/views/chat/index.blade.php deleted file mode 100644 index 815cff41a..000000000 --- a/resources/views/chat/index.blade.php +++ /dev/null @@ -1,8 +0,0 @@ -@extends('layouts.default', ['pageTitle' => 'Live Chat']) - -@section('table') -

        #Laravel IRC Chat

        - - - Channel Moderators are: TaylorOtwell, ShawnMcCool, PhillSparks, daylerees, JasonLewis, machuga and JesseOBrien. -@stop diff --git a/resources/views/emails/confirmation.blade.php b/resources/views/emails/confirmation.blade.php deleted file mode 100644 index c87281e41..000000000 --- a/resources/views/emails/confirmation.blade.php +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - -

        Verify your email address for your Laravel.io account

        - -

        - Thanks for creating an account on Laravel.io.
        - Please follow the link below to verify your email address -

        -

        {{ route('auth.confirm', $confirmationCode) }}

        - - - diff --git a/resources/views/emails/email_confirmation.blade.php b/resources/views/emails/email_confirmation.blade.php new file mode 100644 index 000000000..0eca0dcf7 --- /dev/null +++ b/resources/views/emails/email_confirmation.blade.php @@ -0,0 +1,16 @@ +@component('mail::message') +# Welcome to Laravel.io! + +Thanks for joining up with the [Laravel.io](https://laravel.io) community! + +We just need to confirm your email address so please click the button below to confirm it: + +@component('mail::button', ['url' => route('email.confirm', [$user->emailAddress(), $user->confirmationCode()])]) +Confirm Email Address +@endcomponent + +We hope to see you soon on the portal. + +Regards,
        +{{ config('app.name') }} +@endcomponent diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php new file mode 100644 index 000000000..e6502700a --- /dev/null +++ b/resources/views/errors/403.blade.php @@ -0,0 +1,10 @@ +@title('Forbidden') + +@extends('layouts.base') + +@section('body') +
        +

        {{ $title }}

        +

        You're not allowed to this page.

        +
        +@endsection diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php new file mode 100644 index 000000000..449b39d02 --- /dev/null +++ b/resources/views/errors/404.blade.php @@ -0,0 +1,10 @@ +@title('Page not found') + +@extends('layouts.base') + +@section('body') +
        +

        {{ $title }}

        +

        The page you requested cannot be found.

        +
        +@endsection diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php new file mode 100644 index 000000000..c8f7631c6 --- /dev/null +++ b/resources/views/errors/500.blade.php @@ -0,0 +1,13 @@ +@title('Something went wrong') + +@extends('layouts.base') + +@section('body') +
        +

        {{ $title }}

        +

        + We've been notified and will try to fix the problem as soon as possible. + Please open a Github issue if the problem persists. +

        +
        +@endsection diff --git a/resources/views/forum/_index.blade.php b/resources/views/forum/_index.blade.php deleted file mode 100644 index 8fb88d448..000000000 --- a/resources/views/forum/_index.blade.php +++ /dev/null @@ -1,27 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -

        Forum

        - - @if (Input::has('tags')) -
        Threads tagged with {{{ Input::get('tags') }}}.
        - @else -
        All threads
        - @endif - - @if ($threads->count() > 0) - @foreach ($threads as $thread) - @include('forum._thread_summary') - @endforeach - - {!! str_replace('%2C', ',', $threads->render()) !!} - @else -
        There are currently no threads for the selected category
        - @endif -
        -@stop diff --git a/resources/views/forum/_sidebar.blade.php b/resources/views/forum/_sidebar.blade.php deleted file mode 100644 index d4d41ef88..000000000 --- a/resources/views/forum/_sidebar.blade.php +++ /dev/null @@ -1,15 +0,0 @@ - - -
          - {{-- $forumSections is set in the constructor of the ForumController class --}} - @foreach ($forumSections as $sectionTitle => $attributes) -
        • - {{ $sectionTitle }} - -
        • - @endforeach -
        diff --git a/resources/views/forum/_tag_chooser.blade.php b/resources/views/forum/_tag_chooser.blade.php deleted file mode 100644 index 55c9b96a6..000000000 --- a/resources/views/forum/_tag_chooser.blade.php +++ /dev/null @@ -1,27 +0,0 @@ -
        - @if ($tags->count() > 0) -

        Describe your post by clicking up to 3 tags

        - {!! $errors->first('tags', ':message') !!} - -
        - Tags describe this post as containing... -
          -
        -
        - - @endif -
        diff --git a/resources/views/forum/_thread_summary.blade.php b/resources/views/forum/_thread_summary.blade.php deleted file mode 100644 index 6a981fb06..000000000 --- a/resources/views/forum/_thread_summary.blade.php +++ /dev/null @@ -1,20 +0,0 @@ -
        - {!! $thread->author->thumbnail !!} - - -
        {{ $thread->reply_count }}
        -
        diff --git a/resources/views/forum/overview.blade.php b/resources/views/forum/overview.blade.php new file mode 100644 index 000000000..7a66084d2 --- /dev/null +++ b/resources/views/forum/overview.blade.php @@ -0,0 +1,68 @@ +@php($subTitle = isset($activeTag) ? $activeTag->name() : null) +@title('Forum' . (isset($subTitle) ? ' > ' . $subTitle : '')) + +@extends('layouts.default') + +@section('content') +

        {{ $title }}

        +
        + +
        +
        + {{ Form::open(['route' => 'forum', 'method' => 'GET']) }} +
        + +
        + {{ Form::close() }} + + Create Thread + +

        Tags

        +
        + All + + @foreach (App\Models\Tag::orderBy('name')->get() as $tag) + + {{ $tag->name() }} + + @endforeach +
        +
        +
        + @if (count($threads)) + @foreach ($threads as $thread) + + @endforeach + +
        + {!! $threads->render() !!} +
        + @else +
        + No threads were found! + Create a new one. +
        + @endif +
        +
        +@endsection diff --git a/resources/views/forum/replies/_create.blade.php b/resources/views/forum/replies/_create.blade.php deleted file mode 100644 index 24ea389c8..000000000 --- a/resources/views/forum/replies/_create.blade.php +++ /dev/null @@ -1,16 +0,0 @@ -
        - - - {!! Form::open(['data-persist' => 'garlic', 'data-expires' => '300']) !!} -
        - - {!! Form::textarea("body", null, ['class' => '_tab_indent _reply_form']) !!} - {!! $errors->first('body', ':message') !!} - Learn how to mark up your post here. -
        - -
        - {!! Form::button('Reply', ['type' => 'submit', 'class' => 'button']) !!} -
        - {!! Form::close() !!} -
        diff --git a/resources/views/forum/replies/_show.blade.php b/resources/views/forum/replies/_show.blade.php deleted file mode 100644 index 10bb82f89..000000000 --- a/resources/views/forum/replies/_show.blade.php +++ /dev/null @@ -1,41 +0,0 @@ -
        - -
        - {!! $reply->author->thumbnail !!} - - - - @if ($thread->isReplyTheSolution($reply)) -
        Solution
        - @endif - - @if ($thread->isQuestion() && $thread->isManageableBy(Auth::user())) - @if (! $thread->isSolved()) - Mark as Solution - @endif - @endif -
        - - - {!! $reply->body !!} - - - @if (Auth::check()) -
        -
          - @if ($reply->isManageableBy(Auth::user())) -
        • Edit
        • -
        • Delete
        • - @endif - -
        • -
        • Quote
        • -
        -
        - @endif -
        diff --git a/resources/views/forum/replies/delete.blade.php b/resources/views/forum/replies/delete.blade.php deleted file mode 100644 index 23d960716..000000000 --- a/resources/views/forum/replies/delete.blade.php +++ /dev/null @@ -1,23 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -

        Delete Your Reply?

        -
        - -
        - {!! Form::model($reply->getWrappedObject()) !!} -
        - -
        - -
        - {!! Form::button('Delete', ['type' => 'submit', 'class' => 'button']) !!} -
        - {!! Form::close() !!} -
        -@stop diff --git a/resources/views/forum/replies/edit.blade.php b/resources/views/forum/replies/edit.blade.php deleted file mode 100644 index d6fc480c8..000000000 --- a/resources/views/forum/replies/edit.blade.php +++ /dev/null @@ -1,27 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -

        Edit Your Reply

        -
        - -
        - {!! Form::model($reply->getWrappedObject()) !!} -
        - - {!! Form::textarea("body", null, ['class' => '_tab_indent']) !!} - {!! $errors->first('body', ':message') !!} - Learn how to mark up your post here. -
        - -
        - {!! Form::button('Reply', ['type' => 'submit', 'class' => 'button']) !!} -
        - {!! Form::close() !!} -
        -@stop - diff --git a/resources/views/forum/search.blade.php b/resources/views/forum/search.blade.php deleted file mode 100644 index 6cb9c9c26..000000000 --- a/resources/views/forum/search.blade.php +++ /dev/null @@ -1,53 +0,0 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => 'Forum Search']) - -@section('sidebar') - @include('forum._sidebar', ['query' => $query]) -@stop - -@section('content') -
        -
        - @if ($query) -

        Forum Search results for "{{{ $query }}}"

        - @else -

        Forum Search

        - @endif -
        - - @if ($query) -
        - @if ($results->count() > 0) - {{-- Loop over the threads and display the thread summary partial --}} - @foreach ($results as $result) - @if ($result->parent) - @include('forum.threads._index_summary', ['thread' => $result->parent]) - @else - @include('forum.threads._index_summary', ['thread' => $result]) - @endif - @endforeach - @else - {{-- If no comments are found display a message --}} -
        -

        No results found on the forum for "{{{ $query }}}"

        -
        - @endif -
        - - - @else -
        - {!! Form::open(['action' => 'Forum\ForumThreadsController@getSearch', 'method' => 'GET']) !!} -
        - {!! Form::label('query', 'Search the laravel.io forum', ['class' => 'field-title']) !!} - {!! Form::text('query', null, ['placeholder' => 'search the laravel.io forum']) !!} -
        -
        - {!! Form::button('Go Find Stuff!', ['type' => 'submit', 'class' => 'button']) !!} -
        - {!! Form::close() !!} -
        - @endif -
        -@stop diff --git a/resources/views/forum/threads/_footer.blade.php b/resources/views/forum/threads/_footer.blade.php new file mode 100644 index 000000000..037694428 --- /dev/null +++ b/resources/views/forum/threads/_footer.blade.php @@ -0,0 +1,20 @@ + diff --git a/resources/views/forum/threads/_form.blade.php b/resources/views/forum/threads/_form.blade.php new file mode 100644 index 000000000..26fed674f --- /dev/null +++ b/resources/views/forum/threads/_form.blade.php @@ -0,0 +1,23 @@ +{!! Form::open(['route' => $route, 'method' => $method ?? 'POST']) !!} + @formGroup('subject') + {!! Form::label('subject') !!} + {!! Form::text('subject', isset($thread) ? $thread->subject() : null, ['class' => 'form-control', 'required']) !!} + @error('subject') + @endFormGroup + + @formGroup('body') + {!! Form::label('body') !!} + {!! Form::textarea('body', isset($thread) ? $thread->body() : null, ['class' => 'form-control wysiwyg', 'required']) !!} + @error('body') + @endFormGroup + + @formGroup('tags') + {!! Form::label('tags') !!} + {!! Form::select('tags[]', $tags->pluck('name', 'id'), isset($thread) ? $thread->tags()->pluck('id')->toArray() : [], ['class' => 'form-control selectize', 'multiple']) !!} + You can choose up to 3 tags. + @error('tags') + @endFormGroup + + {!! Form::submit(isset($thread) ? 'Update Thread' : 'Create Thread', ['class' => 'btn btn-primary btn-block']) !!} + Cancel +{!! Form::close() !!} diff --git a/resources/views/forum/threads/_index_summary.blade.php b/resources/views/forum/threads/_index_summary.blade.php deleted file mode 100644 index 1b3b4c2dc..000000000 --- a/resources/views/forum/threads/_index_summary.blade.php +++ /dev/null @@ -1,43 +0,0 @@ -
        - {!! $thread->author->thumbnail !!} - -
        -

        - - @if ($thread->pinned) - [Pinned] - @endif - - {{{ $thread->subject }}} - -

        - - - - -
        - - -
        diff --git a/resources/views/forum/threads/_thread.blade.php b/resources/views/forum/threads/_thread.blade.php deleted file mode 100644 index 818734452..000000000 --- a/resources/views/forum/threads/_thread.blade.php +++ /dev/null @@ -1,42 +0,0 @@ -
        -

        - @if ($thread->pinned) - [Pinned] - @endif - - {{{ $thread->subject }}} -

        - - - {!! $thread->body !!} - - -
        - {!! $thread->author->thumbnail !!} - -
        -
        {{ $thread->author->name }}
        -
          -
        • {{ $thread->created_ago }}
        • -
        -
        -
        - - @if (Auth::check()) -
        -
          - @if ($thread->isManageableBy(Auth::user())) -
        • Edit
        • -
        • Delete
        • - - @if ($thread->isQuestion() && $thread->isSolved()) -
        • Mark Unsolved
        • - @endif - @endif - -
        • -
        • Quote
        • -
        -
        - @endif -
        diff --git a/resources/views/forum/threads/create.blade.php b/resources/views/forum/threads/create.blade.php index a501a4c4a..ecadff687 100644 --- a/resources/views/forum/threads/create.blade.php +++ b/resources/views/forum/threads/create.blade.php @@ -1,94 +1,18 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => 'Create Forum Thread']) +@title('Create your thread') -@section('sidebar') - @include('forum._sidebar') -@stop +@extends('layouts.default') @section('content') -
        -

        Create Thread

        +

        {{ $title }}

        +
        + +
        +

        + Please try to search for your question first using + the search box and make sure you've read our + Forum Rules before creating a thread. +

        - {!! Form::open(['data-persist' => 'garlic', 'data-expires' => '600']) !!} -
        -
        - {!! Form::label('subject', 'Subject', ['class' => 'field-title']) !!} - {!! Form::text('subject', null, ['placeholder' => 'Subject']) !!} - {!! $errors->first('subject', ':message') !!} -
        - -
        - {!! Form::label('body', 'Thread', ['class' => 'field-title']) !!} - {!! Form::textarea("body", null) !!} - {!! $errors->first('body', ':message') !!} - Learn how to mark up your post here. -
        - -
        - {!! Form::label('is_question', 'What type of thread is this?', ['class' => 'field-title']) !!} -
          -
        • - -
        • -
        • - -
        • -
        - {!! $errors->first('is_question', ':message') !!} -
        - -
        - {!! Form::label('laravel_version', 'Laravel Version', ['class' => 'field-title']) !!} -
          -
        • - -
        • -
        • - -
        • -
        • - -
        • -
        • - -
        • -
        - {!! $errors->first('laravel_version', ':message') !!} -
        - -
        - @include('forum._tag_chooser') -
        - -
        -

        {!! app('captcha')->display() !!}

        - - @if ($errors->has('g-recaptcha-response')) -

        Please fill in the captcha field correctly.

        - @endif -
        - -
        - {!! Form::button('Save', ['type' => 'submit', 'class' => 'button']) !!} -
        -
        - {!! Form::close() !!} -@stop + @include('forum.threads._form', ['route' => 'threads.store']) +@endsection diff --git a/resources/views/forum/threads/delete.blade.php b/resources/views/forum/threads/delete.blade.php deleted file mode 100644 index bd3e411dc..000000000 --- a/resources/views/forum/threads/delete.blade.php +++ /dev/null @@ -1,23 +0,0 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => 'Delete Forum Thread']) - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -

        Delete Your Thread?

        -
        - -
        - {!! Form::model($thread->getWrappedObject()) !!} -
        - -
        - -
        - {!! Form::button('Delete', ['type' => 'submit', 'class' => 'button'])!!} -
        - {!! Form::close() !!} -
        -@stop diff --git a/resources/views/forum/threads/edit.blade.php b/resources/views/forum/threads/edit.blade.php index 6951304b2..6aeed6d24 100644 --- a/resources/views/forum/threads/edit.blade.php +++ b/resources/views/forum/threads/edit.blade.php @@ -1,70 +1,13 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => 'Edit Forum Thread']) +@title('Edit your thread') -@section('sidebar') - @include('forum._sidebar') -@stop +@extends('layouts.default') @section('content') - {!! Form::model($thread->getWrappedObject()) !!} -
        -

        Edit Thread

        -
        - -
        -
        - {!! Form::label('subject', 'Subject', ['class' => 'field-title']) !!} - {!! Form::text('subject', null, ['placeholder' => 'Subject']) !!} - {!! $errors->first('subject', ':message') !!} -
        - -
        - {!! Form::label('body', 'Thread', ['class' => 'field-title']) !!} - {!! Form::textarea('body', null) !!} - {!! $errors->first('body', ':message') !!} - Learn how to mark up your post here. -
        - -
        - {!! Form::label('is_question', 'What type of thread is this?', ['class' => 'field-title']) !!} -
          -
        • - -
        • -
        • - -
        • -
        - {!! $errors->first('is_question', ':message') !!} -
        - -
        - {!! Form::label('laravel_version', 'Laravel Version', ['class' => 'field-title']) !!} -
          - @foreach($versions as $value => $version) -
        • - -
        • - @endforeach -
        - {!! $errors->first('laravel_version', ':message') !!} -
        - -
        - @include('forum._tag_chooser', ['comment' => $thread]) -
        - -
        - {!! Form::button('Save', ['type' => 'submit', 'class' => 'button']) !!} -
        -
        - {!! Form::close() !!} -@stop +

        {{ $title }}

        +
        + + @include('forum.threads._form', [ + 'route' => ['threads.update', $thread->slug()], + 'method' => 'PUT', + ]) +@endsection diff --git a/resources/views/forum/threads/index.blade.php b/resources/views/forum/threads/index.blade.php deleted file mode 100644 index 1dcc96905..000000000 --- a/resources/views/forum/threads/index.blade.php +++ /dev/null @@ -1,52 +0,0 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => 'Forum']) - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -
        -

        Forum

        - - {{-- Display select tags --}} - @if (Input::get('tags', null)) -
        - {{{ Input::get('tags') }}} -
        - @endif - - Create Thread -
        - -
        -

        Showing:

        - -
        - -
        - {{-- Loop over the threads and display the thread summary partial --}} - @each('forum.threads._index_summary', $threads, 'thread') - - {{-- If no comments are found display a message --}} - @if (! $threads->count()) -
        - @if (Input::get('tags')) -

        No threads found that are tagged with {{{ Input::get('tags') }}}

        - @else -

        No threads found.

        - @endif - Create a new thread -
        - @endif -
        - - -
        -@stop diff --git a/resources/views/forum/threads/show.blade.php b/resources/views/forum/threads/show.blade.php index d0adeb00b..eb34036a5 100644 --- a/resources/views/forum/threads/show.blade.php +++ b/resources/views/forum/threads/show.blade.php @@ -1,49 +1,116 @@ -@extends('layouts._two_columns_left_sidebar', ['pageTitle' => ($thread->isSolved() ? '[SOLVED] ' : '') . $thread->subject]) +@title($thread->subject()) -@section('sidebar') - @include('forum._sidebar') -@stop +@extends('layouts.default') @section('content') -
        -
        -

        Forum

        -
        - {!! $thread->tags->getTagList() !!} -
        - {!! $replies->render() !!} -
        +
        +
        + @include('users._user_info', ['user' => $thread->author(), 'avatarSize' => 100]) - @if (Input::get('page') < 2) - @include('forum.threads._thread') - @endif +
        -
        - @foreach ($replies as $reply) - @include('forum.replies._show') - @endforeach -
        + @can(App\Policies\ThreadPolicy::UPDATE, $thread) + Edit + @endcan - {!! $replies->render() !!} -
        + @can(App\Policies\ThreadPolicy::DELETE, $thread) + Delete - @if (Auth::check()) - @include('forum.replies._create') - @else - - @endif -@stop +
        +

        {{ $title }}

        +
        + +
        +
        + @md($thread->body()) +
        + + @include('forum.threads._footer') +
        -@include('layouts._markdown_editor') -@include('layouts._code_prettify') + @foreach ($thread->replies() as $reply) +
        + @if ($thread->isSolutionReply($reply)) +
        + Solution Reply +
        + @endif -@section('scripts') - @parent +
        + @can(App\Policies\ThreadPolicy::UPDATE, $thread) +
        + @if ($thread->isSolutionReply($reply)) + + + - - - -@stop + @include('_partials._update_modal', [ + 'id' => 'unmarkSolution', + 'route' => ['threads.solution.unmark', $thread->slug()], + 'title' => 'Unmark As Solution', + 'body' => '

        Confirm to unmark this reply as the solution for "'.e($thread->subject()).'".

        ', + ]) + @else + + + + + @include('_partials._update_modal', [ + 'id' => "markSolution{$reply->id()}", + 'route' => ['threads.solution.mark', $thread->slug(), $reply->id()], + 'title' => 'Mark As Solution', + 'body' => '

        Confirm to mark this reply as the solution for "'.e($thread->subject()).'".

        ', + ]) + @endif +
        + @endcan + + @md($reply->body()) +
        + +
        + @endforeach + + @can(App\Policies\ReplyPolicy::CREATE, App\Models\Reply::class) +
        + {!! Form::open(['route' => 'replies.store']) !!} + @formGroup('body') + {!! Form::textarea('body', null, ['class' => 'form-control wysiwyg', 'required']) !!} + @error('body') + @endFormGroup + + {!! Form::hidden('replyable_id', $thread->id()) !!} + {!! Form::hidden('replyable_type', 'threads') !!} + {!! Form::submit('Reply', ['class' => 'btn btn-primary btn-block']) !!} + {!! Form::close() !!} + @endif +
        +
        +@endsection diff --git a/resources/views/forum/threads/throttle.blade.php b/resources/views/forum/threads/throttle.blade.php deleted file mode 100644 index 4ea30e812..000000000 --- a/resources/views/forum/threads/throttle.blade.php +++ /dev/null @@ -1,16 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('forum._sidebar') -@stop - -@section('content') -
        -

        Create Thread

        -
        - -
        -

        Woha, slow down! You can only create a thread every 10 minutes. Please try again in a few minutes.

        -

        Back to forums.

        -
        -@stop diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php new file mode 100644 index 000000000..8dd7c54bb --- /dev/null +++ b/resources/views/home.blade.php @@ -0,0 +1,27 @@ +@extends('layouts.base', ['bodyClass' => 'home']) + +@section('body') +
        + @include('layouts._alerts') +
        + +
        +

        Laravel.io

        +

        The Laravel Community Portal

        + +
        + @if (Auth::guest()) + + Join the Community + + + Visit the Forum + + @else + + Start a Thread + + @endif +
        +
        +@endsection diff --git a/resources/views/layouts/_alerts.blade.php b/resources/views/layouts/_alerts.blade.php new file mode 100644 index 000000000..1a37ee273 --- /dev/null +++ b/resources/views/layouts/_alerts.blade.php @@ -0,0 +1,13 @@ +@if (session()->has('error')) +
        + + {!! session()->pull('error') !!} +
        +@endif + +@if (session()->has('success')) +
        + + {!! session()->pull('success') !!} +
        +@endif diff --git a/resources/views/layouts/_code_prettify.blade.php b/resources/views/layouts/_code_prettify.blade.php deleted file mode 100644 index 56c36e400..000000000 --- a/resources/views/layouts/_code_prettify.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@section('scripts') - @parent - -@stop - -@section('styles') - @parent - -@stop \ No newline at end of file diff --git a/resources/views/layouts/_flash.blade.php b/resources/views/layouts/_flash.blade.php deleted file mode 100644 index 4d608f858..000000000 --- a/resources/views/layouts/_flash.blade.php +++ /dev/null @@ -1,20 +0,0 @@ -
        - @if (Session::has('success')) -
        - {!! implode('
        ', (array) Session::pull('success')) !!} -
        - @endif - - @if (Session::has('error')) -
        - {!! implode('
        ', (array) Session::pull('error')) !!} -
        - @endif - - {{-- Laravel Form Errors --}} - @if ($errors->count() > 0) -
        - Please review the form below and fix errors before submitting again. -
        - @endif -
        diff --git a/resources/views/layouts/_footer.blade.php b/resources/views/layouts/_footer.blade.php index cef3c2765..a879206e7 100644 --- a/resources/views/layouts/_footer.blade.php +++ b/resources/views/layouts/_footer.blade.php @@ -1,61 +1,9 @@ - + diff --git a/resources/views/layouts/_intercom.blade.php b/resources/views/layouts/_intercom.blade.php new file mode 100644 index 000000000..488d92019 --- /dev/null +++ b/resources/views/layouts/_intercom.blade.php @@ -0,0 +1,20 @@ +@if (app()->environment('production') && $appId = config('services.intercom.app_id')) + + +@endif diff --git a/resources/views/layouts/_markdown_editor.blade.php b/resources/views/layouts/_markdown_editor.blade.php deleted file mode 100644 index 15a68dda6..000000000 --- a/resources/views/layouts/_markdown_editor.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@section('scripts') - @parent - - {{-- Markdown Editor --}} - - - -@stop - diff --git a/resources/views/layouts/_nav.blade.php b/resources/views/layouts/_nav.blade.php new file mode 100644 index 000000000..8310a9d8d --- /dev/null +++ b/resources/views/layouts/_nav.blade.php @@ -0,0 +1,65 @@ + diff --git a/resources/views/layouts/_one_column.blade.php b/resources/views/layouts/_one_column.blade.php deleted file mode 100644 index 3623af364..000000000 --- a/resources/views/layouts/_one_column.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@extends('layouts.default') - -@section('table') -
        - @yield('content') -
        -@stop diff --git a/resources/views/layouts/_snappy.blade.php b/resources/views/layouts/_snappy.blade.php deleted file mode 100644 index 236c3b810..000000000 --- a/resources/views/layouts/_snappy.blade.php +++ /dev/null @@ -1,17 +0,0 @@ -@if (config('services.snappy.enabled')) - -@endif diff --git a/resources/views/layouts/_sponsors.blade.php b/resources/views/layouts/_sponsors.blade.php new file mode 100644 index 000000000..1fe980170 --- /dev/null +++ b/resources/views/layouts/_sponsors.blade.php @@ -0,0 +1,51 @@ +
        +
        +

        We'd like to thank these amazing companies for supporting us

        +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        + + + +
        +
        +
        diff --git a/resources/views/layouts/_top_nav.blade.php b/resources/views/layouts/_top_nav.blade.php deleted file mode 100644 index cf85a8f28..000000000 --- a/resources/views/layouts/_top_nav.blade.php +++ /dev/null @@ -1,40 +0,0 @@ -
        - - - -
        diff --git a/resources/views/layouts/_two_columns_left_sidebar.blade.php b/resources/views/layouts/_two_columns_left_sidebar.blade.php deleted file mode 100644 index bbb51022c..000000000 --- a/resources/views/layouts/_two_columns_left_sidebar.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@extends('layouts.default') - -@section('table') - - -
        - @yield('content') -
        -@stop diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php new file mode 100644 index 000000000..7307a668c --- /dev/null +++ b/resources/views/layouts/base.blade.php @@ -0,0 +1,38 @@ + + + + + + + + + + + {{ isset($title) ? $title.' | ' : '' }} {{ config('app.name') }} + + + + + + + @include('layouts._google_analytics') + + + +
        + @include('layouts._nav') + + @yield('body') + + @include('layouts._footer') +
        + + + + +@include('layouts._intercom') + + + diff --git a/resources/views/layouts/bin.blade.php b/resources/views/layouts/bin.blade.php deleted file mode 100644 index 3ce4c3c67..000000000 --- a/resources/views/layouts/bin.blade.php +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - {{ ! empty($title) ? $title . ' - ' : '' }}Laravel.io - The Laravel Community Portal - - @section('styles') - - @show - - - - @include('layouts._google_analytics') - - - -
        -
        - @yield('table') -
        -
        - -@section('scripts') - -@show - -@include('layouts._snappy') - - - diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 0b7f79fa3..c9ef2cd69 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -1,65 +1,9 @@ - - - - - - +@extends('layouts.base') - {{ isset($pageTitle) ? $pageTitle . ' - ' : '' }}Laravel.io - The Laravel Community Portal +@section('body') +
        + @include('layouts._alerts') - @section('styles') - - @show - - - - @include('layouts._google_analytics') - - - -@if (Auth::check() && ! Auth::user()->isConfirmed()) -
        - Please confirm your email address ({{ Auth::user()->email }}). - Re-send confirmation email. - Change e-mail address. + @yield('content')
        -@endif - -
        -
        - @include('layouts._top_nav') -
        - -
        - @include('layouts._flash') - -
        - @yield('table') -
        -
        -
        - -
        - -@include('layouts._footer') - -@section('scripts') - - - - - -@show - -@include('layouts._snappy') - - - +@endsection diff --git a/resources/views/layouts/settings.blade.php b/resources/views/layouts/settings.blade.php new file mode 100644 index 000000000..4d06ba184 --- /dev/null +++ b/resources/views/layouts/settings.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.base') + +@section('body') +
        +
        +
        +
        +
        Settings
        +
        + +
        +
        +
        +
        + @include('layouts._alerts') + + @yield('content') +
        +
        +
        +@endsection diff --git a/resources/views/layouts/small.blade.php b/resources/views/layouts/small.blade.php new file mode 100644 index 000000000..bb7f1140d --- /dev/null +++ b/resources/views/layouts/small.blade.php @@ -0,0 +1,20 @@ +@extends('layouts.base') + +@section('body') +
        +
        +
        + @include('layouts._alerts') + +
        +
        {{ $title }}
        +
        + @yield('small-content') +
        +
        + + @yield('small-content-after') +
        +
        +
        +@endsection diff --git a/resources/views/replies/edit.blade.php b/resources/views/replies/edit.blade.php new file mode 100644 index 000000000..6f40191b9 --- /dev/null +++ b/resources/views/replies/edit.blade.php @@ -0,0 +1,18 @@ +@title('Edit your reply') + +@extends('layouts.default') + +@section('content') +

        {{ $title }}

        +
        + + {!! Form::open(['route' => ['replies.update', $reply->id()], 'method' => 'PUT']) !!} + @formGroup('body') + {!! Form::textarea('body', $reply->body(), ['class' => 'form-control wysiwyg', 'required']) !!} + @error('body') + @endFormGroup + + {!! Form::submit('Update', ['class' => 'btn btn-primary btn-block']) !!} + Cancel + {!! Form::close() !!} +@endsection diff --git a/resources/views/rules.blade.php b/resources/views/rules.blade.php new file mode 100644 index 000000000..96d18d997 --- /dev/null +++ b/resources/views/rules.blade.php @@ -0,0 +1,16 @@ +@title('Forum Rules') + +@extends('layouts.small') + +@section('small-content') +

        By posting to the forum and replying to threads you agree to:

        +
          +
        • Follow our Code of Conduct
        • +
        • Not spam
        • +
        • Not advertise commercial content or products in any way
        • +
        • Not recruit for your own or other companies
        • +
        +

        Not following these rules may result in the banning or deletion of your profile and/or content.

        +

        Moderators and admins may remove or modify your content at any time they seem necessary without notice.

        +

        These rules may be changed at any given moment without prior notice.

        +@endsection diff --git a/resources/views/users/_latest_content.blade.php b/resources/views/users/_latest_content.blade.php new file mode 100644 index 000000000..9dcb41007 --- /dev/null +++ b/resources/views/users/_latest_content.blade.php @@ -0,0 +1,30 @@ +
        +
        +

        Latest Threads

        + + @forelse ($user->latestThreads() as $thread) + + @empty +

        {{ $user->name() }} has not posted any threads yet.

        + @endforelse +
        +
        +

        Latest Replies

        + + @forelse ($user->latestReplies() as $reply) + + @empty +

        {{ $user->name() }} has not posted any replies yet.

        + @endforelse +
        +
        diff --git a/resources/views/users/_sidebar.blade.php b/resources/views/users/_sidebar.blade.php deleted file mode 100644 index df822375f..000000000 --- a/resources/views/users/_sidebar.blade.php +++ /dev/null @@ -1,14 +0,0 @@ -
        - @if (! Route::currentRouteNamed('user')) - {!! $user->imageMedium !!} - @else - {!! $user->imageMedium !!} - @endif - -

        {{ $user->name }}

        -

        Visit GitHub Profile

        - - @if (Auth::check() && Auth::user()->email === $user->email) -

        Edit Account Settings

        - @endif -
        diff --git a/resources/views/users/_user_info.blade.php b/resources/views/users/_user_info.blade.php new file mode 100644 index 000000000..c69f1dd96 --- /dev/null +++ b/resources/views/users/_user_info.blade.php @@ -0,0 +1,27 @@ + diff --git a/resources/views/users/dashboard.blade.php b/resources/views/users/dashboard.blade.php new file mode 100644 index 000000000..555bb5a3e --- /dev/null +++ b/resources/views/users/dashboard.blade.php @@ -0,0 +1,32 @@ +@title('Dashboard') + +@extends('layouts.default') + +@section('content') +

        Welcome {{ Auth::user()->name() }}!

        +
        + +
        +
        +
        +
        Threads
        +
        {{ Auth::user()->countThreads() }}
        +
        +
        +
        +
        +
        Replies
        +
        {{ Auth::user()->countReplies() }}
        +
        +
        +
        +
        +
        Solutions
        +
        {{ Auth::user()->countSolutions() }}
        +
        +
        +
        + + + @include('users._latest_content', ['user' => Auth::user()]) +@endsection diff --git a/resources/views/users/profile.blade.php b/resources/views/users/profile.blade.php index ace9d4c36..df19eca11 100644 --- a/resources/views/users/profile.blade.php +++ b/resources/views/users/profile.blade.php @@ -1,59 +1,10 @@ -@extends('layouts._two_columns_left_sidebar') +@title($user->name()) -@section('sidebar') - @include('users._sidebar') -@stop +@extends('layouts.default') @section('content') -
        - @if ($threads->count() > 0) -
        -

        Latest Threads by {{ $user->name }}

        -
        -
        - @foreach ($threads as $thread) -
        - {!! $thread->author->thumbnail !!} - -
        -

        {{{ $thread->subject }}}

        - -
        -
        - @endforeach -
        - - @if ($threads->count() > 5) -

        View all threads

        - @endif - @endif - - @if ($replies->count()) -
        -

        Latest Replies by {{ $user->name }}

        -
        -
        - @foreach ($replies as $reply) -
        - {!! $reply->author->thumbnail !!} - -
        -

        In reply to: {{ $reply->thread->subject }}

        - -
        -
        - @endforeach -
        - - @if ($replies->count() > 5) -

        View all replies

        - @endif - @endif -
        -@stop +
        + @include('users._user_info') + @include('users._latest_content') +
        +@endsection diff --git a/resources/views/users/replies.blade.php b/resources/views/users/replies.blade.php deleted file mode 100644 index 0996a2a4e..000000000 --- a/resources/views/users/replies.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('users._sidebar') -@stop - -@section('content') -
        -@if ($replies->count()) -
        -

        Replies by {{ $user->name }}

        -
        -
        - @foreach($replies as $reply) -
        - {!! $reply->author->thumbnail !!} - -
        -

        In reply to: {{ $reply->thread->subject }}

        - -
        -
        - @endforeach -
        - -@endif - - -
        -@stop diff --git a/resources/views/users/settings.blade.php b/resources/views/users/settings.blade.php deleted file mode 100644 index df9399011..000000000 --- a/resources/views/users/settings.blade.php +++ /dev/null @@ -1,40 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('users._sidebar') -@stop - -@section('content') - -
        -
        -

        Account Settings

        -
        - -
        - -@stop diff --git a/resources/views/users/settings/password.blade.php b/resources/views/users/settings/password.blade.php new file mode 100644 index 000000000..4197c13b5 --- /dev/null +++ b/resources/views/users/settings/password.blade.php @@ -0,0 +1,44 @@ +@title('Password') + +@extends('layouts.settings') + +@section('content') +
        +
        {{ $title }}
        +
        + {{ Form::open(['route' => 'settings.password.update', 'method' => 'PUT', 'class' => 'form-horizontal']) }} + @formGroup('current_password') + {!! Form::label('current_password', null, ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::password('current_password', ['class' => 'form-control', 'required']) !!} + @error('current_password') +
        + @endFormGroup + + @formGroup('password') + {!! Form::label('password', 'New Password', ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::password('password', ['class' => 'form-control', 'required']) !!} + @error('password') +
        + @endFormGroup + + @formGroup('password_confirmation') + {!! Form::label('password_confirmation', 'Confirm New Password', ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::password('password_confirmation', ['class' => 'form-control', 'required']) !!} +
        + @endFormGroup + +
        +
        + {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} +
        +
        + {{ Form::close() }} +
        +
        +@endsection diff --git a/resources/views/users/settings/profile.blade.php b/resources/views/users/settings/profile.blade.php new file mode 100644 index 000000000..45a7d1842 --- /dev/null +++ b/resources/views/users/settings/profile.blade.php @@ -0,0 +1,52 @@ +@title('Profile') + +@extends('layouts.settings') + +@section('content') +
        +
        {{ $title }}
        +
        + {!! Form::open(['route' => 'settings.profile.update', 'method' => 'PUT', 'class' => 'form-horizontal']) !!} +
        +
        + + Change your avatar on Gravatar. +
        +
        + + @formGroup('name') + {!! Form::label('name', null, ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::text('name', Auth::user()->name(), ['class' => 'form-control', 'required']) !!} + @error('name') +
        + @endFormGroup + + @formGroup('email') + {!! Form::label('email', null, ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::email('email', Auth::user()->emailAddress(), ['class' => 'form-control', 'required']) !!} + @error('email') +
        + @endFormGroup + + @formGroup('username') + {!! Form::label('username', null, ['class' => 'col-md-3 control-label']) !!} + +
        + {!! Form::text('username', Auth::user()->username(), ['class' => 'form-control', 'required']) !!} + @error('username') +
        + @endFormGroup + +
        +
        + {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} +
        +
        + {!! Form::close() !!} +
        +
        +@endsection diff --git a/resources/views/users/threads.blade.php b/resources/views/users/threads.blade.php deleted file mode 100644 index d892b12e4..000000000 --- a/resources/views/users/threads.blade.php +++ /dev/null @@ -1,33 +0,0 @@ -@extends('layouts._two_columns_left_sidebar') - -@section('sidebar') - @include('users._sidebar') -@stop - -@section('content') -
        - @if ($threads->count() > 0) -
        -

        Threads by {{ $user->name }}

        -
        -
        - @foreach ($threads as $thread) -
        - {!! $thread->author->thumbnail !!} - -
        -

        {{{ $thread->subject }}}

        - -
        -
        - @endforeach -
        - - @endif -
        -@stop diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 000000000..c641ca5e5 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,18 @@ +get('/user', function (Request $request) { + return $request->user(); +}); diff --git a/routes/bindings.php b/routes/bindings.php new file mode 100644 index 000000000..cd2f7d22e --- /dev/null +++ b/routes/bindings.php @@ -0,0 +1,17 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 000000000..75dd0cded --- /dev/null +++ b/routes/console.php @@ -0,0 +1,18 @@ +comment(Inspiring::quote()); +})->describe('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 000000000..af2ff2fbe --- /dev/null +++ b/routes/web.php @@ -0,0 +1,73 @@ + 'home', 'uses' => 'HomeController@show']); +Route::get('rules', ['as' => 'rules', 'uses' => 'HomeController@rules']); + +// Authentication +Route::group(['namespace' => 'Auth'], function () { + // Sessions + Route::get('login', ['as' => 'login', 'uses' => 'LoginController@showLoginForm']); + Route::post('login', ['as' => 'login.post', 'uses' => 'LoginController@login']); + Route::get('logout', ['as' => 'logout', 'uses' => 'LoginController@logout']); + + // Registration + Route::get('register', ['as' => 'register', 'uses' => 'RegisterController@showRegistrationForm']); + Route::get('signup', 'RegisterController@redirectToRegistrationForm'); // BC for old links + Route::post('register', ['as' => 'register.post', 'uses' => 'RegisterController@register']); + + // Password reset + Route::get('password/reset', ['as' => 'password.forgot', 'uses' => 'ForgotPasswordController@showLinkRequestForm']); + Route::post('password/email', ['as' => 'password.forgot.post', 'uses' => 'ForgotPasswordController@sendResetLinkEmail']); + Route::get('password/reset/{token}', ['as' => 'password.reset', 'uses' => 'ResetPasswordController@showResetForm']); + Route::post('password/reset', ['as' => 'password.reset.post', 'uses' => 'ResetPasswordController@reset']); + + // Email address confirmation + Route::get('email-confirmation', ['as' => 'email.send_confirmation', 'uses' => 'EmailConfirmationController@send']); + Route::get('email-confirmation/{email_address}/{code}', ['as' => 'email.confirm', 'uses' => 'EmailConfirmationController@confirm']); + + // Social authentication + Route::get('login/github', ['as' => 'login.github', 'uses' => 'GithubController@redirectToProvider']); + Route::get('auth/github', 'GithubController@handleProviderCallback'); +}); + +// Users +Route::get('dashboard', ['as' => 'dashboard', 'uses' => 'DashboardController@show']); +Route::get('user/{username}', ['as' => 'profile', 'uses' => 'ProfileController@show']); + +// Settings +Route::get('settings', ['as' => 'settings.profile', 'uses' => 'Settings\ProfileController@edit']); +Route::put('settings', ['as' => 'settings.profile.update', 'uses' => 'Settings\ProfileController@update']); +Route::get('settings/password', ['as' => 'settings.password', 'uses' => 'Settings\PasswordController@edit']); +Route::put('settings/password', ['as' => 'settings.password.update', 'uses' => 'Settings\PasswordController@update']); + +// Forum +Route::group(['prefix' => 'forum', 'namespace' => 'Forum'], function () { + Route::get('/', ['as' => 'forum', 'uses' => 'ThreadsController@overview']); + Route::get('create-thread', ['as' => 'threads.create', 'uses' => 'ThreadsController@create']); + Route::post('create-thread', ['as' => 'threads.store', 'uses' => 'ThreadsController@store']); + + Route::get('{thread}', ['as' => 'thread', 'uses' => 'ThreadsController@show']); + Route::get('{thread}/edit', ['as' => 'threads.edit', 'uses' => 'ThreadsController@edit']); + Route::put('{thread}', ['as' => 'threads.update', 'uses' => 'ThreadsController@update']); + Route::delete('{thread}', ['as' => 'threads.delete', 'uses' => 'ThreadsController@delete']); + Route::put('{thread}/mark-solution/{reply}', ['as' => 'threads.solution.mark', 'uses' => 'ThreadsController@markSolution']); + Route::put('{thread}/unmark-solution', ['as' => 'threads.solution.unmark', 'uses' => 'ThreadsController@unmarkSolution']); + + Route::get('tags/{tag}', ['as' => 'forum.tag', 'uses' => 'TagsController@show']); +}); + +// Replies +Route::post('replies', ['as' => 'replies.store', 'uses' => 'ReplyController@store']); +Route::get('replies/{reply}/edit', ['as' => 'replies.edit', 'uses' => 'ReplyController@edit']); +Route::put('replies/{reply}', ['as' => 'replies.update', 'uses' => 'ReplyController@update']); +Route::delete('replies/{reply}', ['as' => 'replies.delete', 'uses' => 'ReplyController@delete']); + +// Admin +Route::group(['prefix' => 'admin', 'as' => 'admin', 'namespace' => 'Admin'], function () { + Route::get('/', 'AdminController@index'); + Route::get('users/{username}', ['as' => '.users.show', 'uses' => 'UsersController@show']); + Route::put('users/{username}/ban', ['as' => '.users.ban', 'uses' => 'UsersController@ban']); + Route::put('users/{username}/unban', ['as' => '.users.unban', 'uses' => 'UsersController@unban']); + Route::delete('users/{username}', ['as' => '.users.delete', 'uses' => 'UsersController@delete']); +}); diff --git a/server.php b/server.php index f65c7c444..20bc389f0 100644 --- a/server.php +++ b/server.php @@ -1,12 +1,10 @@ + * @author Taylor Otwell */ - $uri = urldecode( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ); diff --git a/spec/Content/ForeignLanguageSpamDetectorSpec.php b/spec/Content/ForeignLanguageSpamDetectorSpec.php deleted file mode 100644 index c40c4aa81..000000000 --- a/spec/Content/ForeignLanguageSpamDetectorSpec.php +++ /dev/null @@ -1,50 +0,0 @@ -segment(2); - - return [ -\'name\' => \'required|unique:continents,name,\' . $id , - ]; - } -}'; - - function it_is_initializable() - { - $this->shouldHaveType('Lio\Content\ForeignLanguageSpamDetector'); - $this->shouldHaveType('Lio\Content\SpamDetector'); - } - - function it_can_detect_foreign_language_as_spam() - { - $this->detectsSpam($this->foreignLanguage)->shouldReturn(true); - } - - function it_passes_when_valid_text_was_entered() - { - $this->detectsSpam($this->validText)->shouldReturn(false); - } -} diff --git a/spec/Content/PhoneNumberSpamDetectorSpec.php b/spec/Content/PhoneNumberSpamDetectorSpec.php deleted file mode 100644 index bd546c9bf..000000000 --- a/spec/Content/PhoneNumberSpamDetectorSpec.php +++ /dev/null @@ -1,146 +0,0 @@ -shouldHaveType('Lio\Content\PhoneNumberSpamDetector'); - $this->shouldHaveType('Lio\Content\SpamDetector'); - } - - function it_can_detect_phone_number_spam() - { - $this->detectsSpam($this->textWithPhoneNumbers)->shouldReturn(true); - $this->detectsSpam($this->otherTextWithPhoneNumber)->shouldReturn(true); - } - - function it_passes_when_no_phone_numbers_are_detected() - { - $this->detectsSpam($this->textWithoutPhoneNumbers)->shouldReturn(false); - } -} diff --git a/spec/Content/SpamFilterSpec.php b/spec/Content/SpamFilterSpec.php deleted file mode 100644 index cc188130c..000000000 --- a/spec/Content/SpamFilterSpec.php +++ /dev/null @@ -1,37 +0,0 @@ -beConstructedWith([ - new PhoneNumberSpamDetector, - new ForeignLanguageSpamDetector - ]); - } - - function it_is_initializable() - { - $this->shouldHaveType(SpamFilter::class); - $this->shouldHaveType(SpamDetector::class); - } - - function it_can_detect_spam() - { - $this->detectsSpam('91+7742228242')->shouldReturn(true); - $this->detectsSpam('【빠나나9넷】')->shouldReturn(true); - } - - function it_passes_when_no_spam_was_detected() - { - $this->detectsSpam('No spam here!')->shouldReturn(false); - } -} diff --git a/spec/Social/GithubUserSpec.php b/spec/Social/GithubUserSpec.php new file mode 100644 index 000000000..075fc8301 --- /dev/null +++ b/spec/Social/GithubUserSpec.php @@ -0,0 +1,34 @@ +beConstructedWith([]); + } + + public function it_is_initializable() + { + $this->shouldHaveType(GithubUser::class); + } + + public function it_can_determine_if_the_user_is_older_than_two_weeks() + { + $this->beConstructedWith(['created_at' => Carbon::now()->subWeek(3)]); + + $this->isTooYoung()->shouldReturn(false); + } + + public function it_can_determine_if_the_user_is_younger_than_two_weeks() + { + $this->beConstructedWith(['created_at' => Carbon::now()->subWeek(1)]); + + $this->isTooYoung()->shouldReturn(true); + } +} diff --git a/spec/Spam/SpamFilterSpec.php b/spec/Spam/SpamFilterSpec.php new file mode 100644 index 000000000..4ef5ffbfd --- /dev/null +++ b/spec/Spam/SpamFilterSpec.php @@ -0,0 +1,31 @@ +shouldHaveType(SpamFilter::class); + $this->shouldHaveType(SpamDetector::class); + } + + public function it_can_detect_spam() + { + $this->beConstructedWith(DummySpamDetector::withSpam()); + + $this->detectsSpam('some spam')->shouldReturn(true); + } + + public function it_passes_when_no_spam_was_detected() + { + $this->beConstructedWith(DummySpamDetector::withoutSpam()); + + $this->detectsSpam('No spam here!')->shouldReturn(false); + } +} diff --git a/storage/app/.gitignore b/storage/app/.gitignore index d6b7ef32c..8f4803c05 100644 --- a/storage/app/.gitignore +++ b/storage/app/.gitignore @@ -1,2 +1,3 @@ * +!public/ !.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100644 index 000000000..d6b7ef32c --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore index 953edb7a9..b02b700f1 100644 --- a/storage/framework/.gitignore +++ b/storage/framework/.gitignore @@ -1,5 +1,6 @@ config.php routes.php +schedule-* compiled.php services.json events.scanned.php diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100755 index 000000000..c96a04f00 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/tests/BrowserKitTestCase.php b/tests/BrowserKitTestCase.php new file mode 100644 index 000000000..6b8436098 --- /dev/null +++ b/tests/BrowserKitTestCase.php @@ -0,0 +1,12 @@ +createUser(), factory(Thread::class)->create()); + + $this->assertInstanceOf(Reply::class, $job->handle()); + } +} diff --git a/tests/Components/Jobs/CreateThreadTest.php b/tests/Components/Jobs/CreateThreadTest.php new file mode 100644 index 000000000..ecb41e4ea --- /dev/null +++ b/tests/Components/Jobs/CreateThreadTest.php @@ -0,0 +1,21 @@ +createUser()); + + $this->assertInstanceOf(Thread::class, $job->handle()); + } +} diff --git a/tests/Components/Jobs/DeleteThreadTest.php b/tests/Components/Jobs/DeleteThreadTest.php new file mode 100644 index 000000000..35c9549ef --- /dev/null +++ b/tests/Components/Jobs/DeleteThreadTest.php @@ -0,0 +1,26 @@ +create(); + factory(Reply::class)->create(['replyable_id' => $thread->id()]); + + (new DeleteThread($thread))->handle(); + + $this->assertDatabaseMissing('threads', ['id' => $thread->id()]); + $this->assertDatabaseMissing('replies', ['replyable_id' => $thread->id()]); + } +} diff --git a/tests/Components/Jobs/RegisterUserTest.php b/tests/Components/Jobs/RegisterUserTest.php new file mode 100644 index 000000000..695a38bb7 --- /dev/null +++ b/tests/Components/Jobs/RegisterUserTest.php @@ -0,0 +1,47 @@ +assertInstanceOf(User::class, $job->handle($this->app->make(Hasher::class))); + } + + /** @test */ + public function we_cannot_create_a_user_with_the_same_email_address() + { + $this->expectException(CannotCreateUser::class); + + $job = new RegisterUser('John Doe', 'john@example.com', 'johndoe', '', 'password'); + $job->handle($this->app->make(Hasher::class)); + + $job = new RegisterUser('John Doe', 'john@example.com', 'john', '', 'password'); + $job->handle($this->app->make(Hasher::class)); + } + + /** @test */ + public function we_cannot_create_a_user_with_the_same_username() + { + $this->expectException(CannotCreateUser::class); + + $job = new RegisterUser('John Doe', 'john@example.com', 'johndoe', '', 'password'); + $job->handle($this->app->make(Hasher::class)); + + $job = new RegisterUser('John Doe', 'doe@example.com', 'johndoe', '', 'password'); + $job->handle($this->app->make(Hasher::class)); + } +} diff --git a/tests/Components/Models/ThreadTest.php b/tests/Components/Models/ThreadTest.php new file mode 100644 index 000000000..2e6e38118 --- /dev/null +++ b/tests/Components/Models/ThreadTest.php @@ -0,0 +1,92 @@ +create(['slug' => 'foo']); + + $this->assertInstanceOf(Thread::class, Thread::findBySlug('foo')); + } + + /** @test */ + public function it_can_search_by_name_or_body() + { + factory(Thread::class)->create(['subject' => 'Optimizing Eloquent']); + factory(Thread::class)->create(['body' => 'What can we do to optimize the behavior or Eloquent?']); + + $this->assertCount(1, Thread::search('optimizing')); + $this->assertCount(1, Thread::search('behavior')); + } + + /** @test */ + public function it_can_give_an_excerpt_of_its_body() + { + $thread = factory(Thread::class)->make(['body' => 'This is a pretty long text.']); + + $this->assertEquals('This is...', $thread->excerpt(7)); + } + + /** @test */ + public function we_can_mark_and_unmark_a_reply_as_the_solution() + { + $thread = factory(Thread::class)->create(); + $reply = factory(Reply::class)->create(['replyable_id' => $thread->id()]); + + $this->assertFalse($thread->isSolutionReply($reply)); + + $thread->markSolution($reply); + + $this->assertTrue($thread->isSolutionReply($reply)); + + $thread->unmarkSolution(); + + $this->assertFalse($thread->isSolutionReply($reply)); + } + + /** @test */ + public function it_can_retrieve_the_latest_threads_in_a_correct_order() + { + $threadUpdatedYesterday = $this->createThreadFromYesterday(); + $threadFromToday = $this->createThreadFromToday(); + $threadFromTwoDaysAgo = $this->createThreadFromTwoDaysAgo(); + + $threads = Thread::feed(); + + $this->assertTrue($threadFromToday->matches($threads->first()), 'First thread is incorrect'); + $this->assertTrue($threadUpdatedYesterday->matches($threads->slice(1)->first()), 'Second thread is incorrect'); + $this->assertTrue($threadFromTwoDaysAgo->matches($threads->last()), 'Last thread is incorrect'); + } + + private function createThreadFromToday(): Thread + { + $today = Carbon::now(); + + return factory(Thread::class)->create(['created_at' => $today]); + } + + private function createThreadFromYesterday(): Thread + { + $yesterday = Carbon::yesterday(); + + return factory(Thread::class)->create(['created_at' => $yesterday]); + } + + private function createThreadFromTwoDaysAgo(): Thread + { + $twoDaysAgo = Carbon::now()->subDay(2); + + return factory(Thread::class)->create(['created_at' => $twoDaysAgo]); + } +} diff --git a/tests/Components/Models/UserTest.php b/tests/Components/Models/UserTest.php new file mode 100644 index 000000000..3d6faa740 --- /dev/null +++ b/tests/Components/Models/UserTest.php @@ -0,0 +1,50 @@ +createUser(['username' => 'johndoe']); + + $this->assertInstanceOf(User::class, User::findByUsername('johndoe')); + } + + /** @test */ + public function it_can_find_by_email_address() + { + $this->createUser(['email' => 'john@example.com']); + + $this->assertInstanceOf(User::class, User::findByEmailAddress('john@example.com')); + } + + /** @test */ + public function it_can_return_the_amount_of_solutions_that_were_given() + { + $user = factory(User::class)->create(); + $this->seedTwoSolutionReplies($user); + + $this->assertEquals(2, $user->countSolutions()); + } + + private function seedTwoSolutionReplies(User $user) + { + $thread = factory(Thread::class)->create(); + $reply = factory(Reply::class)->create(['replyable_id' => $thread->id(), 'author_id' => $user->id()]); + $thread->markSolution($reply); + + $thread = factory(Thread::class)->create(); + $reply = factory(Reply::class)->create(['replyable_id' => $thread->id(), 'author_id' => $user->id()]); + $thread->markSolution($reply); + } +} diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 000000000..2a63cc0d8 --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,26 @@ +make(Kernel::class)->bootstrap(); + + // Thanks for the tip Jeff Madsen! + Hash::setRounds(5); + + return $app; + } +} diff --git a/tests/CreatesUsers.php b/tests/CreatesUsers.php new file mode 100644 index 000000000..53f2e78fa --- /dev/null +++ b/tests/CreatesUsers.php @@ -0,0 +1,43 @@ +createUser($attributes); + + $this->be($user); + + return $user; + } + + protected function loginAs(User $user) + { + $this->be($user); + } + + protected function loginAsModerator(array $attributes = []): User + { + return $this->login(array_merge($attributes, ['type' => User::MODERATOR])); + } + + protected function loginAsAdmin(array $attributes = []): User + { + return $this->login(array_merge($attributes, ['type' => User::ADMIN])); + } + + protected function createUser(array $attributes = []): User + { + return factory(User::class)->create(array_merge([ + 'name' => 'John Doe', + 'username' => 'johndoe', + 'email' => 'john@example.com', + 'password' => bcrypt('password'), + 'github_username' => 'johndoe', + ], $attributes)); + } +} diff --git a/tests/Feature/AdminTest.php b/tests/Feature/AdminTest.php new file mode 100644 index 000000000..e038f73f0 --- /dev/null +++ b/tests/Feature/AdminTest.php @@ -0,0 +1,184 @@ +visit('/admin') + ->seePageIs('/login'); + } + + /** @test */ + public function normal_users_cannot_visit_the_admin_section() + { + $this->login(); + + $this->get('/admin') + ->assertForbidden(); + } + + /** @test */ + public function admins_can_see_the_users_overview() + { + $this->loginAsAdmin(); + $this->assertCanSeeTheUserOverview(); + } + + /** @test */ + public function moderators_can_see_the_users_overview() + { + $this->loginAsModerator(); + $this->assertCanSeeTheUserOverview(); + } + + private function assertCanSeeTheUserOverview() + { + factory(User::class)->create(['name' => 'Freek Murze']); + factory(User::class)->create(['name' => 'Frederick Vanbrabant']); + + $this->visit('/admin') + ->see('Freek Murze') + ->see('Frederick Vanbrabant'); + } + + /** @test */ + public function admins_can_ban_a_user() + { + $this->loginAsAdmin(); + $this->assertCanBanUsers(); + } + + /** @test */ + public function moderators_can_ban_a_user() + { + $this->loginAsModerator(); + $this->assertCanBanUsers(); + } + + private function assertCanBanUsers() + { + $user = factory(User::class)->create(['name' => 'Freek Murze']); + + $this->put('/admin/users/'.$user->username().'/ban') + ->assertRedirectedTo('/admin/users/'.$user->username()); + + $this->seeInDatabase('users', ['id' => $user->id(), 'is_banned' => true]); + } + + /** @test */ + public function admins_can_unban_a_user() + { + $this->loginAsAdmin(); + $this->assertCanUnbanUsers(); + } + + /** @test */ + public function moderators_can_unban_a_user() + { + $this->loginAsModerator(); + $this->assertCanUnbanUsers(); + } + + private function assertCanUnbanUsers() + { + $user = factory(User::class)->create(['name' => 'Freek Murze', 'is_banned' => true]); + + $this->put('/admin/users/'.$user->username().'/unban') + ->assertRedirectedTo('/admin/users/'.$user->username()); + + $this->seeInDatabase('users', ['id' => $user->id(), 'is_banned' => false]); + } + + /** @test */ + public function admins_cannot_ban_other_admins() + { + $this->loginAsAdmin(); + $this->assertCannotBanAdmins(); + } + + /** @test */ + public function moderators_cannot_ban_admins() + { + $this->loginAsModerator(); + $this->assertCannotBanAdmins(); + } + + /** @test */ + public function moderators_cannot_ban_other_moderators() + { + $this->loginAsModerator(); + $this->assertCannotBanModerators(); + } + + private function assertCannotBanAdmins() + { + $this->assertCannotBanUsersByType(User::ADMIN); + } + + private function assertCannotBanModerators() + { + $this->assertCannotBanUsersByType(User::MODERATOR); + } + + private function assertCannotBanUsersByType(int $type) + { + $user = factory(User::class)->create(['type' => $type]); + + $this->put('/admin/users/'.$user->username().'/ban') + ->assertForbidden(); + } + + /** @test */ + public function admins_can_delete_a_user() + { + $user = factory(User::class)->create(['name' => 'Freek Murze']); + $thread = factory(Thread::class)->create(['author_id' => $user->id()]); + factory(Reply::class)->create(['replyable_id' => $thread->id()]); + factory(Reply::class)->create(['author_id' => $user->id()]); + + $this->loginAsAdmin(); + + $this->delete('/admin/users/'.$user->username()) + ->assertRedirectedTo('/admin'); + + $this->notSeeInDatabase('users', ['name' => 'Freek Murze']); + + // Make sure associated content is deleted. + $this->notSeeInDatabase('threads', ['author_id' => $user->id()]); + $this->notSeeInDatabase('replies', ['replyable_id' => $thread->id()]); + $this->notSeeInDatabase('replies', ['author_id' => $user->id()]); + } + + /** @test */ + public function admins_cannot_delete_other_admins() + { + $user = factory(User::class)->create(['type' => User::ADMIN]); + + $this->loginAsAdmin(); + + $this->delete('/admin/users/'.$user->username()) + ->assertForbidden(); + } + + /** @test */ + public function moderators_cannot_delete_users() + { + $user = factory(User::class)->create(); + + $this->loginAsModerator(); + + $this->delete('/admin/users/'.$user->username()) + ->assertForbidden(); + } +} diff --git a/tests/Feature/AuthTest.php b/tests/Feature/AuthTest.php new file mode 100644 index 000000000..50945a001 --- /dev/null +++ b/tests/Feature/AuthTest.php @@ -0,0 +1,207 @@ +visit('/register') + ->type('John Doe', 'name') + ->type('john.doe@example.com', 'email') + ->type('johndoe', 'username') + ->type('password', 'password') + ->type('password', 'password_confirmation') + ->check('rules') + ->press('Register') + ->seePageIs('/dashboard') + ->see('Welcome John Doe!'); + + $this->assertLoggedIn(); + + Mail::assertSent(EmailConfirmation::class); + } + + /** @test */ + public function registration_fails_when_a_required_field_is_not_filled_in() + { + $this->visit('/register') + ->press('Register') + ->seePageIs('/register') + ->see('The name field is required.') + ->see('The email field is required.') + ->see('The username field is required.') + ->see('The password field is required.') + ->see('The rules must be accepted.'); + } + + /** @test */ + public function users_can_resend_the_email_confirmation() + { + $this->login(['confirmed' => false]); + + $this->visit('/email-confirmation') + ->seePageIs('/dashboard') + ->see('Email confirmation sent to john@example.com'); + } + + /** @test */ + public function users_do_not_need_to_confirm_their_email_address_twice() + { + $this->login(); + + $this->visit('/email-confirmation') + ->seePageIs('/dashboard') + ->see('Your email address is already confirmed.'); + } + + /** @test */ + public function users_can_confirm_their_email_address() + { + $user = $this->createUser(['confirmed' => false, 'confirmation_code' => 'testcode']); + + $this->visit('/email-confirmation/john@example.com/testcode') + ->seePageIs('/') + ->see('Your email address was successfully confirmed.'); + + $this->seeInDatabase('users', ['id' => $user->id(), 'confirmed' => true]); + } + + /** @test */ + public function users_get_a_message_when_a_confirmation_code_was_not_found() + { + $this->createUser(['confirmed' => false]); + + $this->visit('/email-confirmation/john@example.com/testcode') + ->seePageIs('/') + ->see('We could not confirm your email address. The given email address and code did not match.'); + } + + /** @test */ + public function users_can_login() + { + $this->createUser(); + + $this->visit('/login') + ->type('johndoe', 'username') + ->type('password', 'password') + ->press('Login') + ->seePageIs('/dashboard') + ->see('Welcome John Doe!'); + } + + /** @test */ + public function login_fails_when_a_required_field_is_not_filled_in() + { + $this->createUser(); + + $this->visit('/login') + ->press('Login') + ->seePageIs('/login') + ->see('The username field is required.') + ->see('The password field is required.'); + } + + /** @test */ + public function login_fails_when_password_is_incorrect() + { + $this->createUser(); + + $this->visit('/login') + ->type('johndoe', 'username') + ->type('invalidpass', 'password') + ->press('Login') + ->seePageIs('/login') + ->see('These credentials do not match our records.'); + } + + /** @test */ + public function login_fails_when_user_is_banned() + { + $this->createUser(['is_banned' => true]); + + $this->visit('/login') + ->type('johndoe', 'username') + ->type('password', 'password') + ->press('Login') + ->seePageIs('/') + ->see('This account is banned.'); + } + + /** @test */ + public function users_can_logout() + { + $this->login(); + + $this->assertLoggedIn(); + + $this->visit('/logout') + ->seePageIs('/'); + + $this->assertLoggedOut(); + } + + /** @test */ + public function users_can_request_a_password_reset_link() + { + $this->createUser(); + + $this->visit('/password/reset') + ->type('john@example.com', 'email') + ->press('Send Password Reset Link') + ->see('We have e-mailed your password reset link!'); + } + + /** @test */ + public function users_can_reset_their_password() + { + $user = $this->createUser(); + + // Insert a password reset token into the database. + $token = $this->app[PasswordBroker::class]->getRepository()->create($user); + + $this->visit('/password/reset/'.$token) + ->type('john@example.com', 'email') + ->type('foopassword', 'password') + ->type('foopassword', 'password_confirmation') + ->press('Reset Password') + ->seePageIs('/dashboard') + ->visit('/logout') + ->visit('/login') + ->type('johndoe', 'username') + ->type('foopassword', 'password') + ->press('Login') + ->seePageIs('/dashboard'); + } + + /** @test */ + public function unconfirmed_users_cannot_create_threads() + { + $this->login(['confirmed' => false]); + + $this->visit('/forum/create-thread') + ->see('Please confirm your email address first.'); + } + + private function assertLoggedIn() + { + $this->assertTrue(Auth::check()); + } + + private function assertLoggedOut() + { + $this->assertFalse(Auth::check()); + } +} diff --git a/tests/Feature/DashboardTest.php b/tests/Feature/DashboardTest.php new file mode 100644 index 000000000..bf6294d31 --- /dev/null +++ b/tests/Feature/DashboardTest.php @@ -0,0 +1,39 @@ +visit('/dashboard') + ->seePageIs('/login'); + } + + /** @test */ + public function users_can_see_some_statistics() + { + $user = $this->createUser(); + $thread = array_first(factory(Thread::class, 3)->create(['author_id' => $user->id()])); + $reply = array_first(factory(Reply::class, 2)->create([ + 'author_id' => $user->id(), + 'replyable_id' => $thread->id(), + ])); + $thread->markSolution($reply); + + $this->loginAs($user); + + $this->visit('/dashboard') + ->see('
        3
        ') // 3 threads + ->see('
        2
        ') // 2 posts + ->see('
        1
        '); // 1 solution + } +} diff --git a/tests/Feature/ForumTest.php b/tests/Feature/ForumTest.php new file mode 100644 index 000000000..ca727e8eb --- /dev/null +++ b/tests/Feature/ForumTest.php @@ -0,0 +1,125 @@ +create(['subject' => 'The first thread']); + factory(Thread::class)->create(['subject' => 'The second thread']); + + $this->visit('/forum') + ->see('The first thread') + ->see('The second thread'); + } + + /** @test */ + public function users_can_see_a_single_thread() + { + factory(Thread::class)->create([ + 'subject' => 'The first thread', + 'slug' => 'the-first-thread', + ]); + + $this->visit('/forum/the-first-thread') + ->see('The first thread'); + } + + /** @test */ + public function users_cannot_create_a_thread_when_not_logged_in() + { + $this->visit('/forum/create-thread') + ->seePageIs('/login'); + } + + /** @test */ + public function the_thread_subject_cannot_be_an_url() + { + $tag = factory(Tag::class)->create(['name' => 'Test Tag']); + + $this->login(); + + $this->visit('/forum/create-thread') + ->submitForm('Create Thread', [ + 'subject' => 'http://example.com Foo title', + 'body' => 'This text explains how to work with Eloquent.', + 'tags' => [$tag->id()], + ]) + ->seePageIs('/forum/create-thread') + ->see('The subject field cannot contain an url.'); + } + + /** @test */ + public function users_can_create_a_thread() + { + $tag = factory(Tag::class)->create(['name' => 'Test Tag']); + + $this->login(); + + $this->visit('/forum/create-thread') + ->submitForm('Create Thread', [ + 'subject' => 'How to work with Eloquent?', + 'body' => 'This text explains how to work with Eloquent.', + 'tags' => [$tag->id()], + ]) + ->seePageIs('/forum/how-to-work-with-eloquent') + ->see('How to work with Eloquent?') + ->see('Test Tag') + ->see('Thread successfully created!'); + } + + /** @test */ + public function users_can_edit_a_thread() + { + $user = $this->createUser(); + $tag = factory(Tag::class)->create(['name' => 'Test Tag']); + factory(Thread::class)->create([ + 'author_id' => $user->id(), + 'slug' => 'my-first-thread', + ]); + + $this->loginAs($user); + + $this->visit('/forum/my-first-thread/edit') + ->submitForm('Update Thread', [ + 'subject' => 'How to work with Eloquent?', + 'body' => 'This text explains how to work with Eloquent.', + 'tags' => [$tag->id()], + ]) + ->seePageIs('/forum/how-to-work-with-eloquent') + ->see('How to work with Eloquent?') + ->see('Test Tag') + ->see('Thread successfully updated!'); + } + + /** @test */ + public function users_cannot_edit_a_thread_they_do_not_own() + { + factory(Thread::class)->create(['slug' => 'my-first-thread']); + + $this->login(); + + $this->get('/forum/my-first-thread/edit') + ->assertForbidden(); + } + + /** @test */ + public function users_cannot_delete_a_thread_they_do_not_own() + { + factory(Thread::class)->create(['slug' => 'my-first-thread']); + + $this->login(); + + $this->delete('/forum/my-first-thread') + ->assertForbidden(); + } +} diff --git a/tests/Feature/HomeTest.php b/tests/Feature/HomeTest.php new file mode 100644 index 000000000..e3b8f741f --- /dev/null +++ b/tests/Feature/HomeTest.php @@ -0,0 +1,40 @@ +visit('/') + ->see('Laravel.io') + ->see('The Laravel Community Portal'); + } + + /** @test */ + public function users_can_see_a_login_and_registration_link_when_logged_out() + { + $this->visit('/') + ->seeLink('Login') + ->seeLink('Register') + ->dontSeeLink('Logout'); + } + + /** @test */ + public function users_can_see_a_logout_button_when_logged_in() + { + $this->login(); + + $this->visit('/') + ->seeLink('Logout') + ->dontSeeLink('Login') + ->dontSeeLink('Register') + ->seeLink('Dashboard', '/dashboard'); + } +} diff --git a/tests/Feature/ModeratorTest.php b/tests/Feature/ModeratorTest.php new file mode 100644 index 000000000..19482b4de --- /dev/null +++ b/tests/Feature/ModeratorTest.php @@ -0,0 +1,34 @@ +create(); + + $this->loginAsModerator(); + + $this->visit('/forum/'.$thread->slug().'/edit') + ->assertResponseOk(); + } + + /** @test */ + public function moderators_can_delete_any_thread() + { + $thread = factory(Thread::class)->create(); + + $this->loginAsModerator(); + + $this->delete('/forum/'.$thread->slug()) + ->assertRedirectedTo('/forum'); + } +} diff --git a/tests/Feature/ProfileTest.php b/tests/Feature/ProfileTest.php new file mode 100644 index 000000000..889967659 --- /dev/null +++ b/tests/Feature/ProfileTest.php @@ -0,0 +1,20 @@ +createUser(); + + $this->visit('/user/johndoe') + ->see('John Doe'); + } +} diff --git a/tests/Feature/ReplyTest.php b/tests/Feature/ReplyTest.php new file mode 100644 index 000000000..e289546fb --- /dev/null +++ b/tests/Feature/ReplyTest.php @@ -0,0 +1,81 @@ +create(['subject' => 'The first thread', 'slug' => 'the-first-thread']); + + $this->login(); + + $this->visit('/forum/the-first-thread') + ->type('The first reply', 'body') + ->press('Reply') + ->see('The first thread') + ->see('The first reply') + ->see('Reply successfully added!'); + } + + /** @test */ + public function users_can_edit_a_reply() + { + $user = $this->createUser(); + $thread = factory(Thread::class)->create(['slug' => 'the-first-thread']); + factory(Reply::class)->create(['author_id' => $user->id(), 'replyable_id' => $thread->id()]); + + $this->loginAs($user); + + $this->visit('/replies/1/edit') + ->type('The edited reply', 'body') + ->press('Update') + ->seePageIs('/forum/the-first-thread') + ->see('The edited reply') + ->see('Reply successfully updated!'); + } + + /** @test */ + public function users_cannot_edit_a_reply_they_do_not_own() + { + factory(Reply::class)->create(); + + $this->login(); + + $this->get('/replies/1/edit') + ->assertForbidden(); + } + + /** @test */ + public function users_cannot_delete_a_reply_they_do_not_own() + { + factory(Reply::class)->create(); + + $this->login(); + + $this->delete('/replies/1') + ->assertForbidden(); + } + + /** @test */ + public function users_cannot_mark_a_reply_as_the_solution_of_the_thread_if_they_do_not_own_the_thread() + { + $user = factory(User::class)->create(); + $thread = factory(Thread::class)->create(['author_id' => $user->id(), 'slug' => 'the-first-thread']); + $reply = factory(Reply::class)->create(['replyable_id' => $thread->id()]); + + $this->login(); + + $this->put('/forum/the-first-thread/mark-solution/'.$reply->id()) + ->assertForbidden(); + } +} diff --git a/tests/Feature/SettingsTest.php b/tests/Feature/SettingsTest.php new file mode 100644 index 000000000..213427ef1 --- /dev/null +++ b/tests/Feature/SettingsTest.php @@ -0,0 +1,77 @@ +visit('/settings') + ->seePageIs('/login'); + } + + /** @test */ + public function users_can_update_their_profile() + { + $this->login(); + + $this->visit('/settings') + ->submitForm('Save', [ + 'name' => 'Freek Murze', + 'email' => 'freek@example.com', + 'username' => 'freekmurze', + ]) + ->seePageIs('/settings') + ->see('Freek Murze') + ->see('freekmurze') + ->see('Settings successfully saved!'); + } + + /** @test */ + public function users_cannot_choose_duplicate_usernames_or_email_addresses() + { + $this->createUser(['email' => 'freek@example.com', 'username' => 'freekmurze']); + + $this->login(); + + $this->visit('/settings') + ->submitForm('Save', [ + 'name' => 'Freek Murze', + 'email' => 'freek@example.com', + 'username' => 'freekmurze', + ]) + ->seePageIs('/settings') + ->see('Something went wrong. Please review the fields below.') + ->see('The email has already been taken.') + ->see('The username has already been taken.'); + } + + /** @test */ + public function users_can_update_their_password() + { + $this->login(); + + $this->visit('/settings/password') + ->submitForm('Save', [ + 'current_password' => 'password', + 'password' => 'newpassword', + 'password_confirmation' => 'newpassword', + ]) + ->seePageIs('/settings/password') + ->see('Password successfully changed!'); + + $this->assertPasswordWasHashedAndSaved(); + } + + private function assertPasswordWasHashedAndSaved() + { + return $this->assertTrue($this->app['hash']->check('newpassword', Auth::user()->getAuthPassword())); + } +} diff --git a/tests/Functional/Forum/OverviewTest.php b/tests/Functional/Forum/OverviewTest.php deleted file mode 100644 index 80d332327..000000000 --- a/tests/Functional/Forum/OverviewTest.php +++ /dev/null @@ -1,17 +0,0 @@ -visit('/forum') - ->see('Create Thread'); - } -} diff --git a/tests/HttpAssertions.php b/tests/HttpAssertions.php new file mode 100644 index 000000000..61f807b95 --- /dev/null +++ b/tests/HttpAssertions.php @@ -0,0 +1,13 @@ +assertResponseStatus(Response::HTTP_FORBIDDEN); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php old mode 100755 new mode 100644 index fcb69f585..d8cf5bb75 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,29 +1,10 @@ make(Kernel::class)->bootstrap(); - - return $app; - } + use CreatesApplication, CreatesUsers, HttpAssertions; } diff --git a/tests/Unit/GitHub/GistEmbedFormatterTest.php b/tests/Unit/GitHub/GistEmbedFormatterTest.php deleted file mode 100644 index 975a30e53..000000000 --- a/tests/Unit/GitHub/GistEmbedFormatterTest.php +++ /dev/null @@ -1,49 +0,0 @@ -assertInstanceOf(GistEmbedFormatter::class, $this->getFormatter()); - } - - function testCanFormat() - { - $formatter = $this->getFormatter(); - - $gistUrl = 'https://gist.github.com/username/1'; - $embedHtml = ''; - $this->assertEquals($embedHtml, $formatter->format($gistUrl)); - } - - function testCanFormatMany() - { - $formatter = $this->getFormatter(); - - $gistUrl = ' -“Good writin\' ain\'t necessarily good readin.” - https://gist.github.com/username/a773c725e4e9c19e36f0 -https://gist.github.com/username/7712371 -What makes people so impatient is what I can\'t figure; all the guy had to do was wait. -https://gist.github.com/username/1 - https://gist.github.com/username/2 -'; - $embedHtml = ' -“Good writin\' ain\'t necessarily good readin.” - - -What makes people so impatient is what I can\'t figure; all the guy had to do was wait. - - -'; - $this->assertEquals($embedHtml, $formatter->format($gistUrl)); - } - - private function getFormatter() - { - return new GistEmbedFormatter; - } -} diff --git a/tests/Unit/GitHub/GithubAuthenticatorTest.php b/tests/Unit/GitHub/GithubAuthenticatorTest.php deleted file mode 100644 index ce8a708ee..000000000 --- a/tests/Unit/GitHub/GithubAuthenticatorTest.php +++ /dev/null @@ -1,135 +0,0 @@ -assertInstanceOf(GithubAuthenticator::class, $this->getAuthenticator()); - } - - function testExistingUserCanBeFound() - { - $socialiteUser = $this->mockSocialiteUser(); - $socialiteUser->shouldReceive('getId')->andReturn(1); - - $socialite = $this->mockSocialiteProvider(); - $socialite->shouldReceive('user')->andReturn($socialiteUser); - - // create a fake user for the user repository to return - // (hint: it wasn't banned) - $user = m::mock(User::class); - $user->shouldReceive('isBanned')->andReturn(false); - - // create a fake user repository, when it's queried for - // a user by Github id, give the user that we just made - $users = $this->mockUsersRepository()->shouldIgnoreMissing(); - $users->shouldReceive('getByGithubId')->andReturn($user); - - // create an instance of the authenticator, passing in - // the user repository and the reader - $auth = $this->getAuthenticator($socialite, $users); - - // create a fake listener - $listener = $this->mockListener(); - $listener->shouldReceive('userFound')->once(); - - // Our goal here is to ensure that when a non-banned user - // is found by its Github id, the observer's userFound() - // method is called - $auth->authBySocialite($listener); - } - - function testBannedUsersCantAuthenticate() - { - $socialiteUser = $this->mockSocialiteUser(); - $socialiteUser->shouldReceive('getId')->andReturn(1); - - $socialite = $this->mockSocialiteProvider(); - $socialite->shouldReceive('user')->andReturn($socialiteUser); - - $user = m::mock(User::class); - $user->shouldReceive('isBanned')->andReturn(true); - - $users = $this->mockUsersRepository()->shouldIgnoreMissing(); - $users->shouldReceive('getByGithubId')->andReturn($user); - - $auth = $this->getAuthenticator($socialite, $users); - - $listener = $this->mockListener(); - $listener->shouldReceive('userIsBanned')->once(); - - // when a banned user is found by its Github id, the - // listener's userIsBand() method is called - $auth->authBySocialite($listener); - } - -// function testUnfoundUserTriggersObserverCorrectly() -// { -// $socialiteUser = $this->mockSocialiteUser()->shouldIgnoreMissing(); -// $socialiteUser->shouldReceive('getId')->andReturn(1); -// -// $socialite = $this->mockSocialiteProvider(); -// $socialite->shouldReceive('user')->andReturn($socialiteUser); -// -// // create a fake user repository, when it's queried for -// // a user by Github id, give it nothing -// $users = $this->mockUsersRepository()->shouldIgnoreMissing(); -// $users->shouldReceive('getByGithubId')->andReturn(null); -// -// $auth = $this->getAuthenticator($socialite, $users); -// -// $listener = $this->mockListener(); -// $listener->shouldReceive('userNotFound')->once(); -// -// $auth->authBySocialite($listener); -// } - - /** - * @param \Mockery\MockInterface $socialite - * @param \Mockery\MockInterface $users - * @return \Lio\Github\GithubAuthenticator - */ - private function getAuthenticator($socialite = null, $users = null) - { - $socialite = $socialite ?: $this->mockSocialiteProvider(); - $users = $users ?: $this->mockUsersRepository(); - $guzzle = m::mock(Client::class); - - return new GithubAuthenticator($socialite, $users, $guzzle); - } - - private function mockSocialiteProvider() - { - return m::mock(SocialiteProvider::class); - } - - private function mockSocialiteUser() - { - return m::mock(SocialiteUser::class); - } - - private function mockUsersRepository() - { - return m::mock(UserRepository::class); - } - - private function mockListener() - { - return m::mock(GithubAuthenticatorListener::class); - } -} diff --git a/tests/Unit/Markdown/HtmlToMarkdownConvertorTest.php b/tests/Unit/Markdown/HtmlToMarkdownConvertorTest.php deleted file mode 100644 index 613fde5b5..000000000 --- a/tests/Unit/Markdown/HtmlToMarkdownConvertorTest.php +++ /dev/null @@ -1,54 +0,0 @@ -assertInstanceOf('Lio\Markdown\HtmlMarkdownConvertor', $this->getConvertor()); - } - - public function testCanConvertHtmlToMarkdown() - { - $conv = $this->getConvertor(); - - $this->assertEquals('', $conv->convertHtmlToMarkdown('')); - $this->assertEquals('**cats**', $conv->convertHtmlToMarkdown('cats')); - $this->assertEquals('*cats*', $conv->convertHtmlToMarkdown('cats')); - $this->assertEquals('***cats***', $conv->convertHtmlToMarkdown('cats')); - $this->assertEquals('# Robots', $conv->convertHtmlToMarkdown('

        Robots

        ')); - $this->assertEquals('## Robots', $conv->convertHtmlToMarkdown('

        Robots

        ')); - $this->assertEquals('### Robots', $conv->convertHtmlToMarkdown('

        Robots

        ')); - $this->assertEquals('#### Robots', $conv->convertHtmlToMarkdown('

        Robots

        ')); - $this->assertEquals(" Robots", $conv->convertHtmlToMarkdown("\nRobots\n")); - $this->assertEquals(" Robots", $conv->convertHtmlToMarkdown("
        Robots\n
        \n")); - $this->assertEquals(" Robots", $conv->convertHtmlToMarkdown("

        Robots\n

        ")); - $this->assertEquals("`Robots`", $conv->convertHtmlToMarkdown("Robots")); - $this->assertEquals("`Robots`", $conv->convertHtmlToMarkdown("
        Robots
        \n")); - $this->assertEquals("`Robots`", $conv->convertHtmlToMarkdown("

        Robots

        ")); - } - - public function testCanConvertMarkdownToHtml() - { - $conv = $this->getConvertor(); - - $this->assertEquals(PHP_EOL, $conv->convertMarkdownToHtml('')); - $this->assertEquals('

        cats

        '.PHP_EOL, $conv->convertMarkdownToHtml('**cats**')); - $this->assertEquals('

        cats

        '.PHP_EOL, $conv->convertMarkdownToHtml('*cats*')); - $this->assertEquals('

        cats

        '.PHP_EOL, $conv->convertMarkdownToHtml('***cats***')); - $this->assertEquals('

        Robots

        '.PHP_EOL, $conv->convertMarkdownToHtml('# Robots')); - $this->assertEquals('

        Robots

        '.PHP_EOL, $conv->convertMarkdownToHtml('## Robots')); - $this->assertEquals('

        Robots

        '.PHP_EOL, $conv->convertMarkdownToHtml('### Robots')); - $this->assertEquals('

        Robots

        '.PHP_EOL, $conv->convertMarkdownToHtml('#### Robots')); - $this->assertEquals('
        Robots'.PHP_EOL.'
        '.PHP_EOL, $conv->convertMarkdownToHtml(' Robots')); - $this->assertEquals('

        Robots

        '.PHP_EOL, $conv->convertMarkdownToHtml('`Robots`')); - } - - private function getConvertor() - { - return new HtmlMarkdownConvertor; - } -} diff --git a/webpack.mix.js b/webpack.mix.js new file mode 100644 index 000000000..daf98c2a7 --- /dev/null +++ b/webpack.mix.js @@ -0,0 +1,17 @@ +const { mix } = require('laravel-mix'); + +/* + |-------------------------------------------------------------------------- + | Mix Asset Management + |-------------------------------------------------------------------------- + | + | Mix provides a clean, fluent API for defining some Webpack build steps + | for your Laravel application. By default, we are compiling the Sass + | file for the application as well as bundling up all the JS files. + | + */ + +mix.js('resources/assets/js/app.js', 'public/build/js') + .sass('resources/assets/sass/app.scss', 'public/build/css') + .version() + .copy('node_modules/markdown/lib/markdown.js', 'public/build/custom/markdown.js'); diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 000000000..51f2f9b2c --- /dev/null +++ b/yarn.lock @@ -0,0 +1,5066 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +abab@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.3.tgz#b81de5f7274ec4e756d797cd834f303642724e5d" + +abbrev@1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" + +accepts@1.3.3, accepts@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca" + dependencies: + mime-types "~2.1.11" + negotiator "0.6.1" + +acorn-dynamic-import@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz#c752bd210bef679501b6c6cb7fc84f8f47158cc4" + dependencies: + acorn "^4.0.3" + +acorn-globals@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" + dependencies: + acorn "^4.0.4" + +acorn-jsx@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn-object-spread@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/acorn-object-spread/-/acorn-object-spread-1.0.0.tgz#48ead0f4a8eb16995a17a0db9ffc6acaada4ba68" + dependencies: + acorn "^3.1.0" + +acorn@^3.0.4, acorn@^3.1.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + +acorn@^4.0.3, acorn@^4.0.4: + version "4.0.11" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.11.tgz#edcda3bd937e7556410d42ed5860f67399c794c0" + +adjust-sourcemap-loader@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/adjust-sourcemap-loader/-/adjust-sourcemap-loader-1.1.0.tgz#412d92404eb61e4113635012cba53a33d008e0e2" + dependencies: + assert "^1.3.0" + camelcase "^1.2.1" + loader-utils "^1.0.2" + lodash.assign "^4.0.1" + lodash.defaults "^3.1.2" + object-path "^0.9.2" + regex-parser "^2.2.1" + +after@0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/after/-/after-0.8.1.tgz#ab5d4fb883f596816d3515f8f791c0af486dd627" + +ajv-keywords@^1.1.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" + +ajv@^4.11.2, ajv@^4.7.0, ajv@^4.9.1: + version "4.11.5" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.5.tgz#b6ee74657b993a01dce44b7944d56f485828d5bd" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-html@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansicolors@~0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef" + +anymatch@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" + dependencies: + arrify "^1.0.0" + micromatch "^2.1.5" + +aproba@^1.0.3: + version "1.1.1" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.1.tgz#95d3600f07710aa0e9298c726ad5ecf2eacbabab" + +are-we-there-yet@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz#80e470e95a084794fe1899262c5667c6e88de1b3" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.0 || ^1.1.13" + +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-flatten@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +arraybuffer.slice@0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz#f33b2159f0532a3f3107a272c0ccfbd1ad2979ca" + +arrify@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asap@~2.0.3: + version "2.0.5" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.5.tgz#522765b50c3510490e52d7dcfe085ef9ba96958f" + +asn1.js@^4.0.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.1.tgz#48ba240b45a9280e94748990ba597d216617fd40" + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assert@^1.1.1, assert@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91" + dependencies: + util "0.10.3" + +ast-types@0.9.6: + version "0.9.6" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9" + +async-each-series@0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/async-each-series/-/async-each-series-0.1.1.tgz#7617c1917401fd8ca4a28aadce3dbae98afeb432" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async-foreach@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" + +async@0.2.x: + version "0.2.10" + resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" + +async@1.5.2, async@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@^2.1.2, async@^2.1.5: + version "2.1.5" + resolved "https://registry.yarnpkg.com/async/-/async-2.1.5.tgz#e587c68580994ac67fc56ff86d3ac56bdbe810bc" + dependencies: + lodash "^4.14.0" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +atob@~1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/atob/-/atob-1.1.3.tgz#95f13629b12c3a51a5d215abdce2aa9f32f80773" + +autoprefixer@^6.7.3: + version "6.7.7" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-6.7.7.tgz#1dbd1c835658e35ce3f9984099db00585c782014" + dependencies: + browserslist "^1.7.6" + caniuse-db "^1.0.30000634" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^5.2.16" + postcss-value-parser "^3.2.3" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" + +axios@^0.15.3: + version "0.15.3" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.15.3.tgz#2c9d638b2e191a08ea1d6cc988eadd6ba5bdc053" + dependencies: + follow-redirects "1.0.0" + +babel-code-frame@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" + dependencies: + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +babel-core@^6.20.0, babel-core@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.0.tgz#8f36a0a77f5c155aed6f920b844d23ba56742a02" + dependencies: + babel-code-frame "^6.22.0" + babel-generator "^6.24.0" + babel-helpers "^6.23.0" + babel-messages "^6.23.0" + babel-register "^6.24.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.1" + babel-types "^6.23.0" + babylon "^6.11.0" + convert-source-map "^1.1.0" + debug "^2.1.1" + json5 "^0.5.0" + lodash "^4.2.0" + minimatch "^3.0.2" + path-is-absolute "^1.0.0" + private "^0.1.6" + slash "^1.0.0" + source-map "^0.5.0" + +babel-generator@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.0.tgz#eba270a8cc4ce6e09a61be43465d7c62c1f87c56" + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + +babel-helper-call-delegate@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.22.0.tgz#119921b56120f17e9dae3f74b4f5cc7bcc1b37ef" + dependencies: + babel-helper-hoist-variables "^6.22.0" + babel-runtime "^6.22.0" + babel-traverse "^6.22.0" + babel-types "^6.22.0" + +babel-helper-define-map@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.23.0.tgz#1444f960c9691d69a2ced6a205315f8fd00804e7" + dependencies: + babel-helper-function-name "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + lodash "^4.2.0" + +babel-helper-function-name@^6.22.0, babel-helper-function-name@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.23.0.tgz#25742d67175c8903dbe4b6cb9d9e1fcb8dcf23a6" + dependencies: + babel-helper-get-function-arity "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + +babel-helper-get-function-arity@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.22.0.tgz#0beb464ad69dc7347410ac6ade9f03a50634f5ce" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-helper-hoist-variables@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.22.0.tgz#3eacbf731d80705845dd2e9718f600cfb9b4ba72" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-helper-optimise-call-expression@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.23.0.tgz#f3ee7eed355b4282138b33d02b78369e470622f5" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.23.0" + +babel-helper-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.22.0.tgz#79f532be1647b1f0ee3474b5f5c3da58001d247d" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + lodash "^4.2.0" + +babel-helper-replace-supers@^6.22.0, babel-helper-replace-supers@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.23.0.tgz#eeaf8ad9b58ec4337ca94223bacdca1f8d9b4bfd" + dependencies: + babel-helper-optimise-call-expression "^6.23.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + +babel-helpers@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.23.0.tgz#4f8f2e092d0b6a8808a4bde79c27f1e2ecf0d992" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.23.0" + +babel-loader@^6.2.9: + version "6.4.1" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-6.4.1.tgz#0b34112d5b0748a8dcdbf51acf6f9bd42d50b8ca" + dependencies: + find-cache-dir "^0.1.1" + loader-utils "^0.2.16" + mkdirp "^0.5.1" + object-assign "^4.0.1" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.23.0.tgz#e48895cf0b375be148cd7c8879b422707a053b51" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + lodash "^4.2.0" + +babel-plugin-transform-es2015-classes@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.23.0.tgz#49b53f326202a2fd1b3bbaa5e2edd8a4f78643c1" + dependencies: + babel-helper-define-map "^6.23.0" + babel-helper-function-name "^6.23.0" + babel-helper-optimise-call-expression "^6.23.0" + babel-helper-replace-supers "^6.23.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + +babel-plugin-transform-es2015-computed-properties@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.22.0.tgz#7c383e9629bba4820c11b0425bdd6290f7f057e7" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.22.0" + +babel-plugin-transform-es2015-destructuring@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-duplicate-keys@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.22.0.tgz#672397031c21610d72dd2bbb0ba9fb6277e1c36b" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-plugin-transform-es2015-for-of@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.22.0.tgz#f5fcc8b09093f9a23c76ac3d9e392c3ec4b77104" + dependencies: + babel-helper-function-name "^6.22.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-amd@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.0.tgz#a1911fb9b7ec7e05a43a63c5995007557bcf6a2e" + dependencies: + babel-plugin-transform-es2015-modules-commonjs "^6.24.0" + babel-runtime "^6.22.0" + babel-template "^6.22.0" + +babel-plugin-transform-es2015-modules-commonjs@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.0.tgz#e921aefb72c2cc26cb03d107626156413222134f" + dependencies: + babel-plugin-transform-strict-mode "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-types "^6.23.0" + +babel-plugin-transform-es2015-modules-systemjs@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.23.0.tgz#ae3469227ffac39b0310d90fec73bfdc4f6317b0" + dependencies: + babel-helper-hoist-variables "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + +babel-plugin-transform-es2015-modules-umd@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.0.tgz#fd5fa63521cae8d273927c3958afd7c067733450" + dependencies: + babel-plugin-transform-es2015-modules-amd "^6.24.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + +babel-plugin-transform-es2015-object-super@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.22.0.tgz#daa60e114a042ea769dd53fe528fc82311eb98fc" + dependencies: + babel-helper-replace-supers "^6.22.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-parameters@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.23.0.tgz#3a2aabb70c8af945d5ce386f1a4250625a83ae3b" + dependencies: + babel-helper-call-delegate "^6.22.0" + babel-helper-get-function-arity "^6.22.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + +babel-plugin-transform-es2015-shorthand-properties@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.22.0.tgz#8ba776e0affaa60bff21e921403b8a652a2ff723" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-plugin-transform-es2015-spread@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-sticky-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.22.0.tgz#ab316829e866ee3f4b9eb96939757d19a5bc4593" + dependencies: + babel-helper-regex "^6.22.0" + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-typeof-symbol@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-unicode-regex@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.22.0.tgz#8d9cc27e7ee1decfe65454fb986452a04a613d20" + dependencies: + babel-helper-regex "^6.22.0" + babel-runtime "^6.22.0" + regexpu-core "^2.0.0" + +babel-plugin-transform-regenerator@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.22.0.tgz#65740593a319c44522157538d690b84094617ea6" + dependencies: + regenerator-transform "0.9.8" + +babel-plugin-transform-strict-mode@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.22.0.tgz#e008df01340fdc87e959da65991b7e05970c8c7c" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.22.0" + +babel-preset-es2015@^6.18.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.0.tgz#c162d68b1932696e036cd3110dc1ccd303d2673a" + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.22.0" + babel-plugin-transform-es2015-classes "^6.22.0" + babel-plugin-transform-es2015-computed-properties "^6.22.0" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.22.0" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.22.0" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.24.0" + babel-plugin-transform-es2015-modules-commonjs "^6.24.0" + babel-plugin-transform-es2015-modules-systemjs "^6.22.0" + babel-plugin-transform-es2015-modules-umd "^6.24.0" + babel-plugin-transform-es2015-object-super "^6.22.0" + babel-plugin-transform-es2015-parameters "^6.22.0" + babel-plugin-transform-es2015-shorthand-properties "^6.22.0" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.22.0" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.22.0" + babel-plugin-transform-regenerator "^6.22.0" + +babel-register@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.0.tgz#5e89f8463ba9970356d02eb07dabe3308b080cfd" + dependencies: + babel-core "^6.24.0" + babel-runtime "^6.22.0" + core-js "^2.4.0" + home-or-tmp "^2.0.0" + lodash "^4.2.0" + mkdirp "^0.5.1" + source-map-support "^0.4.2" + +babel-runtime@^6.18.0, babel-runtime@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-template@^6.22.0, babel-template@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638" + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + babylon "^6.11.0" + lodash "^4.2.0" + +babel-traverse@^6.22.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: + version "6.23.1" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48" + dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + babylon "^6.15.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.19.0, babel-types@^6.22.0, babel-types@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.23.0.tgz#bb17179d7538bad38cd0c9e115d340f77e7e9acf" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + +babylon@^6.11.0, babylon@^6.15.0: + version "6.16.1" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" + +backo2@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947" + +balanced-match@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" + +base64-arraybuffer@0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#73926771923b5a19747ad666aa5cd4bf9c6e9ce8" + +base64-js@^1.0.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1" + +base64id@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/base64id/-/base64id-0.1.0.tgz#02ce0fdeee0cef4f40080e1e73e834f0b1bfce3f" + +batch@0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/batch/-/batch-0.5.3.tgz#3f3414f380321743bfc1042f9a83ff1d5824d464" + +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + dependencies: + tweetnacl "^0.14.3" + +better-assert@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522" + dependencies: + callsite "1.0.0" + +big.js@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.1.3.tgz#4cada2193652eb3ca9ec8e55c9015669c9806978" + +binary-extensions@^1.0.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" + +bindings@1.2.x: + version "1.2.1" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" + +blob@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.4.tgz#bcf13052ca54463f30f9fc7e95b9a47630a94921" + +block-elements@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/block-elements/-/block-elements-1.1.0.tgz#79febf8830fa6a22532b5b619d9c9b181e75f093" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + dependencies: + inherits "~2.0.0" + +bluebird@^2.10.2: + version "2.11.0" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1" + +bluebird@^3.0.5, bluebird@^3.1.1: + version "3.5.0" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c" + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.6" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +bootstrap-markdown@^2.10.0: + version "2.10.0" + resolved "https://registry.yarnpkg.com/bootstrap-markdown/-/bootstrap-markdown-2.10.0.tgz#65234277840454ee1adc7482b2f4a5e3975dace5" + +bootstrap-sass@^3.3.7: + version "3.3.7" + resolved "https://registry.yarnpkg.com/bootstrap-sass/-/bootstrap-sass-3.3.7.tgz#6596c7ab40f6637393323ab0bc80d064fc630498" + +bootswatch@^3.3.7: + version "3.3.7" + resolved "https://registry.yarnpkg.com/bootswatch/-/bootswatch-3.3.7.tgz#eb6f9a9a8523b87a706ea91deec3e0d7eaa8ab1f" + +brace-expansion@^1.0.0: + version "1.1.6" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" + dependencies: + balanced-match "^0.4.1" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + +browser-sync-client@2.4.5: + version "2.4.5" + resolved "https://registry.yarnpkg.com/browser-sync-client/-/browser-sync-client-2.4.5.tgz#976afab1a54f255baa38fe22ae3c0d3753ad337b" + dependencies: + etag "^1.7.0" + fresh "^0.3.0" + +browser-sync-ui@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/browser-sync-ui/-/browser-sync-ui-0.6.3.tgz#640a537c180689303d5be92bc476b9ebc441c0bc" + dependencies: + async-each-series "0.1.1" + connect-history-api-fallback "^1.1.0" + immutable "^3.7.6" + server-destroy "1.0.1" + stream-throttle "^0.1.3" + weinre "^2.0.0-pre-I0Z7U9OV" + +browser-sync-webpack-plugin@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/browser-sync-webpack-plugin/-/browser-sync-webpack-plugin-1.1.4.tgz#ad3c0f7a3bd2d3e7f87cdc378ee93e7be2026d89" + dependencies: + lodash "4.x.x" + +browser-sync@^2.18.7: + version "2.18.8" + resolved "https://registry.yarnpkg.com/browser-sync/-/browser-sync-2.18.8.tgz#2fb4de253798d7cfb839afb9c2f801968490cec2" + dependencies: + browser-sync-client "2.4.5" + browser-sync-ui "0.6.3" + bs-recipes "1.3.4" + chokidar "1.6.1" + connect "3.5.0" + dev-ip "^1.0.1" + easy-extender "2.3.2" + eazy-logger "3.0.2" + emitter-steward "^1.0.0" + fs-extra "1.0.0" + http-proxy "1.15.2" + immutable "3.8.1" + localtunnel "1.8.2" + micromatch "2.3.11" + opn "4.0.2" + portscanner "2.1.1" + qs "6.2.1" + resp-modifier "6.0.2" + rx "4.1.0" + serve-index "1.8.0" + serve-static "1.11.1" + server-destroy "1.0.1" + socket.io "1.6.0" + socket.io-client "1.6.0" + ua-parser-js "0.7.12" + yargs "6.4.0" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.0.6.tgz#5e7725dbdef1fd5930d4ebab48567ce451c48a0a" + dependencies: + buffer-xor "^1.0.2" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + inherits "^2.0.1" + +browserify-cipher@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a" + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd" + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.0.tgz#10773910c3c206d5420a46aad8694f820b85968f" + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d" + dependencies: + pako "~0.2.0" + +browserslist@^1.7.6: + version "1.7.6" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.6.tgz#af98589ce6e7ab09618d29451faacb81220bd3ba" + dependencies: + caniuse-db "^1.0.30000631" + electron-to-chromium "^1.2.5" + +bs-recipes@1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/bs-recipes/-/bs-recipes-1.3.4.tgz#0d2d4d48a718c8c044769fdc4f89592dc8b69585" + +buble@^0.12.0: + version "0.12.5" + resolved "https://registry.yarnpkg.com/buble/-/buble-0.12.5.tgz#c66ffe92f9f4a3c65d3256079b711e2bd0bc5013" + dependencies: + acorn "^3.1.0" + acorn-jsx "^3.0.1" + acorn-object-spread "^1.0.0" + chalk "^1.1.3" + magic-string "^0.14.0" + minimist "^1.2.0" + os-homedir "^1.0.1" + +bubleify@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/bubleify/-/bubleify-0.5.1.tgz#f65c47cee31b80cad8b9e747bbe187d7fe51e927" + dependencies: + buble "^0.12.0" + object-assign "^4.0.1" + +buffer-shims@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" + +buffer-xor@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + +buffer@^4.3.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +builtin-modules@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + +bytes@2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.3.0.tgz#d5b680a165b6201739acb611542aabc2d8ceb070" + +callsite@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20" + +camel-case@3.0.x: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" + dependencies: + no-case "^2.2.0" + upper-case "^1.1.1" + +camelcase-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" + dependencies: + camelcase "^2.0.0" + map-obj "^1.0.0" + +camelcase@^1.0.2, camelcase@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + +camelcase@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.0.0.tgz#8b0f90d44be5e281b903b9887349b92595ef07f2" + +caniuse-db@^1.0.30000631, caniuse-db@^1.0.30000634: + version "1.0.30000636" + resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000636.tgz#08230e9dd26632193f29c9d935185c6f6f9fd9ef" + +capture-stack-trace@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" + +cardinal@0.4.x: + version "0.4.4" + resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-0.4.4.tgz#ca5bb68a5b511b90fe93b9acea49bdee5c32bfe2" + dependencies: + ansicolors "~0.2.1" + redeyed "~0.4.0" + +cardinal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-1.0.0.tgz#50e21c1b0aa37729f9377def196b5a9cec932ee9" + dependencies: + ansicolors "~0.2.1" + redeyed "~1.0.0" + +caseless@~0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +charenc@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667" + +chokidar@1.6.1, chokidar@^1.4.3, chokidar@^1.6.0, chokidar@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2" + dependencies: + anymatch "^1.3.0" + async-each "^1.0.0" + glob-parent "^2.0.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^2.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + optionalDependencies: + fsevents "^1.0.0" + +cipher-base@^1.0.0, cipher-base@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.3.tgz#eeabf194419ce900da3018c207d212f2a6df0a07" + dependencies: + inherits "^2.0.1" + +clean-css@4.0.x, clean-css@^4.0.7: + version "4.0.9" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.0.9.tgz#63ff450b3f939508cc0cd2989bb9daaedc98333e" + dependencies: + source-map "0.5.x" + +clean-css@^3.1.9: + version "3.4.25" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-3.4.25.tgz#9e9a52d5c1e6bc5123e1b2783fa65fe958946ede" + dependencies: + commander "2.8.x" + source-map "0.4.x" + +cli-table@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23" + dependencies: + colors "1.0.3" + +cli-usage@^0.1.1: + version "0.1.4" + resolved "https://registry.yarnpkg.com/cli-usage/-/cli-usage-0.1.4.tgz#7c01e0dc706c234b39c933838c8e20b2175776e2" + dependencies: + marked "^0.3.6" + marked-terminal "^1.6.2" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^3.0.3, cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +clone-deep@^0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-0.2.4.tgz#4e73dd09e9fb971cc38670c5dced9c1896481cc6" + dependencies: + for-own "^0.1.3" + is-plain-object "^2.0.1" + kind-of "^3.0.2" + lazy-cache "^1.0.3" + shallow-clone "^0.1.2" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +collapse-whitespace@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/collapse-whitespace/-/collapse-whitespace-1.1.2.tgz#b9b31d79d5594ee3c22c15819c54828e565b3085" + dependencies: + block-elements "^1.0.0" + void-elements "^2.0.1" + +colors@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" + dependencies: + delayed-stream "~1.0.0" + +commander@2.8.x: + version "2.8.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.8.1.tgz#06be367febfda0c330aa1e2a072d3dc9762425d4" + dependencies: + graceful-readlink ">= 1.0.0" + +commander@2.9.x, commander@^2.2.0, commander@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" + dependencies: + graceful-readlink ">= 1.0.0" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + +component-bind@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1" + +component-emitter@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.1.2.tgz#296594f2753daa63996d2af08d15a95116c9aec3" + +component-emitter@1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + +component-inherit@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/component-inherit/-/component-inherit-0.0.3.tgz#645fc4adf58b72b649d5cae65135619db26ff143" + +compressible@~2.0.8: + version "2.0.9" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.9.tgz#6daab4e2b599c2770dd9e21e7a891b1c5a755425" + dependencies: + mime-db ">= 1.24.0 < 2" + +compression@^1.5.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/compression/-/compression-1.6.2.tgz#cceb121ecc9d09c52d7ad0c3350ea93ddd402bc3" + dependencies: + accepts "~1.3.3" + bytes "2.3.0" + compressible "~2.0.8" + debug "~2.2.0" + on-headers "~1.0.1" + vary "~1.1.0" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concatenate@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/concatenate/-/concatenate-0.0.2.tgz#0b49d6e8c41047d7728cdc8d62a086623397b49f" + dependencies: + globs "^0.1.2" + +config-chain@~1.1.5: + version "1.1.11" + resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.11.tgz#aba09747dfbe4c3e70e766a6e41586e1859fc6f2" + dependencies: + ini "^1.3.4" + proto-list "~1.2.1" + +connect-history-api-fallback@^1.1.0, connect-history-api-fallback@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.3.0.tgz#e51d17f8f0ef0db90a64fdb47de3051556e9f169" + +connect@1.x: + version "1.9.2" + resolved "https://registry.yarnpkg.com/connect/-/connect-1.9.2.tgz#42880a22e9438ae59a8add74e437f58ae8e52807" + dependencies: + formidable "1.0.x" + mime ">= 0.0.1" + qs ">= 0.4.0" + +connect@3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.5.0.tgz#b357525a0b4c1f50599cd983e1d9efeea9677198" + dependencies: + debug "~2.2.0" + finalhandler "0.5.0" + parseurl "~1.3.1" + utils-merge "1.0.0" + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +consolidate@^0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/consolidate/-/consolidate-0.14.5.tgz#5a25047bc76f73072667c8cb52c989888f494c63" + dependencies: + bluebird "^3.1.1" + +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + +content-disposition@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" + +content-type-parser@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.1.tgz#c3e56988c53c65127fb46d4032a3a900246fdc94" + +content-type@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed" + +convert-source-map@^0.3.3: + version "0.3.5" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-0.3.5.tgz#f1d802950af7dd2631a1febe0596550c86ab3190" + +convert-source-map@^1.1.0, convert-source-map@^1.1.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.4.0.tgz#e3dad195bf61bfe13a7a3c73e9876ec14a0268f3" + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + +cookie@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" + +copy-webpack-plugin@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-4.0.1.tgz#9728e383b94316050d0c7463958f2b85c0aa8200" + dependencies: + bluebird "^2.10.2" + fs-extra "^0.26.4" + glob "^6.0.4" + is-glob "^3.1.0" + loader-utils "^0.2.15" + lodash "^4.3.0" + minimatch "^3.0.0" + node-dir "^0.1.10" + +core-js@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +cosmiconfig@^2.1.0, cosmiconfig@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-2.1.1.tgz#817f2c2039347a1e9bf7d090c0923e53f749ca82" + dependencies: + js-yaml "^3.4.3" + minimist "^1.2.0" + object-assign "^4.1.0" + os-homedir "^1.0.1" + parse-json "^2.2.0" + require-from-string "^1.1.0" + +create-ecdh@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d" + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-error-class@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" + dependencies: + capture-stack-trace "^1.0.0" + +create-hash@^1.1.0, create-hash@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.2.tgz#51210062d7bb7479f6c65bb41a92208b1d61abad" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + ripemd160 "^1.0.0" + sha.js "^2.3.6" + +create-hmac@^1.1.0, create-hmac@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.4.tgz#d3fb4ba253eb8b3f56e39ea2fbcb8af747bd3170" + dependencies: + create-hash "^1.1.0" + inherits "^2.0.1" + +cross-env@^3.1.3, cross-env@^3.2.3: + version "3.2.4" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-3.2.4.tgz#9e0585f277864ed421ce756f81a980ff0d698aba" + dependencies: + cross-spawn "^5.1.0" + is-windows "^1.0.0" + +cross-spawn@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" + dependencies: + lru-cache "^4.0.1" + which "^1.2.9" + +cross-spawn@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +crypt@~0.0.1: + version "0.0.2" + resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-browserify@^3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.11.0.tgz#3652a0906ab9b2a7e0c3ce66a408e957a2485522" + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + +css-loader@^0.14.5: + version "0.14.5" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.14.5.tgz#d65635b72adc487ac818a2e78b5bb9feca5352ad" + dependencies: + clean-css "^3.1.9" + fastparse "^1.1.1" + loader-utils "~0.2.2" + source-list-map "^0.1.4" + +css@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.1.tgz#73a4c81de85db664d4ee674f7d47085e3b2d55dc" + dependencies: + inherits "^2.0.1" + source-map "^0.1.38" + source-map-resolve "^0.3.0" + urix "^0.1.0" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.2" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" + +"cssstyle@>= 0.2.37 < 0.3.0": + version "0.2.37" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" + dependencies: + cssom "0.3.x" + +csv-parse@^1.1.7: + version "1.2.0" + resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-1.2.0.tgz#047b73868ab9a85746e885f637f9ed0fb645a425" + +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + dependencies: + array-find-index "^1.0.1" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + +de-indent@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" + +debug@2.2.0, debug@~2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" + dependencies: + ms "0.7.1" + +debug@2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.3.3.tgz#40c453e67e6e13c901ddec317af8986cda9eff8c" + dependencies: + ms "0.7.2" + +debug@2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" + dependencies: + ms "0.7.2" + +debug@^2.1.1, debug@^2.2.0: + version "2.6.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.3.tgz#0f7eb8c30965ec08c72accfa0130c8b79984141d" + dependencies: + ms "0.7.2" + +decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +deep-extend@~0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +depd@1.1.0, depd@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3" + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +dev-ip@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dev-ip/-/dev-ip-1.0.1.tgz#a76a3ed1855be7a012bb8ac16cb80f3c00dc28f0" + +diffie-hellman@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e" + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +domain-browser@^1.1.1: + version "1.1.7" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc" + +duplexer3@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" + +easy-extender@2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/easy-extender/-/easy-extender-2.3.2.tgz#3d3248febe2b159607316d8f9cf491c16648221d" + dependencies: + lodash "^3.10.1" + +eazy-logger@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/eazy-logger/-/eazy-logger-3.0.2.tgz#a325aa5e53d13a2225889b2ac4113b2b9636f4fc" + dependencies: + tfunk "^3.0.1" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +editorconfig@^0.13.2: + version "0.13.2" + resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-0.13.2.tgz#8e57926d9ee69ab6cb999f027c2171467acceb35" + dependencies: + bluebird "^3.0.5" + commander "^2.9.0" + lru-cache "^3.2.0" + sigmund "^1.0.1" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + +electron-to-chromium@^1.2.5: + version "1.2.7" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.2.7.tgz#4f748061407e478c76256d04496972b71f647407" + +elliptic@^6.0.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df" + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +emitter-steward@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/emitter-steward/-/emitter-steward-1.0.0.tgz#f3411ade9758a7565df848b2da0cbbd1b46cbd64" + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + +encodeurl@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.1.tgz#79e3d58655346909fe6f0f45a5de68103b294d20" + +engine.io-client@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/engine.io-client/-/engine.io-client-1.8.0.tgz#7b730e4127414087596d9be3c88d2bc5fdb6cf5c" + dependencies: + component-emitter "1.2.1" + component-inherit "0.0.3" + debug "2.3.3" + engine.io-parser "1.3.1" + has-cors "1.1.0" + indexof "0.0.1" + parsejson "0.0.3" + parseqs "0.0.5" + parseuri "0.0.5" + ws "1.1.1" + xmlhttprequest-ssl "1.5.3" + yeast "0.1.2" + +engine.io-parser@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-1.3.1.tgz#9554f1ae33107d6fbd170ca5466d2f833f6a07cf" + dependencies: + after "0.8.1" + arraybuffer.slice "0.0.6" + base64-arraybuffer "0.1.5" + blob "0.0.4" + has-binary "0.1.6" + wtf-8 "1.0.0" + +engine.io@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-1.8.0.tgz#3eeb5f264cb75dbbec1baaea26d61f5a4eace2aa" + dependencies: + accepts "1.3.3" + base64id "0.1.0" + cookie "0.3.1" + debug "2.3.3" + engine.io-parser "1.3.1" + ws "1.1.1" + +enhanced-resolve@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-3.1.0.tgz#9f4b626f577245edcf4b2ad83d86e17f4f421dec" + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.4.0" + object-assign "^4.0.1" + tapable "^0.2.5" + +errno@^0.1.1, errno@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" + dependencies: + prr "~0.0.0" + +error-ex@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + dependencies: + is-arrayish "^0.2.1" + +error-stack-parser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.0.0.tgz#9ce7777b32480e34a34c12a88b3428093fcd14b0" + dependencies: + stackframe "^1.0.2" + +es6-templates@^0.2.2: + version "0.2.3" + resolved "https://registry.yarnpkg.com/es6-templates/-/es6-templates-0.2.3.tgz#5cb9ac9fb1ded6eb1239342b81d792bbb4078ee4" + dependencies: + recast "~0.11.12" + through "~2.3.6" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + +escape-string-regexp@^1.0.2: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escodegen@^1.6.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" + dependencies: + esprima "^2.7.1" + estraverse "^1.9.1" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.2.0" + +esprima@^2.7.1: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esprima@^3.1.1, esprima@~3.1.0: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +esprima@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.0.4.tgz#9f557e08fc3b4d26ece9dd34f8fbf476b62585ad" + +esprima@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.0.0.tgz#53cf247acda77313e551c3aa2e73342d3fb4f7d9" + +estraverse@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +etag@^1.7.0, etag@~1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.0.tgz#6f631aef336d6c46362b51764044ce216be3c051" + +etag@~1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.7.0.tgz#03d30b5f67dd6e632d2945d30d6652731a34d5d8" + +eventemitter3@1.x.x: + version "1.2.0" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.2.0.tgz#1c86991d816ad1e504750e73874224ecf3bec508" + +events@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924" + +eventsource@0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/eventsource/-/eventsource-0.1.6.tgz#0acede849ed7dd1ccc32c811bb11b944d4f29232" + dependencies: + original ">=0.0.5" + +evp_bytestokey@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.0.tgz#497b66ad9fef65cd7c08a6180824ba1476b66e53" + dependencies: + create-hash "^1.1.1" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +express@2.5.x: + version "2.5.11" + resolved "https://registry.yarnpkg.com/express/-/express-2.5.11.tgz#4ce8ea1f3635e69e49f0ebb497b6a4b0a51ce6f0" + dependencies: + connect "1.x" + mime "1.2.4" + mkdirp "0.3.0" + qs "0.4.x" + +express@^4.13.3: + version "4.15.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.15.2.tgz#af107fc148504457f2dca9a6f2571d7129b97b35" + dependencies: + accepts "~1.3.3" + array-flatten "1.1.1" + content-disposition "0.5.2" + content-type "~1.0.2" + cookie "0.3.1" + cookie-signature "1.0.6" + debug "2.6.1" + depd "~1.1.0" + encodeurl "~1.0.1" + escape-html "~1.0.3" + etag "~1.8.0" + finalhandler "~1.0.0" + fresh "0.5.0" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.1" + path-to-regexp "0.1.7" + proxy-addr "~1.1.3" + qs "6.4.0" + range-parser "~1.2.0" + send "0.15.1" + serve-static "1.12.1" + setprototypeof "1.0.3" + statuses "~1.3.1" + type-is "~1.6.14" + utils-merge "1.0.0" + vary "~1.1.0" + +extend@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extract-text-webpack-plugin@^2.0.0-rc.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/extract-text-webpack-plugin/-/extract-text-webpack-plugin-2.1.0.tgz#69315b885f876dbf96d3819f6a9f1cca7aebf159" + dependencies: + ajv "^4.11.2" + async "^2.1.2" + loader-utils "^1.0.2" + webpack-sources "^0.1.0" + +extsprintf@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +fastparse@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.1.tgz#d1e2643b38a94d7583b479060e6c4affc94071f8" + +faye-websocket@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" + dependencies: + websocket-driver ">=0.5.1" + +faye-websocket@~0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.1.tgz#f0efe18c4f56e4f40afc7e06c719fd5ee6188f38" + dependencies: + websocket-driver ">=0.5.1" + +file-loader@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.9.0.tgz#1d2daddd424ce6d1b07cfe3f79731bed3617ab42" + dependencies: + loader-utils "~0.2.5" + +filename-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" + +fill-range@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^1.1.3" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +finalhandler@0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-0.5.0.tgz#e9508abece9b6dba871a6942a1d7911b91911ac7" + dependencies: + debug "~2.2.0" + escape-html "~1.0.3" + on-finished "~2.3.0" + statuses "~1.3.0" + unpipe "~1.0.0" + +finalhandler@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.0.0.tgz#b5691c2c0912092f18ac23e9416bde5cd7dc6755" + dependencies: + debug "2.6.1" + encodeurl "~1.0.1" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.1" + statuses "~1.3.1" + unpipe "~1.0.0" + +find-cache-dir@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" + dependencies: + commondir "^1.0.1" + mkdirp "^0.5.1" + pkg-dir "^1.0.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +flatten@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" + +follow-redirects@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.0.0.tgz#8e34298cbd2e176f254effec75a1c78cc849fd37" + dependencies: + debug "^2.2.0" + +for-in@^0.1.3: + version "0.1.8" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1" + +for-in@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.3, for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +formidable@1.0.x: + version "1.0.17" + resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.0.17.tgz#ef5491490f9433b705faa77249c99029ae348559" + +forwarded@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.0.tgz#19ef9874c4ae1c297bcf078fde63a09b66a84363" + +fresh@0.3.0, fresh@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.3.0.tgz#651f838e22424e7566de161d8358caa199f83d4f" + +fresh@0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.0.tgz#f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e" + +friendly-errors-webpack-plugin@^1.3.0: + version "1.6.1" + resolved "https://registry.yarnpkg.com/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.6.1.tgz#e32781c4722f546a06a9b5d7a7cfa28520375d70" + dependencies: + chalk "^1.1.3" + error-stack-parser "^2.0.0" + string-length "^1.0.1" + +fs-extra@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + +fs-extra@^0.26.4: + version "0.26.7" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.26.7.tgz#9ae1fdd94897798edab76d0918cf42d0c3184fa9" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + path-is-absolute "^1.0.0" + rimraf "^2.2.8" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fs@0.0.1-security: + version "0.0.1-security" + resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4" + +fsevents@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.1.tgz#f19fd28f43eeaf761680e519a203c4d0b3d31aff" + dependencies: + nan "^2.3.0" + node-pre-gyp "^0.6.29" + +fstream-ignore@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" + dependencies: + fstream "^1.0.0" + inherits "2" + minimatch "^3.0.0" + +fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10: + version "1.0.11" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +gauge@~2.7.1: + version "2.7.3" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.3.tgz#1c23855f962f17b3ad3d0dc7443f304542edfe09" + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +gaze@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.2.tgz#847224677adb8870d679257ed3388fdb61e40105" + dependencies: + globule "^1.0.0" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + +get-stdin@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + +getpass@^0.1.1: + version "0.1.6" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" + dependencies: + assert-plus "^1.0.0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^6.0.4: + version "6.0.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22" + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.1, glob@~7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.0.0: + version "9.16.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.16.0.tgz#63e903658171ec2d9f51b1d31de5e2b8dc01fb80" + +globs@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/globs/-/globs-0.1.3.tgz#670037125287cb6549aad96a44cfa684fd7c5502" + dependencies: + glob "^7.1.1" + +globule@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/globule/-/globule-1.1.0.tgz#c49352e4dc183d85893ee825385eb994bb6df45f" + dependencies: + glob "~7.1.1" + lodash "~4.16.4" + minimatch "~3.0.2" + +got@^6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" + dependencies: + create-error-class "^3.0.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + is-redirect "^1.0.0" + is-retry-allowed "^1.0.0" + is-stream "^1.0.0" + lowercase-keys "^1.0.0" + safe-buffer "^5.0.1" + timed-out "^4.0.0" + unzip-response "^2.0.1" + url-parse-lax "^1.0.0" + +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +"graceful-readlink@>= 1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" + +growly@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + +handle-thing@^1.2.4: + version "1.2.5" + resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4" + +har-schema@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + +har-validator@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d" + dependencies: + chalk "^1.1.1" + commander "^2.9.0" + is-my-json-valid "^2.12.4" + pinkie-promise "^2.0.0" + +har-validator@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" + dependencies: + ajv "^4.9.1" + har-schema "^1.0.5" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-binary@0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/has-binary/-/has-binary-0.1.6.tgz#25326f39cfa4f616ad8787894e3af2cfbc7b6e10" + dependencies: + isarray "0.0.1" + +has-binary@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/has-binary/-/has-binary-0.1.7.tgz#68e61eb16210c9545a0a5cce06a873912fe1e68c" + dependencies: + isarray "0.0.1" + +has-cors@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +hash-sum@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/hash-sum/-/hash-sum-1.0.2.tgz#33b40777754c6432573c120cc3808bbd10d47f04" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.0.3.tgz#1332ff00156c0a0ffdd8236013d07b77a0451573" + dependencies: + inherits "^2.0.1" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +he@1.1.x, he@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" + +hmac-drbg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.0.tgz#3db471f45aae4a994a0688322171f51b8b91bee5" + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +hosted-git-info@^2.1.4: + version "2.2.0" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.2.0.tgz#7a0d097863d886c0fabbdcd37bf1758d8becf8a5" + +hpack.js@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" + dependencies: + inherits "^2.0.1" + obuf "^1.0.0" + readable-stream "^2.0.1" + wbuf "^1.1.0" + +html-encoding-sniffer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.1.tgz#79bf7a785ea495fe66165e734153f363ff5437da" + dependencies: + whatwg-encoding "^1.0.1" + +html-entities@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.2.0.tgz#41948caf85ce82fed36e4e6a0ed371a6664379e2" + +html-loader@^0.4.4: + version "0.4.5" + resolved "https://registry.yarnpkg.com/html-loader/-/html-loader-0.4.5.tgz#5fbcd87cd63a5c49a7fce2fe56f425e05729c68c" + dependencies: + es6-templates "^0.2.2" + fastparse "^1.1.1" + html-minifier "^3.0.1" + loader-utils "^1.0.2" + object-assign "^4.1.0" + +html-minifier@^3.0.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.4.1.tgz#0bf3c54d7f116d500b78c51fc4246039922dc250" + dependencies: + camel-case "3.0.x" + clean-css "4.0.x" + commander "2.9.x" + he "1.1.x" + ncname "1.0.x" + param-case "2.1.x" + relateurl "0.2.x" + uglify-js "2.8.x" + +http-deceiver@^1.2.4: + version "1.2.7" + resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" + +http-errors@~1.5.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.5.1.tgz#788c0d2c1de2c81b9e6e8c01843b6b97eb920750" + dependencies: + inherits "2.0.3" + setprototypeof "1.0.2" + statuses ">= 1.3.1 < 2" + +http-errors@~1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.1.tgz#5f8b8ed98aca545656bf572997387f904a722257" + dependencies: + depd "1.1.0" + inherits "2.0.3" + setprototypeof "1.0.3" + statuses ">= 1.3.1 < 2" + +http-proxy-middleware@~0.17.4: + version "0.17.4" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-0.17.4.tgz#642e8848851d66f09d4f124912846dbaeb41b833" + dependencies: + http-proxy "^1.16.2" + is-glob "^3.1.0" + lodash "^4.17.2" + micromatch "^2.3.11" + +http-proxy@1.15.2: + version "1.15.2" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.15.2.tgz#642fdcaffe52d3448d2bda3b0079e9409064da31" + dependencies: + eventemitter3 "1.x.x" + requires-port "1.x.x" + +http-proxy@^1.16.2: + version "1.16.2" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.16.2.tgz#06dff292952bf64dbe8471fa9df73066d4f37742" + dependencies: + eventemitter3 "1.x.x" + requires-port "1.x.x" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" + +humanize@0.0.x: + version "0.0.9" + resolved "https://registry.yarnpkg.com/humanize/-/humanize-0.0.9.tgz#1994ffaecdfe9c441ed2bdac7452b7bb4c9e41a4" + +iconv-lite@0.4.13: + version "0.4.13" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2" + +ieee754@^1.1.4: + version "1.1.8" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" + +image-size@~0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.1.tgz#28eea8548a4b1443480ddddc1e083ae54652439f" + +immutable@3.8.1, immutable@^3.7.6: + version "3.8.1" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.1.tgz#200807f11ab0f72710ea485542de088075f68cd2" + +in-publish@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" + +indent-string@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" + dependencies: + repeating "^2.0.0" + +indexes-of@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" + +indexof@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + +ini@^1.3.4, ini@~1.3.0: + version "1.3.4" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" + +interpret@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" + +invariant@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +ipaddr.js@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.2.0.tgz#8aba49c9192799585bdd643e0ccb50e8ae777ba4" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-buffer@^1.0.2, is-buffer@~1.1.1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-dotfile@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-extglob@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + dependencies: + is-extglob "^2.1.0" + +is-my-json-valid@^2.12.4: + version "2.16.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number-like@^1.0.3: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-like/-/is-number-like-1.0.7.tgz#a38d6b0fd2cd4282449128859eed86c03fd23552" + dependencies: + bubleify "^0.5.1" + lodash.isfinite "^3.3.2" + +is-number@^2.0.2, is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-plain-object@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.1.tgz#4d7ca539bc9db9b737b8acb612f2318ef92f294f" + dependencies: + isobject "^1.0.0" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-redirect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" + +is-retry-allowed@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" + +is-stream@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +is-windows@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.0.tgz#c61d61020c3ebe99261b781bd3d1622395f547f8" + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isexe@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-1.1.2.tgz#36f3e22e60750920f5e7241a476a8c6a42275ad0" + +isobject@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-1.0.2.tgz#f0f9b8ce92dd540fa0740882e3835a2e022ec78a" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +jodid25519@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" + dependencies: + jsbn "~0.1.0" + +jquery@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.1.1.tgz#347c1c21c7e004115e0a4da32cece041fad3c8a3" + +js-base64@^2.1.9: + version "2.1.9" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.1.9.tgz#f0e80ae039a4bd654b5f281fc93f04a914a7fcce" + +js-beautify@^1.6.3: + version "1.6.11" + resolved "https://registry.yarnpkg.com/js-beautify/-/js-beautify-1.6.11.tgz#538a22867e669250935bcdc7b90a8cd6386ddab6" + dependencies: + config-chain "~1.1.5" + editorconfig "^0.13.2" + mkdirp "~0.5.0" + nopt "~3.0.1" + +js-tokens@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" + +js-yaml@^3.4.3: + version "3.8.2" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.2.tgz#02d3e2c0f6beab20248d412c352203827d786721" + dependencies: + argparse "^1.0.7" + esprima "^3.1.1" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsdom@^9.0.0: + version "9.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" + dependencies: + abab "^1.0.3" + acorn "^4.0.4" + acorn-globals "^3.1.0" + array-equal "^1.0.0" + content-type-parser "^1.0.1" + cssom ">= 0.3.2 < 0.4.0" + cssstyle ">= 0.2.37 < 0.3.0" + escodegen "^1.6.1" + html-encoding-sniffer "^1.0.1" + nwmatcher ">= 1.3.9 < 2.0.0" + parse5 "^1.5.1" + request "^2.79.0" + sax "^1.2.1" + symbol-tree "^3.2.1" + tough-cookie "^2.3.2" + webidl-conversions "^4.0.0" + whatwg-encoding "^1.0.1" + whatwg-url "^4.3.0" + xml-name-validator "^2.0.1" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + +json-loader@^0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.4.tgz#8baa1365a632f58a3c46d20175fc6002c96e37de" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json3@3.3.2, json3@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" + +json5@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonfile@^2.1.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" + optionalDependencies: + graceful-fs "^4.1.6" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" + dependencies: + assert-plus "1.0.0" + extsprintf "1.0.2" + json-schema "0.2.3" + verror "1.3.6" + +kind-of@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5" + dependencies: + is-buffer "^1.0.2" + +kind-of@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" + dependencies: + is-buffer "^1.0.2" + +klaw@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" + optionalDependencies: + graceful-fs "^4.1.9" + +laravel-mix@^0.8.3: + version "0.8.8" + resolved "https://registry.yarnpkg.com/laravel-mix/-/laravel-mix-0.8.8.tgz#9d4146af399d6a2017d5dd269ce4d854e790f50d" + dependencies: + autoprefixer "^6.7.3" + babel-core "^6.20.0" + babel-loader "^6.2.9" + babel-preset-es2015 "^6.18.0" + browser-sync "^2.18.7" + browser-sync-webpack-plugin "^1.1.4" + chokidar "^1.6.1" + clean-css "^4.0.7" + concatenate "0.0.2" + copy-webpack-plugin "^4.0.1" + cross-env "^3.1.3" + css-loader "^0.14.5" + extract-text-webpack-plugin "^2.0.0-rc.3" + file-loader "^0.9.0" + friendly-errors-webpack-plugin "^1.3.0" + fs "0.0.1-security" + html-loader "^0.4.4" + less "^2.7.1" + less-loader "^2.2.3" + lodash "^4.17.4" + mkdirp "^0.5.1" + node-sass "^4.0.0" + on-build-webpack "^0.1.0" + path "^0.12.7" + postcss-load-config "^1.0.0" + postcss-loader "^1.2.1" + raw-loader "^0.5.1" + resolve-url-loader "^2.0.0" + sass-loader "^6.0.0" + style-loader "^0.13.1" + uglify-js "^2.7.5" + vue-loader "^10.0.2" + vue-template-compiler "^2.1.9" + webpack "^2.2.0" + webpack-dev-server "^2.2.0" + webpack-md5-hash "0.0.5" + webpack-notifier "^1.4.1" + webpack-stats-plugin "^0.1.4" + +lazy-cache@^0.2.3: + version "0.2.7" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-0.2.7.tgz#7feddf2dcb6edb77d11ef1d117ab5ffdf0ab1b65" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +less-loader@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-2.2.3.tgz#b6d8f8139c8493df09d992a93a00734b08f84528" + dependencies: + loader-utils "^0.2.5" + +less@^2.7.1: + version "2.7.2" + resolved "https://registry.yarnpkg.com/less/-/less-2.7.2.tgz#368d6cc73e1fb03981183280918743c5dcf9b3df" + optionalDependencies: + errno "^0.1.1" + graceful-fs "^4.1.2" + image-size "~0.5.0" + mime "^1.2.11" + mkdirp "^0.5.0" + promise "^7.1.1" + request "^2.72.0" + source-map "^0.5.3" + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +limiter@^1.0.5: + version "1.1.0" + resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.0.tgz#6e2bd12ca3fcdaa11f224e2e53c896df3f08d913" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +loader-runner@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" + +loader-utils@^0.2.10, loader-utils@^0.2.15, loader-utils@^0.2.16, loader-utils@^0.2.5, loader-utils@~0.2.2, loader-utils@~0.2.5: + version "0.2.17" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + object-assign "^4.0.1" + +loader-utils@^1.0.0, loader-utils@^1.0.1, loader-utils@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd" + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + +localtunnel@1.8.2: + version "1.8.2" + resolved "https://registry.yarnpkg.com/localtunnel/-/localtunnel-1.8.2.tgz#913051e8328b51f75ad8a22ad1f5c5b8c599a359" + dependencies: + debug "2.2.0" + openurl "1.1.0" + request "2.78.0" + yargs "3.29.0" + +lodash._arraycopy@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz#76e7b7c1f1fb92547374878a562ed06a3e50f6e1" + +lodash._arrayeach@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz#bab156b2a90d3f1bbd5c653403349e5e5933ef9e" + +lodash._baseassign@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" + dependencies: + lodash._basecopy "^3.0.0" + lodash.keys "^3.0.0" + +lodash._baseclone@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz#303519bf6393fe7e42f34d8b630ef7794e3542b7" + dependencies: + lodash._arraycopy "^3.0.0" + lodash._arrayeach "^3.0.0" + lodash._baseassign "^3.0.0" + lodash._basefor "^3.0.0" + lodash.isarray "^3.0.0" + lodash.keys "^3.0.0" + +lodash._basecopy@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" + +lodash._basefor@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" + +lodash._bindcallback@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e" + +lodash._createassigner@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz#838a5bae2fdaca63ac22dee8e19fa4e6d6970b11" + dependencies: + lodash._bindcallback "^3.0.0" + lodash._isiterateecall "^3.0.0" + lodash.restparam "^3.0.0" + +lodash._getnative@^3.0.0: + version "3.9.1" + resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" + +lodash._isiterateecall@^3.0.0: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" + +lodash.assign@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-3.2.0.tgz#3ce9f0234b4b2223e296b8fa0ac1fee8ebca64fa" + dependencies: + lodash._baseassign "^3.0.0" + lodash._createassigner "^3.0.0" + lodash.keys "^3.0.0" + +lodash.assign@^4.0.1, lodash.assign@^4.0.3, lodash.assign@^4.0.6, lodash.assign@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" + +lodash.clonedeep@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz#a0a1e40d82a5ea89ff5b147b8444ed63d92827db" + dependencies: + lodash._baseclone "^3.0.0" + lodash._bindcallback "^3.0.0" + +lodash.clonedeep@^4.3.2: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + +lodash.defaults@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-3.1.2.tgz#c7308b18dbf8bc9372d701a73493c61192bd2e2c" + dependencies: + lodash.assign "^3.0.0" + lodash.restparam "^3.0.0" + +lodash.defaults@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" + +lodash.isarguments@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" + +lodash.isarray@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" + +lodash.isfinite@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz#fb89b65a9a80281833f0b7478b3a5104f898ebb3" + +lodash.keys@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" + dependencies: + lodash._getnative "^3.0.0" + lodash.isarguments "^3.0.0" + lodash.isarray "^3.0.0" + +lodash.mergewith@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz#150cf0a16791f5903b8891eab154609274bdea55" + +lodash.restparam@^3.0.0: + version "3.6.1" + resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" + +lodash.tail@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.tail/-/lodash.tail-4.1.1.tgz#d2333a36d9e7717c8ad2f7cacafec7c32b444664" + +lodash@4.x.x, lodash@^4.0.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + +lodash@^3.10.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" + +lodash@~4.16.4: + version "4.16.6" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.16.6.tgz#d22c9ac660288f3843e16ba7d2b5d06cca27d777" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + dependencies: + js-tokens "^3.0.0" + +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + +lower-case@^1.1.1: + version "1.1.4" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" + +lowercase-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" + +lru-cache@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-3.2.0.tgz#71789b3b7f5399bec8565dda38aa30d2a097efee" + dependencies: + pseudomap "^1.0.1" + +lru-cache@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.0.2.tgz#1d17679c069cda5d040991a09dbc2c0db377e55e" + dependencies: + pseudomap "^1.0.1" + yallist "^2.0.0" + +magic-string@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.14.0.tgz#57224aef1701caeed273b17a39a956e72b172462" + dependencies: + vlq "^0.2.1" + +map-obj@^1.0.0, map-obj@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + +markdown@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/markdown/-/markdown-0.5.0.tgz#28205b565a8ae7592de207463d6637dc182722b2" + dependencies: + nopt "~2.1.1" + +marked-terminal@^1.6.2: + version "1.7.0" + resolved "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-1.7.0.tgz#c8c460881c772c7604b64367007ee5f77f125904" + dependencies: + cardinal "^1.0.0" + chalk "^1.1.3" + cli-table "^0.3.1" + lodash.assign "^4.2.0" + node-emoji "^1.4.1" + +marked@^0.3.6: + version "0.3.6" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7" + +md5@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9" + dependencies: + charenc "~0.0.1" + crypt "~0.0.1" + is-buffer "~1.1.1" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + +memory-fs@^0.4.0, memory-fs@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +meow@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" + dependencies: + camelcase-keys "^2.0.0" + decamelize "^1.1.2" + loud-rejection "^1.0.0" + map-obj "^1.0.1" + minimist "^1.1.3" + normalize-package-data "^2.3.4" + object-assign "^4.0.1" + read-pkg-up "^1.0.1" + redent "^1.0.0" + trim-newlines "^1.0.0" + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + +micromatch@2.3.11, micromatch@^2.1.5, micromatch@^2.3.11: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +microplugin@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/microplugin/-/microplugin-0.0.3.tgz#1fc2e1bb7c9e19e82bd84bba9137bbe71250d8cd" + +microtime@^2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/microtime/-/microtime-2.1.2.tgz#9c955d0781961ab13a1b6f9a82b080f5d7ecd83b" + dependencies: + bindings "1.2.x" + nan "2.4.x" + +miller-rabin@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.0.tgz#4a62fb1d42933c05583982f4c716f6fb9e6c6d3d" + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +"mime-db@>= 1.24.0 < 2", mime-db@~1.26.0: + version "1.26.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff" + +mime-types@^2.1.12, mime-types@~2.1.11, mime-types@~2.1.13, mime-types@~2.1.7: + version "2.1.14" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee" + dependencies: + mime-db "~1.26.0" + +mime@1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.2.4.tgz#11b5fdaf29c2509255176b80ad520294f5de92b7" + +mime@1.3.4, "mime@>= 0.0.1", mime@^1.2.11, mime@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" + +minimalistic-assert@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3" + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@~3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" + dependencies: + brace-expansion "^1.0.0" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + +mixin-object@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e" + dependencies: + for-in "^0.1.3" + is-extendable "^0.1.1" + +mkdirp@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + +mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +ms@0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" + +ms@0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + +nan@2.4.x, nan@^2.3.0, nan@^2.3.2: + version "2.4.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.4.0.tgz#fb3c59d45fe4effe215f0b890f8adf6eb32d2232" + +ncname@1.0.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ncname/-/ncname-1.0.0.tgz#5b57ad18b1ca092864ef62b0b1ed8194f383b71c" + dependencies: + xml-char-classes "^1.0.0" + +negotiator@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" + +no-case@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.1.tgz#7aeba1c73a52184265554b7dc03baf720df80081" + dependencies: + lower-case "^1.1.1" + +node-dir@^0.1.10: + version "0.1.16" + resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.16.tgz#d2ef583aa50b90d93db8cdd26fcea58353957fe4" + dependencies: + minimatch "^3.0.2" + +node-emoji@^1.4.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.5.1.tgz#fd918e412769bf8c448051238233840b2aff16a1" + dependencies: + string.prototype.codepointat "^0.2.0" + +node-gyp@^3.3.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.6.0.tgz#7474f63a3a0501161dda0b6341f022f14c423fa6" + dependencies: + fstream "^1.0.0" + glob "^7.0.3" + graceful-fs "^4.1.2" + minimatch "^3.0.2" + mkdirp "^0.5.0" + nopt "2 || 3" + npmlog "0 || 1 || 2 || 3 || 4" + osenv "0" + request "2" + rimraf "2" + semver "~5.3.0" + tar "^2.0.0" + which "1" + +node-libs-browser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.0.0.tgz#a3a59ec97024985b46e958379646f96c4b616646" + dependencies: + assert "^1.1.1" + browserify-zlib "^0.1.4" + buffer "^4.3.0" + console-browserify "^1.1.0" + constants-browserify "^1.0.0" + crypto-browserify "^3.11.0" + domain-browser "^1.1.1" + events "^1.0.0" + https-browserify "0.0.1" + os-browserify "^0.2.0" + path-browserify "0.0.0" + process "^0.11.0" + punycode "^1.2.4" + querystring-es3 "^0.2.0" + readable-stream "^2.0.5" + stream-browserify "^2.0.1" + stream-http "^2.3.1" + string_decoder "^0.10.25" + timers-browserify "^2.0.2" + tty-browserify "0.0.0" + url "^0.11.0" + util "^0.10.3" + vm-browserify "0.0.4" + +node-notifier@^4.1.0: + version "4.6.1" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-4.6.1.tgz#056d14244f3dcc1ceadfe68af9cff0c5473a33f3" + dependencies: + cli-usage "^0.1.1" + growly "^1.2.0" + lodash.clonedeep "^3.0.0" + minimist "^1.1.1" + semver "^5.1.0" + shellwords "^0.1.0" + which "^1.0.5" + +node-pre-gyp@^0.6.29: + version "0.6.33" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.33.tgz#640ac55198f6a925972e0c16c4ac26a034d5ecc9" + dependencies: + mkdirp "~0.5.1" + nopt "~3.0.6" + npmlog "^4.0.1" + rc "~1.1.6" + request "^2.79.0" + rimraf "~2.5.4" + semver "~5.3.0" + tar "~2.2.1" + tar-pack "~3.3.0" + +node-sass@^4.0.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.5.0.tgz#532e37bad0ce587348c831535dbc98ea4289508b" + dependencies: + async-foreach "^0.1.3" + chalk "^1.1.1" + cross-spawn "^3.0.0" + gaze "^1.0.0" + get-stdin "^4.0.1" + glob "^7.0.3" + in-publish "^2.0.0" + lodash.assign "^4.2.0" + lodash.clonedeep "^4.3.2" + lodash.mergewith "^4.6.0" + meow "^3.7.0" + mkdirp "^0.5.1" + nan "^2.3.2" + node-gyp "^3.3.1" + npmlog "^4.0.0" + request "^2.61.0" + sass-graph "^2.1.1" + stdout-stream "^1.4.0" + +node-uuid@~1.4.7: + version "1.4.7" + resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.7.tgz#6da5a17668c4b3dd59623bda11cf7fa4c1f60a6f" + +"nopt@2 || 3", nopt@~2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-2.1.2.tgz#6cccd977b80132a07731d6e8ce58c2c8303cf9af" + dependencies: + abbrev "1" + +nopt@3.0.x, nopt@~3.0.1, nopt@~3.0.6: + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + dependencies: + abbrev "1" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: + version "2.3.6" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.6.tgz#498fa420c96401f787402ba21e600def9f981fff" + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.0.1.tgz#47886ac1662760d4261b7d979d241709d3ce3f7a" + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + +"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0, npmlog@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.0.2.tgz#d03950e0e78ce1527ba26d2a7592e9348ac3e75f" + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.1" + set-blocking "~2.0.0" + +num2fraction@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +"nwmatcher@>= 1.3.9 < 2.0.0": + version "1.3.9" + resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.3.9.tgz#8bab486ff7fa3dfd086656bbe8b17116d3692d2a" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object-component@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291" + +object-path@^0.9.0, object-path@^0.9.2: + version "0.9.2" + resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.9.2.tgz#0fd9a74fc5fad1ae3968b586bda5c632bd6c05a5" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +obuf@^1.0.0, obuf@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.1.tgz#104124b6c602c6796881a042541d36db43a5264e" + +on-build-webpack@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/on-build-webpack/-/on-build-webpack-0.1.0.tgz#a287c0e17766e6141926e5f2cbb0d8bb53b76814" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +once@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" + dependencies: + wrappy "1" + +openurl@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.0.tgz#e2f2189d999c04823201f083f0f1a7cd8903187a" + +opn@4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/opn/-/opn-4.0.2.tgz#7abc22e644dff63b0a96d5ab7f2790c0f01abc95" + dependencies: + object-assign "^4.0.1" + pinkie-promise "^2.0.0" + +optimist@0.6.x: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +options@>=0.0.5: + version "0.0.6" + resolved "https://registry.yarnpkg.com/options/-/options-0.0.6.tgz#ec22d312806bb53e731773e7cdaefcf1c643128f" + +original@>=0.0.5: + version "1.0.0" + resolved "https://registry.yarnpkg.com/original/-/original-1.0.0.tgz#9147f93fa1696d04be61e01bd50baeaca656bd3b" + dependencies: + url-parse "1.0.x" + +os-browserify@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.2.1.tgz#63fc4ccee5d2d7763d26bbf8601078e6c2e0044f" + +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + dependencies: + lcid "^1.0.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@0: + version "0.1.4" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +pako@~0.2.0: + version "0.2.9" + resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" + +param-case@2.1.x: + version "2.1.0" + resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.0.tgz#2619f90fd6c829ed0b958f1c84ed03a745a6d70a" + dependencies: + no-case "^2.2.0" + +parse-asn1@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +parse5@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" + +parsejson@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/parsejson/-/parsejson-0.0.3.tgz#ab7e3759f209ece99437973f7d0f1f64ae0e64ab" + dependencies: + better-assert "~1.0.0" + +parseqs@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/parseqs/-/parseqs-0.0.5.tgz#d5208a3738e46766e291ba2ea173684921a8b89d" + dependencies: + better-assert "~1.0.0" + +parseuri@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/parseuri/-/parseuri-0.0.5.tgz#80204a50d4dbb779bfdc6ebe2778d90e4bce320a" + dependencies: + better-assert "~1.0.0" + +parseurl@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.1.tgz#c8ab8c9223ba34888aa64a297b28853bec18da56" + +path-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +path@^0.12.7: + version "0.12.7" + resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f" + dependencies: + process "^0.11.1" + util "^0.10.3" + +pbkdf2@^3.0.3: + version "3.0.9" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.9.tgz#f2c4b25a600058b3c3773c086c37dbbee1ffe693" + dependencies: + create-hmac "^1.1.2" + +performance-now@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" + +pify@^2.0.0, pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" + dependencies: + find-up "^1.0.0" + +portfinder@^1.0.9: + version "1.0.13" + resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.13.tgz#bb32ecd87c27104ae6ee44b5a3ccbf0ebb1aede9" + dependencies: + async "^1.5.2" + debug "^2.2.0" + mkdirp "0.5.x" + +portscanner@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/portscanner/-/portscanner-2.1.1.tgz#eabb409e4de24950f5a2a516d35ae769343fbb96" + dependencies: + async "1.5.2" + is-number-like "^1.0.3" + +postcss-load-config@^1.0.0, postcss-load-config@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-1.2.0.tgz#539e9afc9ddc8620121ebf9d8c3673e0ce50d28a" + dependencies: + cosmiconfig "^2.1.0" + object-assign "^4.1.0" + postcss-load-options "^1.2.0" + postcss-load-plugins "^2.3.0" + +postcss-load-options@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/postcss-load-options/-/postcss-load-options-1.2.0.tgz#b098b1559ddac2df04bc0bb375f99a5cfe2b6d8c" + dependencies: + cosmiconfig "^2.1.0" + object-assign "^4.1.0" + +postcss-load-plugins@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz#745768116599aca2f009fad426b00175049d8d92" + dependencies: + cosmiconfig "^2.1.1" + object-assign "^4.1.0" + +postcss-loader@^1.2.1: + version "1.3.3" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-1.3.3.tgz#a621ea1fa29062a83972a46f54486771301916eb" + dependencies: + loader-utils "^1.0.2" + object-assign "^4.1.1" + postcss "^5.2.15" + postcss-load-config "^1.2.0" + +postcss-selector-parser@^2.0.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz#f9437788606c3c9acee16ffe8d8b16297f27bb90" + dependencies: + flatten "^1.0.2" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-value-parser@^3.2.3: + version "3.3.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15" + +postcss@^5.0.10, postcss@^5.2.15, postcss@^5.2.16: + version "5.2.16" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.16.tgz#732b3100000f9ff8379a48a53839ed097376ad57" + dependencies: + chalk "^1.1.3" + js-base64 "^2.1.9" + source-map "^0.5.6" + supports-color "^3.2.3" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +prepend-http@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +private@^0.1.6, private@~0.1.5: + version "0.1.7" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" + +process-nextick-args@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" + +process@^0.11.0, process@^0.11.1: + version "0.11.9" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.9.tgz#7bd5ad21aa6253e7da8682264f1e11d11c0318c1" + +promise@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" + dependencies: + asap "~2.0.3" + +proto-list@~1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" + +proxy-addr@~1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.3.tgz#dc97502f5722e888467b3fa2297a7b1ff47df074" + dependencies: + forwarded "~0.1.0" + ipaddr.js "1.2.0" + +prr@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" + +pseudomap@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +public-encrypt@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6" + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + +punycode@^1.2.4, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@0.4.x: + version "0.4.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-0.4.2.tgz#3cac4c861e371a8c9c4770ac23cda8de639b8e5f" + +qs@6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.1.tgz#ce03c5ff0935bc1d9d69a9f14cbd18e568d67625" + +qs@6.4.0, "qs@>= 0.4.0", qs@~6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + +qs@~6.3.0: + version "6.3.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c" + +querystring-es3@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + +querystringify@0.0.x: + version "0.0.4" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-0.0.4.tgz#0cf7f84f9463ff0ae51c4c4b142d95be37724d9c" + +randomatic@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" + dependencies: + is-number "^2.0.2" + kind-of "^3.0.2" + +randombytes@^2.0.0, randombytes@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.3.tgz#674c99760901c3c4112771a31e521dc349cc09ec" + +range-parser@^1.0.3, range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + +raw-loader@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-0.5.1.tgz#0c3d0beaed8a01c966d9787bf778281252a979aa" + +rc@~1.1.6: + version "1.1.7" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.1.7.tgz#c5ea564bb07aff9fd3a5b32e906c1d3a65940fea" + dependencies: + deep-extend "~0.4.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.1.0: + version "2.2.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.6.tgz#8b43aed76e71483938d12a8d46c6cf1a00b1f816" + dependencies: + buffer-shims "^1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + +readable-stream@~2.1.4: + version "2.1.5" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0" + dependencies: + buffer-shims "^1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +recast@~0.11.12: + version "0.11.23" + resolved "https://registry.yarnpkg.com/recast/-/recast-0.11.23.tgz#451fd3004ab1e4df9b4e4b66376b2a21912462d3" + dependencies: + ast-types "0.9.6" + esprima "~3.1.0" + private "~0.1.5" + source-map "~0.5.0" + +redent@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" + dependencies: + indent-string "^2.1.0" + strip-indent "^1.0.1" + +redeyed@~0.4.0: + version "0.4.4" + resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-0.4.4.tgz#37e990a6f2b21b2a11c2e6a48fd4135698cba97f" + dependencies: + esprima "~1.0.4" + +redeyed@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-1.0.1.tgz#e96c193b40c0816b00aec842698e61185e55498a" + dependencies: + esprima "~3.0.0" + +regenerate@^1.2.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.2.tgz#d1941c67bad437e1be76433add5b385f95b19260" + +regenerator-runtime@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" + +regenerator-transform@0.9.8: + version "0.9.8" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.8.tgz#0f88bb2bc03932ddb7b6b7312e68078f01026d6c" + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + +regex-cache@^0.4.2: + version "0.4.3" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" + dependencies: + is-equal-shallow "^0.1.3" + is-primitive "^2.0.0" + +regex-parser@^2.2.1: + version "2.2.5" + resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.2.5.tgz#425e76fd1f331ffe2d73d3d1ebb71e697f39705c" + +regexpu-core@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" + dependencies: + regenerate "^1.2.1" + regjsgen "^0.2.0" + regjsparser "^0.1.4" + +regjsgen@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" + +regjsparser@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" + dependencies: + jsesc "~0.5.0" + +relateurl@0.2.x: + version "0.2.7" + resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + +repeat-string@^1.5.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request@2, request@^2.61.0, request@^2.72.0, request@^2.79.0: + version "2.81.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~4.2.1" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + performance-now "^0.2.0" + qs "~6.4.0" + safe-buffer "^5.0.1" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "^0.6.0" + uuid "^3.0.0" + +request@2.78.0: + version "2.78.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.78.0.tgz#e1c8dec346e1c81923b24acdb337f11decabe9cc" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.11.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~2.0.6" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + node-uuid "~1.4.7" + oauth-sign "~0.8.1" + qs "~6.3.0" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "~0.4.1" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-from-string@^1.1.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +requires-port@1.0.x, requires-port@1.x.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + +resolve-url-loader@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-2.0.2.tgz#c465e97ea0a4791f3961f766cea775ff2e3ceb8c" + dependencies: + adjust-sourcemap-loader "^1.1.0" + camelcase "^4.0.0" + convert-source-map "^1.1.1" + loader-utils "^1.0.0" + lodash.defaults "^4.0.0" + rework "^1.0.1" + rework-visit "^1.0.0" + source-map "^0.5.6" + urix "^0.1.0" + +resolve-url@~0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + +resp-modifier@6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/resp-modifier/-/resp-modifier-6.0.2.tgz#b124de5c4fbafcba541f48ffa73970f4aa456b4f" + dependencies: + debug "^2.2.0" + minimatch "^3.0.2" + +rework-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/rework-visit/-/rework-visit-1.0.0.tgz#9945b2803f219e2f7aca00adb8bc9f640f842c9a" + +rework@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/rework/-/rework-1.0.1.tgz#30806a841342b54510aa4110850cd48534144aa7" + dependencies: + convert-source-map "^0.3.3" + css "^2.0.0" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +rimraf@2, rimraf@^2.2.8: + version "2.6.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" + dependencies: + glob "^7.0.5" + +rimraf@~2.5.1, rimraf@~2.5.4: + version "2.5.4" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.5.4.tgz#96800093cbf1a0c86bd95b4625467535c29dfa04" + dependencies: + glob "^7.0.5" + +ripemd160@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e" + +rx@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782" + +safe-buffer@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" + +sass-graph@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.1.2.tgz#965104be23e8103cb7e5f710df65935b317da57b" + dependencies: + glob "^7.0.0" + lodash "^4.0.0" + yargs "^4.7.1" + +sass-loader@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-6.0.3.tgz#33983b1f90d27ddab0e57d0dac403dce9bc7ecfd" + dependencies: + async "^2.1.5" + clone-deep "^0.2.4" + loader-utils "^1.0.1" + lodash.tail "^4.1.1" + pify "^2.3.0" + +sax@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828" + +select-hose@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" + +selectize-scss@^0.9.2: + version "0.9.2" + resolved "https://registry.yarnpkg.com/selectize-scss/-/selectize-scss-0.9.2.tgz#9b2138cd88bc25049d8bb4a709c3331f183e5c9e" + +selectize@^0.12.4: + version "0.12.4" + resolved "https://registry.yarnpkg.com/selectize/-/selectize-0.12.4.tgz#50c697526b609dea11da153cf7252b98948f4c0e" + dependencies: + microplugin "0.0.3" + sifter "^0.5.1" + +"semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + +send@0.14.1: + version "0.14.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.14.1.tgz#a954984325392f51532a7760760e459598c89f7a" + dependencies: + debug "~2.2.0" + depd "~1.1.0" + destroy "~1.0.4" + encodeurl "~1.0.1" + escape-html "~1.0.3" + etag "~1.7.0" + fresh "0.3.0" + http-errors "~1.5.0" + mime "1.3.4" + ms "0.7.1" + on-finished "~2.3.0" + range-parser "~1.2.0" + statuses "~1.3.0" + +send@0.15.1: + version "0.15.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.15.1.tgz#8a02354c26e6f5cca700065f5f0cdeba90ec7b5f" + dependencies: + debug "2.6.1" + depd "~1.1.0" + destroy "~1.0.4" + encodeurl "~1.0.1" + escape-html "~1.0.3" + etag "~1.8.0" + fresh "0.5.0" + http-errors "~1.6.1" + mime "1.3.4" + ms "0.7.2" + on-finished "~2.3.0" + range-parser "~1.2.0" + statuses "~1.3.1" + +serve-index@1.8.0, serve-index@^1.7.2: + version "1.8.0" + resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.8.0.tgz#7c5d96c13fb131101f93c1c5774f8516a1e78d3b" + dependencies: + accepts "~1.3.3" + batch "0.5.3" + debug "~2.2.0" + escape-html "~1.0.3" + http-errors "~1.5.0" + mime-types "~2.1.11" + parseurl "~1.3.1" + +serve-static@1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.11.1.tgz#d6cce7693505f733c759de57befc1af76c0f0805" + dependencies: + encodeurl "~1.0.1" + escape-html "~1.0.3" + parseurl "~1.3.1" + send "0.14.1" + +serve-static@1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.1.tgz#7443a965e3ced647aceb5639fa06bf4d1bbe0039" + dependencies: + encodeurl "~1.0.1" + escape-html "~1.0.3" + parseurl "~1.3.1" + send "0.15.1" + +server-destroy@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/server-destroy/-/server-destroy-1.0.1.tgz#f13bf928e42b9c3e79383e61cc3998b5d14e6cdd" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +setimmediate@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + +setprototypeof@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.2.tgz#81a552141ec104b88e89ce383103ad5c66564d08" + +setprototypeof@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" + +sha.js@^2.3.6: + version "2.4.8" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.8.tgz#37068c2c476b6baf402d14a49c67f597921f634f" + dependencies: + inherits "^2.0.1" + +shallow-clone@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060" + dependencies: + is-extendable "^0.1.1" + kind-of "^2.0.1" + lazy-cache "^0.2.3" + mixin-object "^2.0.1" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shellwords@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.0.tgz#66afd47b6a12932d9071cbfd98a52e785cd0ba14" + +sifter@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/sifter/-/sifter-0.5.2.tgz#4702e3cee3036903da1f194b29e6dc7a4fb59abe" + dependencies: + async "0.2.x" + cardinal "0.4.x" + csv-parse "^1.1.7" + humanize "0.0.x" + optimist "0.6.x" + optionalDependencies: + microtime "^2.1.0" + +sigmund@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" + +signal-exit@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +socket.io-adapter@0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz#cb6d4bb8bec81e1078b99677f9ced0046066bb8b" + dependencies: + debug "2.3.3" + socket.io-parser "2.3.1" + +socket.io-client@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-1.6.0.tgz#5b668f4f771304dfeed179064708386fa6717853" + dependencies: + backo2 "1.0.2" + component-bind "1.0.0" + component-emitter "1.2.1" + debug "2.3.3" + engine.io-client "1.8.0" + has-binary "0.1.7" + indexof "0.0.1" + object-component "0.0.3" + parseuri "0.0.5" + socket.io-parser "2.3.1" + to-array "0.1.4" + +socket.io-parser@2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-2.3.1.tgz#dd532025103ce429697326befd64005fcfe5b4a0" + dependencies: + component-emitter "1.1.2" + debug "2.2.0" + isarray "0.0.1" + json3 "3.3.2" + +socket.io@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-1.6.0.tgz#3e40d932637e6bd923981b25caf7c53e83b6e2e1" + dependencies: + debug "2.3.3" + engine.io "1.8.0" + has-binary "0.1.7" + object-assign "4.1.0" + socket.io-adapter "0.5.0" + socket.io-client "1.6.0" + socket.io-parser "2.3.1" + +sockjs-client@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sockjs-client/-/sockjs-client-1.1.2.tgz#f0212a8550e4c9468c8cceaeefd2e3493c033ad5" + dependencies: + debug "^2.2.0" + eventsource "0.1.6" + faye-websocket "~0.11.0" + inherits "^2.0.1" + json3 "^3.3.2" + url-parse "^1.1.1" + +sockjs@0.3.18: + version "0.3.18" + resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.18.tgz#d9b289316ca7df77595ef299e075f0f937eb4207" + dependencies: + faye-websocket "^0.10.0" + uuid "^2.0.2" + +source-list-map@^0.1.4, source-list-map@~0.1.7: + version "0.1.8" + resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106" + +source-map-resolve@^0.3.0: + version "0.3.1" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.3.1.tgz#610f6122a445b8dd51535a2a71b783dfc1248761" + dependencies: + atob "~1.1.0" + resolve-url "~0.2.1" + source-map-url "~0.3.0" + urix "~0.1.0" + +source-map-support@^0.4.2: + version "0.4.13" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.13.tgz#9782e6f7deb424d5f173327a1879eb46453bdcd4" + dependencies: + source-map "^0.5.6" + +source-map-url@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.3.0.tgz#7ecaf13b57bcd09da8a40c5d269db33799d4aaf9" + +source-map@0.4.x: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@0.5.x, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.0, source-map@~0.5.1, source-map@~0.5.3: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" + +source-map@^0.1.38: + version "0.1.43" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346" + dependencies: + amdefine ">=0.0.4" + +source-map@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" + dependencies: + amdefine ">=0.0.4" + +spdx-correct@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" + dependencies: + spdx-license-ids "^1.0.2" + +spdx-expression-parse@~1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" + +spdx-license-ids@^1.0.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" + +spdy-transport@^2.0.15: + version "2.0.18" + resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-2.0.18.tgz#43fc9c56be2cccc12bb3e2754aa971154e836ea6" + dependencies: + debug "^2.2.0" + hpack.js "^2.1.6" + obuf "^1.1.0" + readable-stream "^2.0.1" + wbuf "^1.4.0" + +spdy@^3.4.1: + version "3.4.4" + resolved "https://registry.yarnpkg.com/spdy/-/spdy-3.4.4.tgz#e0406407ca90ff01b553eb013505442649f5a819" + dependencies: + debug "^2.2.0" + handle-thing "^1.2.4" + http-deceiver "^1.2.4" + select-hose "^2.0.0" + spdy-transport "^2.0.15" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.11.0.tgz#2d8d5ebb4a6fab28ffba37fa62a90f4a3ea59d77" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jodid25519 "^1.0.0" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +stackframe@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.0.2.tgz#162245509c687d328b14f671dab8fdb755b1e1e8" + +"statuses@>= 1.3.1 < 2", statuses@~1.3.0, statuses@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" + +stdout-stream@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.0.tgz#a2c7c8587e54d9427ea9edb3ac3f2cd522df378b" + dependencies: + readable-stream "^2.0.1" + +stream-browserify@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db" + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-http@^2.3.1: + version "2.6.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.6.3.tgz#4c3ddbf9635968ea2cfd4e48d43de5def2625ac3" + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.1.0" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-throttle@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/stream-throttle/-/stream-throttle-0.1.3.tgz#add57c8d7cc73a81630d31cd55d3961cfafba9c3" + dependencies: + commander "^2.2.0" + limiter "^1.0.5" + +string-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" + dependencies: + strip-ansi "^3.0.0" + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +string.prototype.codepointat@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/string.prototype.codepointat/-/string.prototype.codepointat-0.2.0.tgz#6b26e9bd3afcaa7be3b4269b526de1b82000ac78" + +string_decoder@^0.10.25, string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-indent@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" + dependencies: + get-stdin "^4.0.1" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +style-loader@^0.13.1: + version "0.13.2" + resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.13.2.tgz#74533384cf698c7104c7951150b49717adc2f3bb" + dependencies: + loader-utils "^1.0.2" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + dependencies: + has-flag "^1.0.0" + +symbol-tree@^3.2.1: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + +tapable@^0.2.5, tapable@~0.2.5: + version "0.2.6" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.6.tgz#206be8e188860b514425375e6f1ae89bfb01fd8d" + +tar-pack@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.3.0.tgz#30931816418f55afc4d21775afdd6720cee45dae" + dependencies: + debug "~2.2.0" + fstream "~1.0.10" + fstream-ignore "~1.0.5" + once "~1.3.3" + readable-stream "~2.1.4" + rimraf "~2.5.1" + tar "~2.2.1" + uid-number "~0.0.6" + +tar@^2.0.0, tar@~2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" + dependencies: + block-stream "*" + fstream "^1.0.2" + inherits "2" + +tfunk@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/tfunk/-/tfunk-3.1.0.tgz#38e4414fc64977d87afdaa72facb6d29f82f7b5b" + dependencies: + chalk "^1.1.1" + object-path "^0.9.0" + +through@~2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timed-out@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + +timers-browserify@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.2.tgz#ab4883cf597dcd50af211349a00fbca56ac86b86" + dependencies: + setimmediate "^1.0.4" + +to-array@0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/to-array/-/to-array-0.1.4.tgz#17e6c11f73dd4f3d74cda7a4ff3238e9ad9bf890" + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + +to-fast-properties@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" + +to-markdown@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/to-markdown/-/to-markdown-3.0.3.tgz#9ea8750a2b40a86d2893473b81255516880e4b6d" + dependencies: + collapse-whitespace "1.1.2" + jsdom "^9.0.0" + +tough-cookie@^2.3.2, tough-cookie@~2.3.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + dependencies: + punycode "^1.4.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + +trim-newlines@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tty-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tunnel-agent@~0.4.1: + version "0.4.3" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +type-is@~1.6.14: + version "1.6.14" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.14.tgz#e219639c17ded1ca0789092dd54a03826b817cb2" + dependencies: + media-typer "0.3.0" + mime-types "~2.1.13" + +ua-parser-js@0.7.12: + version "0.7.12" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" + +uglify-js@2.8.x, uglify-js@^2.7.5: + version "2.8.13" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.13.tgz#d0cdf02f3c661484fac601b7e723207b735a374c" + dependencies: + source-map "~0.5.1" + uglify-to-browserify "~1.0.0" + yargs "~3.10.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +uid-number@~0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" + +ultron@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" + +underscore@1.7.x: + version "1.7.0" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.7.0.tgz#6bbaf0877500d36be34ecaa584e0db9fef035209" + +uniq@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" + +unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + +unzip-response@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" + +upper-case@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" + +urix@^0.1.0, urix@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + +url-parse-lax@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" + dependencies: + prepend-http "^1.0.1" + +url-parse@1.0.x: + version "1.0.5" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.0.5.tgz#0854860422afdcfefeb6c965c662d4800169927b" + dependencies: + querystringify "0.0.x" + requires-port "1.0.x" + +url-parse@^1.1.1: + version "1.1.8" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.1.8.tgz#7a65b3a8d57a1e86af6b4e2276e34774167c0156" + dependencies: + querystringify "0.0.x" + requires-port "1.0.x" + +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +util@0.10.3, util@^0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + dependencies: + inherits "2.0.1" + +utils-merge@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" + +uuid@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" + +uuid@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" + +validate-npm-package-license@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" + dependencies: + spdx-correct "~1.0.0" + spdx-expression-parse "~1.0.0" + +vary@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.0.tgz#e1e5affbbd16ae768dd2674394b9ad3022653140" + +verror@1.3.6: + version "1.3.6" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" + dependencies: + extsprintf "1.0.2" + +vlq@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.1.tgz#14439d711891e682535467f8587c5630e4222a6c" + +vm-browserify@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73" + dependencies: + indexof "0.0.1" + +void-elements@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" + +vue-hot-reload-api@^2.0.1: + version "2.0.11" + resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.0.11.tgz#bf26374fb73366ce03f799e65ef5dfd0e28a1568" + +vue-loader@^10.0.2: + version "10.3.0" + resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-10.3.0.tgz#436421736e9ad0f1c481330327c376963db86a19" + dependencies: + consolidate "^0.14.0" + hash-sum "^1.0.2" + js-beautify "^1.6.3" + loader-utils "^0.2.10" + lru-cache "^4.0.1" + postcss "^5.0.10" + postcss-selector-parser "^2.0.0" + source-map "^0.5.6" + vue-hot-reload-api "^2.0.1" + vue-style-loader "^2.0.0" + vue-template-es2015-compiler "^1.2.2" + +vue-resource@^1.0.3: + version "1.2.1" + resolved "https://registry.yarnpkg.com/vue-resource/-/vue-resource-1.2.1.tgz#b3f21dd0e1e491adf8a5be1fe48e586cefeaa8d5" + dependencies: + got "^6.7.1" + +vue-style-loader@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-2.0.4.tgz#4fc19e18bf162225338aac3b17d0fd0e1cfb7439" + dependencies: + hash-sum "^1.0.2" + loader-utils "^1.0.2" + +vue-template-compiler@^2.1.9: + version "2.2.4" + resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.2.4.tgz#2856fb09f1571e9098872bf3c512d670eeeafba9" + dependencies: + de-indent "^1.0.2" + he "^1.1.0" + +vue-template-es2015-compiler@^1.2.2: + version "1.5.1" + resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.5.1.tgz#0c36cc57aa3a9ec13e846342cb14a72fcac8bd93" + +vue@^2.1.3: + version "2.2.4" + resolved "https://registry.yarnpkg.com/vue/-/vue-2.2.4.tgz#d0a3a050a80a12356d7950ae5a7b3131048209cc" + +watchpack@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.3.1.tgz#7d8693907b28ce6013e7f3610aa2a1acf07dad87" + dependencies: + async "^2.1.2" + chokidar "^1.4.3" + graceful-fs "^4.1.2" + +wbuf@^1.1.0, wbuf@^1.4.0: + version "1.7.2" + resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.2.tgz#d697b99f1f59512df2751be42769c1580b5801fe" + dependencies: + minimalistic-assert "^1.0.0" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + +webidl-conversions@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.1.tgz#8015a17ab83e7e1b311638486ace81da6ce206a0" + +webpack-dev-middleware@^1.9.0: + version "1.10.1" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-1.10.1.tgz#c6b4cf428139cf1aefbe06a0c00fdb4f8da2f893" + dependencies: + memory-fs "~0.4.1" + mime "^1.3.4" + path-is-absolute "^1.0.0" + range-parser "^1.0.3" + +webpack-dev-server@^2.2.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-2.4.2.tgz#cf595d6b40878452b6d2ad7229056b686f8a16be" + dependencies: + ansi-html "0.0.7" + chokidar "^1.6.0" + compression "^1.5.2" + connect-history-api-fallback "^1.3.0" + express "^4.13.3" + html-entities "^1.2.0" + http-proxy-middleware "~0.17.4" + opn "4.0.2" + portfinder "^1.0.9" + serve-index "^1.7.2" + sockjs "0.3.18" + sockjs-client "1.1.2" + spdy "^3.4.1" + strip-ansi "^3.0.0" + supports-color "^3.1.1" + webpack-dev-middleware "^1.9.0" + yargs "^6.0.0" + +webpack-md5-hash@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/webpack-md5-hash/-/webpack-md5-hash-0.0.5.tgz#d9f1899ead664459dd8b6b0c926ac71cfbd7bc7a" + dependencies: + md5 "^2.0.0" + +webpack-notifier@^1.4.1: + version "1.5.0" + resolved "https://registry.yarnpkg.com/webpack-notifier/-/webpack-notifier-1.5.0.tgz#c010007d448cebc34defc99ecf288fa5e8c6baf6" + dependencies: + node-notifier "^4.1.0" + object-assign "^4.1.0" + strip-ansi "^3.0.1" + +webpack-sources@^0.1.0, webpack-sources@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-0.1.5.tgz#aa1f3abf0f0d74db7111c40e500b84f966640750" + dependencies: + source-list-map "~0.1.7" + source-map "~0.5.3" + +webpack-stats-plugin@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/webpack-stats-plugin/-/webpack-stats-plugin-0.1.4.tgz#400dd3967e12e54a54eb968ba368c0d7af334eb2" + +webpack@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-2.2.1.tgz#7bb1d72ae2087dd1a4af526afec15eed17dda475" + dependencies: + acorn "^4.0.4" + acorn-dynamic-import "^2.0.0" + ajv "^4.7.0" + ajv-keywords "^1.1.1" + async "^2.1.2" + enhanced-resolve "^3.0.0" + interpret "^1.0.0" + json-loader "^0.5.4" + loader-runner "^2.3.0" + loader-utils "^0.2.16" + memory-fs "~0.4.1" + mkdirp "~0.5.0" + node-libs-browser "^2.0.0" + source-map "^0.5.3" + supports-color "^3.1.0" + tapable "~0.2.5" + uglify-js "^2.7.5" + watchpack "^1.2.0" + webpack-sources "^0.1.4" + yargs "^6.0.0" + +websocket-driver@>=0.5.1: + version "0.6.5" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.6.5.tgz#5cb2556ceb85f4373c6d8238aa691c8454e13a36" + dependencies: + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.1.tgz#76899499c184b6ef754377c2dbb0cd6cb55d29e7" + +weinre@^2.0.0-pre-I0Z7U9OV: + version "2.0.0-pre-I0Z7U9OV" + resolved "https://registry.yarnpkg.com/weinre/-/weinre-2.0.0-pre-I0Z7U9OV.tgz#fef8aa223921f7b40bbbbd4c3ed4302f6fd0a813" + dependencies: + express "2.5.x" + nopt "3.0.x" + underscore "1.7.x" + +whatwg-encoding@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.1.tgz#3c6c451a198ee7aec55b1ec61d0920c67801a5f4" + dependencies: + iconv-lite "0.4.13" + +whatwg-url@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.6.0.tgz#ef98da442273be04cf9632e176f257d2395a1ae4" + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + +which@1, which@^1.0.5, which@^1.2.9: + version "1.2.12" + resolved "https://registry.yarnpkg.com/which/-/which-1.2.12.tgz#de67b5e450269f194909ef23ece4ebe416fa1192" + dependencies: + isexe "^1.1.1" + +wide-align@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.0.tgz#40edde802a71fea1f070da3e62dcda2e7add96ad" + dependencies: + string-width "^1.0.1" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +window-size@^0.1.2: + version "0.1.4" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876" + +window-size@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +ws@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.1.tgz#082ddb6c641e85d4bb451f03d52f06eabdb1f018" + dependencies: + options ">=0.0.5" + ultron "1.0.x" + +wtf-8@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wtf-8/-/wtf-8-1.0.0.tgz#392d8ba2d0f1c34d1ee2d630f15d0efb68e1048a" + +xml-char-classes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/xml-char-classes/-/xml-char-classes-1.0.0.tgz#64657848a20ffc5df583a42ad8a277b4512bbc4d" + +xml-name-validator@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" + +xmlhttprequest-ssl@1.5.3: + version "1.5.3" + resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz#185a888c04eca46c3e4070d99f7b49de3528992d" + +xtend@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.0, y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yallist@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yargs-parser@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-2.4.1.tgz#85568de3cf150ff49fa51825f03a8c880ddcc5c4" + dependencies: + camelcase "^3.0.0" + lodash.assign "^4.0.6" + +yargs-parser@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" + dependencies: + camelcase "^3.0.0" + +yargs@3.29.0: + version "3.29.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.29.0.tgz#1aab9660eae79d8b8f675bcaeeab6ee34c2cf69c" + dependencies: + camelcase "^1.2.1" + cliui "^3.0.3" + decamelize "^1.0.0" + os-locale "^1.4.0" + window-size "^0.1.2" + y18n "^3.2.0" + +yargs@6.4.0, yargs@^6.0.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.4.0.tgz#816e1a866d5598ccf34e5596ddce22d92da490d4" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + window-size "^0.2.0" + y18n "^3.2.1" + yargs-parser "^4.1.0" + +yargs@^4.7.1: + version "4.8.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0" + dependencies: + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + lodash.assign "^4.0.3" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.1" + which-module "^1.0.0" + window-size "^0.2.0" + y18n "^3.2.1" + yargs-parser "^2.4.1" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" + +yeast@0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"