Version Description
- Extend languages support
- Update of the statistics features
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.6.16 |
Comparing to | |
See all releases |
Code changes from version 2.6.15 to 2.6.16
- css/admin/topblock.css +1 -1
- includes/extensions/backup/backup.class.php +14 -14
- includes/extensions/backup/backup.form.php +2 -2
- includes/extensions/rbs_create_post.php +5 -5
- includes/frontend/rbs_gallery_source.php +3 -3
- includes/options/rbs_gallery_options_copy.php +2 -6
- includes/options/rbs_gallery_options_size.php +1 -1
- includes/rbs_class_activator.php +1 -1
- js/admin/info.js +2 -2
- js/robo_gallery.js +3 -112
- js/robo_gallery_alt.js +5 -116
- languages/robo-gallery.pot +63 -187
- readme.txt +9 -1
- robogallery.php +6 -6
css/admin/topblock.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/*
|
1 |
+
/*
|
includes/extensions/backup/backup.class.php
CHANGED
@@ -270,7 +270,7 @@ class rbsGalleryExport {
|
|
270 |
}
|
271 |
|
272 |
if (!is_dir($this->archiveDir) && !mkdir($this->archiveDir, 0755, true)) {
|
273 |
-
$this->error =
|
274 |
return false;
|
275 |
}
|
276 |
|
@@ -350,7 +350,7 @@ class rbsGalleryExport {
|
|
350 |
|
351 |
foreach ($chunks as $chunk) {
|
352 |
if (file_exists($chunk) && !unlink($chunk)) {
|
353 |
-
$this->error = sprintf(
|
354 |
return false;
|
355 |
}
|
356 |
}
|
@@ -366,7 +366,7 @@ class rbsGalleryExport {
|
|
366 |
protected function isCreatedArchive($archivePath)
|
367 |
{
|
368 |
if (!file_exists($archivePath)) {
|
369 |
-
$this->error = sprintf(
|
370 |
return false;
|
371 |
}
|
372 |
return true;
|
@@ -632,7 +632,7 @@ class rbsGalleryExport {
|
|
632 |
$archiveRootName = preg_replace('/(\.[0-9]+)?\.zip$/', '', $fileNameXml);
|
633 |
$postsXmlFile = "{$archiveRootName}.xml";
|
634 |
if (!isset($this->archiveFiles[$postsXmlFile])) {
|
635 |
-
$this->response['errors'][] =
|
636 |
}
|
637 |
$archiveKey = $this->archiveFiles[$postsXmlFile];
|
638 |
$archive = $this->archives[$archiveKey];
|
@@ -675,13 +675,13 @@ class rbsGalleryExport {
|
|
675 |
|
676 |
$xmlReader = new XMLReader();
|
677 |
if(false === $xmlReader->xml($xml)) {
|
678 |
-
$this->response['errors'][] =
|
679 |
return $this->response;
|
680 |
}
|
681 |
|
682 |
while ($xmlReader->read() && self::TAG_POST_DATA != $xmlReader->localName);
|
683 |
if (self::TAG_POST_DATA != $xmlReader->localName) {
|
684 |
-
$this->response['errors'][] =
|
685 |
return $this->response;
|
686 |
}
|
687 |
|
@@ -845,7 +845,7 @@ class rbsGalleryExport {
|
|
845 |
$result = wp_insert_post($post, true);
|
846 |
if (is_wp_error($result)) {
|
847 |
$this->error = sprintf(
|
848 |
-
|
849 |
$oldPostId,
|
850 |
$post['guid'],
|
851 |
$result->get_error_message()
|
@@ -901,7 +901,7 @@ class rbsGalleryExport {
|
|
901 |
protected function validateXml($xml)
|
902 |
{
|
903 |
if (0 !== strpos($xml, self::XML_DECLARATION)) {
|
904 |
-
$this->error =
|
905 |
return false;
|
906 |
}
|
907 |
return true;
|
@@ -977,7 +977,7 @@ class rbsGalleryExport {
|
|
977 |
$result = wp_insert_post($post, true);
|
978 |
if (is_wp_error($result)) {
|
979 |
$this->response['errors'][] = sprintf(
|
980 |
-
|
981 |
$oldPostId,
|
982 |
$post['post_title'],
|
983 |
$result->get_error_message()
|
@@ -1008,7 +1008,7 @@ class rbsGalleryExport {
|
|
1008 |
$result = add_post_meta($postId, $metaKey, $metaValue);
|
1009 |
if (false === $result) {
|
1010 |
$this->response['errors'][] = sprintf(
|
1011 |
-
|
1012 |
$postId,
|
1013 |
$metaKey,
|
1014 |
$metaValue
|
@@ -1060,7 +1060,7 @@ class rbsGalleryExport {
|
|
1060 |
$zip = new ZipArchive();
|
1061 |
|
1062 |
if(true !== $zip->open($path)) {
|
1063 |
-
$this->error = sprintf(
|
1064 |
return false;
|
1065 |
}
|
1066 |
$this->archives[$key] = $zip;
|
@@ -1082,7 +1082,7 @@ class rbsGalleryExport {
|
|
1082 |
protected function importFile($file)
|
1083 |
{
|
1084 |
if (!isset($this->archiveFiles[$file])) {
|
1085 |
-
$this->error = sprintf(
|
1086 |
return false;
|
1087 |
}
|
1088 |
|
@@ -1114,11 +1114,11 @@ class rbsGalleryExport {
|
|
1114 |
}
|
1115 |
|
1116 |
if (!file_exists($this->baseFilePath . $uploadDir) && mkdir($this->baseFilePath . $uploadDir, 0777, true)) {
|
1117 |
-
$this->error = sprintf(
|
1118 |
return false;
|
1119 |
}
|
1120 |
if (!touch($filePath) || !chmod($filePath, 0777)) {
|
1121 |
-
$this->error = sprintf(
|
1122 |
return false;
|
1123 |
}
|
1124 |
file_put_contents($filePath, $archive->getFromName($file));
|
270 |
}
|
271 |
|
272 |
if (!is_dir($this->archiveDir) && !mkdir($this->archiveDir, 0755, true)) {
|
273 |
+
$this->error = "Can't create directory for archive file.";
|
274 |
return false;
|
275 |
}
|
276 |
|
350 |
|
351 |
foreach ($chunks as $chunk) {
|
352 |
if (file_exists($chunk) && !unlink($chunk)) {
|
353 |
+
$this->error = sprintf('Can not clear archive\'s file: "%s".', $chunk);
|
354 |
return false;
|
355 |
}
|
356 |
}
|
366 |
protected function isCreatedArchive($archivePath)
|
367 |
{
|
368 |
if (!file_exists($archivePath)) {
|
369 |
+
$this->error = sprintf( "Didn't save archive with files \"%s\".", basename($archivePath) );
|
370 |
return false;
|
371 |
}
|
372 |
return true;
|
632 |
$archiveRootName = preg_replace('/(\.[0-9]+)?\.zip$/', '', $fileNameXml);
|
633 |
$postsXmlFile = "{$archiveRootName}.xml";
|
634 |
if (!isset($this->archiveFiles[$postsXmlFile])) {
|
635 |
+
$this->response['errors'][] = "Can't find import xml file in archive.";
|
636 |
}
|
637 |
$archiveKey = $this->archiveFiles[$postsXmlFile];
|
638 |
$archive = $this->archives[$archiveKey];
|
675 |
|
676 |
$xmlReader = new XMLReader();
|
677 |
if(false === $xmlReader->xml($xml)) {
|
678 |
+
$this->response['errors'][] = "Can't set xml content for reading.";
|
679 |
return $this->response;
|
680 |
}
|
681 |
|
682 |
while ($xmlReader->read() && self::TAG_POST_DATA != $xmlReader->localName);
|
683 |
if (self::TAG_POST_DATA != $xmlReader->localName) {
|
684 |
+
$this->response['errors'][] = 'Invalid document of import';
|
685 |
return $this->response;
|
686 |
}
|
687 |
|
845 |
$result = wp_insert_post($post, true);
|
846 |
if (is_wp_error($result)) {
|
847 |
$this->error = sprintf(
|
848 |
+
'Error insert post attachment with ID: "%d" and guid: "%s". %s',
|
849 |
$oldPostId,
|
850 |
$post['guid'],
|
851 |
$result->get_error_message()
|
901 |
protected function validateXml($xml)
|
902 |
{
|
903 |
if (0 !== strpos($xml, self::XML_DECLARATION)) {
|
904 |
+
$this->error = 'Invalid xml content.';
|
905 |
return false;
|
906 |
}
|
907 |
return true;
|
977 |
$result = wp_insert_post($post, true);
|
978 |
if (is_wp_error($result)) {
|
979 |
$this->response['errors'][] = sprintf(
|
980 |
+
'Error insert post with ID: "%d" and title: "%s". %s',
|
981 |
$oldPostId,
|
982 |
$post['post_title'],
|
983 |
$result->get_error_message()
|
1008 |
$result = add_post_meta($postId, $metaKey, $metaValue);
|
1009 |
if (false === $result) {
|
1010 |
$this->response['errors'][] = sprintf(
|
1011 |
+
'Error insert postmeta for post with ID %d. Meta key: "%s", meta value: "%s"',
|
1012 |
$postId,
|
1013 |
$metaKey,
|
1014 |
$metaValue
|
1060 |
$zip = new ZipArchive();
|
1061 |
|
1062 |
if(true !== $zip->open($path)) {
|
1063 |
+
$this->error = sprintf("Can't open archive \"%s\".", basename($path));
|
1064 |
return false;
|
1065 |
}
|
1066 |
$this->archives[$key] = $zip;
|
1082 |
protected function importFile($file)
|
1083 |
{
|
1084 |
if (!isset($this->archiveFiles[$file])) {
|
1085 |
+
$this->error = sprintf("Can't import file \"%s\". File is absent in archive", $file);
|
1086 |
return false;
|
1087 |
}
|
1088 |
|
1114 |
}
|
1115 |
|
1116 |
if (!file_exists($this->baseFilePath . $uploadDir) && mkdir($this->baseFilePath . $uploadDir, 0777, true)) {
|
1117 |
+
$this->error = sprintf("Can't create directory \"%s\" during import file.", $this->baseFilePath . $uploadDir);
|
1118 |
return false;
|
1119 |
}
|
1120 |
if (!touch($filePath) || !chmod($filePath, 0777)) {
|
1121 |
+
$this->error = sprintf("Can't create file \"%s\" during import file.", $file);
|
1122 |
return false;
|
1123 |
}
|
1124 |
file_put_contents($filePath, $archive->getFromName($file));
|
includes/extensions/backup/backup.form.php
CHANGED
@@ -35,7 +35,7 @@ if(!function_exists('rbs_get_file_upload_max_size')){
|
|
35 |
$upload_max = rbs_parse_size(ini_get('upload_max_filesize'));
|
36 |
|
37 |
if( (int) $upload_max ) return ($upload_max / 1024 / 1024).' Mb';
|
38 |
-
return
|
39 |
|
40 |
|
41 |
if ($upload_max > 0 && $upload_max < $max_size) {
|
@@ -98,7 +98,7 @@ if(!function_exists('rbs_get_file_upload_max_size')){
|
|
98 |
|
99 |
echo '<div class="card">';
|
100 |
if( isset($result['errors']) && count($result['errors']) ){
|
101 |
-
echo rbs_backup_error_message(
|
102 |
print_r($result['errors']);
|
103 |
} else {
|
104 |
|
35 |
$upload_max = rbs_parse_size(ini_get('upload_max_filesize'));
|
36 |
|
37 |
if( (int) $upload_max ) return ($upload_max / 1024 / 1024).' Mb';
|
38 |
+
return 'Error: Can\'t check Maximum Upload File Size';
|
39 |
|
40 |
|
41 |
if ($upload_max > 0 && $upload_max < $max_size) {
|
98 |
|
99 |
echo '<div class="card">';
|
100 |
if( isset($result['errors']) && count($result['errors']) ){
|
101 |
+
echo rbs_backup_error_message( 'Error Import ' );
|
102 |
print_r($result['errors']);
|
103 |
} else {
|
104 |
|
includes/extensions/rbs_create_post.php
CHANGED
@@ -4,17 +4,17 @@ if ( ! defined( 'WPINC' ) ) die;
|
|
4 |
if(!function_exists('rbs_create_article_button')){
|
5 |
add_action( 'admin_footer', 'rbs_create_article_button' );
|
6 |
function rbs_create_article_button(){
|
7 |
-
wp_enqueue_script(
|
8 |
|
9 |
echo ' <div id="rbs_actionWindow" class="hidden" '
|
10 |
-
.'data-title="'.__('Post manager','
|
11 |
-
.'data-close="'.__('Close').'" '
|
12 |
-
.'data-button="'.__('Create post','
|
13 |
.'>';
|
14 |
?>
|
15 |
<div id="rbs_actionWindowContent">
|
16 |
<h3> <span class="dashicons dashicons-update"></span>
|
17 |
-
<?php echo __('Loading . . . .
|
18 |
</div>
|
19 |
<?php
|
20 |
echo '</div>';
|
4 |
if(!function_exists('rbs_create_article_button')){
|
5 |
add_action( 'admin_footer', 'rbs_create_article_button' );
|
6 |
function rbs_create_article_button(){
|
7 |
+
wp_enqueue_script( 'rbs_create_post', ROBO_GALLERY_URL.'js/admin/extensions/create_post.js', array('jquery'), ROBO_GALLERY_VERSION, false);
|
8 |
|
9 |
echo ' <div id="rbs_actionWindow" class="hidden" '
|
10 |
+
.'data-title="'.__('Post manager', 'robo-gallery').'" '
|
11 |
+
.'data-close="'.__('Close', 'robo-gallery').'" '
|
12 |
+
.'data-button="'.__('Create post', 'robo-gallery').'" '
|
13 |
.'>';
|
14 |
?>
|
15 |
<div id="rbs_actionWindowContent">
|
16 |
<h3> <span class="dashicons dashicons-update"></span>
|
17 |
+
<?php echo __('Loading', 'robo-gallery'); ?> . . . . </h3>
|
18 |
</div>
|
19 |
<?php
|
20 |
echo '</div>';
|
includes/frontend/rbs_gallery_source.php
CHANGED
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
|
17 |
class roboGalleryImages{
|
18 |
public $id = 0;
|
19 |
-
public $cloneId
|
20 |
public $imgArray = array();
|
21 |
public $catArray = array();
|
22 |
public $tags = array();
|
@@ -24,8 +24,8 @@ class roboGalleryImages{
|
|
24 |
public $width = 0;
|
25 |
public $height = 0;
|
26 |
public $thumbsource = '';
|
27 |
-
public $orderby
|
28 |
-
public $lazyLoad
|
29 |
|
30 |
|
31 |
function __construct($id, $cloneId = 0){
|
16 |
|
17 |
class roboGalleryImages{
|
18 |
public $id = 0;
|
19 |
+
public $cloneId = 0;
|
20 |
public $imgArray = array();
|
21 |
public $catArray = array();
|
22 |
public $tags = array();
|
24 |
public $width = 0;
|
25 |
public $height = 0;
|
26 |
public $thumbsource = '';
|
27 |
+
public $orderby = '';
|
28 |
+
public $lazyLoad = 1;
|
29 |
|
30 |
|
31 |
function __construct($id, $cloneId = 0){
|
includes/options/rbs_gallery_options_copy.php
CHANGED
@@ -16,16 +16,12 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
|
17 |
if( isset($_GET['post']) ) $id = (int) $_GET['post'];
|
18 |
|
19 |
-
if(!$id && isset($_POST['post_ID']) ) $id= $_POST['post_ID'];
|
20 |
|
21 |
-
if(!$id) return ;
|
22 |
|
23 |
if( get_option( ROBO_GALLERY_PREFIX.'cloneBlock', 0 ) && !get_post_meta( $id, ROBO_GALLERY_PREFIX.'options', true ) ){
|
24 |
return ;
|
25 |
-
/*
|
26 |
-
echo $id . "=" . get_post_meta( $id, ROBO_GALLERY_PREFIX.'options', true ) . "=" . get_option( ROBO_GALLERY_PREFIX.'cloneBlock', 0 );
|
27 |
-
die();
|
28 |
-
*/
|
29 |
}
|
30 |
|
31 |
$copy_group = new_cmb2_box( array(
|
16 |
|
17 |
if( isset($_GET['post']) ) $id = (int) $_GET['post'];
|
18 |
|
19 |
+
if( !$id && isset($_POST['post_ID']) ) $id= $_POST['post_ID'];
|
20 |
|
21 |
+
if( !$id ) return ;
|
22 |
|
23 |
if( get_option( ROBO_GALLERY_PREFIX.'cloneBlock', 0 ) && !get_post_meta( $id, ROBO_GALLERY_PREFIX.'options', true ) ){
|
24 |
return ;
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
$copy_group = new_cmb2_box( array(
|
includes/options/rbs_gallery_options_size.php
CHANGED
@@ -25,7 +25,7 @@ $size_group = new_cmb2_box( array(
|
|
25 |
));
|
26 |
|
27 |
$size_group->add_field( array(
|
28 |
-
'name' => __('Width
|
29 |
'id' => ROBO_GALLERY_PREFIX . 'width-size',
|
30 |
'type' => 'multisize',
|
31 |
'default' => array( 'width'=> 100, 'widthType'=>''),
|
25 |
));
|
26 |
|
27 |
$size_group->add_field( array(
|
28 |
+
'name' => __('Width', 'rbs_gallery'),
|
29 |
'id' => ROBO_GALLERY_PREFIX . 'width-size',
|
30 |
'type' => 'multisize',
|
31 |
'default' => array( 'width'=> 100, 'widthType'=>''),
|
includes/rbs_class_activator.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
if(!defined('WPINC'))die;
|
16 |
if(!defined("ABSPATH"))exit;
|
17 |
|
18 |
-
class
|
19 |
public static function activate() {
|
20 |
delete_option("robo_gallery_after_install");
|
21 |
add_option( 'robo_gallery_after_install', '1' );
|
15 |
if(!defined('WPINC'))die;
|
16 |
if(!defined("ABSPATH"))exit;
|
17 |
|
18 |
+
class Robo_Gallery_Activator {
|
19 |
public static function activate() {
|
20 |
delete_option("robo_gallery_after_install");
|
21 |
add_option( 'robo_gallery_after_install', '1' );
|
js/admin/info.js
CHANGED
@@ -40,12 +40,12 @@ jQuery(function(){
|
|
40 |
'click' : function(){}
|
41 |
}
|
42 |
],
|
43 |
-
open: function( event, ui ) {}
|
44 |
});
|
45 |
window['roboGalleryDialog'] = roboGalleryDialog;
|
46 |
jQuery(".ui-dialog-titlebar-close").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close");
|
47 |
|
48 |
-
jQuery('.rbs-block-pro').click( function(event ){
|
49 |
event.preventDefault();
|
50 |
roboGalleryDialog.dialog("open");
|
51 |
});
|
40 |
'click' : function(){}
|
41 |
}
|
42 |
],
|
43 |
+
//open: function( event, ui ) {}
|
44 |
});
|
45 |
window['roboGalleryDialog'] = roboGalleryDialog;
|
46 |
jQuery(".ui-dialog-titlebar-close").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close");
|
47 |
|
48 |
+
jQuery('.rbs-block-pro').click( function( event ){
|
49 |
event.preventDefault();
|
50 |
roboGalleryDialog.dialog("open");
|
51 |
});
|
js/robo_gallery.js
CHANGED
@@ -49,7 +49,7 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
|
|
49 |
/*! Magnific Popup - v1.0.0 - 2015-01-03
|
50 |
* http://dimsemenov.com/plugins/magnific-popup/
|
51 |
* Copyright (c) 2015 Dmitry Semenov; */
|
52 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,h="mfp-ready",v="mfp-removing",C="mfp-prevent-close",y=function(){},w=!!window.jQuery,b=e(window),I=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},_=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var n=navigator.appVersion;t.isIE7=n.indexOf("MSIE 7.")!==-1,t.isIE8=n.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=_(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if(a=s[o],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(t.isOpen)return void t.updateItemHTML();t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,function(){t.close()}),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var d=c[o];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(u,function(e,t,n,i){n.close_replaceWith=T(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var f=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(f)){var v=t._getScrollbarSize();v&&(m.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),k("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(h),t._setFocus()):t.bgOverlay.addClass(h),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(f),k(p),n}},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(s);var n=v+" "+h+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",r),r?t.currTemplate[i]=e(r):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(C)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(u,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0]);if(i.length>0){var r=o[1];"replaceWith"===r?i[0]!==n[0]&&i.replaceWith(n):"img"===r?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(g+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,n){return E(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){E();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var S,P,O,z="inline",M=function(){O&&(P.after(O.addClass(S)).detach(),O=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),I(s+"."+z,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(P||(S=o.hiddenClass,P=x(S),S="mfp-"+S),O=r.after(P).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,F="ajax",H=function(){B&&e(document.body).removeClass(B)},L=function(){H(),t.req&&t.req.abort()};e.magnificPopup.registerModule(F,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(F),B=t.st.ajax.cursor,I(s+"."+F,L),I("BeforeChange."+F,L)},getAjax:function(n){B&&e(document.body).addClass(B),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};k("ParseAjax",a),t.appendContent(e(a.data),F),n.finished=!0,H(),t._setFocus(),setTimeout(function(){t.wrap.addClass(h)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){H(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var A,j=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),I(p+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),I(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+g)}),I("Resize"+i,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){A&&clearInterval(A),A=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(A),n++,void(3===n?o(10):40===n?o(50):100===n&&o(500)))},r)};o(1)},getImage:function(n,i){if(l=n.el,l.length&&l.hasClass("mfp-link"))return void t.close();var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):(o++,o<200?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:j(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(A&&clearInterval(A),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var N,W=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};I("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();r=c(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,k("ZoomAnimationEnded")},16)},a)},16)}}),I(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),I(s+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-r};return W()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var R="iframe",Z="//about:blank",q=function(e){if(t.currTemplate[R]){var n=t.currTemplate[R].find("iframe");n.length&&(e||(n[0].src=Z),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(R,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(R),I("BeforeChange",function(e,t,n){t!==n&&(t===R?q():n===R&&q(!0))}),I(s+"."+R,function(){q()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var D=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},K=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",a=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(r+=" mfp-gallery",I(p+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),I("UpdateStatus"+o,function(e,n){n.text&&(n.text=K(n.text,t.currItem.index,t.items.length))}),I(u+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?K(n.tCounter,r.index,a):""}),I("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(C),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(C),s=a?"mfpFastClick":"click";o[s](function(){t.prev()}),r[s](function(){t.next()}),t.isIE7&&(x("b",o[0],!1,!0),x("a",o[0],!1,!0),x("b",r[0],!1,!0),x("a",r[0],!1,!0)),t.container.append(o.add(r))}}),I(f+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void I(s+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&a&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=D(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=D(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=D(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var Y="retina";e.magnificPopup.registerModule(Y,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(I("ImageHasSize."+Y,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),I("ElementParse."+Y,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){b.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,b.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&b.off("touchmove"+r+" touchend"+r)}}(),E()});
|
53 |
/*
|
54 |
* @fileOverview TouchSwipe - jQuery Plugin
|
55 |
* @version 1.6.15
|
@@ -57,122 +57,13 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
|
|
57 |
* Copyright (c) 2010-2015 Matt Bryson
|
58 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
59 |
*/
|
60 |
-
/*
|
61 |
-
*
|
62 |
-
* Changelog
|
63 |
-
* $Date: 2010-12-12 (Wed, 12 Dec 2010) $
|
64 |
-
* $version: 1.0.0
|
65 |
-
* $version: 1.0.1 - removed multibyte comments
|
66 |
-
*
|
67 |
-
* $Date: 2011-21-02 (Mon, 21 Feb 2011) $
|
68 |
-
* $version: 1.1.0 - added allowPageScroll property to allow swiping and scrolling of page
|
69 |
-
* - changed handler signatures so one handler can be used for multiple events
|
70 |
-
* $Date: 2011-23-02 (Wed, 23 Feb 2011) $
|
71 |
-
* $version: 1.2.0 - added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler.
|
72 |
-
* - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object.
|
73 |
-
* $version: 1.2.1 - removed console log!
|
74 |
-
*
|
75 |
-
* $version: 1.2.2 - Fixed bug where scope was not preserved in callback methods.
|
76 |
-
*
|
77 |
-
* $Date: 2011-28-04 (Thurs, 28 April 2011) $
|
78 |
-
* $version: 1.2.4 - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring.
|
79 |
-
*
|
80 |
-
* $Date: 2011-27-09 (Tues, 27 September 2011) $
|
81 |
-
* $version: 1.2.5 - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy)
|
82 |
-
*
|
83 |
-
* $Date: 2012-14-05 (Mon, 14 May 2012) $
|
84 |
-
* $version: 1.2.6 - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected
|
85 |
-
*
|
86 |
-
* $Date: 2012-05-06 (Tues, 05 June 2012) $
|
87 |
-
* $version: 1.2.7 - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled.
|
88 |
-
*
|
89 |
-
* $Date: 2012-05-06 (Tues, 05 June 2012) $
|
90 |
-
* $version: 1.2.8 - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event.
|
91 |
-
*
|
92 |
-
* $Date: 2012-06-06 (Wed, 06 June 2012) $
|
93 |
-
* $version: 1.3.0 - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods
|
94 |
-
*
|
95 |
-
* $Date: 2012-05-06 (Fri, 05 June 2012) $
|
96 |
-
* $version: 1.3.1 - Bug fixes - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly.
|
97 |
-
*
|
98 |
-
* $Date: 2012-29-07 (Sun, 29 July 2012) $
|
99 |
-
* $version: 1.3.2 - Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices.
|
100 |
-
* - Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count
|
101 |
-
*
|
102 |
-
* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $
|
103 |
-
* $version: 1.3.3 - Code tidy prep for minefied version
|
104 |
-
*
|
105 |
-
* $Date: 2012-04-10 (wed, 4 Oct 2012) $
|
106 |
-
* $version: 1.4.0 - Added pinch support, pinchIn and pinchOut
|
107 |
-
*
|
108 |
-
* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $
|
109 |
-
* $version: 1.5.0 - Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements.
|
110 |
-
*
|
111 |
-
* $Date: 2012-22-10 (Mon, 22 Oct 2012) $
|
112 |
-
* $version: 1.5.1 - Fixed bug with jQuery 1.8 and trailing comma in excludedElements
|
113 |
-
* - Fixed bug with IE and eventPreventDefault()
|
114 |
-
* $Date: 2013-01-12 (Fri, 12 Jan 2013) $
|
115 |
-
* $version: 1.6.0 - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture.
|
116 |
-
* - made the demo site all static local HTML pages so they can be run locally by a developer
|
117 |
-
* - added jsDoc comments and added documentation for the plugin
|
118 |
-
* - code tidy
|
119 |
-
* - added triggerOnTouchLeave property that will end the event when the user swipes off the element.
|
120 |
-
* $Date: 2013-03-23 (Sat, 23 Mar 2013) $
|
121 |
-
* $version: 1.6.1 - Added support for ie8 touch events
|
122 |
-
* $version: 1.6.2 - Added support for events binding with on / off / bind in jQ for all callback names.
|
123 |
-
* - Deprecated the 'click' handler in favour of tap.
|
124 |
-
* - added cancelThreshold property
|
125 |
-
* - added option method to update init options at runtime
|
126 |
-
* $version 1.6.3 - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property
|
127 |
-
*
|
128 |
-
* $Date: 2013-04-04 (Thurs, 04 April 2013) $
|
129 |
-
* $version 1.6.4 - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back.
|
130 |
-
*
|
131 |
-
* $Date: 2013-08-24 (Sat, 24 Aug 2013) $
|
132 |
-
* $version 1.6.5 - Merged a few pull requests fixing various bugs, added AMD support.
|
133 |
-
*
|
134 |
-
* $Date: 2014-06-04 (Wed, 04 June 2014) $
|
135 |
-
* $version 1.6.6 - Merge of pull requests.
|
136 |
-
* - IE10 touch support
|
137 |
-
* - Only prevent default event handling on valid swipe
|
138 |
-
* - Separate license/changelog comment
|
139 |
-
* - Detect if the swipe is valid at the end of the touch event.
|
140 |
-
* - Pass fingerdata to event handlers.
|
141 |
-
* - Add 'hold' gesture
|
142 |
-
* - Be more tolerant about the tap distance
|
143 |
-
* - Typos and minor fixes
|
144 |
-
*
|
145 |
-
* $Date: 2015-22-01 (Thurs, 22 Jan 2015) $
|
146 |
-
* $version 1.6.7 - Added patch from https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/206 to fix memory leak
|
147 |
-
*
|
148 |
-
* $Date: 2015-2-2 (Mon, 2 Feb 2015) $
|
149 |
-
* $version 1.6.8 - Added preventDefaultEvents option to proxy events regardless.
|
150 |
-
* - Fixed issue with swipe and pinch not triggering at the same time
|
151 |
-
*
|
152 |
-
* $Date: 2015-9-6 (Tues, 9 June 2015) $
|
153 |
-
* $version 1.6.9 - Added PR from jdalton/hybrid to fix pointer events
|
154 |
-
* - Added scrolling demo
|
155 |
-
* - Added version property to plugin
|
156 |
-
*
|
157 |
-
* $Date: 2015-1-10 (Wed, 1 October 2015) $
|
158 |
-
* $version 1.6.10 - Added PR from beatspace to fix tap events
|
159 |
-
* $version 1.6.11 - Added PRs from indri-indri ( Doc tidyup), kkirsche ( Bower tidy up ), UziTech (preventDefaultEvents fixes )
|
160 |
-
* - Allowed setting multiple options via .swipe("options", options_hash) and more simply .swipe(options_hash) or exisitng instances
|
161 |
-
* $version 1.6.12 - Fixed bug with multi finger releases above 2 not triggering events
|
162 |
-
*
|
163 |
-
* $Date: 2015-12-18 (Fri, 18 December 2015) $
|
164 |
-
* $version 1.6.13 - Added PRs
|
165 |
-
* - Fixed #267 allowPageScroll not working correctly
|
166 |
-
* $version 1.6.14 - Fixed #220 / #248 doubletap not firing with swipes, #223 commonJS compatible
|
167 |
-
* $version 1.6.15 - More bug fixes
|
168 |
-
*/
|
169 |
-
!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=s),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(P);i||(i=new t(this,n),r.data(P,i))})}function t(n,t){function r(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=y,l?We=l.length:t.preventDefaultEvents!==!1&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===b||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,r===!1?(Ve=S,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==x&&Ve!==S&&!ae()){var r,i=n.touches,l=i?i[0]:n,o=fe(l);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=m,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=ye(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===b||!i||X()){if(je=Se(o.start,o.end),Ne=Se(o.last,o.end),C(e,Ne),Ue=me(o.start,o.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var u=!0;if(t.triggerOnTouchLeave){var a=Me(this);u=De(o.end,a)}!t.triggerOnTouchEnd&&u?Ve=U(m):t.triggerOnTouchLeave&&!u&&(Ve=U(x)),Ve!=S&&Ve!=x||j(n,Ve)}}else Ve=S,j(n,Ve);r===!1&&(Ve=S,j(n,Ve))}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?(Ve=S,j(n,Ve)):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===m?(t.preventDefaultEvents!==!1&&e.preventDefault(),Ve=x,j(n,Ve)):!t.triggerOnTouchEnd&&B()?(Ve=x,N(n,Ve,d)):Ve===m&&(Ve=S,j(n,Ve)),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&(Ve=U(x),j(n,Ve))}function I(){Ye.unbind(Le,r),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=S:!i||e!=m||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==x&&t.triggerOnTouchLeave&&(n=S):n=x,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,f)),(Y()||X())&&t!==!1&&(t=N(e,n,h)),ie()&&t!==!1?t=N(e,n,g):le()&&t!==!1?t=N(e,n,w):re()&&t!==!1&&(t=N(e,n,d)),n===S&&(W()&&(t=N(e,n,f)),X()&&(t=N(e,n,h)),k(e)),n===x&&(r?r.length||k(e):k(e)),t}function N(n,r,s){var p;if(s==f){if(Ye.trigger("swipeStatus",[r,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&(p=t.swipeStatus.call(Ye,n,r,je||null,Ue||0,He||0,We,ze,Ne),p===!1))return!1;if(r==x&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&(p=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne),p===!1))return!1;switch(je){case i:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(p=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(p=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(p=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case u:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(p=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==h){if(Ye.trigger("pinchStatus",[r,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&(p=t.pinchStatus.call(Ye,n,r,Fe||null,Ce||0,He||0,We,Qe,ze),p===!1))return!1;if(r==x&&F())switch(Fe){case a:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(p=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case c:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(p=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==d?r!==S&&r!==x||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(p=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(p=t.tap.call(Ye,n,n.target)))):s==g?r!==S&&r!==x||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(p=t.doubleTap.call(Ye,n,n.target))):s==w&&(r!==S&&r!==x||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(p=t.longTap.call(Ye,n,n.target)))),p}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){var e;return e=!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(t.preventDefaultEvents!==!1)if(t.allowPageScroll===s)e.preventDefault();else{var r=t.allowPageScroll===p;switch(n){case i:(t.swipeLeft&&r||!r&&t.allowPageScroll!=v)&&e.preventDefault();break;case l:(t.swipeRight&&r||!r&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeUp&&r||!r&&t.allowPageScroll!=T)&&e.preventDefault();break;case u:(t.swipeDown&&r||!r&&t.allowPageScroll!=T)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z(),i=_(),l=!i&&r&&t&&n&&e;return l}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===b||!O}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!O)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<E}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;if(Be){var n=Oe()-Be;n<=t.fingerReleaseThreshold&&(e=!0)}return e}function ce(){return!(Ye.data(P+"_intouch")!==!0)}function se(e){Ye&&(e===!0?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(P+"_intouch",e===!0))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e[u]=ve(u),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){var t=n/e*1;return t.toFixed(2)}function ye(){return Qe<1?c:a}function me(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function xe(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=xe(e,n);return t<=45&&t>=0?i:t<=360&&t>=315?i:t>=135&&t<=225?l:t>45&&t<135?u:o}function Oe(){var e=new Date;return e.getTime()}function Me(n){n=e(n);var t=n.offset(),r={left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()};return r}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=O||D||!t.fallbackToMouseEvents,Le=Pe?D?M?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?D?M?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?D?M?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?D?"mouseleave":null:"mouseleave",Ie=D?M?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,r),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on jQuery.swipe")}this.enable=function(){return Ye.bind(Le,r),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(P,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on jQuery.swipe.options")}return null}}var r="1.6.15",i="left",l="right",o="up",u="down",a="in",c="out",s="none",p="auto",f="swipe",h="pinch",d="tap",g="doubletap",w="longtap",v="horizontal",T="vertical",b="all",E=10,y="start",m="move",x="end",S="cancel",O="ontouchstart"in window,M=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!O,D=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!O,P="TouchSwipe",L={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(P);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version=r,e.fn.swipe.defaults=L,e.fn.swipe.phases={PHASE_START:y,PHASE_MOVE:m,PHASE_END:x,PHASE_CANCEL:S},e.fn.swipe.directions={LEFT:i,RIGHT:l,UP:o,DOWN:u,IN:a,OUT:c},e.fn.swipe.pageScroll={NONE:s,HORIZONTAL:v,VERTICAL:T,AUTO:p},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:b}});
|
170 |
/*
|
171 |
stackgrid.adem.js - adwm.co
|
172 |
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
173 |
Copyright (C) 2015 Andrew Prasetya
|
174 |
*/
|
175 |
-
!function(e,t,a){var i=function(i,o){function r(e){e.find(O+", ."+j).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var r=e.find(".rbs-lightbox").addBack(".rbs-lightbox");r.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&r.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&r.attr("mfp-alt",i.attr("data-alt"))})}function n(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),r=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0),s=r.data("thumbnail");if(r[0]==a&&(r=n,s=n.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||r.data("width")==a&&r.data("height")==a){o.attr("data-imageconverted","yes");var d=r.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" alt="'+d+'" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),r.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),r.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),r=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0);r[0]==a&&(r=n);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(r.width()-d),o.height(r.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),r=i.find("div[data-popup]").eq(0);o[0]==a&&(o=r);var n=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/n;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var r,n=e.find(O),s=!1;r="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",r),n.each(function(e){var i=t(this),n=i.data("columns");n!=a&&parseInt(o)>=parseInt(n)?s?i.css("width",parseFloat(100/o)*n+"%"):i.css("width",r*parseInt(n)):s?i.css("width",100/o+"%"):i.css("width",r)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),r=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(r=o.data("overlay-effect")),"push-up"==r||"push-down"==r||"push-up-100%"==r||"push-down-100%"==r){var n=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=r&&"push-down-100%"!=r||s.outerHeight(n.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==r||"push-up-100%"==r?s.appendTo(o):"push-down"!=r&&"push-down-100%"!=r||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==r||"reveal-top-100%"==r){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==r&&c.css("height","100%")}else if("reveal-bottom"==r||"reveal-bottom-100%"==r){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==r&&c.css("height","100%")}else if("direction"==r.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==r){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(O);i.each(function(){var i=t(this),o=i.find(R),r=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(r=o.data("overlay-effect")),"direction"==r.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+j),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var r=e[o];for(var t in e)if(t!=o)for(var n=e[t].split(","),s=0;s<n.length;s++){for(var d=r.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==n[s]?n[s]="":("*"==n[s]&&(n[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+n[s]);r=l.join(",")}return r}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+j),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){A--,0==A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(j).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+j);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+j);a.text().toLowerCase().indexOf(e.toLowerCase())!==-1&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var r=o.parsed?o.el:t(o);if(r.attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",j="rbs-img-hidden",F=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==F?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(j);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var r=t(this.element);t.waypoints("refresh"),r.addClass("lazy-load-ready"),r.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+j)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),r(h),n(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&n(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var r=i.attr("data-filter"),n="filter";o.data("id")!=a&&(n=o.data("id")),v(r,n),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),r="filter";e.data("id")!=a&&(r=e.data("id")),b(o,r)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var r=e.type,n=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===r?l.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===r?l.stop().show()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===r?n.stop().show()[F]({"margin-top":d},P.overlaySpeed,P.overlayEasing):n.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===r?n.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):n.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==r?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[F]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[F]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==r?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==r?(m.css({scale:1.4}),m[F]({scale:1},200)):(m.css({scale:1}),m[F]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),r=(t.y-e.offset().top-i/2)*(i>a?a/i:1),n=Math.round((Math.atan2(r,o)*(180/Math.PI)+180)/90+3)%4;return n},J=function(e,t){var a,i;switch(e){case 0:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+j+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var r=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+r+'" target="_blank"></a>');var n=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=n;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+r+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+r+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+r+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+r+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+r+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&jQuery("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());a="https://twitter.com/intent/tweet?url="+a+"&text="+i,$(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,$(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),this};t.fn.collagePlus=function(a){return this.each(function(o,r){var n=t(this);if(n.data("collagePlus"))return n.data("collagePlus");var s=new i(this,a);n.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function r(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function n(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),r()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");r(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",n)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",n)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,jQuery);
|
176 |
/*
|
177 |
* RoboGallery Script Version: 1.0
|
178 |
* Copyright (c) 2014-2016, Robosoft. All rights reserved.
|
49 |
/*! Magnific Popup - v1.0.0 - 2015-01-03
|
50 |
* http://dimsemenov.com/plugins/magnific-popup/
|
51 |
* Copyright (c) 2015 Dmitry Semenov; */
|
52 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.jQuery,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)},g=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=g(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var h,v,C,y=function(){C&&(v.after(C.addClass(h)).detach(),C=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(v||(h=o.hiddenClass,v=d(h),h="mfp-"+h),C=a.after(v).detach().removeClass(h)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var w,b=function(){w&&e(document.body).removeClass(w)},I=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),w=t.st.ajax.cursor,p("Close.ajax",I),p("BeforeChange.ajax",I)},getAjax:function(n){w&&e(document.body).addClass(w),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var T,E=function(){return void 0===T&&(T=void 0!==document.createElement("p").style.MozTransform),T};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return E()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var _=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?_():"iframe"===n&&_(!0))}),p("Close.iframe",function(){_()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var P=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?S(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=P(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=P(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=P(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
|
53 |
/*
|
54 |
* @fileOverview TouchSwipe - jQuery Plugin
|
55 |
* @version 1.6.15
|
57 |
* Copyright (c) 2010-2015 Matt Bryson
|
58 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
59 |
*/
|
60 |
+
!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=c),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(D);i||(i=new t(this,n),r.data(D,i))})}function t(n,t){function P(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=E,l?We=l.length:!1!==t.preventDefaultEvents&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===T||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,!1===r?(Ve=x,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==m&&Ve!==x&&!ae()){var r,i=n.touches,l=fe(i?i[0]:n);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=y,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=ye(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===T||!i||X()){if(je=Se(l.start,l.end),Ne=Se(l.last,l.end),C(e,Ne),Ue=me(l.start,l.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var o=!0;if(t.triggerOnTouchLeave){var u=Me(this);o=De(l.end,u)}!t.triggerOnTouchEnd&&o?Ve=U(y):t.triggerOnTouchLeave&&!o&&(Ve=U(m)),Ve!=x&&Ve!=m||j(n,Ve)}}else j(n,Ve=x);!1===r&&j(n,Ve=x)}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?j(n,Ve=x):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===y?(!1!==t.preventDefaultEvents&&e.preventDefault(),j(n,Ve=m)):!t.triggerOnTouchEnd&&B()?N(n,Ve=m,h):Ve===y&&j(n,Ve=x),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&j(n,Ve=U(m))}function I(){Ye.unbind(Le,P),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=x:!i||e!=y||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==m&&t.triggerOnTouchLeave&&(n=x):n=m,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,p)),(Y()||X())&&!1!==t&&(t=N(e,n,f)),ie()&&!1!==t?t=N(e,n,d):le()&&!1!==t?t=N(e,n,g):re()&&!1!==t&&(t=N(e,n,h)),n===x&&(W()&&(t=N(e,n,p)),X()&&(t=N(e,n,f)),k(e)),n===m&&(r?r.length||k(e):k(e)),t}function N(n,c,s){var w;if(s==p){if(Ye.trigger("swipeStatus",[c,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&!1===(w=t.swipeStatus.call(Ye,n,c,je||null,Ue||0,He||0,We,ze,Ne)))return!1;if(c==m&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&!1===(w=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne)))return!1;switch(je){case r:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(w=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case i:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(w=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(w=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(w=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==f){if(Ye.trigger("pinchStatus",[c,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&!1===(w=t.pinchStatus.call(Ye,n,c,Fe||null,Ce||0,He||0,We,Qe,ze)))return!1;if(c==m&&F())switch(Fe){case u:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(w=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case a:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(w=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==h?c!==x&&c!==m||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target)))):s==d?c!==x&&c!==m||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(w=t.doubleTap.call(Ye,n,n.target))):s==g&&(c!==x&&c!==m||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(w=t.longTap.call(Ye,n,n.target)))),w}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){return!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(!1!==t.preventDefaultEvents)if(t.allowPageScroll===c)e.preventDefault();else{var u=t.allowPageScroll===s;switch(n){case r:(t.swipeLeft&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case i:(t.swipeRight&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case l:(t.swipeUp&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeDown&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z();return!_()&&r&&t&&n&&e}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===T||!S}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!S)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<b}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;return Be&&Oe()-Be<=t.fingerReleaseThreshold&&(e=!0),e}function ce(){return!(!0!==Ye.data(D+"_intouch"))}function se(e){Ye&&(!0===e?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(D+"_intouch",!0===e))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[r]=ve(r),e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){return(n/e*1).toFixed(2)}function ye(){return Qe<1?a:u}function me(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function xe(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=xe(e,n);return t<=45&&t>=0?r:t<=360&&t>=315?r:t>=135&&t<=225?i:t>45&&t<135?o:l}function Oe(){return(new Date).getTime()}function Me(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=S||M||!t.fallbackToMouseEvents,Le=Pe?M?O?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?M?O?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?M?O?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?M?"mouseleave":null:"mouseleave",Ie=M?O?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,P),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on jQuery.swipe")}this.enable=function(){return Ye.bind(Le,P),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(D,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",a="out",c="none",s="auto",p="swipe",f="pinch",h="tap",d="doubletap",g="longtap",w="horizontal",v="vertical",T="all",b=10,E="start",y="move",m="end",x="cancel",S="ontouchstart"in window,O=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!S,M=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!S,D="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(D);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:E,PHASE_MOVE:y,PHASE_END:m,PHASE_CANCEL:x},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:a},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:w,VERTICAL:v,AUTO:s},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:T}});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
/*
|
62 |
stackgrid.adem.js - adwm.co
|
63 |
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
64 |
Copyright (C) 2015 Andrew Prasetya
|
65 |
*/
|
66 |
+
!function(e,t,a){var i=function(i,o){function n(e){e.find(O+", ."+j).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&n.attr("mfp-alt",i.attr("data-alt"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" alt="'+d+'" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(O);n="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?i.css("width",n*parseInt(r)):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=n&&"push-down-100%"!=n||s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):"push-down"!=n&&"push-down-100%"!=n||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){e.find(O).each(function(){var i=t(this).find(R),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+j),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var n=e[i];for(var t in e)if(t!=i)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){return k().not(".rbs-img-loaded")}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+j),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){0==--A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(j).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+j);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+j);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",j="rbs-img-hidden",F=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==F?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(j);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+j)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){z(t(this).val())}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[F]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[F]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[F]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[F]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[F]({scale:1},200)):(m.css({scale:1}),m[F]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4},J=function(e,t){var a,i;switch(e){case 0:P.reverse,a=0,i=-t.height();break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+j+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=r;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&jQuery("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&jQuery("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));$(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());$(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));$(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,jQuery);
|
67 |
/*
|
68 |
* RoboGallery Script Version: 1.0
|
69 |
* Copyright (c) 2014-2016, Robosoft. All rights reserved.
|
js/robo_gallery_alt.js
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* Date: 2015-04-28T16:19Z
|
13 |
*/
|
14 |
-
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("rbjQuer requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(ie.isFunction(t))return ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ie.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(de.test(t))return ie.filter(t,e,n);t=ie.filter(t,e)}return ie.grep(e,function(e){return ie.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=xe[e]={};return ie.each(e.match(be)||[],function(e,n){t[n]=!0}),t}function a(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ne.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ie.acceptData(e)){var i,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=J.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}function f(e,t,n){if(ie.acceptData(e)){var r,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):t in r?t=[t]:(t=ie.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Ce?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ce?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));return void 0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}function v(e){je.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ie.hasData(e)){var n,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[ie.expando]){i=ie._data(t);for(r in i.events)ie.removeEvent(t,r,i.handle);t.removeAttribute(ie.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!ie.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&je.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=ie(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:ie.css(i[0],"display");return i.detach(),o}function E(e){var t=he,n=Ze[e];return n||(n=N(e,t),"none"!==n&&n||(Ke=(Ke||ie("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Ke[0].contentWindow||Ke[0].contentDocument).document,t.write(),t.close(),n=N(e,t),Ke.detach()),Ze[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=dt.length;i--;)if(t=dt[i]+n,t in e)return t;return r}function A(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(o[a]=ie._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Ae(r)&&(o[a]=ie._data(r,"olddisplay",E(r.nodeName)))):(i=Ae(r),(n&&"none"!==n||!i)&&ie._data(r,"olddisplay",i?n:ie.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function D(e,t,n){var r=lt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function j(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ie.css(e,n+Se[o],!0,i)),r?("content"===n&&(a-=ie.css(e,"padding"+Se[o],!0,i)),"margin"!==n&&(a-=ie.css(e,"border"+Se[o]+"Width",!0,i))):(a+=ie.css(e,"padding"+Se[o],!0,i),"padding"!==n&&(a+=ie.css(e,"border"+Se[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=et(e),a=ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(i=tt(e,t,o),(i<0||null==i)&&(i=e.style[t]),rt.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+j(e,t,n||(a?"border":"content"),r,o)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function q(){return setTimeout(function(){pt=void 0}),pt=ie.now()}function _(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)n=Se[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(bt[t]||[]).concat(bt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function F(e,t,n){var r,i,o,a,s,l,u,c,f=this,d={},p=e.style,h=e.nodeType&&Ae(e),m=ie._data(e,"fxshow");n.queue||(s=ie._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,ie.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=ie.css(e,"display"),c="none"===u?ie._data(e,"olddisplay")||E(e.nodeName):u,"inline"===c&&"none"===ie.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ne.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],mt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}d[r]=m&&m[r]||ie.style(e,r)}else u=void 0;if(ie.isEmptyObject(d))"inline"===("none"===u?E(e.nodeName):u)&&(p.display=u);else{m?"hidden"in m&&(h=m.hidden):m=ie._data(e,"fxshow",{}),o&&(m.hidden=!h),h?ie(e).show():f.done(function(){ie(e).hide()}),f.done(function(){var t;ie._removeData(e,"fxshow");for(t in d)ie.style(e,t,d[t])});for(r in d)a=M(h?m[r]:0,r,f),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function O(e,t){var n,r,i,o,a;for(n in e)if(r=ie.camelCase(n),i=t[r],o=e[n],ie.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ie.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function B(e,t,n){var r,i,o=0,a=yt.length,s=ie.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=pt||q(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:ie.extend({},t),opts:ie.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:pt||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ie.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(O(c,u.opts.specialEasing);o<a;o++)if(r=yt[o].call(u,e,c,u.opts))return r;return ie.map(c,M,u),ie.isFunction(u.opts.start)&&u.opts.start.call(e,u),ie.fx.timer(ie.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(be)||[];if(ie.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function R(e,t,n,r){function i(s){var l;return o[s]=!0,ie.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===zt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function W(e,t){var n,r,i=ie.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&ie.extend(!0,e,n),e}function $(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function z(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function I(e,t,n,r){var i;if(ie.isArray(t))ie.each(t,function(t,i){n||Ut.test(e)?r(e,i):I(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ie.type(t))r(e,t);else for(i in t)I(e+"["+i+"]",t[i],n,r)}function X(){try{return new e.XMLHttpRequest}catch(e){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function V(e){return ie.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var J=[],Y=J.slice,G=J.concat,Q=J.push,K=J.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re="1.11.3",ie=function(e,t){return new ie.fn.init(e,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,se=/-([\da-z])/gi,le=function(e,t){return t.toUpperCase()};ie.fn=ie.prototype={rbjquer:re,constructor:ie,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:Y.call(this)},pushStack:function(e){var t=ie.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ie.each(this,e,t)},map:function(e){return this.pushStack(ie.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:J.sort,splice:J.splice},ie.extend=ie.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ie.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(u&&n&&(ie.isPlainObject(n)||(t=ie.isArray(n)))?(t?(t=!1,o=e&&ie.isArray(e)?e:[]):o=e&&ie.isPlainObject(e)?e:{},a[r]=ie.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},ie.extend({expando:"rbjQuer"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ie.type(e)},isArray:Array.isArray||function(e){return"array"===ie.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!ie.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ie.type(e)||e.nodeType||ie.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&ie.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ae,"ms-").replace(se,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;o<a&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;o<a&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(oe,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ie.merge(r,"string"==typeof e?[e]:e):Q.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(K)return K.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),l=[];if(s)for(;o<a;o++)i=t(e[o],o,r),null!=i&&l.push(i);else for(o in e)i=t(e[o],o,r),null!=i&&l.push(i);return G.apply([],l)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),ie.isFunction(e))return n=Y.call(arguments,2),r=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},r.guid=e.guid=e.guid||ie.guid++,r},now:function(){return+new Date},support:ne}),ie.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ue=/*!
|
15 |
* rbSizzl CSS Selector Engine v2.2.0-pre
|
16 |
* http://sizzlejs.com/
|
17 |
*
|
@@ -21,9 +21,7 @@
|
|
21 |
*
|
22 |
* Date: 2014-12-16
|
23 |
*/
|
24 |
-
function(e){function t(e,t,n,r){var i,o,a,s,l,u,f,p,h,m;if((t?t.ownerDocument||t:R)!==H&&L(t),t=t||H,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&_){if(11!==s&&(i=ye.exec(e)))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&B(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return K.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&w.getElementsByClassName)return K.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!M||!M.test(e))){if(p=f=P,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=E(e),(f=t.getAttribute("id"))?p=f.replace(xe,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+d(u[l]);h=be.test(e)&&c(t.parentNode)||t,m=u.join(",")}if(m)try{return K.apply(n,h.querySelectorAll(m)),n}catch(e){}finally{f||t.removeAttribute("id")}}}return S(e.replace(le,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[P]||(t[P]={}),(s=l[r])&&s[0]===W&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function v(e,t,n,i,o,a){return i&&!i[P]&&(i=v(i)),o&&!o[P]&&(o=v(o,a)),r(function(r,a,s,l){var u,c,f,d=[],p=[],h=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,d,e,s,l),b=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(u=g(b,p),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(b[p[c]]=!(y[p[c]]=f));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(y[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?ee(r,f):d[c])>-1&&(r[u]=!(a[u]=f))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):K.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;r<i&&!T.relative[e[r].type];r++);return v(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,s<r&&y(e.slice(s,r)),r<i&&y(e=e.slice(r)),r<i&&d(e))}c.push(n)}return h(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,p=0,h="0",m=r&&[],v=[],y=A,b=r||o&&T.find.TAG("*",u),x=W+=null==y?1:Math.random()||.1,w=b.length;for(u&&(A=a!==H&&a);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(W=x)}i&&((c=!d&&c)&&p--,r&&m.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(m,v,a,s);if(r){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=G.call(l));v=g(v)}K.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(W=x,A=y),m};return i?r(a):a}var x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M,F,O,B,P="sizzle"+1*new Date,R=e.document,W=0,$=0,z=n(),I=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,J={}.hasOwnProperty,Y=[],G=Y.pop,Q=Y.push,K=Y.push,Z=Y.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=re.replace("w","w#"),oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),fe=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(ae),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Te=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ce=function(){L()};try{K.apply(Y=Z.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(e){K={apply:Y.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},N=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),_=!N(r),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ve.test(r.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!r.getElementsByName||!r.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if(_)return t.getElementsByClassName(e)},F=[],M=[],(w.qsa=ve.test(r.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||M.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(w.matchesSelector=ve.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),F.push("!=",ae)}),M=M.length&&new RegExp(M.join("|")),F=F.length&&new RegExp(F.join("|")),t=ve.test(q.compareDocumentPosition),B=t||ve.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===R&&B(R,e)?-1:t===r||t.ownerDocument===R&&B(R,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:D?ee(D,e)-ee(D,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===R?-1:u[i]===R?1:0},r):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(fe,"='$1']"),w.matchesSelector&&_&&(!F||!F.test(n))&&(!M||!M.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&J.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(c=g[P]||(g[P]={}),u=c[e]||[],p=u[0]===W&&u[1],d=u[0]===W&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[W,p,d];break}}else if(y&&(u=(t[P]||(t[P]={}))[e])&&u[0]===W)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[P]||(f[P]={}))[e]=[W,d]),f!==t)););return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(le,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Te),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Te).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=l(x);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,E=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=I[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(le," ")}),s=s.slice(r.length));for(a in T.filter)!(i=he[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):I(e,l).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[P]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,f=!r&&E(e=u.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(we,Te),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((l=T.find[s])&&(r=l(a.matches[0].replace(we,Te),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return K.apply(n,r),n;break}}return(u||k(e,f))(r,t,!_,n,be.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ie.find=ue,ie.expr=ue.selectors,ie.expr[":"]=ie.expr.pseudos,ie.unique=ue.uniqueSort,ie.text=ue.getText,ie.isXMLDoc=ue.isXML,ie.contains=ue.contains;var ce=ie.expr.match.needsContext,fe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,de=/^.[^:#\[\.,]*$/;ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ie.find.matchesSelector(r,e)?[r]:[]:ie.find.matches(e,ie.grep(t,function(e){return 1===e.nodeType}))},ie.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ie(e).filter(function(){for(t=0;t<i;t++)if(ie.contains(r[t],this))return!0}));for(t=0;t<i;t++)ie.find(e,r[t],n);return n=this.pushStack(i>1?ie.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ce.test(e)?ie(e):e||[],!1).length}});var pe,he=e.document,me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ge=ie.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:me.exec(e),!n||!n[1]&&t)return!t||t.rbjquer?(t||pe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ie?t[0]:t,ie.merge(this,ie.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:he,!0)),fe.test(n[1])&&ie.isPlainObject(t))for(n in t)ie.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=he.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return pe.find(e);this.length=1,this[0]=r}return this.context=he,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ie.isFunction(e)?"undefined"!=typeof pe.ready?pe.ready(e):e(ie):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ie.makeArray(e,this))};ge.prototype=ie.fn,pe=ie(he);var ve=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ie.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!ie(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ie.fn.extend({has:function(e){var t,n=ie(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(ie.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ce.test(e)||"string"!=typeof e?ie(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ie.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ie.unique(o):o)},index:function(e){return e?"string"==typeof e?ie.inArray(this[0],ie(e)):ie.inArray(e.rbjquer?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ie.unique(ie.merge(this.get(),ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ie.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ie.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ie.dir(e,"nextSibling")},prevAll:function(e){return ie.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ie.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ie.dir(e,"previousSibling",n)},siblings:function(e){return ie.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ie.sibling(e.firstChild)},contents:function(e){return ie.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ie.merge([],e.childNodes)}},function(e,t){ie.fn[e]=function(n,r){var i=ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ie.filter(r,i)),this.length>1&&(ye[e]||(i=ie.unique(i)),ve.test(e)&&(i=i.reverse())),this.pushStack(i)}});var be=/\S+/g,xe={};ie.Callbacks=function(e){e="string"==typeof e?xe[e]||o(e):ie.extend({},e);var t,n,r,i,a,s,l=[],u=!e.once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&a<i;a++)if(l[a].apply(o[0],o[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:f.disable())},f={add:function(){if(l){var r=l.length;!function t(n){ie.each(n,function(n,r){var i=ie.type(r);"function"===i?e.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),t?i=l.length:n&&(s=r,c(n))}return this},remove:function(){return l&&ie.each(arguments,function(e,n){for(var r;(r=ie.inArray(n,l,r))>-1;)l.splice(r,1),t&&(r<=i&&i--,r<=a&&a--)}),this},has:function(e){return e?ie.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=n||[],n=[e,n.slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},ie.extend({Deferred:function(e){var t=[["resolve","done",ie.Callbacks("once memory"),"resolved"],["reject","fail",ie.Callbacks("once memory"),"rejected"],["notify","progress",ie.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ie.Deferred(function(n){ie.each(t,function(t,o){var a=ie.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ie.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ie.extend(e,r):r}},i={};return r.pipe=r.then,ie.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&ie.isFunction(e.promise)?a:0,l=1===s?e:ie.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&ie.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}});var we;ie.fn.ready=function(e){return ie.ready.promise().done(e),this},ie.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ie.readyWait++:ie.ready(!0)},ready:function(e){if(e===!0?!--ie.readyWait:!ie.isReady){if(!he.body)return setTimeout(ie.ready);ie.isReady=!0,e!==!0&&--ie.readyWait>0||(we.resolveWith(he,[ie]),ie.fn.triggerHandler&&(ie(he).triggerHandler("ready"),ie(he).off("ready")))}}}),ie.ready.promise=function(t){if(!we)if(we=ie.Deferred(),"complete"===he.readyState)setTimeout(ie.ready);else if(he.addEventListener)he.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{he.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&he.documentElement}catch(e){}n&&n.doScroll&&!function e(){if(!ie.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),ie.ready()}}()}return we.promise(t)};var Te,Ce="undefined";for(Te in ie(ne))break;ne.ownLast="0"!==Te,ne.inlineBlockNeedsLayout=!1,ie(function(){var e,t,n,r;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ce&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=he.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(e){ne.deleteExpando=!1}}e=null}(),ie.acceptData=function(e){var t=ie.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)};var Ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([A-Z])/g;ie.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ie.cache[e[ie.expando]]:e[ie.expando],!!e&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),ie.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ie.data(o),1===o.nodeType&&!ie._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ie.camelCase(r.slice(5)),l(o,r,i[r])));ie._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ie.data(this,e)}):arguments.length>1?this.each(function(){ie.data(this,e,t)}):o?l(o,e,ie.data(o,e)):void 0},removeData:function(e){return this.each(function(){ie.removeData(this,e)})}}),ie.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie._data(e,t),n&&(!r||ie.isArray(n)?r=ie._data(e,t,ie.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ie.queue(e,t),r=n.length,i=n.shift(),o=ie._queueHooks(e,t),a=function(){ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie._data(e,n)||ie._data(e,n,{empty:ie.Callbacks("once memory").add(function(){ie._removeData(e,t+"queue"),ie._removeData(e,n)})})}}),ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ie.queue(this[0],e):void 0===t?this:this.each(function(){var n=ie.queue(this,e,t);ie._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ie.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ie.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ie.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ie._data(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ke=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Se=["Top","Right","Bottom","Left"],Ae=function(e,t){return e=t||e,"none"===ie.css(e,"display")||!ie.contains(e.ownerDocument,e)},De=ie.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===ie.type(n)){i=!0;for(s in n)ie.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ie.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ie(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},je=/^(?:checkbox|radio)$/i;!function(){var e=he.createElement("input"),t=he.createElement("div"),n=he.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==he.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}}(),function(){var t,n,r=he.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=r.attributes[n].expando===!1);r=null}();var Le=/^(?:input|select|textarea)$/i,He=/^key/,qe=/^(?:mouse|pointer|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,Me=/^([^.]*)(?:\.(.+)|)$/;ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ie._data(e);if(g){for(n.handler&&(l=n,n=l.handler,i=l.selector),n.guid||(n.guid=ie.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof ie===Ce||e&&ie.event.triggered===e.type?void 0:ie.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(be)||[""],s=t.length;s--;)o=Me.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(u=ie.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=ie.event.special[p]||{},f=ie.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ie.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||(d=a[p]=[],d.delegateCount=0,u.setup&&u.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),ie.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ie.hasData(e)&&ie._data(e);if(g&&(c=g.events)){for(t=(t||"").match(be)||[""],u=t.length;u--;)if(s=Me.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=ie.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),
|
25 |
-
l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&f.teardown.call(e,h,g.handle)!==!1||ie.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ie.event.remove(e,p+t[u],n,r,!0);ie.isEmptyObject(c)&&(delete g.handle,ie._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||he],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||he,3!==r.nodeType&&8!==r.nodeType&&!_e.test(p+ie.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ie.expando]?t:new ie.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ie.makeArray(n,[t]),u=ie.event.special[p]||{},i||!u.trigger||u.trigger.apply(r,n)!==!1)){if(!i&&!u.noBubble&&!ie.isWindow(r)){for(l=u.delegateType||p,_e.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||he)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,o=(ie._data(s,"events")||{})[t.type]&&ie._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&ie.acceptData(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||u._default.apply(d.pop(),n)===!1)&&ie.acceptData(r)&&a&&r[p]&&!ie.isWindow(r)){c=r[a],c&&(r[a]=null),ie.event.triggered=p;try{r[p]()}catch(e){}ie.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=ie.event.fix(e);var t,n,r,i,o,a=[],s=Y.call(arguments),l=(ie._data(this,"events")||{})[e.type]||[],u=ie.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=ie.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,n=((ie.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],o=0;o<s;o++)r=t[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?ie(n,this).index(l)>=0:ie.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[ie.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=qe.test(i)?this.mouseHooks:He.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ie.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||he),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||he,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===h()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ie.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return ie.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ie.extend(new ie.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ie.event.trigger(i,null,t):ie.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ie.removeEvent=he.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===Ce&&(e[r]=null),e.detachEvent(r,n))},ie.Event=function(e,t){return this instanceof ie.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?d:p):this.type=e,t&&ie.extend(this,t),this.timeStamp=e&&e.timeStamp||ie.now(),void(this[ie.expando]=!0)):new ie.Event(e,t)},ie.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ie.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ie.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||ie.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(ie.event.special.submit={setup:function(){return!ie.nodeName(this,"form")&&void ie.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=ie.nodeName(t,"input")||ie.nodeName(t,"button")?t.form:void 0;n&&!ie._data(n,"submitBubbles")&&(ie.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),ie._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ie.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!ie.nodeName(this,"form")&&void ie.event.remove(this,"._submit")}}),ne.changeBubbles||(ie.event.special.change={setup:function(){return Le.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(ie.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ie.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ie.event.simulate("change",this,e,!0)})),!1):void ie.event.add(this,"beforeactivate._change",function(e){var t=e.target;Le.test(t.nodeName)&&!ie._data(t,"changeBubbles")&&(ie.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ie.event.simulate("change",this.parentNode,e,!0)}),ie._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return ie.event.remove(this,"._change"),!Le.test(this.nodeName)}}),ne.focusinBubbles||ie.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ie.event.simulate(t,e.target,ie.event.fix(e),!0)};ie.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ie._data(r,t);i||r.addEventListener(e,n,!0),ie._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ie._data(r,t)-1;i?ie._data(r,t,i):(r.removeEventListener(e,n,!0),ie._removeData(r,t))}}}),ie.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=p;else if(!r)return this;return 1===i&&(a=r,r=function(e){return ie().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=ie.guid++)),this.each(function(){ie.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ie(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=p),this.each(function(){ie.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){ie.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ie.event.trigger(e,t,n,!0)}});var Fe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Oe=/ rbjQuer\d+="(?:null|\d+)"/g,Be=new RegExp("<(?:"+Fe+")[\\s/>]","i"),Pe=/^\s+/,Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,We=/<([\w:]+)/,$e=/<tbody/i,ze=/<|&#?\w+;/,Ie=/<(?:script|style|link)/i,Xe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^$|\/(?:java|ecma)script/i,Ve=/^true\/(.*)/,Je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ye={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Ge=m(he),Qe=Ge.appendChild(he.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,ie.extend({clone:function(e,t,n){var r,i,o,a,s,l=ie.contains(e.ownerDocument,e);if(ne.html5Clone||ie.isXMLDoc(e)||!Be.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Qe.innerHTML=e.outerHTML,Qe.removeChild(o=Qe.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ie.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return r=g(o,"script"),r.length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h<f;h++)if(o=e[h],o||0===o)if("object"===ie.type(o))ie.merge(p,o.nodeType?[o]:o);else if(ze.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(We.exec(o)||["",""])[1].toLowerCase(),c=Ye[l]||Ye._default,s.innerHTML=c[1]+o.replace(Re,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Pe.test(o)&&p.push(t.createTextNode(Pe.exec(o)[0])),!ne.tbody)for(o="table"!==l||$e.test(o)?"<table>"!==c[1]||$e.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)ie.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(ie.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),ne.appendChecked||ie.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||ie.inArray(o,r)===-1)&&(a=ie.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ue.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ie.expando,l=ie.cache,u=ne.deleteExpando,c=ie.event.special;null!=(n=e[a]);a++)if((t||ie.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?ie.event.remove(n,r):ie.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==Ce?n.removeAttribute(s):n[s]=null,J.push(i))}}}),ie.fn.extend({text:function(e){return De(this,function(e){return void 0===e?ie.text(this):this.empty().append((this[0]&&this[0].ownerDocument||he).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ie.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ie.cleanData(g(n)),n.parentNode&&(t&&ie.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ie.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ie.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ie.clone(this,e,t)})},html:function(e){return De(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Oe,""):void 0;if("string"==typeof e&&!Ie.test(e)&&(ne.htmlSerialize||!Be.test(e))&&(ne.leadingWhitespace||!Pe.test(e))&&!Ye[(We.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Re,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(ie.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ie.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=G.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,f=u-1,d=e[0],p=ie.isFunction(d);if(p||u>1&&"string"==typeof d&&!ne.checkClone&&Xe.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=ie.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=ie.map(g(s,"script"),b),i=o.length;l<u;l++)r=s,l!==f&&(r=ie.clone(r,!0,!0),i&&ie.merge(o,g(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,ie.map(o,x),l=0;l<i;l++)r=o[l],Ue.test(r.type||"")&&!ie._data(r,"globalEval")&&ie.contains(a,r)&&(r.src?ie._evalUrl&&ie._evalUrl(r.src):ie.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Je,"")));s=n=null}return this}}),ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ie.fn[e]=function(e){for(var n,r=0,i=[],o=ie(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),ie(o[r])[t](n),Q.apply(i,n.get());return this.pushStack(i)}});var Ke,Ze={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=he.getElementsByTagName("body")[0],n&&n.style?(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ce&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(he.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var et,tt,nt=/^margin/,rt=new RegExp("^("+ke+")(?!px)[a-z%]+$","i"),it=/^(top|right|bottom|left)$/;e.getComputedStyle?(et=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ie.contains(e.ownerDocument,e)||(a=ie.style(e,t)),rt.test(a)&&nt.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):he.documentElement.currentStyle&&(et=function(e){return e.currentStyle},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),rt.test(a)&&!it.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(he.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;n=he.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=n.getElementsByTagName("a")[0],r=i&&i.style,r&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,ie.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),ie.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var ot=/alpha\([^)]*\)/i,at=/opacity\s*=\s*([^)]*)/,st=/^(none|table(?!-c[ea]).+)/,lt=new RegExp("^("+ke+")(.*)$","i"),ut=new RegExp("^([+-])=("+ke+")","i"),ct={position:"absolute",visibility:"hidden",display:"block"},ft={letterSpacing:"0",fontWeight:"400"},dt=["Webkit","O","Moz","ms"];ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie.camelCase(t),l=e.style;if(t=ie.cssProps[s]||(ie.cssProps[s]=S(l,s)),a=ie.cssHooks[t]||ie.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if(o=typeof n,"string"===o&&(i=ut.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(ie.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||ie.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=ie.camelCase(t);return t=ie.cssProps[s]||(ie.cssProps[s]=S(e.style,s)),a=ie.cssHooks[t]||ie.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=tt(e,t,r)),"normal"===o&&t in ft&&(o=ft[t]),""===n||n?(i=parseFloat(o),n===!0||ie.isNumeric(i)?i||0:o):o}}),ie.each(["height","width"],function(e,t){ie.cssHooks[t]={get:function(e,n,r){if(n)return st.test(ie.css(e,"display"))&&0===e.offsetWidth?ie.swap(e,ct,function(){return L(e,t,r)}):L(e,t,r)},set:function(e,n,r){var i=r&&et(e);return D(e,n,r?j(e,t,r,ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(ie.cssHooks.opacity={get:function(e,t){return at.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=ie.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ie.trim(o.replace(ot,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=ot.test(o)?o.replace(ot,i):o+" "+i)}}),ie.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){if(t)return ie.swap(e,{display:"inline-block"},tt,[e,"marginRight"])}),ie.each({margin:"",padding:"",border:"Width"},function(e,t){ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Se[r]+t]=o[r]||o[r-2]||o[0];return i}},nt.test(e)||(ie.cssHooks[e+t].set=D)}),ie.fn.extend({css:function(e,t){return De(this,function(e,t,n){var r,i,o={},a=0;if(ie.isArray(t)){for(r=et(e),i=t.length;a<i;a++)o[t[a]]=ie.css(e,t[a],!1,r);return o}return void 0!==n?ie.style(e,t,n):ie.css(e,t)},e,t,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ae(this)?ie(this).show():ie(this).hide()})}}),ie.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ie.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ie.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ie.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ie.fx.step[e.prop]?ie.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ie.cssProps[e.prop]]||ie.cssHooks[e.prop])?ie.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ie.fx=H.prototype.init,ie.fx.step={};var pt,ht,mt=/^(?:toggle|show|hide)$/,gt=new RegExp("^(?:([+-])=|)("+ke+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[F],bt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=gt.exec(t),o=i&&i[3]||(ie.cssNumber[e]?"":"px"),a=(ie.cssNumber[e]||"px"!==o&&+r)&>.exec(ie.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ie.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ie.Animation=ie.extend(B,{tweener:function(e,t){ie.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.push(e)}}),ie.speed=function(e,t,n){var r=e&&"object"==typeof e?ie.extend({},e):{complete:n||!n&&t||ie.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ie.isFunction(t)&&t};return r.duration=ie.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ie.fx.speeds?ie.fx.speeds[r.duration]:ie.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ie.isFunction(r.old)&&r.old.call(this),r.queue&&ie.dequeue(this,r.queue)},r},ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ie.isEmptyObject(e),o=ie.speed(t,n,r),a=function(){var t=B(this,ie.extend({},e),o);(i||ie._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ie.timers,a=ie._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&vt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||ie.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ie._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ie.timers,a=r?r.length:0;for(n.finish=!0,ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ie.each(["toggle","show","hide"],function(e,t){var n=ie.fn[t];ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}}),ie.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ie.timers=[],ie.fx.tick=function(){var e,t=ie.timers,n=0;for(pt=ie.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||ie.fx.stop(),pt=void 0},ie.fx.timer=function(e){ie.timers.push(e),e()?ie.fx.start():ie.timers.pop()},ie.fx.interval=13,ie.fx.start=function(){ht||(ht=setInterval(ie.fx.tick,ie.fx.interval))},ie.fx.stop=function(){clearInterval(ht),ht=null},ie.fx.speeds={slow:600,fast:200,_default:400},ie.fn.delay=function(e,t){return e=ie.fx?ie.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;t=he.createElement("div"),t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=he.createElement("select"),i=n.appendChild(he.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!he.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,e=he.createElement("input"),e.setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var xt=/\r/g;ie.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ie.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ie(this).val()):e,null==i?i="":"number"==typeof i?i+="":ie.isArray(i)&&(i=ie.map(i,function(e){return null==e?"":e+""})),t=ie.valHooks[this.type]||ie.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ie.valHooks[i.type]||ie.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(xt,""):null==n?"":n)}}}),ie.extend({valHooks:{option:{get:function(e){var t=ie.find.attr(e,"value");return null!=t?t:ie.trim(ie.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(n=r[l],(n.selected||l===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ie.nodeName(n.parentNode,"optgroup"))){if(t=ie(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ie.makeArray(t),a=i.length;a--;)if(r=i[a],ie.inArray(ie.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ie.each(["radio","checkbox"],function(){ie.valHooks[this]={set:function(e,t){if(ie.isArray(t))return e.checked=ie.inArray(ie(e).val(),t)>=0}},ne.checkOn||(ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt,Tt,Ct=ie.expr.attrHandle,Nt=/^(?:checked|selected)$/i,Et=ne.getSetAttribute,kt=ne.input;ie.fn.extend({attr:function(e,t){return De(this,ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ie.removeAttr(this,e)})}}),ie.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===Ce?ie.prop(e,t,n):(1===o&&ie.isXMLDoc(e)||(t=t.toLowerCase(),r=ie.attrHooks[t]||(ie.expr.match.bool.test(t)?Tt:wt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ie.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ie.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(be);if(o&&1===e.nodeType)for(;n=o[i++];)r=ie.propFix[n]||n,ie.expr.match.bool.test(n)?kt&&Et||!Nt.test(n)?e[r]=!1:e[ie.camelCase("default-"+n)]=e[r]=!1:ie.attr(e,n,""),e.removeAttribute(Et?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&ie.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Tt={set:function(e,t,n){return t===!1?ie.removeAttr(e,n):kt&&Et||!Nt.test(n)?e.setAttribute(!Et&&ie.propFix[n]||n,n):e[ie.camelCase("default-"+n)]=e[n]=!0,n}},ie.each(ie.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ct[t]||ie.find.attr;Ct[t]=kt&&Et||!Nt.test(t)?function(e,t,r){var i,o;return r||(o=Ct[t],Ct[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Ct[t]=o),i}:function(e,t,n){if(!n)return e[ie.camelCase("default-"+t)]?t.toLowerCase():null}}),kt&&Et||(ie.attrHooks.value={set:function(e,t,n){return ie.nodeName(e,"input")?void(e.defaultValue=t):wt&&wt.set(e,t,n)}}),Et||(wt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},Ct.id=Ct.name=Ct.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ie.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:wt.set},ie.attrHooks.contenteditable={set:function(e,t,n){wt.set(e,""!==t&&t,n)}},ie.each(["width","height"],function(e,t){ie.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),ne.style||(ie.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,At=/^(?:a|area)$/i;ie.fn.extend({prop:function(e,t){return De(this,ie.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ie.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),ie.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return o=1!==a||!ie.isXMLDoc(e),o&&(t=ie.propFix[t]||t,i=ie.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t];
|
26 |
-
},propHooks:{tabIndex:{get:function(e){var t=ie.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||ie.each(["href","src"],function(e,t){ie.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ie.propFix[this.toLowerCase()]=this}),ne.enctype||(ie.propFix.enctype="encoding");var Dt=/[\t\r\n\f]/g;ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(be)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=ie.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(be)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?ie.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ie.isFunction(e)?this.each(function(n){ie(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ie(this),o=e.match(be)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==Ce&&"boolean"!==n||(this.className&&ie._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ie._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dt," ").indexOf(t)>=0)return!0;return!1}}),ie.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ie.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var jt=ie.now(),Lt=/\?/,Ht=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ie.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=ie.trim(t+"");return i&&!ie.trim(i.replace(Ht,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():ie.error("Invalid JSON: "+t)},ie.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ie.error("Invalid XML: "+t),n};var qt,_t,Mt=/#.*$/,Ft=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Wt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$t={},zt={},It="*/".concat("*");try{_t=location.href}catch(e){_t=he.createElement("a"),_t.href="",_t=_t.href}qt=Wt.exec(_t.toLowerCase())||[],ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t,type:"GET",isLocal:Bt.test(qt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ie.parseJSON,"text xml":ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,ie.ajaxSettings),t):W(ie.ajaxSettings,e)},ajaxPrefilter:P($t),ajaxTransport:P(zt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(y=$(f,w,n)),y=z(f,y,w,i),i?(f.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ie.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(ie.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,i=!v)):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:v]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--ie.active||ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=ie.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.rbjquer)?ie(d):ie.event,h=ie.Deferred(),m=ie.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Ot.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||_t)+"").replace(Mt,"").replace(Rt,qt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=ie.trim(f.dataType||"*").toLowerCase().match(be)||[""],null==f.crossDomain&&(r=Wt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===qt[1]&&r[2]===qt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(qt[3]||("http:"===qt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ie.param(f.data,f.traditional)),R($t,f,t,w),2===b)return w;l=ie.event&&f.global,l&&0===ie.active++&&ie.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Pt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(Lt.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=Ft.test(o)?o.replace(Ft,"$1_="+jt++):o+(Lt.test(o)?"&":"?")+"_="+jt++)),f.ifModified&&(ie.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ie.lastModified[o]),ie.etag[o]&&w.setRequestHeader("If-None-Match",ie.etag[o])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+It+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(f.beforeSend.call(d,w,f)===!1||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=R(zt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(v,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ie.get(e,t,n,"json")},getScript:function(e,t){return ie.get(e,void 0,t,"script")}}),ie.each(["get","post"],function(e,t){ie[t]=function(e,n,r,i){return ie.isFunction(n)&&(i=i||r,r=n,n=void 0),ie.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ie._evalUrl=function(e){return ie.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ie.fn.extend({wrapAll:function(e){if(ie.isFunction(e))return this.each(function(t){ie(this).wrapAll(e.call(this,t))});if(this[0]){var t=ie(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ie.isFunction(e)?this.each(function(t){ie(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ie.isFunction(e);return this.each(function(n){ie(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ie.nodeName(this,"body")||ie(this).replaceWith(this.childNodes)}).end()}}),ie.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ie.css(e,"display"))},ie.expr.filters.visible=function(e){return!ie.expr.filters.hidden(e)};var Xt=/%20/g,Ut=/\[\]$/,Vt=/\r?\n/g,Jt=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;ie.param=function(e,t){var n,r=[],i=function(e,t){t=ie.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ie.ajaxSettings&&ie.ajaxSettings.traditional),ie.isArray(e)||e.rbjquer&&!ie.isPlainObject(e))ie.each(e,function(){i(this.name,this.value)});else for(n in e)I(n,e[n],t,i);return r.join("&").replace(Xt,"+")},ie.fn.extend({serialize:function(){return ie.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ie.prop(this,"elements");return e?ie.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ie(this).is(":disabled")&&Yt.test(this.nodeName)&&!Jt.test(e)&&(this.checked||!je.test(e))}).map(function(e,t){var n=ie(this).val();return null==n?null:ie.isArray(n)?ie.map(n,function(e){return{name:t.name,value:e.replace(Vt,"\r\n")}}):{name:t.name,value:n.replace(Vt,"\r\n")}}).get()}}),ie.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Gt=0,Qt={},Kt=ie.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Qt)Qt[e](void 0,!0)}),ne.cors=!!Kt&&"withCredentials"in Kt,Kt=ne.ajax=!!Kt,Kt&&ie.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Gt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Qt[a],t=void 0,o.onreadystatechange=ie.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Qt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ie.globalEval(e),e}}}),ie.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ie.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=he.head||ie("head")[0]||he.documentElement;return{send:function(r,i){t=he.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Zt=[],en=/(=)\?(?=&|$)|\?\?/;ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||ie.expando+"_"+jt++;return this[e]=!0,e}}),ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(en.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(en,"$1"+i):t.jsonp!==!1&&(t.url+=(Lt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ie.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Zt.push(i)),a&&ie.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ie.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||he;var r=fe.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie.buildFragment([e],t,i),i&&i.length&&ie(i).remove(),ie.merge([],r.childNodes))};var tn=ie.fn.load;ie.fn.load=function(e,t,n){if("string"!=typeof e&&tn)return tn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=ie.trim(e.slice(s,e.length)),e=e.slice(0,s)),ie.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&ie.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?ie("<div>").append(ie.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ie.fn[t]=function(e){return this.on(t,e)}}),ie.expr.filters.animated=function(e){return ie.grep(ie.timers,function(t){return e===t.elem}).length};var nn=e.document.documentElement;ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ie.css(e,"position"),f=ie(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=ie.css(e,"top"),l=ie.css(e,"left"),u=("absolute"===c||"fixed"===c)&&ie.inArray("auto",[o,l])>-1,u?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ie.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},ie.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ie.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,ie.contains(t,i)?(typeof i.getBoundingClientRect!==Ce&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ie.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ie.nodeName(e[0],"html")||(n=e.offset()),n.top+=ie.css(e[0],"borderTopWidth",!0),n.left+=ie.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ie.css(r,"marginTop",!0),left:t.left-n.left-ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||nn;e&&!ie.nodeName(e,"html")&&"static"===ie.css(e,"position");)e=e.offsetParent;return e||nn})}}),ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ie.fn[e]=function(r){return De(this,function(e,r,i){var o=V(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?ie(o).scrollLeft():i,n?i:ie(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),ie.each(["top","left"],function(e,t){ie.cssHooks[t]=k(ne.pixelPosition,function(e,n){if(n)return n=tt(e,t),rt.test(n)?ie(e).position()[t]+"px":n})}),ie.each({Height:"height",Width:"width"},function(e,t){ie.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ie.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return De(this,function(t,n,r){var i;return ie.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ie.css(t,n,a):ie.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),ie.fn.size=function(){return this.length},ie.fn.andSelf=ie.fn.addBack,"function"==typeof define&&define.amd&&define("rbjquer",[],function(){return ie});var rn=e.rbjQuer,on=e.$;return ie.noConflict=function(t){return e.$===ie&&(e.$=on),t&&e.rbjQuer===ie&&(e.rbjQuer=rn),ie},typeof t===Ce&&(e.rbjQuer=e.$=ie),ie});
|
27 |
/*!
|
28 |
* eventie v1.0.5
|
29 |
* event binding helper
|
@@ -85,7 +83,7 @@ https://github.com/imakewebthings/rbjquer-waypoints/blob/master/licenses.txt
|
|
85 |
/*! Magnific Popup - v1.0.0 - 2015-01-03
|
86 |
* http://dimsemenov.com/plugins/magnific-popup/
|
87 |
* Copyright (c) 2015 Dmitry Semenov; */
|
88 |
-
!function(e){"function"==typeof define&&define.amd?define(["rbjquer"],e):e("object"==typeof exports?require("rbjquer"):window.rbjQuer||window.Zepto)}(function(e){var t,n,i,o,r,a,s="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",p="Open",f="Change",m="mfp",g="."+m,h="mfp-ready",v="mfp-removing",C="mfp-prevent-close",y=function(){},w=!!window.rbjQuer,b=e(window),I=function(e,n){t.ev.on(m+e+g,n)},x=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},k=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},_=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var n=navigator.appVersion;t.isIE7=n.indexOf("MSIE 7.")!==-1,t.isIE8=n.indexOf("MSIE 8.")!==-1,t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=_(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if(a=s[o],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(t.isOpen)return void t.updateItemHTML();t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+g,function(){t.close()}),t.wrap=x("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(o=0;o<c.length;o++){var d=c[o];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}k("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(u,function(e,t,n,i){n.close_replaceWith=T(i.type)}),r+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var f=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(f)){var v=t._getScrollbarSize();v&&(m.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var C=t.st.mainClass;return t.isIE7&&(C+=" mfp-ie7"),C&&t._addClassToMFP(C),t.updateItemHTML(),k("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(h),t._setFocus()):t.bgOverlay.addClass(h),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(f),k(p),n}},close:function(){t.isOpen&&(k(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){k(s);var n=v+" "+h+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,k(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),k("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(k("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;k("FirstMarkupParse",r),r?t.currTemplate[i]=e(r):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,k(f,n),o=n.type,t.container.prepend(t.contentContainer),k("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",k(d),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,k("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var r=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(r||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(b.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};k("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(C)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),k(u,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0]);if(i.length>0){var r=o[1];"replaceWith"===r?i[0]!==n[0]&&i.replaceWith(n):"img"===r?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(g+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,n){return E(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){E();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=w?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var S,P,O,z="inline",M=function(){O&&(P.after(O.addClass(S)).detach(),O=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),I(s+"."+z,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(P||(S=o.hiddenClass,P=x(S),S="mfp-"+S),O=r.after(P).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,F="ajax",H=function(){B&&e(document.body).removeClass(B)},L=function(){H(),t.req&&t.req.abort()};e.magnificPopup.registerModule(F,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(F),B=t.st.ajax.cursor,I(s+"."+F,L),I("BeforeChange."+F,L)},getAjax:function(n){B&&e(document.body).addClass(B),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};k("ParseAjax",a),t.appendContent(e(a.data),F),n.finished=!0,H(),t._setFocus(),setTimeout(function(){t.wrap.addClass(h)},16),t.updateStatus("ready"),k("AjaxContentAdded")},error:function(){H(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var A,j=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),I(p+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),I(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+g)}),I("Resize"+i,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,k("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){A&&clearInterval(A),A=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(A),n++,void(3===n?o(10):40===n?o(50):100===n&&o(500)))},r)};o(1)},getImage:function(n,i){if(l=n.el,l.length&&l.hasClass("mfp-link"))return void t.close();var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,k("ImageLoadComplete")):(o++,o<200?setTimeout(r,100):a()))},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:j(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(A&&clearInterval(A),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var N,W=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},d=function(){t.content.css("visibility","visible")};I("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();r=c(e),r.css(t._getOffset()),t.wrap.append(r),o=setTimeout(function(){r.css(t._getOffset(!0)),o=setTimeout(function(){d(),setTimeout(function(){r.remove(),e=r=null,k("ZoomAnimationEnded")},16)},a)},16)}}),I(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(e=t._getItemToZoom(),!e)return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout(function(){r.css(t._getOffset())},16)}}),I(s+i,function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-a-r};return W()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var R="iframe",Z="//about:blank",q=function(e){if(t.currTemplate[R]){var n=t.currTemplate[R].find("iframe");n.length&&(e||(n[0].src=Z),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(R,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(R),I("BeforeChange",function(e,t,n){t!==n&&(t===R?q():n===R&&q(!0))}),I(s+"."+R,function(){q()})},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var D=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},K=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",a=Boolean(e.fn.mfpFastClick);return t.direction=!0,!(!n||!n.enabled)&&(r+=" mfp-gallery",I(p+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),I("UpdateStatus"+o,function(e,n){n.text&&(n.text=K(n.text,t.currItem.index,t.items.length))}),I(u+o,function(e,i,o,r){var a=t.items.length;o.counter=a>1?K(n.tCounter,r.index,a):""}),I("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(C),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(C),s=a?"mfpFastClick":"click";o[s](function(){t.prev()}),r[s](function(){t.next()}),t.isIE7&&(x("b",o[0],!1,!0),x("a",o[0],!1,!0),x("b",r[0],!1,!0),x("a",r[0],!1,!0)),t.container.append(o.add(r))}}),I(f+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void I(s+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&a&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=D(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=D(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=D(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),k("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,k("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var Y="retina";e.magnificPopup.registerModule(Y,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(I("ImageHasSize."+Y,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),I("ElementParse."+Y,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t=1e3,n="ontouchstart"in window,i=function(){b.off("touchmove"+r+" touchend"+r)},o="mfpFastClick",r="."+o;e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,s=e(this);if(n){var l,c,d,u,p,f;s.on("touchstart"+r,function(e){u=!1,f=1,p=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],c=p.clientX,d=p.clientY,b.on("touchmove"+r,function(e){p=e.originalEvent?e.originalEvent.touches:e.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-d)>10)&&(u=!0,i())}).on("touchend"+r,function(e){i(),u||f>1||(a=!0,e.preventDefault(),clearTimeout(l),l=setTimeout(function(){a=!1},t),o())})})}s.on("click"+r,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+r+" click"+r),n&&b.off("touchmove"+r+" touchend"+r)}}(),E()});
|
89 |
/*
|
90 |
* @fileOverview TouchSwipe - jQuery Plugin
|
91 |
* @version 1.6.15
|
@@ -99,122 +97,13 @@ https://github.com/imakewebthings/rbjquer-waypoints/blob/master/licenses.txt
|
|
99 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
100 |
*
|
101 |
*/
|
102 |
-
/*
|
103 |
-
*
|
104 |
-
* Changelog
|
105 |
-
* $Date: 2010-12-12 (Wed, 12 Dec 2010) $
|
106 |
-
* $version: 1.0.0
|
107 |
-
* $version: 1.0.1 - removed multibyte comments
|
108 |
-
*
|
109 |
-
* $Date: 2011-21-02 (Mon, 21 Feb 2011) $
|
110 |
-
* $version: 1.1.0 - added allowPageScroll property to allow swiping and scrolling of page
|
111 |
-
* - changed handler signatures so one handler can be used for multiple events
|
112 |
-
* $Date: 2011-23-02 (Wed, 23 Feb 2011) $
|
113 |
-
* $version: 1.2.0 - added click handler. This is fired if the user simply clicks and does not swipe. The event object and click target are passed to handler.
|
114 |
-
* - If you use the http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ plugin, you can also assign jQuery mouse events to children of a touchSwipe object.
|
115 |
-
* $version: 1.2.1 - removed console log!
|
116 |
-
*
|
117 |
-
* $version: 1.2.2 - Fixed bug where scope was not preserved in callback methods.
|
118 |
-
*
|
119 |
-
* $Date: 2011-28-04 (Thurs, 28 April 2011) $
|
120 |
-
* $version: 1.2.4 - Changed licence terms to be MIT or GPL inline with jQuery. Added check for support of touch events to stop non compatible browsers erroring.
|
121 |
-
*
|
122 |
-
* $Date: 2011-27-09 (Tues, 27 September 2011) $
|
123 |
-
* $version: 1.2.5 - Added support for testing swipes with mouse on desktop browser (thanks to https://github.com/joelhy)
|
124 |
-
*
|
125 |
-
* $Date: 2012-14-05 (Mon, 14 May 2012) $
|
126 |
-
* $version: 1.2.6 - Added timeThreshold between start and end touch, so user can ignore slow swipes (thanks to Mark Chase). Default is null, all swipes are detected
|
127 |
-
*
|
128 |
-
* $Date: 2012-05-06 (Tues, 05 June 2012) $
|
129 |
-
* $version: 1.2.7 - Changed time threshold to have null default for backwards compatibility. Added duration param passed back in events, and refactored how time is handled.
|
130 |
-
*
|
131 |
-
* $Date: 2012-05-06 (Tues, 05 June 2012) $
|
132 |
-
* $version: 1.2.8 - Added the possibility to return a value like null or false in the trigger callback. In that way we can control when the touch start/move should take effect or not (simply by returning in some cases return null; or return false;) This effects the ontouchstart/ontouchmove event.
|
133 |
-
*
|
134 |
-
* $Date: 2012-06-06 (Wed, 06 June 2012) $
|
135 |
-
* $version: 1.3.0 - Refactored whole plugin to allow for methods to be executed, as well as exposed defaults for user override. Added 'enable', 'disable', and 'destroy' methods
|
136 |
-
*
|
137 |
-
* $Date: 2012-05-06 (Fri, 05 June 2012) $
|
138 |
-
* $version: 1.3.1 - Bug fixes - bind() with false as last argument is no longer supported in jQuery 1.6, also, if you just click, the duration is now returned correctly.
|
139 |
-
*
|
140 |
-
* $Date: 2012-29-07 (Sun, 29 July 2012) $
|
141 |
-
* $version: 1.3.2 - Added fallbackToMouseEvents option to NOT capture mouse events on non touch devices.
|
142 |
-
* - Added "all" fingers value to the fingers property, so any combination of fingers triggers the swipe, allowing event handlers to check the finger count
|
143 |
-
*
|
144 |
-
* $Date: 2012-09-08 (Thurs, 9 Aug 2012) $
|
145 |
-
* $version: 1.3.3 - Code tidy prep for minefied version
|
146 |
-
*
|
147 |
-
* $Date: 2012-04-10 (wed, 4 Oct 2012) $
|
148 |
-
* $version: 1.4.0 - Added pinch support, pinchIn and pinchOut
|
149 |
-
*
|
150 |
-
* $Date: 2012-11-10 (Thurs, 11 Oct 2012) $
|
151 |
-
* $version: 1.5.0 - Added excludedElements, a jquery selector that specifies child elements that do NOT trigger swipes. By default, this is one select that removes all form, input select, button and anchor elements.
|
152 |
-
*
|
153 |
-
* $Date: 2012-22-10 (Mon, 22 Oct 2012) $
|
154 |
-
* $version: 1.5.1 - Fixed bug with jQuery 1.8 and trailing comma in excludedElements
|
155 |
-
* - Fixed bug with IE and eventPreventDefault()
|
156 |
-
* $Date: 2013-01-12 (Fri, 12 Jan 2013) $
|
157 |
-
* $version: 1.6.0 - Fixed bugs with pinching, mainly when both pinch and swipe enabled, as well as adding time threshold for multifinger gestures, so releasing one finger beofre the other doesnt trigger as single finger gesture.
|
158 |
-
* - made the demo site all static local HTML pages so they can be run locally by a developer
|
159 |
-
* - added jsDoc comments and added documentation for the plugin
|
160 |
-
* - code tidy
|
161 |
-
* - added triggerOnTouchLeave property that will end the event when the user swipes off the element.
|
162 |
-
* $Date: 2013-03-23 (Sat, 23 Mar 2013) $
|
163 |
-
* $version: 1.6.1 - Added support for ie8 touch events
|
164 |
-
* $version: 1.6.2 - Added support for events binding with on / off / bind in jQ for all callback names.
|
165 |
-
* - Deprecated the 'click' handler in favour of tap.
|
166 |
-
* - added cancelThreshold property
|
167 |
-
* - added option method to update init options at runtime
|
168 |
-
* $version 1.6.3 - added doubletap, longtap events and longTapThreshold, doubleTapThreshold property
|
169 |
-
*
|
170 |
-
* $Date: 2013-04-04 (Thurs, 04 April 2013) $
|
171 |
-
* $version 1.6.4 - Fixed bug with cancelThreshold introduced in 1.6.3, where swipe status no longer fired start event, and stopped once swiping back.
|
172 |
-
*
|
173 |
-
* $Date: 2013-08-24 (Sat, 24 Aug 2013) $
|
174 |
-
* $version 1.6.5 - Merged a few pull requests fixing various bugs, added AMD support.
|
175 |
-
*
|
176 |
-
* $Date: 2014-06-04 (Wed, 04 June 2014) $
|
177 |
-
* $version 1.6.6 - Merge of pull requests.
|
178 |
-
* - IE10 touch support
|
179 |
-
* - Only prevent default event handling on valid swipe
|
180 |
-
* - Separate license/changelog comment
|
181 |
-
* - Detect if the swipe is valid at the end of the touch event.
|
182 |
-
* - Pass fingerdata to event handlers.
|
183 |
-
* - Add 'hold' gesture
|
184 |
-
* - Be more tolerant about the tap distance
|
185 |
-
* - Typos and minor fixes
|
186 |
-
*
|
187 |
-
* $Date: 2015-22-01 (Thurs, 22 Jan 2015) $
|
188 |
-
* $version 1.6.7 - Added patch from https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/issues/206 to fix memory leak
|
189 |
-
*
|
190 |
-
* $Date: 2015-2-2 (Mon, 2 Feb 2015) $
|
191 |
-
* $version 1.6.8 - Added preventDefaultEvents option to proxy events regardless.
|
192 |
-
* - Fixed issue with swipe and pinch not triggering at the same time
|
193 |
-
*
|
194 |
-
* $Date: 2015-9-6 (Tues, 9 June 2015) $
|
195 |
-
* $version 1.6.9 - Added PR from jdalton/hybrid to fix pointer events
|
196 |
-
* - Added scrolling demo
|
197 |
-
* - Added version property to plugin
|
198 |
-
*
|
199 |
-
* $Date: 2015-1-10 (Wed, 1 October 2015) $
|
200 |
-
* $version 1.6.10 - Added PR from beatspace to fix tap events
|
201 |
-
* $version 1.6.11 - Added PRs from indri-indri ( Doc tidyup), kkirsche ( Bower tidy up ), UziTech (preventDefaultEvents fixes )
|
202 |
-
* - Allowed setting multiple options via .swipe("options", options_hash) and more simply .swipe(options_hash) or exisitng instances
|
203 |
-
* $version 1.6.12 - Fixed bug with multi finger releases above 2 not triggering events
|
204 |
-
*
|
205 |
-
* $Date: 2015-12-18 (Fri, 18 December 2015) $
|
206 |
-
* $version 1.6.13 - Added PRs
|
207 |
-
* - Fixed #267 allowPageScroll not working correctly
|
208 |
-
* $version 1.6.14 - Fixed #220 / #248 doubletap not firing with swipes, #223 commonJS compatible
|
209 |
-
* $version 1.6.15 - More bug fixes
|
210 |
-
*/
|
211 |
-
!function(e){"function"==typeof define&&define.amd&&define.amd.rbjQuer?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):rbjQuer)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=s),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(P);i||(i=new t(this,n),r.data(P,i))})}function t(n,t){function r(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=m,l?We=l.length:t.preventDefaultEvents!==!1&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===b||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,r===!1?(Ve=S,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==y&&Ve!==S&&!ae()){var r,i=n.touches,l=i?i[0]:n,o=fe(l);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=x,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=me(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===b||!i||X()){if(je=Se(o.start,o.end),Ne=Se(o.last,o.end),C(e,Ne),Ue=xe(o.start,o.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var u=!0;if(t.triggerOnTouchLeave){var a=Me(this);u=De(o.end,a)}!t.triggerOnTouchEnd&&u?Ve=U(x):t.triggerOnTouchLeave&&!u&&(Ve=U(y)),Ve!=S&&Ve!=y||j(n,Ve)}}else Ve=S,j(n,Ve);r===!1&&(Ve=S,j(n,Ve))}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?(Ve=S,j(n,Ve)):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===x?(t.preventDefaultEvents!==!1&&e.preventDefault(),Ve=y,j(n,Ve)):!t.triggerOnTouchEnd&&B()?(Ve=y,N(n,Ve,d)):Ve===x&&(Ve=S,j(n,Ve)),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&(Ve=U(y),j(n,Ve))}function I(){Ye.unbind(Le,r),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=S:!i||e!=x||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==y&&t.triggerOnTouchLeave&&(n=S):n=y,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,f)),(Y()||X())&&t!==!1&&(t=N(e,n,h)),ie()&&t!==!1?t=N(e,n,g):le()&&t!==!1?t=N(e,n,w):re()&&t!==!1&&(t=N(e,n,d)),n===S&&(W()&&(t=N(e,n,f)),X()&&(t=N(e,n,h)),k(e)),n===y&&(r?r.length||k(e):k(e)),t}function N(n,r,s){var p;if(s==f){if(Ye.trigger("swipeStatus",[r,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&(p=t.swipeStatus.call(Ye,n,r,je||null,Ue||0,He||0,We,ze,Ne),p===!1))return!1;if(r==y&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&(p=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne),p===!1))return!1;switch(je){case i:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(p=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(p=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(p=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case u:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(p=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==h){if(Ye.trigger("pinchStatus",[r,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&(p=t.pinchStatus.call(Ye,n,r,Fe||null,Ce||0,He||0,We,Qe,ze),p===!1))return!1;if(r==y&&F())switch(Fe){case a:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(p=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case c:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(p=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==d?r!==S&&r!==y||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(p=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(p=t.tap.call(Ye,n,n.target)))):s==g?r!==S&&r!==y||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(p=t.doubleTap.call(Ye,n,n.target))):s==w&&(r!==S&&r!==y||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(p=t.longTap.call(Ye,n,n.target)))),p}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){var e;return e=!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(t.preventDefaultEvents!==!1)if(t.allowPageScroll===s)e.preventDefault();else{var r=t.allowPageScroll===p;switch(n){case i:(t.swipeLeft&&r||!r&&t.allowPageScroll!=v)&&e.preventDefault();break;case l:(t.swipeRight&&r||!r&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeUp&&r||!r&&t.allowPageScroll!=T)&&e.preventDefault();break;case u:(t.swipeDown&&r||!r&&t.allowPageScroll!=T)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z(),i=_(),l=!i&&r&&t&&n&&e;return l}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===b||!O}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!O)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<E}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;if(Be){var n=Oe()-Be;n<=t.fingerReleaseThreshold&&(e=!0)}return e}function ce(){return!(Ye.data(P+"_intouch")!==!0)}function se(e){Ye&&(e===!0?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(P+"_intouch",e===!0))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e[u]=ve(u),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){var t=n/e*1;return t.toFixed(2)}function me(){return Qe<1?c:a}function xe(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function ye(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=ye(e,n);return t<=45&&t>=0?i:t<=360&&t>=315?i:t>=135&&t<=225?l:t>45&&t<135?u:o}function Oe(){var e=new Date;return e.getTime()}function Me(n){n=e(n);var t=n.offset(),r={left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()};return r}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=O||D||!t.fallbackToMouseEvents,Le=Pe?D?M?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?D?M?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?D?M?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?D?"mouseleave":null:"mouseleave",Ie=D?M?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,r),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on rbjQuer.swipe")}this.enable=function(){return Ye.bind(Le,r),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(P,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on rbjQuer.swipe.options")}return null}}var r="1.6.15",i="left",l="right",o="up",u="down",a="in",c="out",s="none",p="auto",f="swipe",h="pinch",d="tap",g="doubletap",w="longtap",v="horizontal",T="vertical",b="all",E=10,m="start",x="move",y="end",S="cancel",O="ontouchstart"in window,M=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!O,D=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!O,P="TouchSwipe",L={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(P);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on rbjQuer.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version=r,e.fn.swipe.defaults=L,e.fn.swipe.phases={PHASE_START:m,PHASE_MOVE:x,PHASE_END:y,PHASE_CANCEL:S},e.fn.swipe.directions={LEFT:i,RIGHT:l,UP:o,DOWN:u,IN:a,OUT:c},e.fn.swipe.pageScroll={NONE:s,HORIZONTAL:v,VERTICAL:T,AUTO:p},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:b}});
|
212 |
/*
|
213 |
stackgrid.adem.js - adwm.co
|
214 |
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
215 |
Copyright (C) 2015 Andrew Prasetya
|
216 |
*/
|
217 |
-
!function(e,t,a){var i=function(i,o){function r(e){e.find(O+", ."+F).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var r=e.find(".rbs-lightbox").addBack(".rbs-lightbox");r.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&r.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&r.attr("mfp-alt",i.attr("data-alt"))})}function n(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),r=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0),s=r.data("thumbnail");if(r[0]==a&&(r=n,s=n.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||r.data("width")==a&&r.data("height")==a){o.attr("data-imageconverted","yes");var d=r.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),r.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),r.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images){var t=e.images[index];o(t)}}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),r=o.find("div[data-thumbnail]").eq(0),n=o.find("div[data-popup]").eq(0);r[0]==a&&(r=n);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(r.width()-d),o.height(r.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),r=i.find("div[data-popup]").eq(0);o[0]==a&&(o=r);var n=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/n;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var r,n=e.find(O),s=!1;r="auto"==i?s?100/o+"%":Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",r),n.each(function(e){var i=t(this),n=i.data("columns");n!=a&&parseInt(o)>=parseInt(n)?s?i.css("width",parseFloat(100/o)*n+"%"):i.css("width",r*parseInt(n)):s?i.css("width",100/o+"%"):i.css("width",r)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes}),i=e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes");i.wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),r=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(r=o.data("overlay-effect")),"push-up"==r||"push-down"==r||"push-up-100%"==r||"push-down-100%"==r){var n=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=r&&"push-down-100%"!=r||s.outerHeight(n.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==r||"push-up-100%"==r?s.appendTo(o):"push-down"!=r&&"push-down-100%"!=r||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==r||"reveal-top-100%"==r){i.addClass("position-reveal-effect");var c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==r&&c.css("height","100%")}else if("reveal-bottom"==r||"reveal-bottom-100%"==r){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==r&&c.css("height","100%")}else if("direction"==r.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==r){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){var i=e.find(O);i.each(function(){var i=t(this),o=i.find(R),r=e.data("settings").overlayEffect;o.data("overlay-effect")!=a&&(r=o.data("overlay-effect")),"direction"==r.substr(0,9)&&o.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+F),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e){var i=e[t];i==a&&(e[t]="*")}var o="";for(var t in e){var i=e[t];""==o?o=t:o.split(",").length<i.split(",").length&&(o=t)}var r=e[o];for(var t in e)if(t!=o)for(var n=e[t].split(","),s=0;s<n.length;s++){for(var d=r.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==n[s]?n[s]="":("*"==n[s]&&(n[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+n[s]);r=l.join(",")}return r}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){var e=k().not(".rbs-img-loaded");return e}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+F),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){A--,0==A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(F).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+F);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+F);a.text().toLowerCase().indexOf(e.toLowerCase())!==-1&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1],t=e;return{hash:e,src:t}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){var r=o.parsed?o.el:t(o);if(r.attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",F="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(F);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var r=t(this.element);t.waypoints("refresh"),r.addClass("lazy-load-ready"),r.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+F)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),r(h),n(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&n(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var r=i.attr("data-filter"),n="filter";o.data("id")!=a&&(n=o.data("id")),v(r,n),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),r="filter";e.data("id")!=a&&(r=e.data("id")),b(o,r)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){var e=t(this).val();z(e)}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var r=e.type,n=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===r?l.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===r?l.stop().show()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===r?n.stop().show()[j]({"margin-top":d},P.overlaySpeed,P.overlayEasing):n.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===r?n.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):n.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==r?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==r?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==r?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),r=(t.y-e.offset().top-i/2)*(i>a?a/i:1),n=Math.round((Math.atan2(r,o)*(180/Math.PI)+180)/90+3)%4;return n},J=function(e,t){var a,i;switch(e){case 0:P.reverse?(a=0,i=-t.height()):(a=0,i=-t.height());break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+F+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){var e=t.magnificPopup.instance;e.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");"undefined"!=typeof o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var r=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+r+'" target="_blank"></a>');var n=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=n;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+r+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+r+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+r+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+r+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+r+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&t("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){var a=e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400");a.moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a,$(i)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());a="https://twitter.com/intent/tweet?url="+a+"&text="+i,$(a)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));a="https://plus.google.com/share?url="+a,$(a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o,$(a)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o,$(a)}),this};t.fn.collagePlus=function(a){return this.each(function(o,r){var n=t(this);if(n.data("collagePlus"))return n.data("collagePlus");var s=new i(this,a);n.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function r(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function n(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),r()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");r(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",n)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",n)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,rbjQuer);
|
218 |
/*
|
219 |
* RoboGallery Version: 1.0
|
220 |
* Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
|
11 |
*
|
12 |
* Date: 2015-04-28T16:19Z
|
13 |
*/
|
14 |
+
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("rbjQuer requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=re.type(e);return"function"!==n&&!re.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(fe.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return re.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=ye[e]={};return re.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function a(){pe.addEventListener?(pe.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(pe.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(pe.addEventListener||"load"===event.type||"complete"===pe.readyState)&&(a(),re.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ce,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Te.test(n)?re.parseJSON(n):n)}catch(e){}re.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!re.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(re.acceptData(e)){var i,o,a=re.expando,s=e.nodeType,l=s?re.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=J.pop()||re.guid++:a),l[u]||(l[u]=s?{}:{toJSON:re.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=re.extend(l[u],t):l[u].data=re.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[re.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[re.camelCase(t)]):i=o,i}}function f(e,t,n){if(re.acceptData(e)){var r,i,o=e.nodeType,a=o?re.cache:e,s=o?e[re.expando]:re.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=re.isArray(t)?t.concat(re.map(t,re.camelCase)):t in r?[t]:(t=re.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!re.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?re.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return pe.activeElement}catch(e){}}function m(e){var t=_e.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==we?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||re.nodeName(r,t)?o.push(r):re.merge(o,g(r,t));return void 0===t||t&&re.nodeName(e,t)?re.merge([e],o):o}function v(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==re.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Xe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)re._data(n,"globalEval",!t||re._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&re.hasData(e)){var n,r,i,o=re._data(e),a=re._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)re.event.add(t,n,s[n][r])}a.data&&(a.data=re.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[re.expando]){i=re._data(t);for(r in i.events)re.removeEvent(t,r,i.handle);t.removeAttribute(re.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!re.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ae.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=re(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:re.css(i[0],"display");return i.detach(),o}function E(e){var t=pe,n=Ge[e];return n||("none"!==(n=N(e,t))&&n||((t=((Ye=(Ye||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ye[0].contentDocument).document).write(),t.close(),n=N(e,t),Ye.detach()),Ge[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=ut.length;i--;)if((t=ut[i]+n)in e)return t;return r}function A(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=re._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&ke(r)&&(o[a]=re._data(r,"olddisplay",E(r.nodeName)))):(i=ke(r),(n&&"none"!==n||!i)&&re._data(r,"olddisplay",i?n:re.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function D(e,t,n){var r=ot.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function j(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=re.css(e,n+Ee[o],!0,i)),r?("content"===n&&(a-=re.css(e,"padding"+Ee[o],!0,i)),"margin"!==n&&(a-=re.css(e,"border"+Ee[o]+"Width",!0,i))):(a+=re.css(e,"padding"+Ee[o],!0,i),"padding"!==n&&(a+=re.css(e,"border"+Ee[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Qe(e),a=ne.boxSizing&&"border-box"===re.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ke(e,t,o))<0||null==i)&&(i=e.style[t]),et.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+j(e,t,n||(a?"border":"content"),r,o)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function q(){return setTimeout(function(){ct=void 0}),ct=re.now()}function _(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=Ee[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(gt[t]||[]).concat(gt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function F(e,t,n){var r,i,o,a,s,l,u,c=this,f={},d=e.style,p=e.nodeType&&ke(e),h=re._data(e,"fxshow");n.queue||(null==(s=re._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,re.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=re.css(e,"display"))?re._data(e,"olddisplay")||E(e.nodeName):u)&&"none"===re.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",ne.shrinkWrapBlocks()||c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],dt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||re.style(e,r)}else u=void 0;if(re.isEmptyObject(f))"inline"===("none"===u?E(e.nodeName):u)&&(d.display=u);else{h?"hidden"in h&&(p=h.hidden):h=re._data(e,"fxshow",{}),o&&(h.hidden=!p),p?re(e).show():c.done(function(){re(e).hide()}),c.done(function(){var t;re._removeData(e,"fxshow");for(t in f)re.style(e,t,f[t])});for(r in f)a=M(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function O(e,t){var n,r,i,o,a;for(n in e)if(r=re.camelCase(n),i=t[r],o=e[n],re.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=re.cssHooks[r])&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function B(e,t,n){var r,i,o=0,a=mt.length,s=re.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=ct||q(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:ct||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=re.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(O(c,u.opts.specialEasing);o<a;o++)if(r=mt[o].call(u,e,c,u.opts))return r;return re.map(c,M,u),re.isFunction(u.opts.start)&&u.opts.start.call(e,u),re.fx.timer(re.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(ve)||[];if(re.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function R(e,t,n,r){function i(s){var l;return o[s]=!0,re.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===Rt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function W(e,t){var n,r,i=re.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&re.extend(!0,e,n),e}function $(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function z(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function I(e,t,n,r){var i;if(re.isArray(t))re.each(t,function(t,i){n||zt.test(e)?r(e,i):I(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==re.type(t))r(e,t);else for(i in t)I(e+"["+i+"]",t[i],n,r)}function X(){try{return new e.XMLHttpRequest}catch(e){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function V(e){return re.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var J=[],Y=J.slice,G=J.concat,Q=J.push,K=J.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re=function(e,t){return new re.fn.init(e,t)},ie=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,ae=/-([\da-z])/gi,se=function(e,t){return t.toUpperCase()};re.fn=re.prototype={rbjquer:"1.11.3",constructor:re,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:Y.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return re.each(this,e,t)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:J.sort,splice:J.splice},re.extend=re.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||re.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(re.isPlainObject(n)||(t=re.isArray(n)))?(t?(t=!1,o=e&&re.isArray(e)?e:[]):o=e&&re.isPlainObject(e)?e:{},a[r]=re.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},re.extend({expando:"rbjQuer"+("1.11.3"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray||function(e){return"array"===re.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!re.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==re.type(e)||e.nodeType||re.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&re.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(oe,"ms-").replace(ae,se)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i=0,o=e.length,a=n(e);if(r){if(a)for(;i<o&&!1!==t.apply(e[i],r);i++);else for(i in e)if(!1===t.apply(e[i],r))break}else if(a)for(;i<o&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ie,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?re.merge(r,"string"==typeof e?[e]:e):Q.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(K)return K.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,r){var i,o=0,a=e.length,s=[];if(n(e))for(;o<a;o++)null!=(i=t(e[o],o,r))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&s.push(i);return G.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),re.isFunction(e))return n=Y.call(arguments,2),r=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},r.guid=e.guid=e.guid||re.guid++,r},now:function(){return+new Date},support:ne}),re.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var le=/*!
|
15 |
* rbSizzl CSS Selector Engine v2.2.0-pre
|
16 |
* http://sizzlejs.com/
|
17 |
*
|
21 |
*
|
22 |
* Date: 2014-12-16
|
23 |
*/
|
24 |
+
function(e){function t(e,t,n,r){var i,o,a,s,u,f,d,p,h,m;if((t?t.ownerDocument||t:B)!==j&&D(t),t=t||j,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&H){if(11!==s&&(i=ge.exec(e)))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&F(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return G.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&b.getElementsByClassName)return G.apply(n,t.getElementsByClassName(a)),n}if(b.qsa&&(!q||!q.test(e))){if(p=d=O,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(f=C(e),(d=t.getAttribute("id"))?p=d.replace(ye,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=f.length;u--;)f[u]=p+c(f[u]);h=ve.test(e)&&l(t.parentNode)||t,m=f.join(",")}if(m)try{return G.apply(n,h.querySelectorAll(m)),n}catch(e){}finally{d||t.removeAttribute("id")}}}return E(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[O]=!0,e}function i(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=R++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[P,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[O]||(t[O]={}),(s=l[r])&&s[0]===P&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function d(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function p(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function h(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function m(e,t,n,i,o,a){return i&&!i[O]&&(i=m(i)),o&&!o[O]&&(o=m(o,a)),r(function(r,a,s,l){var u,c,f,d=[],m=[],g=a.length,v=r||p(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:h(v,d,e,s,l),b=n?o||(r?e:g||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(u=h(b,m),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(b[m[c]]=!(y[m[c]]=f));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(y[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?K(r,f):d[c])>-1&&(r[u]=!(a[u]=f))}}else b=h(b===a?b.splice(g,b.length):b),o?o(null,a,b,l):G.apply(a,b)})}function g(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=f(function(e){return e===t},a,!0),u=f(function(e){return K(t,e)>-1},a,!0),p=[function(e,n,r){var i=!o&&(r||n!==k)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=x.relative[e[s].type])p=[f(d(p),n)];else{if((n=x.filter[e[s].type].apply(null,e[s].matches))[O]){for(r=++s;r<i&&!x.relative[e[r].type];r++);return m(s>1&&d(p),s>1&&c(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s<r&&g(e.slice(s,r)),r<i&&g(e=e.slice(r)),r<i&&c(e))}p.push(n)}return d(p)}function v(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,p=0,m="0",g=r&&[],v=[],y=k,b=r||o&&x.find.TAG("*",u),w=P+=null==y?1:Math.random()||.1,T=b.length;for(u&&(k=a!==j&&a);m!==T&&null!=(c=b[m]);m++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(P=w)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=m,i&&m!==p){for(f=0;d=n[f++];)d(g,v,a,s);if(r){if(p>0)for(;m--;)g[m]||v[m]||(v[m]=J.call(l));v=h(v)}G.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(P=w,k=y),g};return i?r(a):a}var y,b,x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M,F,O="sizzle"+1*new Date,B=e.document,P=0,R=0,W=n(),$=n(),z=n(),I=function(e,t){return e===t&&(A=!0),0},X=1<<31,U={}.hasOwnProperty,V=[],J=V.pop,Y=V.push,G=V.push,Q=V.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne=te.replace("w","w#"),re="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ee+"*\\]",ie=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",oe=new RegExp(ee+"+","g"),ae=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),le=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(ie),fe=new RegExp("^"+ne+"$"),de={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),xe=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){D()};try{G.apply(V=Q.call(B.childNodes),B.childNodes),V[B.childNodes.length].nodeType}catch(e){G={apply:V.length?function(e,t){Y.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==j&&9===r.nodeType&&r.documentElement?(j=r,L=r.documentElement,(n=r.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),H=!T(r),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=me.test(r.getElementsByClassName),b.getById=i(function(e){return L.appendChild(e).id=O,!r.getElementsByName||!r.getElementsByName(O).length}),b.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(be,xe);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=b.getElementsByClassName&&function(e,t){if(H)return t.getElementsByClassName(e)},_=[],q=[],(b.qsa=me.test(r.querySelectorAll))&&(i(function(e){L.appendChild(e).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||q.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+O+"-]").length||q.push("~="),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+O+"+*").length||q.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(b.matchesSelector=me.test(M=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){b.disconnectedMatch=M.call(e,"div"),M.call(e,"[s!='']:x"),_.push("!=",ie)}),q=q.length&&new RegExp(q.join("|")),_=_.length&&new RegExp(_.join("|")),t=me.test(L.compareDocumentPosition),F=t||me.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===B&&F(B,e)?-1:t===r||t.ownerDocument===B&&F(B,t)?1:S?K(S,e)-K(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:S?K(S,e)-K(S,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===B?-1:u[i]===B?1:0},r):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&D(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&H&&(!_||!_.test(n))&&(!q||!q.test(n)))try{var r=M.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&D(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&D(e);var n=x.attrHandle[t.toLowerCase()],r=n&&U.call(x.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==r?r:b.attributes||!H?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,S=!b.sortStable&&e.slice(0),e.sort(I),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},(x=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(be,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(p=(u=(c=g[O]||(g[O]={}))[e]||[])[0]===P&&u[1],d=u[0]===P&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[P,p,d];break}}else if(y&&(u=(t[O]||(t[O]={}))[e])&&u[0]===P)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[O]||(f[O]={}))[e]=[P,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[O]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=K(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(ae,"$1"));return i[O]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,xe),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,xe).toLowerCase(),function(t){var n;do{if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:s(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=x.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})x.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return u.prototype=x.filters=x.pseudos,x.setFilters=new u,C=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=$[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=x.preFilter;s;){r&&!(i=se.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ae," ")}),s=s.slice(r.length));for(a in x.filter)!(i=de[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):$(e,l).slice(0)},N=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)(o=g(t[n]))[O]?r.push(o):i.push(o);(o=z(e,v(i,r))).selector=e}return o},E=t.select=function(e,t,n,r){var i,o,a,s,u,f="function"==typeof e&&e,d=!r&&C(e=f.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&b.getById&&9===t.nodeType&&H&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(be,xe),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(be,xe),ve.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return G.apply(n,r),n;break}}return(f||N(e,d))(r,t,!H,n,ve.test(e)&&l(t.parentNode)||t),n},b.sortStable=O.split("").sort(I).join("")===O,b.detectDuplicates=!!A,D(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(j.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);re.find=le,re.expr=le.selectors,re.expr[":"]=re.expr.pseudos,re.unique=le.uniqueSort,re.text=le.getText,re.isXMLDoc=le.isXML,re.contains=le.contains;var ue=re.expr.match.needsContext,ce=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fe=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?re.find.matchesSelector(r,e)?[r]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;t<i;t++)if(re.contains(r[t],this))return!0}));for(t=0;t<i;t++)re.find(e,r[t],n);return n=this.pushStack(i>1?re.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ue.test(e)?re(e):e||[],!1).length}});var de,pe=e.document,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(re.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:he.exec(e))||!n[1]&&t)return!t||t.rbjquer?(t||de).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:pe,!0)),ce.test(n[1])&&re.isPlainObject(t))for(n in t)re.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=pe.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return de.find(e);this.length=1,this[0]=r}return this.context=pe,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?void 0!==de.ready?de.ready(e):e(re):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))}).prototype=re.fn,de=re(pe);var me=/^(?:parents|prev(?:Until|All))/,ge={children:!0,contents:!0,next:!0,prev:!0};re.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!re(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),re.fn.extend({has:function(e){var t,n=re(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(re.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ue.test(e)||"string"!=typeof e?re(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?re.unique(o):o)},index:function(e){return e?"string"==typeof e?re.inArray(this[0],re(e)):re.inArray(e.rbjquer?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.unique(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return re.dir(e,"parentNode")},parentsUntil:function(e,t,n){return re.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return re.dir(e,"nextSibling")},prevAll:function(e){return re.dir(e,"previousSibling")},nextUntil:function(e,t,n){return re.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return re.dir(e,"previousSibling",n)},siblings:function(e){return re.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return re.sibling(e.firstChild)},contents:function(e){return re.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,r){var i=re.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=re.filter(r,i)),this.length>1&&(ge[e]||(i=re.unique(i)),me.test(e)&&(i=i.reverse())),this.pushStack(i)}});var ve=/\S+/g,ye={};re.Callbacks=function(e){var t,n,r,i,a,s,l=[],u=!(e="string"==typeof e?ye[e]||o(e):re.extend({},e)).once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&a<i;a++)if(!1===l[a].apply(o[0],o[1])&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:f.disable())},f={add:function(){if(l){var r=l.length;!function t(n){re.each(n,function(n,r){var i=re.type(r);"function"===i?e.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),t?i=l.length:n&&(s=r,c(n))}return this},remove:function(){return l&&re.each(arguments,function(e,n){for(var r;(r=re.inArray(n,l,r))>-1;)l.splice(r,1),t&&(r<=i&&i--,r<=a&&a--)}),this},has:function(e){return e?re.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=[e,(n=n||[]).slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,o){var a=re.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,r):r}},i={};return r.pipe=r.then,re.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=Y.call(arguments),a=o.length,s=1!==a||e&&re.isFunction(e.promise)?a:0,l=1===s?e:re.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?Y.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&re.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}});var be;re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){if(!0===e?!--re.readyWait:!re.isReady){if(!pe.body)return setTimeout(re.ready);re.isReady=!0,!0!==e&&--re.readyWait>0||(be.resolveWith(pe,[re]),re.fn.triggerHandler&&(re(pe).triggerHandler("ready"),re(pe).off("ready")))}}}),re.ready.promise=function(t){if(!be)if(be=re.Deferred(),"complete"===pe.readyState)setTimeout(re.ready);else if(pe.addEventListener)pe.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{pe.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&pe.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!re.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),re.ready()}}()}return be.promise(t)};var xe,we="undefined";for(xe in re(ne))break;ne.ownLast="0"!==xe,ne.inlineBlockNeedsLayout=!1,re(function(){var e,t,n,r;(n=pe.getElementsByTagName("body")[0])&&n.style&&(t=pe.createElement("div"),(r=pe.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=pe.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(e){ne.deleteExpando=!1}}e=null}(),re.acceptData=function(e){var t=re.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ce=/([A-Z])/g;re.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?re.cache[e[re.expando]]:e[re.expando])&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),re.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=re.data(o),1===o.nodeType&&!re._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&l(o,r=re.camelCase(r.slice(5)),i[r]);re._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){re.data(this,e)}):arguments.length>1?this.each(function(){re.data(this,e,t)}):o?l(o,e,re.data(o,e)):void 0},removeData:function(e){return this.each(function(){re.removeData(this,e)})}}),re.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=re._data(e,t),n&&(!r||re.isArray(n)?r=re._data(e,t,re.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),r=n.length,i=n.shift(),o=re._queueHooks(e,t),a=function(){re.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return re._data(e,n)||re._data(e,n,{empty:re.Callbacks("once memory").add(function(){re._removeData(e,t+"queue"),re._removeData(e,n)})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):void 0===t?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=re.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=re._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ee=["Top","Right","Bottom","Left"],ke=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},Se=re.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===re.type(n)){i=!0;for(s in n)re.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,re.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(re(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Ae=/^(?:checkbox|radio)$/i;!function(){var e=pe.createElement("input"),t=pe.createElement("div"),n=pe.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==pe.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}}(),function(){var t,n,r=pe.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var De=/^(?:input|select|textarea)$/i,je=/^key/,Le=/^(?:mouse|pointer|contextmenu)|click/,He=/^(?:focusinfocus|focusoutblur)$/,qe=/^([^.]*)(?:\.(.+)|)$/;re.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=re._data(e);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=re.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return typeof re===we||e&&re.event.triggered===e.type?void 0:re.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(ve)||[""]).length;s--;)p=m=(o=qe.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=re.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=re.event.special[p]||{},f=re.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&re.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,h,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),re.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=re.hasData(e)&&re._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(ve)||[""]).length;u--;)if(s=qe.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=re.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||re.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)re.event.remove(e,p+t[u],n,r,!0);re.isEmptyObject(c)&&(delete g.handle,re._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||pe],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||pe,3!==r.nodeType&&8!==r.nodeType&&!He.test(p+re.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[re.expando]?t:new re.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:re.makeArray(n,[t]),u=re.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!re.isWindow(r)){for(l=u.delegateType||p,He.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||pe)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,(o=(re._data(s,"events")||{})[t.type]&&re._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&re.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&re.acceptData(r)&&a&&r[p]&&!re.isWindow(r)){(c=r[a])&&(r[a]=null),re.event.triggered=p;try{r[p]()}catch(e){}re.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=re.event.fix(e);var t,n,r,i,o,a=[],s=Y.call(arguments),l=(re._data(this,"events")||{})[e.type]||[],u=re.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=re.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((re.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?re(n,this).index(l)>=0:re.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[re.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Le.test(i)?this.mouseHooks:je.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new re.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||pe),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},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(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||pe).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===h()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(re.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=re.extend(new re.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?re.event.trigger(i,null,t):re.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},re.removeEvent=pe.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===we&&(e[r]=null),e.detachEvent(r,n))},re.Event=function(e,t){if(!(this instanceof re.Event))return new re.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?d:p):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),this[re.expando]=!0},re.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||re.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(re.event.special.submit={setup:function(){if(re.nodeName(this,"form"))return!1;re.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=re.nodeName(t,"input")||re.nodeName(t,"button")?t.form:void 0;n&&!re._data(n,"submitBubbles")&&(re.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),re._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&re.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(re.nodeName(this,"form"))return!1;re.event.remove(this,"._submit")}}),ne.changeBubbles||(re.event.special.change={setup:function(){if(De.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(re.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),re.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),re.event.simulate("change",this,e,!0)})),!1;re.event.add(this,"beforeactivate._change",function(e){var t=e.target;De.test(t.nodeName)&&!re._data(t,"changeBubbles")&&(re.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||re.event.simulate("change",this.parentNode,e,!0)}),re._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return re.event.remove(this,"._change"),!De.test(this.nodeName)}}),ne.focusinBubbles||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e),!0)};re.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=re._data(r,t);i||r.addEventListener(e,n,!0),re._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=re._data(r,t)-1;i?re._data(r,t,i):(r.removeEventListener(e,n,!0),re._removeData(r,t))}}}),re.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=p;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return re().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=re.guid++)),this.each(function(){re.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,re(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=p),this.each(function(){re.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return re.event.trigger(e,t,n,!0)}});var _e="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Me=/ rbjQuer\d+="(?:null|\d+)"/g,Fe=new RegExp("<(?:"+_e+")[\\s/>]","i"),Oe=/^\s+/,Be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pe=/<([\w:]+)/,Re=/<tbody/i,We=/<|&#?\w+;/,$e=/<(?:script|style|link)/i,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^$|\/(?:java|ecma)script/i,Xe=/^true\/(.*)/,Ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ve={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Je=m(pe).appendChild(pe.createElement("div"));Ve.optgroup=Ve.option,Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,re.extend({clone:function(e,t,n){var r,i,o,a,s,l=re.contains(e.ownerDocument,e);if(ne.html5Clone||re.isXMLDoc(e)||!Fe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Je.innerHTML=e.outerHTML,Je.removeChild(o=Je.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return(r=g(o,"script")).length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h<f;h++)if((o=e[h])||0===o)if("object"===re.type(o))re.merge(p,o.nodeType?[o]:o);else if(We.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(Pe.exec(o)||["",""])[1].toLowerCase(),c=Ve[l]||Ve._default,s.innerHTML=c[1]+o.replace(Be,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Oe.test(o)&&p.push(t.createTextNode(Oe.exec(o)[0])),!ne.tbody)for(i=(o="table"!==l||Re.test(o)?"<table>"!==c[1]||Re.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)re.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(re.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),ne.appendChecked||re.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===re.inArray(o,r))&&(a=re.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ie.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=re.expando,l=re.cache,u=ne.deleteExpando,c=re.event.special;null!=(n=e[a]);a++)if((t||re.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?re.event.remove(n,r):re.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==we?n.removeAttribute(s):n[s]=null,J.push(i))}}}),re.fn.extend({text:function(e){return Se(this,function(e){return void 0===e?re.text(this):this.empty().append((this[0]&&this[0].ownerDocument||pe).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||y(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?re.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||re.cleanData(g(n)),n.parentNode&&(t&&re.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&re.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&re.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return Se(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Me,""):void 0;if("string"==typeof e&&!$e.test(e)&&(ne.htmlSerialize||!Fe.test(e))&&(ne.leadingWhitespace||!Oe.test(e))&&!Ve[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Be,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(re.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,re.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=G.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,f=u-1,d=e[0],p=re.isFunction(d);if(p||u>1&&"string"==typeof d&&!ne.checkClone&&ze.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=re.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=(o=re.map(g(s,"script"),b)).length;l<u;l++)r=s,l!==f&&(r=re.clone(r,!0,!0),i&&re.merge(o,g(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,re.map(o,x),l=0;l<i;l++)r=o[l],Ie.test(r.type||"")&&!re._data(r,"globalEval")&&re.contains(a,r)&&(r.src?re._evalUrl&&re._evalUrl(r.src):re.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Ue,"")));s=n=null}return this}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,r=0,i=[],o=re(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),re(o[r])[t](n),Q.apply(i,n.get());return this.pushStack(i)}});var Ye,Ge={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return(n=pe.getElementsByTagName("body")[0])&&n.style?(t=pe.createElement("div"),r=pe.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(pe.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var Qe,Ke,Ze=/^margin/,et=new RegExp("^("+Ne+")(?!px)[a-z%]+$","i"),tt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Qe=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},Ke=function(e,t,n){var r,i,o,a,s=e.style;return n=n||Qe(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||re.contains(e.ownerDocument,e)||(a=re.style(e,t)),et.test(a)&&Ze.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):pe.documentElement.currentStyle&&(Qe=function(e){return e.currentStyle},Ke=function(e,t,n){var r,i,o,a,s=e.style;return n=n||Qe(e),null==(a=n?n[t]:void 0)&&s&&s[t]&&(a=s[t]),et.test(a)&&!tt.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;(n=pe.getElementsByTagName("body")[0])&&n.style&&(t=pe.createElement("div"),(r=pe.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(i=t.appendChild(pe.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;(n=pe.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(r=(i=n.getElementsByTagName("a")[0])&&i.style)&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,re.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),re.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var nt=/alpha\([^)]*\)/i,rt=/opacity\s*=\s*([^)]*)/,it=/^(none|table(?!-c[ea]).+)/,ot=new RegExp("^("+Ne+")(.*)$","i"),at=new RegExp("^([+-])=("+Ne+")","i"),st={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ut=["Webkit","O","Moz","ms"];re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=re.camelCase(t),l=e.style;if(t=re.cssProps[s]||(re.cssProps[s]=S(l,s)),a=re.cssHooks[t]||re.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"===(o=typeof n)&&(i=at.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(re.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||re.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=re.camelCase(t);return t=re.cssProps[s]||(re.cssProps[s]=S(e.style,s)),(a=re.cssHooks[t]||re.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ke(e,t,r)),"normal"===o&&t in lt&&(o=lt[t]),""===n||n?(i=parseFloat(o),!0===n||re.isNumeric(i)?i||0:o):o}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,r){if(n)return it.test(re.css(e,"display"))&&0===e.offsetWidth?re.swap(e,st,function(){return L(e,t,r)}):L(e,t,r)},set:function(e,n,r){var i=r&&Qe(e);return D(e,n,r?j(e,t,r,ne.boxSizing&&"border-box"===re.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(re.cssHooks.opacity={get:function(e,t){return rt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=re.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===re.trim(o.replace(nt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=nt.test(o)?o.replace(nt,i):o+" "+i)}}),re.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){if(t)return re.swap(e,{display:"inline-block"},Ke,[e,"marginRight"])}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Ee[r]+t]=o[r]||o[r-2]||o[0];return i}},Ze.test(e)||(re.cssHooks[e+t].set=D)}),re.fn.extend({css:function(e,t){return Se(this,function(e,t,n){var r,i,o={},a=0;if(re.isArray(t)){for(r=Qe(e),i=t.length;a<i;a++)o[t[a]]=re.css(e,t[a],!1,r);return o}return void 0!==n?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ke(this)?re(this).show():re(this).hide()})}}),re.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(re.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=re.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[re.cssProps[e.prop]]||re.cssHooks[e.prop])?re.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},re.fx=H.prototype.init,re.fx.step={};var ct,ft,dt=/^(?:toggle|show|hide)$/,pt=new RegExp("^(?:([+-])=|)("+Ne+")([a-z%]*)$","i"),ht=/queueHooks$/,mt=[F],gt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=pt.exec(t),o=i&&i[3]||(re.cssNumber[e]?"":"px"),a=(re.cssNumber[e]||"px"!==o&&+r)&&pt.exec(re.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",re.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};re.Animation=re.extend(B,{tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],gt[n]=gt[n]||[],gt[n].unshift(t)},prefilter:function(e,t){t?mt.unshift(e):mt.push(e)}}),re.speed=function(e,t,n){var r=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return r.duration=re.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in re.fx.speeds?re.fx.speeds[r.duration]:re.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){re.isFunction(r.old)&&r.old.call(this),r.queue&&re.dequeue(this,r.queue)},r},re.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ke).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=re.isEmptyObject(e),o=re.speed(t,n,r),a=function(){var t=B(this,re.extend({},e),o);(i||re._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=re.timers,a=re._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ht.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||re.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=re._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=re.timers,a=r?r.length:0;for(n.finish=!0,re.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}}),re.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),re.timers=[],re.fx.tick=function(){var e,t=re.timers,n=0;for(ct=re.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||re.fx.stop(),ct=void 0},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){ft||(ft=setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){clearInterval(ft),ft=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(e,t){return e=re.fx?re.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;(t=pe.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],i=(n=pe.createElement("select")).appendChild(pe.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!pe.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,(e=pe.createElement("input")).setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var vt=/\r/g;re.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=re.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,re(this).val()):e)?i="":"number"==typeof i?i+="":re.isArray(i)&&(i=re.map(i,function(e){return null==e?"":e+""})),(t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=re.valHooks[i.type]||re.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),re.extend({valHooks:{option:{get:function(e){var t=re.find.attr(e,"value");return null!=t?t:re.trim(re.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=re.makeArray(t),a=i.length;a--;)if(r=i[a],re.inArray(re.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){if(re.isArray(t))return e.checked=re.inArray(re(e).val(),t)>=0}},ne.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var yt,bt,xt=re.expr.attrHandle,wt=/^(?:checked|selected)$/i,Tt=ne.getSetAttribute,Ct=ne.input;re.fn.extend({attr:function(e,t){return Se(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===we?re.prop(e,t,n):(1===o&&re.isXMLDoc(e)||(t=t.toLowerCase(),r=re.attrHooks[t]||(re.expr.match.bool.test(t)?bt:yt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=re.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void re.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(ve);if(o&&1===e.nodeType)for(;n=o[i++];)r=re.propFix[n]||n,re.expr.match.bool.test(n)?Ct&&Tt||!wt.test(n)?e[r]=!1:e[re.camelCase("default-"+n)]=e[r]=!1:re.attr(e,n,""),e.removeAttribute(Tt?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),bt={set:function(e,t,n){return!1===t?re.removeAttr(e,n):Ct&&Tt||!wt.test(n)?e.setAttribute(!Tt&&re.propFix[n]||n,n):e[re.camelCase("default-"+n)]=e[n]=!0,n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xt[t]||re.find.attr;xt[t]=Ct&&Tt||!wt.test(t)?function(e,t,r){var i,o;return r||(o=xt[t],xt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,xt[t]=o),i}:function(e,t,n){if(!n)return e[re.camelCase("default-"+t)]?t.toLowerCase():null}}),Ct&&Tt||(re.attrHooks.value={set:function(e,t,n){if(!re.nodeName(e,"input"))return yt&&yt.set(e,t,n);e.defaultValue=t}}),Tt||(yt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},xt.id=xt.name=xt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},re.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:yt.set},re.attrHooks.contenteditable={set:function(e,t,n){yt.set(e,""!==t&&t,n)}},re.each(["width","height"],function(e,t){re.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),ne.style||(re.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Nt=/^(?:input|select|textarea|button|object)$/i,Et=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return Se(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return e=re.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),re.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!re.isXMLDoc(e))&&(t=re.propFix[t]||t,i=re.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):Nt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||re.each(["href","src"],function(e,t){re.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this}),ne.enctype||(re.propFix.enctype="encoding");var kt=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(kt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=re.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(kt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?re.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=re(this),o=e.match(ve)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==we&&"boolean"!==n||(this.className&&re._data(this,"__className__",this.className),this.className=this.className||!1===e?"":re._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(kt," ").indexOf(t)>=0)return!0;return!1}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var St=re.now(),At=/\?/,Dt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;re.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=re.trim(t+"");return i&&!re.trim(i.replace(Dt,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():re.error("Invalid JSON: "+t)},re.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+t),n};var jt,Lt,Ht=/#.*$/,qt=/([?&])_=[^&]*/,_t=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ft=/^(?:GET|HEAD)$/,Ot=/^\/\//,Bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pt={},Rt={},Wt="*/".concat("*");try{Lt=location.href}catch(e){(Lt=pe.createElement("a")).href="",Lt=Lt.href}jt=Bt.exec(Lt.toLowerCase())||[],re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt,type:"GET",isLocal:Mt.test(jt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,re.ajaxSettings),t):W(re.ajaxSettings,e)},ajaxPrefilter:P(Pt),ajaxTransport:P(Rt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(y=$(f,w,n)),y=z(f,y,w,i),i?(f.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(re.lastModified[o]=x),(x=w.getResponseHeader("etag"))&&(re.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,i=!(v=y.error))):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:v]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=re.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.rbjquer)?re(d):re.event,h=re.Deferred(),m=re.Callbacks("once memory"),g=f.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=_t.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||Lt)+"").replace(Ht,"").replace(Ot,jt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=re.trim(f.dataType||"*").toLowerCase().match(ve)||[""],null==f.crossDomain&&(r=Bt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===jt[1]&&r[2]===jt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(jt[3]||("http:"===jt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=re.param(f.data,f.traditional)),R(Pt,f,t,w),2===b)return w;(l=re.event&&f.global)&&0==re.active++&&re.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=qt.test(o)?o.replace(qt,"$1_="+St++):o+(At.test(o)?"&":"?")+"_="+St++)),f.ifModified&&(re.lastModified[o]&&w.setRequestHeader("If-Modified-Since",re.lastModified[o]),re.etag[o]&&w.setRequestHeader("If-None-Match",re.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Wt+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,w,f)||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=R(Rt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(v,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,void 0,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,r,i){return re.isFunction(n)&&(i=i||r,r=n,n=void 0),re.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},re.fn.extend({wrapAll:function(e){if(re.isFunction(e))return this.each(function(t){re(this).wrapAll(e.call(this,t))});if(this[0]){var t=re(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||re.css(e,"display"))},re.expr.filters.visible=function(e){return!re.expr.filters.hidden(e)};var $t=/%20/g,zt=/\[\]$/,It=/\r?\n/g,Xt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,r=[],i=function(e,t){t=re.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.rbjquer&&!re.isPlainObject(e))re.each(e,function(){i(this.name,this.value)});else for(n in e)I(n,e[n],t,i);return r.join("&").replace($t,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&Ut.test(this.nodeName)&&!Xt.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}}),re.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Vt=0,Jt={},Yt=re.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ne.cors=!!Yt&&"withCredentials"in Yt,(Yt=ne.ajax=!!Yt)&&re.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Vt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Jt[a],t=void 0,o.onreadystatechange=re.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Jt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=pe.head||re("head")[0]||pe.documentElement;return{send:function(r,i){(t=pe.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Gt=[],Qt=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||re.expando+"_"+St++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Qt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qt,"$1"+i):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||re.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(i)),a&&re.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||pe;var r=ce.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=re.buildFragment([e],t,i),i&&i.length&&re(i).remove(),re.merge([],r.childNodes))};var Kt=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&Kt)return Kt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=re.trim(e.slice(s,e.length)),e=e.slice(0,s)),re.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&re.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?re("<div>").append(re.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length};var Zt=e.document.documentElement;re.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=re.css(e,"position"),c=re(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=re.css(e,"top"),l=re.css(e,"left"),("absolute"===u||"fixed"===u)&&re.inArray("auto",[o,l])>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,re.contains(t,i)?(typeof i.getBoundingClientRect!==we&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===re.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(n=e.offset()),n.top+=re.css(e[0],"borderTopWidth",!0),n.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-re.css(r,"marginTop",!0),left:t.left-n.left-re.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Zt;e&&!re.nodeName(e,"html")&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Zt})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);re.fn[e]=function(r){return Se(this,function(e,r,i){var o=V(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?re(o).scrollLeft():i,n?i:re(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=k(ne.pixelPosition,function(e,n){if(n)return n=Ke(e,t),et.test(n)?re(e).position()[t]+"px":n})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){re.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return Se(this,function(t,n,r){var i;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?re.css(t,n,a):re.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),re.fn.size=function(){return this.length},re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("rbjquer",[],function(){return re});var en=e.rbjQuer,tn=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=tn),t&&e.rbjQuer===re&&(e.rbjQuer=en),re},typeof t===we&&(e.rbjQuer=e.$=re),re});
|
|
|
|
|
25 |
/*!
|
26 |
* eventie v1.0.5
|
27 |
* event binding helper
|
83 |
/*! Magnific Popup - v1.0.0 - 2015-01-03
|
84 |
* http://dimsemenov.com/plugins/magnific-popup/
|
85 |
* Copyright (c) 2015 Dmitry Semenov; */
|
86 |
+
!function(e){"function"==typeof define&&define.amd?define(["rbjquer"],e):e("object"==typeof exports?require("rbjquer"):window.rbjQuer||window.Zepto)}(function(e){var t,n,i,o,a,r,s=function(){},l=!!window.rbjQuer,c=e(window),p=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},u=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)},g=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=g(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;var l=n.items[t.index];if(!e(l).hasClass("mfp-link")){if(!t.isOpen){t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",function(){t.close()}),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var m=e.magnificPopup.modules;for(o=0;o<m.length;o++){var g=m[o];g=g.charAt(0).toUpperCase()+g.slice(1),t["init"+g].call(t)}u("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(p("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var h=t.wH=c.height(),v={};if(t.fixedContentPos&&t._hasScrollBar(h)){var C=t._getScrollbarSize();C&&(v.marginRight=C)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):v.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),u("BuildControls"),e("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),u("Open"),n}t.updateItemHTML()}},close:function(){t.isOpen&&(u("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){u("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,u("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),u("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(u("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;u("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,u("Change",n),o=n.type,t.container.prepend(t.contentContainer),u("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",u("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,u("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};u("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),u("MarkupParse",[t,n,i]),e.each(n,function(e,n){if(void 0===n||!1===n)return!0;if((o=e.split("_")).length>1){var i=t.find(".mfp-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(".mfp-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return m(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){m();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var h,v,C,y=function(){C&&(v.after(C.addClass(h)).detach(),C=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),p("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(v||(h=o.hiddenClass,v=d(h),h="mfp-"+h),C=a.after(v).detach().removeClass(h)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var w,b=function(){w&&e(document.body).removeClass(w)},I=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),w=t.st.ajax.cursor,p("Close.ajax",I),p("BeforeChange.ajax",I)},getAjax:function(n){w&&e(document.body).addClass(w),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var r={data:i,xhr:a};u("ParseAjax",r),t.appendContent(e(r.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),u("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),p("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),p("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),p("Resize"+i,t.resizeImage),t.isLowIE&&p("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){x&&clearInterval(x),x=setInterval(function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3===++n?o(10):40===n?o(50):100===n&&o(500))},a)};o(1)},getImage:function(n,i){if(!(l=n.el).length||!l.hasClass("mfp-link")){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,u("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}t.close()}}});var T,E=function(){return void 0===T&&(T=void 0!==document.createElement("p").style.MozTransform),T};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};p("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(a=s(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},r)},16)}}),p("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=s(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),p("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-r-a};return E()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var _=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),p("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?_():"iframe"===n&&_(!0))}),p("Close.iframe",function(){_()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(i,r,n),t.updateStatus("ready"),i}}});var P=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},S=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery",r=Boolean(e.fn.mfpFastClick);if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",p("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),p("UpdateStatus"+o,function(e,n){n.text&&(n.text=S(n.text,t.currItem.index,t.items.length))}),p("MarkupParse"+o,function(e,i,o,a){var r=t.items.length;o.counter=r>1?S(n.tCounter,a.index,r):""}),p("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close"),s=r?"mfpFastClick":"click";o[s](function(){t.prev()}),a[s](function(){t.next()}),t.isIE7&&(d("b",o[0],!1,!0),d("a",o[0],!1,!0),d("b",a[0],!1,!0),d("a",a[0],!1,!0)),t.container.append(o.add(a))}}),p("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),p("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowLeft&&r&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick(),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=P(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=P(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=P(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),u("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,u("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(p("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),p("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),function(){var t="ontouchstart"in window,n=function(){c.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";e.fn.mfpFastClick=function(o){return e(this).each(function(){var a,r=e(this);if(t){var s,l,p,d,u,f;r.on("touchstart"+i,function(e){d=!1,f=1,u=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],l=u.clientX,p=u.clientY,c.on("touchmove"+i,function(e){u=e.originalEvent?e.originalEvent.touches:e.touches,f=u.length,u=u[0],(Math.abs(u.clientX-l)>10||Math.abs(u.clientY-p)>10)&&(d=!0,n())}).on("touchend"+i,function(e){n(),d||f>1||(a=!0,e.preventDefault(),clearTimeout(s),s=setTimeout(function(){a=!1},1e3),o())})})}r.on("click"+i,function(){a||o()})})},e.fn.destroyMfpFastClick=function(){e(this).off("touchstart"+i+" click"+i),t&&c.off("touchmove"+i+" touchend"+i)}}(),m()});
|
87 |
/*
|
88 |
* @fileOverview TouchSwipe - jQuery Plugin
|
89 |
* @version 1.6.15
|
97 |
* Dual licensed under the MIT or GPL Version 2 licenses.
|
98 |
*
|
99 |
*/
|
100 |
+
!function(e){"function"==typeof define&&define.amd&&define.amd.rbjQuer?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):rbjQuer)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=c),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(D);i||(i=new t(this,n),r.data(D,i))})}function t(n,t){function P(n){if(!(ce()||e(n.target).closest(t.excludedElements,Ye).length>0)){var r,i=n.originalEvent?n.originalEvent:n,l=i.touches,o=l?l[0]:i;return Ve=E,l?We=l.length:!1!==t.preventDefaultEvents&&n.preventDefault(),Ue=0,je=null,Ne=null,Fe=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Xe=we(),ue(),pe(0,o),!l||We===t.fingers||t.fingers===T||X()?(Ge=Oe(),2==We&&(pe(1,l[1]),_e=qe=be(ze[0].start,ze[1].start)),(t.swipeStatus||t.pinchStatus)&&(r=j(i,Ve))):r=!1,!1===r?(Ve=y,j(i,Ve),r):(t.hold&&(en=setTimeout(e.proxy(function(){Ye.trigger("hold",[i.target]),t.hold&&(r=t.hold.call(Ye,i,i.target))},this),t.longTapThreshold)),se(!0),null)}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(Ve!==x&&Ve!==y&&!ae()){var r,i=n.touches,l=fe(i?i[0]:n);if(Ze=Oe(),i&&(We=i.length),t.hold&&clearTimeout(en),Ve=m,2==We&&(0==_e?(pe(1,i[1]),_e=qe=be(ze[0].start,ze[1].start)):(fe(i[1]),qe=be(ze[0].end,ze[1].end),Fe=me(ze[0].end,ze[1].end)),Qe=Ee(_e,qe),Ce=Math.abs(_e-qe)),We===t.fingers||t.fingers===T||!i||X()){if(je=Se(l.start,l.end),Ne=Se(l.last,l.end),C(e,Ne),Ue=xe(l.start,l.end),He=Te(),de(je,Ue),r=j(n,Ve),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var o=!0;if(t.triggerOnTouchLeave){var u=Me(this);o=De(l.end,u)}!t.triggerOnTouchEnd&&o?Ve=U(m):t.triggerOnTouchLeave&&!o&&(Ve=U(x)),Ve!=y&&Ve!=x||j(n,Ve)}}else j(n,Ve=y);!1===r&&j(n,Ve=y)}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(We=Je),Ze=Oe(),He=Te(),_()||!H()?j(n,Ve=y):t.triggerOnTouchEnd||0==t.triggerOnTouchEnd&&Ve===m?(!1!==t.preventDefaultEvents&&e.preventDefault(),j(n,Ve=x)):!t.triggerOnTouchEnd&&B()?N(n,Ve=x,h):Ve===m&&j(n,Ve=y),se(!1),null}function k(){We=0,Ze=0,Ge=0,_e=0,qe=0,Qe=1,ue(),se(!1)}function A(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&j(n,Ve=U(x))}function I(){Ye.unbind(Le,P),Ye.unbind(Ie,k),Ye.unbind(Re,L),Ye.unbind(ke,R),Ae&&Ye.unbind(Ae,A),se(!1)}function U(e){var n=e,r=Q(),i=H(),l=_();return!r||l?n=y:!i||e!=m||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==x&&t.triggerOnTouchLeave&&(n=y):n=x,n}function j(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,p)),(Y()||X())&&!1!==t&&(t=N(e,n,f)),ie()&&!1!==t?t=N(e,n,d):le()&&!1!==t?t=N(e,n,g):re()&&!1!==t&&(t=N(e,n,h)),n===y&&(W()&&(t=N(e,n,p)),X()&&(t=N(e,n,f)),k(e)),n===x&&(r?r.length||k(e):k(e)),t}function N(n,c,s){var w;if(s==p){if(Ye.trigger("swipeStatus",[c,je||null,Ue||0,He||0,We,ze,Ne]),t.swipeStatus&&!1===(w=t.swipeStatus.call(Ye,n,c,je||null,Ue||0,He||0,We,ze,Ne)))return!1;if(c==x&&V()){if(clearTimeout($e),clearTimeout(en),Ye.trigger("swipe",[je,Ue,He,We,ze,Ne]),t.swipe&&!1===(w=t.swipe.call(Ye,n,je,Ue,He,We,ze,Ne)))return!1;switch(je){case r:Ye.trigger("swipeLeft",[je,Ue,He,We,ze,Ne]),t.swipeLeft&&(w=t.swipeLeft.call(Ye,n,je,Ue,He,We,ze,Ne));break;case i:Ye.trigger("swipeRight",[je,Ue,He,We,ze,Ne]),t.swipeRight&&(w=t.swipeRight.call(Ye,n,je,Ue,He,We,ze,Ne));break;case l:Ye.trigger("swipeUp",[je,Ue,He,We,ze,Ne]),t.swipeUp&&(w=t.swipeUp.call(Ye,n,je,Ue,He,We,ze,Ne));break;case o:Ye.trigger("swipeDown",[je,Ue,He,We,ze,Ne]),t.swipeDown&&(w=t.swipeDown.call(Ye,n,je,Ue,He,We,ze,Ne))}}}if(s==f){if(Ye.trigger("pinchStatus",[c,Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchStatus&&!1===(w=t.pinchStatus.call(Ye,n,c,Fe||null,Ce||0,He||0,We,Qe,ze)))return!1;if(c==x&&F())switch(Fe){case u:Ye.trigger("pinchIn",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchIn&&(w=t.pinchIn.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze));break;case a:Ye.trigger("pinchOut",[Fe||null,Ce||0,He||0,We,Qe,ze]),t.pinchOut&&(w=t.pinchOut.call(Ye,n,Fe||null,Ce||0,He||0,We,Qe,ze))}}return s==h?c!==y&&c!==x||(clearTimeout($e),clearTimeout(en),J()&&!ee()?(Ke=Oe(),$e=setTimeout(e.proxy(function(){Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target))},this),t.doubleTapThreshold)):(Ke=null,Ye.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ye,n,n.target)))):s==d?c!==y&&c!==x||(clearTimeout($e),clearTimeout(en),Ke=null,Ye.trigger("doubletap",[n.target]),t.doubleTap&&(w=t.doubleTap.call(Ye,n,n.target))):s==g&&(c!==y&&c!==x||(clearTimeout($e),Ke=null,Ye.trigger("longtap",[n.target]),t.longTap&&(w=t.longTap.call(Ye,n,n.target)))),w}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==je&&(e=ge(je)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Ce>=t.pinchThreshold}function Q(){return!t.maxTimeThreshold||!(He>=t.maxTimeThreshold)}function C(e,n){if(!1!==t.preventDefaultEvents)if(t.allowPageScroll===c)e.preventDefault();else{var u=t.allowPageScroll===s;switch(n){case r:(t.swipeLeft&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case i:(t.swipeRight&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case l:(t.swipeUp&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeDown&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault()}}}function F(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!F()||!X())}function V(){var e=Q(),n=H(),t=G(),r=Z();return!_()&&r&&t&&n&&e}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return We===t.fingers||t.fingers===T||!S}function Z(){return 0!==ze[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==Ke)return!1;var e=Oe();return J()&&e-Ke<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===We||!S)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return He>t.longTapThreshold&&Ue<b}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Be=Oe(),Je=e.touches.length+1}function ue(){Be=0,Je=0}function ae(){var e=!1;return Be&&Oe()-Be<=t.fingerReleaseThreshold&&(e=!0),e}function ce(){return!(!0!==Ye.data(D+"_intouch"))}function se(e){Ye&&(!0===e?(Ye.bind(Re,L),Ye.bind(ke,R),Ae&&Ye.bind(Ae,A)):(Ye.unbind(Re,L,!1),Ye.unbind(ke,R,!1),Ae&&Ye.unbind(Ae,A,!1)),Ye.data(D+"_intouch",!0===e))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,ze[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return ze[e]||null}function de(e,n){n=Math.max(n,ge(e)),Xe[e].distance=n}function ge(e){if(Xe[e])return Xe[e].distance}function we(){var e={};return e[r]=ve(r),e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e}function ve(e){return{direction:e,distance:0}}function Te(){return Ze-Ge}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function Ee(e,n){return(n/e*1).toFixed(2)}function me(){return Qe<1?a:u}function xe(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function ye(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){var t=ye(e,n);return t<=45&&t>=0?r:t<=360&&t>=315?r:t>=135&&t<=225?i:t>45&&t<135?o:l}function Oe(){return(new Date).getTime()}function Me(n){var t=(n=e(n)).offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}var t=e.extend({},t),Pe=S||M||!t.fallbackToMouseEvents,Le=Pe?M?O?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Re=Pe?M?O?"MSPointerMove":"pointermove":"touchmove":"mousemove",ke=Pe?M?O?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Pe?M?"mouseleave":null:"mouseleave",Ie=M?O?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,je=null,Ne=null,He=0,_e=0,qe=0,Qe=1,Ce=0,Fe=0,Xe=null,Ye=e(n),Ve="start",We=0,ze={},Ge=0,Ze=0,Be=0,Je=0,Ke=0,$e=null,en=null;try{Ye.bind(Le,P),Ye.bind(Ie,k)}catch(n){e.error("events not supported "+Le+","+Ie+" on rbjQuer.swipe")}this.enable=function(){return Ye.bind(Le,P),Ye.bind(Ie,k),Ye},this.disable=function(){return I(),Ye},this.destroy=function(){I(),Ye.data(D,null),Ye=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on rbjQuer.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",a="out",c="none",s="auto",p="swipe",f="pinch",h="tap",d="doubletap",g="longtap",w="horizontal",v="vertical",T="all",b=10,E="start",m="move",x="end",y="cancel",S="ontouchstart"in window,O=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!S,M=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!S,D="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(D);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on rbjQuer.swipe")}else if(i&&"object"==typeof t)i.option.apply(this,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version="1.6.15",e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:E,PHASE_MOVE:m,PHASE_END:x,PHASE_CANCEL:y},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:a},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:w,VERTICAL:v,AUTO:s},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:T}});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
/*
|
102 |
stackgrid.adem.js - adwm.co
|
103 |
Licensed under the MIT license - http://opensource.org/licenses/MIT
|
104 |
Copyright (C) 2015 Andrew Prasetya
|
105 |
*/
|
106 |
+
!function(e,t,a){var i=function(i,o){function n(e){e.find(O+", ."+F).find(R+":not([data-popupTrigger])").each(function(){var e=t(this),i=e.find("div[data-popup]").eq(0);e.attr("data-popupTrigger","yes");var o="mfp-image";"iframe"==i.data("type")?o="mfp-iframe":"inline"==i.data("type")?o="mfp-inline":"ajax"==i.data("type")?o="mfp-ajax":"link"==i.data("type")?o="mfp-link":"blanklink"==i.data("type")&&(o="mfp-blanklink");var n=e.find(".rbs-lightbox").addBack(".rbs-lightbox");n.attr("data-mfp-src",i.data("popup")).addClass(o),i.attr("title")!=a&&n.attr("mfp-title",i.attr("title")),i.attr("data-alt")!=a&&n.attr("mfp-alt",i.attr("data-alt"))})}function r(e,i){function o(e){var i=t(e.img),o=i.parents(".image-with-dimensions");o[0]!=a&&(e.isLoaded?i.fadeIn(400,function(){o.removeClass("image-with-dimensions")}):(o.removeClass("image-with-dimensions"),i.hide(),o.addClass("broken-image-here")))}e.find(O).find(R+":not([data-imageconverted])").each(function(){var o=t(this),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0),s=n.data("thumbnail");if(n[0]==a&&(n=r,s=r.data("popup")),0!=i||0!=e.data("settings").waitForAllThumbsNoMatterWhat||n.data("width")==a&&n.data("height")==a){o.attr("data-imageconverted","yes");var d=n.attr("title");d==a&&(d=s);var l=t('<img style="margin:auto;" title="'+d+'" src="'+s+'" />');1==i&&(l.attr("data-dont-wait-for-me","yes"),n.addClass("image-with-dimensions"),e.data("settings").waitUntilThumbLoads&&l.hide()),n.addClass("rbs-img-thumbnail-container").prepend(l)}}),1==i&&e.find(".image-with-dimensions").imagesLoadedMB().always(function(e){for(index in e.images)o(e.images[index])}).progress(function(e,t){o(t)})}function s(e){e.find(O).each(function(){var i=t(this),o=i.find(R),n=o.find("div[data-thumbnail]").eq(0),r=o.find("div[data-popup]").eq(0);n[0]==a&&(n=r);var s=i.css("display");"none"==s&&i.css("margin-top",99999999999999).show();var d=2*e.data("settings").borderSize;o.width(n.width()-d),o.height(n.height()-d),"none"==s&&i.css("margin-top",0).hide()})}function d(e){e.find(O).find(R).each(function(){var i=t(this),o=i.find("div[data-thumbnail]").eq(0),n=i.find("div[data-popup]").eq(0);o[0]==a&&(o=n);var r=parseFloat(o.data("width")),s=parseFloat(o.data("height")),d=i.parents(O).width()-e.data("settings").horizontalSpaceBetweenBoxes,l=s*d/r;o.css("width",d),o.data("width")==a&&o.data("height")==a||o.css("height",Math.floor(l))})}function l(e,i,o){var n,r=e.find(O);n="auto"==i?Math.floor((e.width()-1)/o):i,e.find(".rbs-imges-grid-sizer").css("width",n),r.each(function(e){var i=t(this),r=i.data("columns");r!=a&&parseInt(o)>=parseInt(r)?i.css("width",n*parseInt(r)):i.css("width",n)})}function c(){var t=e,a="inner";return"innerWidth"in e||(a="client",t=document.documentElement||document.body),{width:t[a+"Width"],height:t[a+"Height"]}}function f(e){var t=!1;for(var a in e.data("settings").resolutions){var i=e.data("settings").resolutions[a];if(i.maxWidth>=c().width){l(e,i.columnWidth,i.columns),t=!0;break}}0==t&&l(e,e.data("settings").columnWidth,e.data("settings").columns)}function m(e){var a=t('<div class="rbs-img-container"></div').css({"margin-left":e.data("settings").horizontalSpaceBetweenBoxes,"margin-bottom":e.data("settings").verticalSpaceBetweenBoxes});e.find(O+":not([data-wrapper-added])").attr("data-wrapper-added","yes").wrapInner(a)}function p(e){if(0!=e.data("settings").thumbnailOverlay){var i=e.find(O+":not([data-set-overlay-for-hover-effect])").attr("data-set-overlay-for-hover-effect","yes");i.find(".thumbnail-overlay").wrapInner("<div class='aligment'><div class='aligment'></div></div>"),i.each(function(){var i=t(this),o=i.find(R),n=e.data("settings").overlayEffect;if(o.data("overlay-effect")!=a&&(n=o.data("overlay-effect")),"push-up"==n||"push-down"==n||"push-up-100%"==n||"push-down-100%"==n){var r=o.find(".rbs-img-thumbnail-container"),s=o.find(".thumbnail-overlay").css("position","relative");"push-up-100%"!=n&&"push-down-100%"!=n||s.outerHeight(r.outerHeight(!1));var d=s.outerHeight(!1),l=t('<div class="wrapper-for-some-effects"></div');"push-up"==n||"push-up-100%"==n?s.appendTo(o):"push-down"!=n&&"push-down-100%"!=n||(s.prependTo(o),l.css("margin-top",-d)),o.wrapInner(l)}else if("reveal-top"==n||"reveal-top-100%"==n){i.addClass("position-reveal-effect");c=i.find(".thumbnail-overlay").css("top",0);"reveal-top-100%"==n&&c.css("height","100%")}else if("reveal-bottom"==n||"reveal-bottom-100%"==n){i.addClass("position-reveal-effect").addClass("position-bottom-reveal-effect");var c=i.find(".thumbnail-overlay").css("bottom",0);"reveal-bottom-100%"==n&&c.css("height","100%")}else if("direction"==n.substr(0,9))i.find(".thumbnail-overlay").css("height","100%");else if("fade"==n){var f=i.find(".thumbnail-overlay").hide();f.css({height:"100%",top:"0",left:"0"}),f.find(".fa").css({scale:1.4})}})}}function h(e){e.find(O).each(function(){var i=t(this).find(R),o=e.data("settings").overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect")),"direction"==o.substr(0,9)&&i.find(".thumbnail-overlay").hide()}),e.eveMB("layout")}function u(){var e=q.find(O+", ."+F),t=x();e.filter(t).removeClass("hidden-rbs-imges-by-filter").addClass("visible-rbs-imges-by-filter"),e.not(t).addClass("hidden-rbs-imges-by-filter").removeClass("visible-rbs-imges-by-filter")}function v(e,t){q.addClass("filtering-isotope"),b(e,t),u(),g()}function g(){C().length>0?I():L(),w()}function b(e,t){D[t]=e,q.eveMB({filter:y(D)})}function y(e){for(var t in e)(o=e[t])==a&&(e[t]="*");var i="";for(var t in e){var o=e[t];""==i?i=t:i.split(",").length<o.split(",").length&&(i=t)}var n=e[i];for(var t in e)if(t!=i)for(var r=e[t].split(","),s=0;s<r.length;s++){for(var d=n.split(","),l=[],c=0;c<d.length;c++)"*"==d[c]&&"*"==r[s]?r[s]="":("*"==r[s]&&(r[s]=""),"*"==d[c]&&(d[c]="")),l.push(d[c]+r[s]);n=l.join(",")}return n}function w(){var e=k().length;return e<P.minBoxesPerFilter&&B().length>0&&(M(P.minBoxesPerFilter-e),!0)}function k(){var e=q.find(O),t=x();return"*"!=t&&(e=e.filter(t)),e}function C(){return k().not(".rbs-img-loaded")}function x(){var e=q.data("eveMB").options.filter;return""!=e&&e!=a||(e="*"),e}function B(e){var t=q.find("."+F),i=x();return"*"!=i&&e==a&&(t=t.filter(i)),t}function I(){H.html(P.LoadingWord),H.removeClass("rbs-imges-load-more"),H.addClass("rbs-imges-loading")}function S(){A++,I()}function T(){0==--A&&L()}function L(){H.removeClass("rbs-imges-load-more"),H.removeClass("rbs-imges-loading"),H.removeClass("rbs-imges-no-more-entries"),B().length>0?(H.html(P.loadMoreWord),H.addClass("rbs-imges-load-more")):(H.html(P.noMoreEntriesWord),H.addClass("rbs-imges-no-more-entries"))}function M(e,a){if(1!=H.hasClass("rbs-imges-no-more-entries")){S();var i=[];B(a).each(function(a){var o=t(this);a+1<=e&&(o.removeClass(F).addClass(U),o.hide(),i.push(this))}),q.eveMB("insert",t(i),function(){T(),q.eveMB("layout")})}}function z(e){if(e!=a){var i=q.find("."+U+", ."+F);""==e?i.addClass("search-match"):(i.removeClass("search-match"),q.find(P.searchTarget).each(function(){var a=t(this),i=a.parents("."+U+", ."+F);-1!==a.text().toLowerCase().indexOf(e.toLowerCase())&&i.addClass("search-match")})),setTimeout(function(){v(".search-match","search")},100)}}function E(e){var t=e.data("sort-ascending");return t==a&&(t=!0),e.data("sort-toggle")&&1==e.data("sort-toggle")&&e.data("sort-ascending",!t),t}function W(){if("#!"!=location.hash.substr(0,2))return null;var e=location.href.split("#!")[1];return{hash:e,src:e}}function _(){var e=t.magnificPopup.instance;if(e){var a=W();if(!a&&e.isOpen)e.close();else if(a)if(e.isOpen&&e.currItem&&e.currItem.el.parents(".rbs-imges-container").attr("id")==a.id){if(e.currItem.el.attr("data-mfp-src")!=a.src){var i=null;t.each(e.items,function(e,o){if((o.parsed?o.el:t(o)).attr("data-mfp-src")==a.src)return i=e,!1}),null!==i&&e.goTo(i)}}else q.filter('[id="'+a.id+'"]').find('.rbs-lightbox[data-mfp-src="'+a.src+'"]').trigger("click")}}var P=t.extend({},t.fn.collagePlus.defaults,o),q=t(i).addClass("rbs-imges-container"),O=".rbs-img",R=".rbs-img-image",U="rbs-img",F="rbs-img-hidden",j=Modernizr.csstransitions?"transition":"animate",D={},A=0;"default"==P.overlayEasing&&(P.overlayEasing="transition"==j?"_default":"swing");var H=t('<div class="rbs-imges-load-more button"></div>').insertAfter(q);H.wrap('<div class="rbs_gallery_button rbs_gallery_button_bottom"></div>'),H.addClass(P.loadMoreClass),P.resolutions.sort(function(e,t){return e.maxWidth-t.maxWidth}),q.data("settings",P),q.css({"margin-left":-P.horizontalSpaceBetweenBoxes}),q.find(O).removeClass(U).addClass(F);var N=t(P.sortContainer).find(P.sort).filter(".selected"),Q=N.attr("data-sort-by"),X=E(N);q.append('<div class="rbs-imges-grid-sizer"></div>'),q.eveMB({itemSelector:O,masonry:{columnWidth:".rbs-imges-grid-sizer"},getSortData:P.getSortData,sortBy:Q,sortAscending:X}),t.extend(EveMB.prototype,{resize:function(){var e=t(this.element);f(e),d(e),s(e),h(e),this.isResizeBound&&this.needsResizeLayout()&&this.layout()}}),t.extend(EveMB.prototype,{_setContainerMeasure:function(e,i){if(e!==a){var o=this.size;o.isBorderBox&&(e+=i?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),this.element.style[i?"width":"height"]=e+"px";var n=t(this.element);t.waypoints("refresh"),n.addClass("lazy-load-ready"),n.removeClass("filtering-isotope")}}}),t.extend(EveMB.prototype,{insert:function(e,i){var o=this.addItems(e);if(o.length){var l,c,h=t(this.element),u=h.find("."+F)[0],v=o.length;for(l=0;l<v;l++)c=o[l],u!=a?this.element.insertBefore(c.element,u):this.element.appendChild(c.element);var g=function(){var e=this._filter(o);for(this._noTransition(function(){this.hide(e)}),l=0;l<v;l++)o[l].isLayoutInstant=!0;for(this.arrange(),l=0;l<v;l++)delete o[l].isLayoutInstant;this.reveal(e)},b=function(e){var a=t(e.img),i=a.parents("div[data-thumbnail], div[data-popup]");0==e.isLoaded&&(a.hide(),i.addClass("broken-image-here"))},y=this;m(h),f(h),d(h),n(h),r(h,!1),h.find("img:not([data-dont-wait-for-me])").imagesLoadedMB().always(function(){0==P.waitForAllThumbsNoMatterWhat&&r(h,!0),h.find(O).addClass("rbs-img-loaded"),g.call(y),s(h),p(h),"function"==typeof i&&i();for(index in y.images){var e=y.images[index];b(e)}}).progress(function(e,t){b(t)})}}}),M(P.boxesToLoadStart,!0),H.on("click",function(){M(P.boxesToLoad)}),P.lazyLoad&&q.waypoint(function(e){q.hasClass("lazy-load-ready")&&"down"==e&&0==q.hasClass("filtering-isotope")&&(q.removeClass("lazy-load-ready"),M(P.boxesToLoad))},{context:e,continuous:!0,enabled:!0,horizontal:!1,offset:"bottom-in-view",triggerOnce:!1});var Y=t(P.filterContainer);Y.find(P.filter).on("click",function(e){var i=t(this),o=i.parents(P.filterContainer);o.find(P.filter).removeClass(P.filterContainerSelectClass),i.addClass(P.filterContainerSelectClass);var n=i.attr("data-filter"),r="filter";o.data("id")!=a&&(r=o.data("id")),v(n,r),e.preventDefault(),H.is(".rbs-imges-no-more-entries")||H.click()}),Y.each(function(){var e=t(this),i=e.find(P.filter).filter(".selected");if(i[0]!=a){var o=i.attr("data-filter"),n="filter";e.data("id")!=a&&(n=e.data("id")),b(o,n)}}),g(),z(t(P.search).val()),t(P.search).on("keyup",function(){z(t(this).val())}),t(P.sortContainer).find(P.sort).on("click",function(e){var a=t(this);a.parents(P.sortContainer).find(P.sort).removeClass("selected"),a.addClass("selected");var i=a.attr("data-sort-by");q.eveMB({sortBy:i,sortAscending:E(a)}),e.preventDefault()}),q.on("mouseenter.hoverdir, mouseleave.hoverdir",R,function(e){if(0!=P.thumbnailOverlay){var i=t(this),o=P.overlayEffect;i.data("overlay-effect")!=a&&(o=i.data("overlay-effect"));var n=e.type,r=i.find(".rbs-img-thumbnail-container"),s=i.find(".thumbnail-overlay"),d=s.outerHeight(!1);if("push-up"==o||"push-up-100%"==o){l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing)}else if("push-down"==o||"push-down-100%"==o){var l=i.find("div.wrapper-for-some-effects");"mouseenter"===n?l.stop().show()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing):l.stop()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing)}else if("reveal-top"==o||"reveal-top-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("reveal-bottom"==o||"reveal-bottom-100%"==o)"mouseenter"===n?r.stop().show()[j]({"margin-top":-d},P.overlaySpeed,P.overlayEasing):r.stop()[j]({"margin-top":0},P.overlaySpeed,P.overlayEasing);else if("direction"==o.substr(0,9)){var c=G(i,{x:e.pageX,y:e.pageY});"direction-top"==o?c=0:"direction-bottom"==o?c=2:"direction-right"==o?c=1:"direction-left"==o&&(c=3);var f=J(c,i);"mouseenter"==n?(s.css({left:f.from,top:f.to}),s.stop().show().fadeTo(0,1,function(){t(this).stop()[j]({left:0,top:0},P.overlaySpeed,P.overlayEasing)})):"direction-aware-fade"==o?s.fadeOut(700):s.stop()[j]({left:f.from,top:f.to},P.overlaySpeed,P.overlayEasing)}else if("fade"==o){"mouseenter"==n?(s.stop().fadeOut(0),s.fadeIn(P.overlaySpeed)):(s.stop().fadeIn(0),s.fadeOut(P.overlaySpeed));var m=s.find(".fa");"mouseenter"==n?(m.css({scale:1.4}),m[j]({scale:1},200)):(m.css({scale:1}),m[j]({scale:1.4},200))}}});var G=function(e,t){var a=e.width(),i=e.height(),o=(t.x-e.offset().left-a/2)*(a>i?i/a:1),n=(t.y-e.offset().top-i/2)*(i>a?a/i:1);return Math.round((Math.atan2(n,o)*(180/Math.PI)+180)/90+3)%4},J=function(e,t){var a,i;switch(e){case 0:P.reverse,a=0,i=-t.height();break;case 1:P.reverse?(a=-t.width(),i=0):(a=t.width(),i=0);break;case 2:P.reverse?(a=0,i=-t.height()):(a=0,i=t.height());break;case 3:P.reverse?(a=t.width(),i=0):(a=-t.width(),i=0)}return{from:a,to:i}},K=".rbs-lightbox[data-mfp-src]";if(P.considerFilteringInPopup&&(K=O+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src], ."+F+":not(.hidden-rbs-imges-by-filter) .rbs-lightbox[data-mfp-src]"),P.showOnlyLoadedBoxesInPopup&&(K=O+":visible .rbs-lightbox[data-mfp-src]"),P.magnificPopup){var V={delegate:K,type:"image",removalDelay:200,closeOnContentClick:!1,alignTop:P.alignTop,preload:P.preload,mainClass:"my-mfp-slide-bottom",gallery:{enabled:P.gallery},closeMarkup:'<button title="%title%" class="mfp-close"></button>',titleSrc:"title",iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"https://player.vimeo.com/video/%id%?autoplay=1"}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar" style="margin-top:4px;"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{change:function(){var i=t(this.currItem.el);return i.is(".mfp-link")?(e.location.href=t(this.currItem).attr("src"),!1):i.is(".mfp-blanklink")?(e.open(t(this.currItem).attr("src")),setTimeout(function(){t.magnificPopup.instance.close()},5),!1):(setTimeout(function(){var e="";if(P.descBox){t(".mfp-desc-block").remove();var o=i.attr("data-descbox");void 0!==o&&t(".mfp-img").after("<div class='mfp-desc-block "+P.descBoxClass+"'>"+o+"</div>")}i.attr("mfp-title")==a||P.hideTitle?t(".mfp-title").html(""):t(".mfp-title").html(i.attr("mfp-title"));var n=i.attr("data-mfp-src");e="",P.hideSourceImage&&(e=e+' <a class="image-source-link" href="'+n+'" target="_blank"></a>');var r=location.href,s=(location.href.replace(location.hash,""),i.attr("mfp-title")),d=i.attr("mfp-alt"),l=r;""==d&&(d=s),t(".mfp-img").attr("alt",d),t(".mfp-img").attr("title",s);var c="";P.facebook&&(c+="<div class='rbs-imges-facebook fa fa-facebook-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.twitter&&(c+="<div class='rbs-imges-twitter fa fa-twitter-square' data-src="+n+" data-url='"+l+"'><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.googleplus&&(c+="<div class='rbs-imges-googleplus fa fa-google-plus-square' data-src="+n+" data-url='"+l+"'></div>"),P.pinterest&&(c+="<div class='rbs-imges-pinterest fa fa-pinterest-square' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),P.vk&&(c+="<div class='rbs-imges-vk fa fa-vk' data-src='"+n+"' data-url='"+l+"' ><div class='robo_gallery_hide_block'>"+s+"</div></div>"),c=c?"<div class='rbs-imges-social-container'>"+c+"</div>":"";var f=t(".mfp-title").html();t(".mfp-title").html(f+c+e)},5),void(P.deepLinking&&(location.hash="#!"+i.attr("data-mfp-src"))))},beforeOpen:function(){1==P.touch&&t("body").swipe("enable"),this.container.data("scrollTop",parseInt(t(e).scrollTop()))},open:function(){t("html, body").scrollTop(this.container.data("scrollTop"))},close:function(){1==P.touch&&t("body").swipe("disable"),P.deepLinking&&(e.location.hash="#!")}}};t.extend(V,P.lightboxOptions),q.magnificPopup(V)}if(P.deepLinking){var Z=W();Z&&q.find('.rbs-lightbox[data-mfp-src="'+Z.src+'"]').trigger("click"),e.addEventListener?e.addEventListener("hashchange",_,!1):e.attachEvent&&e.attachEvent("onhashchange",_)}var $=function(t){e.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200)};return t("body").on("click","div.rbs-imges-facebook",function(){var e=t(this),a=encodeURIComponent(e.find("div").html()),i=encodeURIComponent(e.data("url")),o=encodeURIComponent(e.data("src"));$(i="https://www.facebook.com/sharer/sharer.php?u="+i+"&picture="+o+"&title="+a)}),t("body").on("click","div.rbs-imges-twitter",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.find("div").html());$(a="https://twitter.com/intent/tweet?url="+a+"&text="+i)}),t("body").on("click","div.rbs-imges-googleplus",function(){var e=t(this),a=encodeURIComponent(e.data("url"));$(a="https://plus.google.com/share?url="+a)}),t("body").on("click","div.rbs-imges-pinterest",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://pinterest.com/pin/create/button/?url="+a+"&media="+i+"&description="+o)}),t("body").on("click","div.rbs-imges-vk",function(){var e=t(this),a=encodeURIComponent(e.data("url")),i=encodeURIComponent(e.data("src")),o=encodeURIComponent(e.find("div").html());$(a="http://vk.com/share.php?url="+a+"&image="+i+"&title="+o)}),this};t.fn.collagePlus=function(a){return this.each(function(o,n){var r=t(this);if(r.data("collagePlus"))return r.data("collagePlus");var s=new i(this,a);r.data("collagePlus",s),t(".thumbnail-overlay a",this).click(function(a){a.preventDefault();var i=t(this).attr("href");return"_blank"==t(this).attr("target")?e.open(i,"_blank"):location.href=i,!1})})},t.fn.collagePlus.defaults={boxesToLoadStart:8,boxesToLoad:4,minBoxesPerFilter:0,lazyLoad:!0,horizontalSpaceBetweenBoxes:15,verticalSpaceBetweenBoxes:15,columnWidth:"auto",columns:3,borderSize:0,resolutions:[{maxWidth:960,columnWidth:"auto",columns:3},{maxWidth:650,columnWidth:"auto",columns:2},{maxWidth:450,columnWidth:"auto",columns:1}],filterContainer:"#filter",filterContainerSelectClass:"active",filter:"a",search:"",searchTarget:".rbs-img-title",sortContainer:"",sort:"a",getSortData:{title:".rbs-img-title",text:".rbs-img-text"},waitUntilThumbLoads:!0,waitForAllThumbsNoMatterWhat:!1,thumbnailOverlay:!0,overlayEffect:"fade",overlaySpeed:200,overlayEasing:"default",showOnlyLoadedBoxesInPopup:!1,considerFilteringInPopup:!0,deepLinking:!1,gallery:!0,LoadingWord:"Loading...",loadMoreWord:"Load More",loadMoreClass:"",noMoreEntriesWord:"No More Entries",alignTop:!1,preload:[0,2],magnificPopup:!0,facebook:!1,twitter:!1,googleplus:!1,pinterest:!1,vk:!1,hideTitle:!1,hideCounter:!1,lightboxOptions:{},hideSourceImage:!1,touch:!1,descBox:!1,descBoxClass:"",descBoxSource:""},function(){function a(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||e.opera),t}function i(e){function i(){d.hide()}function o(){d.show()}function n(){var e=d.find(".selected"),t=e.length?e.parents("li"):d.children().first();l.html(t.clone().find("a").append('<span class="fa fa-sort-desc"></span>').end().html())}function r(e){e.preventDefault(),e.stopPropagation(),t(this).parents("li").siblings("li").find("a").removeClass("selected").end().end().find("a").addClass("selected"),n()}function s(e){e.stopPropagation(),d.is(":visible")?i():o()}var d=e.find(".rbs-imges-drop-down-menu"),l=e.find(".rbs-imges-drop-down-header");n(),a()?(t("body").on("click",function(){d.is(":visible")&&i()}),l.bind("click",s),d.find("> li > *").bind("click",r)):(l.bind("mouseout",i).bind("mouseover",o),d.find("> li > *").bind("mouseout",i).bind("mouseover",o).bind("click",r)),l.on("click","a",function(e){e.preventDefault()})}t(".rbs-imges-drop-down").each(function(){i(t(this))})}()}(window,rbjQuer);
|
107 |
/*
|
108 |
* RoboGallery Version: 1.0
|
109 |
* Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
|
languages/robo-gallery.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Robo Gallery\n"
|
6 |
-
"POT-Creation-Date: 2017-
|
7 |
"PO-Revision-Date: 2017-05-15 11:19+0200\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
@@ -92,9 +92,9 @@ msgstr ""
|
|
92 |
#: cmb2/fields/toolbox/cmb-field-toolbox.php:77
|
93 |
msgid ""
|
94 |
"This function available in latest versions of the plugin. <br/>\n"
|
95 |
-
"\t\t\t\t\t\t\tPlease login to <a href=\"
|
96 |
-
"
|
97 |
-
"the <strong>Robo Gallery Key plugin</strong>.<br/><br/>\n"
|
98 |
"\t\t\t\t\t\t\tInstall this key on the website and all features will be "
|
99 |
"enabled.<br/>\n"
|
100 |
"\t\t\t\t\t\t\tAll previous functionality will be available with old Pro Key. "
|
@@ -107,85 +107,10 @@ msgstr ""
|
|
107 |
msgid "disabled because you select gallery clone option"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: includes/extensions/backup/backup.class.php:273
|
111 |
-
msgid "Can't create directory for archive file."
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: includes/extensions/backup/backup.class.php:353
|
115 |
-
#, php-format
|
116 |
-
msgid "Can not clear archive's file: \"%s\"."
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: includes/extensions/backup/backup.class.php:369
|
120 |
-
#, php-format
|
121 |
-
msgid "Didn't save archive with files \"%s\"."
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: includes/extensions/backup/backup.class.php:635
|
125 |
-
msgid "Can't find import xml file in archive."
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: includes/extensions/backup/backup.class.php:678
|
129 |
-
msgid "Can't set xml content for reading."
|
130 |
-
msgstr ""
|
131 |
-
|
132 |
-
#: includes/extensions/backup/backup.class.php:684
|
133 |
-
msgid "Invalid document of import"
|
134 |
-
msgstr ""
|
135 |
-
|
136 |
-
#: includes/extensions/backup/backup.class.php:848
|
137 |
-
#, php-format
|
138 |
-
msgid "Error insert post attachment with ID: \"%d\" and guid: \"%s\". %s"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: includes/extensions/backup/backup.class.php:904
|
142 |
-
msgid "Invalid xml content."
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: includes/extensions/backup/backup.class.php:980
|
146 |
-
#, php-format
|
147 |
-
msgid "Error insert post with ID: \"%d\" and title: \"%s\". %s"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: includes/extensions/backup/backup.class.php:1011
|
151 |
-
#, php-format
|
152 |
-
msgid ""
|
153 |
-
"Error insert postmeta for post with ID %d. Meta key: \"%s\", meta value: \"%s"
|
154 |
-
"\""
|
155 |
-
msgstr ""
|
156 |
-
|
157 |
-
#: includes/extensions/backup/backup.class.php:1063
|
158 |
-
#, php-format
|
159 |
-
msgid "Can't open archive \"%s\"."
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: includes/extensions/backup/backup.class.php:1085
|
163 |
-
#, php-format
|
164 |
-
msgid "Can't import file \"%s\". File is absent in archive"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#: includes/extensions/backup/backup.class.php:1117
|
168 |
-
#, php-format
|
169 |
-
msgid "Can't create directory \"%s\" during import file."
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: includes/extensions/backup/backup.class.php:1121
|
173 |
-
#, php-format
|
174 |
-
msgid "Can't create file \"%s\" during import file."
|
175 |
-
msgstr ""
|
176 |
-
|
177 |
-
#: includes/extensions/backup/backup.form.php:38
|
178 |
-
msgid "Error: Can't check Maximum Upload File Size"
|
179 |
-
msgstr ""
|
180 |
-
|
181 |
#: includes/extensions/backup/backup.form.php:62
|
182 |
msgid "Robo Gallery Backup"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: includes/extensions/backup/backup.form.php:101
|
186 |
-
msgid "Error Import "
|
187 |
-
msgstr ""
|
188 |
-
|
189 |
#: includes/extensions/backup/backup.form.php:105
|
190 |
msgid "Success Import "
|
191 |
msgstr ""
|
@@ -281,55 +206,38 @@ msgstr ""
|
|
281 |
msgid "Upload XML or Zip"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: includes/extensions/category/category.class.php:
|
285 |
#: includes/options/rbs_gallery_options_button.php:52
|
286 |
msgid "Categories"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: includes/extensions/category/category.class.php:
|
290 |
msgid "Save"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: includes/extensions/category/category.class.php:
|
294 |
msgid "Cancel"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: includes/extensions/category/category.class.php:
|
298 |
-
#: includes/extensions/rbs_create_post_ajax.php:163
|
299 |
msgid "Error"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/extensions/category/category.class.php:
|
303 |
msgid "OK"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/extensions/category/category.class.php:
|
307 |
msgid "Root Category"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/extensions/category/category.class.php:
|
311 |
#: includes/extensions/rbs_create_post_ajax.php:143
|
312 |
#: includes/extensions/rbs_create_post_ajax.php:201
|
313 |
#: includes/extensions/rbs_create_post_ajax.php:202
|
314 |
msgid "Edit"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: includes/extensions/category/category.class.php:176
|
318 |
-
msgid "Post ID is absent in request"
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: includes/extensions/category/category.class.php:197
|
322 |
-
msgid "Post type is absent in request"
|
323 |
-
msgstr ""
|
324 |
-
|
325 |
-
#: includes/extensions/category/category.class.php:226
|
326 |
-
msgid "Empty posts hierarchy data for saving"
|
327 |
-
msgstr ""
|
328 |
-
|
329 |
-
#: includes/extensions/category/category.class.php:231
|
330 |
-
msgid "Wrong posts hierarchy data for saving"
|
331 |
-
msgstr ""
|
332 |
-
|
333 |
#: includes/extensions/rbs_create_post.php:10
|
334 |
msgid "Post manager"
|
335 |
msgstr ""
|
@@ -340,23 +248,7 @@ msgid "Create post"
|
|
340 |
msgstr ""
|
341 |
|
342 |
#: includes/extensions/rbs_create_post.php:17
|
343 |
-
msgid "Loading
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: includes/extensions/rbs_create_post_ajax.php:44
|
347 |
-
#: includes/extensions/rbs_create_post_ajax.php:51
|
348 |
-
#: includes/extensions/rbs_create_post_ajax.php:98
|
349 |
-
#: includes/extensions/rbs_create_post_ajax.php:133
|
350 |
-
msgid "Post not created. Error: "
|
351 |
-
msgstr ""
|
352 |
-
|
353 |
-
#: includes/extensions/rbs_create_post_ajax.php:44
|
354 |
-
#: includes/extensions/rbs_create_post_ajax.php:222
|
355 |
-
msgid "Empty gallery ID"
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: includes/extensions/rbs_create_post_ajax.php:51
|
359 |
-
msgid "Incorrect gallery ID"
|
360 |
msgstr ""
|
361 |
|
362 |
#: includes/extensions/rbs_create_post_ajax.php:54
|
@@ -404,14 +296,6 @@ msgstr ""
|
|
404 |
msgid "Preview"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: includes/extensions/rbs_create_post_ajax.php:152
|
408 |
-
msgid "Error: input value"
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: includes/extensions/rbs_create_post_ajax.php:163
|
412 |
-
msgid "Empty gallery ID"
|
413 |
-
msgstr ""
|
414 |
-
|
415 |
#: includes/extensions/rbs_create_post_ajax.php:179
|
416 |
msgid "Status"
|
417 |
msgstr ""
|
@@ -425,10 +309,6 @@ msgstr ""
|
|
425 |
msgid "publish"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: includes/extensions/rbs_create_post_ajax.php:222
|
429 |
-
msgid "Error: "
|
430 |
-
msgstr ""
|
431 |
-
|
432 |
#: includes/extensions/stats/stats.form.php:51
|
433 |
msgid "Robo Gallery Statistics"
|
434 |
msgstr ""
|
@@ -653,22 +533,22 @@ msgstr ""
|
|
653 |
msgid "search"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: includes/options/rbs_gallery_options_copy.php:
|
657 |
msgid " Clone Gallery"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/options/rbs_gallery_options_copy.php:
|
661 |
msgid "Source Gallery"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/options/rbs_gallery_options_copy.php:
|
665 |
msgid ""
|
666 |
"When you select here to inherit settings from another gallery you'll not be "
|
667 |
"able to edit some of the options. Gallery will copy all settings from "
|
668 |
"selected source."
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: includes/options/rbs_gallery_options_copy.php:
|
672 |
msgid ""
|
673 |
"Very useful option for the webmasters who planning to create a lot of "
|
674 |
"galleries. You don't have to configure it every time. Just setup styles of "
|
@@ -1244,7 +1124,8 @@ msgid "All Rights Reserved"
|
|
1244 |
msgstr ""
|
1245 |
|
1246 |
#. Plugin Name of the plugin/theme
|
1247 |
-
#: includes/rbs_gallery_button.php:27 includes/
|
|
|
1248 |
msgid "Robo Gallery"
|
1249 |
msgstr ""
|
1250 |
|
@@ -1282,20 +1163,15 @@ msgstr ""
|
|
1282 |
msgid " key"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
-
#: includes/rbs_gallery_init.php:
|
1286 |
-
msgctxt "post type singular name"
|
1287 |
-
msgid "Robo Gallery"
|
1288 |
-
msgstr ""
|
1289 |
-
|
1290 |
-
#: includes/rbs_gallery_init.php:80
|
1291 |
msgid "Galleries List"
|
1292 |
msgstr ""
|
1293 |
|
1294 |
-
#: includes/rbs_gallery_init.php:
|
1295 |
msgid "Add Gallery"
|
1296 |
msgstr ""
|
1297 |
|
1298 |
-
#: includes/rbs_gallery_init.php:
|
1299 |
msgid "Edit Gallery"
|
1300 |
msgstr ""
|
1301 |
|
@@ -1332,134 +1208,134 @@ msgstr ""
|
|
1332 |
msgid "inherit"
|
1333 |
msgstr ""
|
1334 |
|
1335 |
-
#: includes/rbs_gallery_settings.php:
|
1336 |
msgid "Compatibility Settings"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
-
#: includes/rbs_gallery_settings.php:
|
1340 |
msgid "Categories Manager"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
-
#: includes/rbs_gallery_settings.php:
|
1344 |
-
#: includes/rbs_gallery_settings.php:
|
1345 |
-
#: includes/rbs_gallery_settings.php:
|
1346 |
-
#: includes/rbs_gallery_settings.php:
|
1347 |
msgid "Show"
|
1348 |
msgstr ""
|
1349 |
|
1350 |
-
#: includes/rbs_gallery_settings.php:
|
1351 |
-
#: includes/rbs_gallery_settings.php:
|
1352 |
-
#: includes/rbs_gallery_settings.php:
|
1353 |
msgid "Hide"
|
1354 |
msgstr ""
|
1355 |
|
1356 |
-
#: includes/rbs_gallery_settings.php:
|
1357 |
msgid "jQuery Version"
|
1358 |
msgstr ""
|
1359 |
|
1360 |
-
#: includes/rbs_gallery_settings.php:
|
1361 |
msgid "Default"
|
1362 |
msgstr ""
|
1363 |
|
1364 |
-
#: includes/rbs_gallery_settings.php:
|
1365 |
msgid "Alternative"
|
1366 |
msgstr ""
|
1367 |
|
1368 |
-
#: includes/rbs_gallery_settings.php:
|
1369 |
msgid "Forced include"
|
1370 |
msgstr ""
|
1371 |
|
1372 |
-
#: includes/rbs_gallery_settings.php:
|
1373 |
msgid "Font Awesome"
|
1374 |
msgstr ""
|
1375 |
|
1376 |
-
#: includes/rbs_gallery_settings.php:
|
1377 |
msgid "Load"
|
1378 |
msgstr ""
|
1379 |
|
1380 |
-
#: includes/rbs_gallery_settings.php:
|
1381 |
msgid "Don't load"
|
1382 |
msgstr ""
|
1383 |
|
1384 |
-
#: includes/rbs_gallery_settings.php:
|
1385 |
msgid "for the case if Your theme already have awesome fonts loaded"
|
1386 |
msgstr ""
|
1387 |
|
1388 |
-
#: includes/rbs_gallery_settings.php:
|
1389 |
msgid "Switch Style"
|
1390 |
msgstr ""
|
1391 |
|
1392 |
-
#: includes/rbs_gallery_settings.php:
|
1393 |
msgid "Modern"
|
1394 |
msgstr ""
|
1395 |
|
1396 |
-
#: includes/rbs_gallery_settings.php:
|
1397 |
msgid "Classic"
|
1398 |
msgstr ""
|
1399 |
|
1400 |
-
#: includes/rbs_gallery_settings.php:
|
1401 |
msgid "Size Calculations Delay"
|
1402 |
msgstr ""
|
1403 |
|
1404 |
-
#: includes/rbs_gallery_settings.php:
|
1405 |
msgid "Debug"
|
1406 |
msgstr ""
|
1407 |
|
1408 |
-
#: includes/rbs_gallery_settings.php:
|
1409 |
-
#: includes/rbs_gallery_settings.php:
|
1410 |
-
#: includes/rbs_gallery_settings.php:
|
1411 |
msgid "Enable"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
-
#: includes/rbs_gallery_settings.php:
|
1415 |
-
#: includes/rbs_gallery_settings.php:
|
1416 |
-
#: includes/rbs_gallery_settings.php:
|
1417 |
msgid "Disable"
|
1418 |
msgstr ""
|
1419 |
|
1420 |
-
#: includes/rbs_gallery_settings.php:
|
1421 |
msgid "Express panel"
|
1422 |
msgstr ""
|
1423 |
|
1424 |
-
#: includes/rbs_gallery_settings.php:
|
1425 |
msgid "Create Post Settings"
|
1426 |
msgstr ""
|
1427 |
|
1428 |
-
#: includes/rbs_gallery_settings.php:
|
1429 |
msgid "Text Block"
|
1430 |
msgstr ""
|
1431 |
|
1432 |
-
#: includes/rbs_gallery_settings.php:
|
1433 |
msgid "Show Text"
|
1434 |
msgstr ""
|
1435 |
|
1436 |
-
#: includes/rbs_gallery_settings.php:
|
1437 |
msgid "Clone Block"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: includes/rbs_gallery_settings.php:
|
1441 |
msgid "Show Clone Block"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: includes/rbs_gallery_settings.php:
|
1445 |
msgid "SEO Optimization"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: includes/rbs_gallery_settings.php:
|
1449 |
msgid "Add SEO content"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
-
#: includes/rbs_gallery_settings.php:
|
1453 |
-
#: includes/rbs_gallery_settings.php:
|
1454 |
msgid "Enable [thumbs]"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
-
#: includes/rbs_gallery_settings.php:
|
1458 |
-
#: includes/rbs_gallery_settings.php:
|
1459 |
msgid "Enable [thumbs + link]"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: includes/rbs_gallery_settings.php:
|
1463 |
msgid "Save Changes"
|
1464 |
msgstr ""
|
1465 |
|
@@ -1495,7 +1371,7 @@ msgstr ""
|
|
1495 |
|
1496 |
#. Plugin URI of the plugin/theme
|
1497 |
#. Author URI of the plugin/theme
|
1498 |
-
msgid "
|
1499 |
msgstr ""
|
1500 |
|
1501 |
#. Description of the plugin/theme
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: Robo Gallery\n"
|
6 |
+
"POT-Creation-Date: 2017-06-16 08:10+0200\n"
|
7 |
"PO-Revision-Date: 2017-05-15 11:19+0200\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
92 |
#: cmb2/fields/toolbox/cmb-field-toolbox.php:77
|
93 |
msgid ""
|
94 |
"This function available in latest versions of the plugin. <br/>\n"
|
95 |
+
"\t\t\t\t\t\t\tPlease login to <a href=\"https://robosoft.co/clients/\" "
|
96 |
+
"target=\"_blank\">client member place section</a> and download latest "
|
97 |
+
"version of the <strong>Robo Gallery Key plugin</strong>.<br/><br/>\n"
|
98 |
"\t\t\t\t\t\t\tInstall this key on the website and all features will be "
|
99 |
"enabled.<br/>\n"
|
100 |
"\t\t\t\t\t\t\tAll previous functionality will be available with old Pro Key. "
|
107 |
msgid "disabled because you select gallery clone option"
|
108 |
msgstr ""
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
#: includes/extensions/backup/backup.form.php:62
|
111 |
msgid "Robo Gallery Backup"
|
112 |
msgstr ""
|
113 |
|
|
|
|
|
|
|
|
|
114 |
#: includes/extensions/backup/backup.form.php:105
|
115 |
msgid "Success Import "
|
116 |
msgstr ""
|
206 |
msgid "Upload XML or Zip"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: includes/extensions/category/category.class.php:46
|
210 |
#: includes/options/rbs_gallery_options_button.php:52
|
211 |
msgid "Categories"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/extensions/category/category.class.php:101
|
215 |
msgid "Save"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: includes/extensions/category/category.class.php:104
|
219 |
msgid "Cancel"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: includes/extensions/category/category.class.php:113
|
|
|
223 |
msgid "Error"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: includes/extensions/category/category.class.php:116
|
227 |
msgid "OK"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: includes/extensions/category/category.class.php:143
|
231 |
msgid "Root Category"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: includes/extensions/category/category.class.php:155
|
235 |
#: includes/extensions/rbs_create_post_ajax.php:143
|
236 |
#: includes/extensions/rbs_create_post_ajax.php:201
|
237 |
#: includes/extensions/rbs_create_post_ajax.php:202
|
238 |
msgid "Edit"
|
239 |
msgstr ""
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
#: includes/extensions/rbs_create_post.php:10
|
242 |
msgid "Post manager"
|
243 |
msgstr ""
|
248 |
msgstr ""
|
249 |
|
250 |
#: includes/extensions/rbs_create_post.php:17
|
251 |
+
msgid "Loading"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
msgstr ""
|
253 |
|
254 |
#: includes/extensions/rbs_create_post_ajax.php:54
|
296 |
msgid "Preview"
|
297 |
msgstr ""
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
#: includes/extensions/rbs_create_post_ajax.php:179
|
300 |
msgid "Status"
|
301 |
msgstr ""
|
309 |
msgid "publish"
|
310 |
msgstr ""
|
311 |
|
|
|
|
|
|
|
|
|
312 |
#: includes/extensions/stats/stats.form.php:51
|
313 |
msgid "Robo Gallery Statistics"
|
314 |
msgstr ""
|
533 |
msgid "search"
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: includes/options/rbs_gallery_options_copy.php:29
|
537 |
msgid " Clone Gallery"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: includes/options/rbs_gallery_options_copy.php:37
|
541 |
msgid "Source Gallery"
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: includes/options/rbs_gallery_options_copy.php:38
|
545 |
msgid ""
|
546 |
"When you select here to inherit settings from another gallery you'll not be "
|
547 |
"able to edit some of the options. Gallery will copy all settings from "
|
548 |
"selected source."
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: includes/options/rbs_gallery_options_copy.php:39
|
552 |
msgid ""
|
553 |
"Very useful option for the webmasters who planning to create a lot of "
|
554 |
"galleries. You don't have to configure it every time. Just setup styles of "
|
1124 |
msgstr ""
|
1125 |
|
1126 |
#. Plugin Name of the plugin/theme
|
1127 |
+
#: includes/rbs_gallery_button.php:27 includes/rbs_gallery_init.php:87
|
1128 |
+
#: includes/rbs_gallery_media.php:52 includes/rbs_gallery_settings.php:19
|
1129 |
msgid "Robo Gallery"
|
1130 |
msgstr ""
|
1131 |
|
1163 |
msgid " key"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
+
#: includes/rbs_gallery_init.php:88
|
|
|
|
|
|
|
|
|
|
|
1167 |
msgid "Galleries List"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: includes/rbs_gallery_init.php:89 includes/rbs_gallery_init.php:90
|
1171 |
msgid "Add Gallery"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: includes/rbs_gallery_init.php:91
|
1175 |
msgid "Edit Gallery"
|
1176 |
msgstr ""
|
1177 |
|
1208 |
msgid "inherit"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
+
#: includes/rbs_gallery_settings.php:20
|
1212 |
msgid "Compatibility Settings"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
+
#: includes/rbs_gallery_settings.php:30
|
1216 |
msgid "Categories Manager"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
+
#: includes/rbs_gallery_settings.php:33 includes/rbs_gallery_settings.php:34
|
1220 |
+
#: includes/rbs_gallery_settings.php:35 includes/rbs_gallery_settings.php:136
|
1221 |
+
#: includes/rbs_gallery_settings.php:137 includes/rbs_gallery_settings.php:151
|
1222 |
+
#: includes/rbs_gallery_settings.php:152
|
1223 |
msgid "Show"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
+
#: includes/rbs_gallery_settings.php:37 includes/rbs_gallery_settings.php:38
|
1227 |
+
#: includes/rbs_gallery_settings.php:139 includes/rbs_gallery_settings.php:140
|
1228 |
+
#: includes/rbs_gallery_settings.php:154 includes/rbs_gallery_settings.php:155
|
1229 |
msgid "Hide"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: includes/rbs_gallery_settings.php:44 includes/rbs_gallery_settings.php:47
|
1233 |
msgid "jQuery Version"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: includes/rbs_gallery_settings.php:48 includes/rbs_gallery_settings.php:49
|
1237 |
msgid "Default"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: includes/rbs_gallery_settings.php:51 includes/rbs_gallery_settings.php:52
|
1241 |
msgid "Alternative"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: includes/rbs_gallery_settings.php:56 includes/rbs_gallery_settings.php:57
|
1245 |
msgid "Forced include"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
+
#: includes/rbs_gallery_settings.php:64 includes/rbs_gallery_settings.php:67
|
1249 |
msgid "Font Awesome"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
+
#: includes/rbs_gallery_settings.php:68 includes/rbs_gallery_settings.php:69
|
1253 |
msgid "Load"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: includes/rbs_gallery_settings.php:71 includes/rbs_gallery_settings.php:72
|
1257 |
msgid "Don't load"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: includes/rbs_gallery_settings.php:74
|
1261 |
msgid "for the case if Your theme already have awesome fonts loaded"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: includes/rbs_gallery_settings.php:79 includes/rbs_gallery_settings.php:82
|
1265 |
msgid "Switch Style"
|
1266 |
msgstr ""
|
1267 |
|
1268 |
+
#: includes/rbs_gallery_settings.php:83 includes/rbs_gallery_settings.php:84
|
1269 |
msgid "Modern"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#: includes/rbs_gallery_settings.php:86 includes/rbs_gallery_settings.php:87
|
1273 |
msgid "Classic"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: includes/rbs_gallery_settings.php:93
|
1277 |
msgid "Size Calculations Delay"
|
1278 |
msgstr ""
|
1279 |
|
1280 |
+
#: includes/rbs_gallery_settings.php:99
|
1281 |
msgid "Debug"
|
1282 |
msgstr ""
|
1283 |
|
1284 |
+
#: includes/rbs_gallery_settings.php:102 includes/rbs_gallery_settings.php:103
|
1285 |
+
#: includes/rbs_gallery_settings.php:104 includes/rbs_gallery_settings.php:117
|
1286 |
+
#: includes/rbs_gallery_settings.php:118 includes/rbs_gallery_settings.php:119
|
1287 |
msgid "Enable"
|
1288 |
msgstr ""
|
1289 |
|
1290 |
+
#: includes/rbs_gallery_settings.php:106 includes/rbs_gallery_settings.php:107
|
1291 |
+
#: includes/rbs_gallery_settings.php:121 includes/rbs_gallery_settings.php:122
|
1292 |
+
#: includes/rbs_gallery_settings.php:178 includes/rbs_gallery_settings.php:179
|
1293 |
msgid "Disable"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
+
#: includes/rbs_gallery_settings.php:114
|
1297 |
msgid "Express panel"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
+
#: includes/rbs_gallery_settings.php:129
|
1301 |
msgid "Create Post Settings"
|
1302 |
msgstr ""
|
1303 |
|
1304 |
+
#: includes/rbs_gallery_settings.php:132
|
1305 |
msgid "Text Block"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
+
#: includes/rbs_gallery_settings.php:135
|
1309 |
msgid "Show Text"
|
1310 |
msgstr ""
|
1311 |
|
1312 |
+
#: includes/rbs_gallery_settings.php:147
|
1313 |
msgid "Clone Block"
|
1314 |
msgstr ""
|
1315 |
|
1316 |
+
#: includes/rbs_gallery_settings.php:150
|
1317 |
msgid "Show Clone Block"
|
1318 |
msgstr ""
|
1319 |
|
1320 |
+
#: includes/rbs_gallery_settings.php:162
|
1321 |
msgid "SEO Optimization"
|
1322 |
msgstr ""
|
1323 |
|
1324 |
+
#: includes/rbs_gallery_settings.php:165
|
1325 |
msgid "Add SEO content"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
+
#: includes/rbs_gallery_settings.php:168 includes/rbs_gallery_settings.php:169
|
1329 |
+
#: includes/rbs_gallery_settings.php:170
|
1330 |
msgid "Enable [thumbs]"
|
1331 |
msgstr ""
|
1332 |
|
1333 |
+
#: includes/rbs_gallery_settings.php:173 includes/rbs_gallery_settings.php:174
|
1334 |
+
#: includes/rbs_gallery_settings.php:175
|
1335 |
msgid "Enable [thumbs + link]"
|
1336 |
msgstr ""
|
1337 |
|
1338 |
+
#: includes/rbs_gallery_settings.php:188
|
1339 |
msgid "Save Changes"
|
1340 |
msgstr ""
|
1341 |
|
1371 |
|
1372 |
#. Plugin URI of the plugin/theme
|
1373 |
#. Author URI of the plugin/theme
|
1374 |
+
msgid "https://robosoft.co/gallery"
|
1375 |
msgstr ""
|
1376 |
|
1377 |
#. Description of the plugin/theme
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
|
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -254,6 +254,10 @@ If any problem occurs, please contact us.
|
|
254 |
|
255 |
== Changelog ==
|
256 |
|
|
|
|
|
|
|
|
|
257 |
= 2.6.15 =
|
258 |
* Modification of the admin interface
|
259 |
* Changed notification mode in settings section
|
@@ -389,6 +393,10 @@ If any problem occurs, please contact us.
|
|
389 |
|
390 |
== Upgrade Notice ==
|
391 |
|
|
|
|
|
|
|
|
|
392 |
= 2.6.15 =
|
393 |
Modification of the admin interface
|
394 |
Changed notification mode in settings section
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 2.6.16
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
254 |
|
255 |
== Changelog ==
|
256 |
|
257 |
+
= 2.6.16 =
|
258 |
+
* Extend languages support
|
259 |
+
* Update of the statistics features
|
260 |
+
|
261 |
= 2.6.15 =
|
262 |
* Modification of the admin interface
|
263 |
* Changed notification mode in settings section
|
393 |
|
394 |
== Upgrade Notice ==
|
395 |
|
396 |
+
= 2.6.16 =
|
397 |
+
Extend languages support
|
398 |
+
Update of the statistics features
|
399 |
+
|
400 |
= 2.6.15 =
|
401 |
Modification of the admin interface
|
402 |
Changed notification mode in settings section
|
robogallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/gallery
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
-
Version: 2.6.
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
@@ -15,13 +15,13 @@ if(!defined('WPINC'))die;
|
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
-
define("ROBO_GALLERY_VERSION", '2.6.
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
define("ROBO_GALLERY_SPECIAL", 1);
|
23 |
-
define("ROBO_GALLERY_EVENT_DATE", '2017-
|
24 |
-
define("ROBO_GALLERY_EVENT_HOUR",
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function rbs_gallery_load_textdomain() {
|
@@ -62,13 +62,13 @@ define("ROBO_GALLERY_URL", plugin_dir_url( __FILE__ ));
|
|
62 |
|
63 |
function activateRoboGallery() {
|
64 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
65 |
-
|
66 |
}
|
67 |
register_activation_hook( __FILE__, 'activateRoboGallery' );
|
68 |
|
69 |
function deactivateRoboGallery() {
|
70 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
71 |
-
|
72 |
}
|
73 |
register_deactivation_hook( __FILE__, 'deactivateRoboGallery' );
|
74 |
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/gallery
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
+
Version: 2.6.16
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
+
define("ROBO_GALLERY_VERSION", '2.6.16');
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
define("ROBO_GALLERY_SPECIAL", 1);
|
23 |
+
define("ROBO_GALLERY_EVENT_DATE", '2017-07-03');
|
24 |
+
define("ROBO_GALLERY_EVENT_HOUR", 48);
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function rbs_gallery_load_textdomain() {
|
62 |
|
63 |
function activateRoboGallery() {
|
64 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
65 |
+
Robo_Gallery_Activator::activate();
|
66 |
}
|
67 |
register_activation_hook( __FILE__, 'activateRoboGallery' );
|
68 |
|
69 |
function deactivateRoboGallery() {
|
70 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
71 |
+
Robo_Gallery_Activator::deactivate();
|
72 |
}
|
73 |
register_deactivation_hook( __FILE__, 'deactivateRoboGallery' );
|
74 |
|