diff --git a/config/vufind/config.ini b/config/vufind/config.ini index 4b1bce1eccbbcdff6b90b4239e4d3f0329147297..4e9aac758c38f417995fe1ac73cefe8d6c8a103a 100644 --- a/config/vufind/config.ini +++ b/config/vufind/config.ini @@ -23,10 +23,10 @@ email = support@myuniversity.edu title = "Library Catalog" ; This is the default theme for non-mobile devices (or all devices if mobile_theme ; is disabled below). Available standard themes: -; blueprint = XHTML theme using Blueprint + jQuery libraries [deprecated] ; bootstrap3 = HTML5 theme using Bootstrap 3 + jQuery libraries, with minimal ; styling -; bootprint3 = bootstrap3 theme styled to resemble old blueprint theme +; bootprint3 = bootstrap3 theme with more attractive default styling applied +; (named after the earlier, now-deprecated blueprint theme) theme = bootprint3 ; Uncomment the following line to use a different default theme for mobile devices. ; You may not wish to use this setting if you are using one of the Bootstrap-based diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php index e62040caa03eede252059f55a124dadecc50c362..3349acb39cff8ff8d5a39095ce080312a0efa3b6 100644 --- a/module/VuFind/src/VuFind/Controller/AjaxController.php +++ b/module/VuFind/src/VuFind/Controller/AjaxController.php @@ -854,108 +854,6 @@ class AjaxController extends AbstractBase return $retVal; } - /** - * Save a record to a list. - * - * @return \Zend\Http\Response - */ - protected function saveRecordAjax() - { - $user = $this->getUser(); - if (!$user) { - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - } - - $driver = $this->getRecordLoader()->load( - $this->params()->fromPost('id'), - $this->params()->fromPost('source', 'VuFind') - ); - $post = $this->getRequest()->getPost()->toArray(); - $tagParser = $this->getServiceLocator()->get('VuFind\Tags'); - $post['mytags'] = $tagParser->parse($post['mytags']); - $driver->saveToFavorites($post, $user); - return $this->output('Done', self::STATUS_OK); - } - - /** - * Saves records to a User's favorites - * - * @return \Zend\Http\Response - */ - protected function bulkSaveAjax() - { - // Without IDs, we can't continue - $ids = $this->params()->fromPost('ids', []); - if (empty($ids)) { - return $this->output( - ['result' => $this->translate('bulk_error_missing')], - self::STATUS_ERROR - ); - } - - $user = $this->getUser(); - if (!$user) { - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - } - - try { - $this->favorites()->saveBulk( - $this->getRequest()->getPost()->toArray(), $user - ); - return $this->output( - [ - 'result' => ['list' => $this->params()->fromPost('list')], - 'info' => $this->translate("bulk_save_success") - ], self::STATUS_OK - ); - } catch (\Exception $e) { - return $this->output( - ['info' => $this->translate('bulk_save_error')], - self::STATUS_ERROR - ); - } - } - - /** - * Add a list. - * - * @return \Zend\Http\Response - */ - protected function addListAjax() - { - $user = $this->getUser(); - - try { - $table = $this->getTable('UserList'); - $list = $table->getNew($user); - $id = $list->updateFromRequest($user, $this->getRequest()->getPost()); - } catch (\Exception $e) { - switch(get_class($e)) { - case 'VuFind\Exception\LoginRequired': - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - break; - case 'VuFind\Exception\ListPermission': - case 'VuFind\Exception\MissingField': - return $this->output( - $this->translate($e->getMessage()), self::STATUS_ERROR - ); - default: - throw $e; - } - } - - return $this->output(['id' => $id], self::STATUS_OK); - } - /** * Get Autocomplete suggestions. * @@ -972,159 +870,6 @@ class AjaxController extends AbstractBase ); } - /** - * Text a record. - * - * @return \Zend\Http\Response - */ - protected function smsRecordAjax() - { - $this->writeSession(); // avoid session write timing bug - // Attempt to send the email: - try { - // Check captcha - $this->recaptcha()->setErrorMode('throw'); - $useRecaptcha = $this->recaptcha()->active('sms'); - // Process form submission: - if (!$this->formWasSubmitted('id', $useRecaptcha)) { - throw new \Exception('recaptcha_not_passed'); - } - $record = $this->getRecordLoader()->load( - $this->params()->fromPost('id'), - $this->params()->fromPost('source', 'VuFind') - ); - $to = $this->params()->fromPost('to'); - $body = $this->getViewRenderer()->partial( - 'Email/record-sms.phtml', ['driver' => $record, 'to' => $to] - ); - $this->getServiceLocator()->get('VuFind\SMS')->text( - $this->params()->fromPost('provider'), $to, null, $body - ); - return $this->output( - $this->translate('sms_success'), self::STATUS_OK - ); - } catch (\Exception $e) { - return $this->output( - $this->translate($e->getMessage()), self::STATUS_ERROR - ); - } - } - - /** - * Email a record. - * - * @return \Zend\Http\Response - */ - protected function emailRecordAjax() - { - $this->writeSession(); // avoid session write timing bug - - // Force login if necessary: - $config = $this->getConfig(); - if ((!isset($config->Mail->require_login) || $config->Mail->require_login) - && !$this->getUser() - ) { - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - } - - // Attempt to send the email: - try { - // Check captcha - $this->recaptcha()->setErrorMode('throw'); - $useRecaptcha = $this->recaptcha()->active('email'); - // Process form submission: - if (!$this->formWasSubmitted('id', $useRecaptcha)) { - throw new \Exception('recaptcha_not_passed'); - } - - $record = $this->getRecordLoader()->load( - $this->params()->fromPost('id'), - $this->params()->fromPost('source', 'VuFind') - ); - $mailer = $this->getServiceLocator()->get('VuFind\Mailer'); - $view = $this->createEmailViewModel( - null, $mailer->getDefaultRecordSubject($record) - ); - $mailer->setMaxRecipients($view->maxRecipients); - $cc = $this->params()->fromPost('ccself') && $view->from != $view->to - ? $view->from : null; - $mailer->sendRecord( - $view->to, $view->from, $view->message, $record, - $this->getViewRenderer(), $view->subject, $cc - ); - return $this->output( - $this->translate('email_success'), self::STATUS_OK - ); - } catch (\Exception $e) { - return $this->output( - $this->translate($e->getMessage()), self::STATUS_ERROR - ); - } - } - - /** - * Email a search. - * - * @return \Zend\Http\Response - */ - protected function emailSearchAjax() - { - $this->writeSession(); // avoid session write timing bug - - // Force login if necessary: - $config = $this->getConfig(); - if ((!isset($config->Mail->require_login) || $config->Mail->require_login) - && !$this->getUser() - ) { - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - } - - // Make sure URL is properly formatted -- if no protocol is specified, run it - // through the serverurl helper: - $url = $this->params()->fromPost('url'); - if (substr($url, 0, 4) != 'http') { - $urlHelper = $this->getViewRenderer()->plugin('serverurl'); - $url = $urlHelper($url); - } - - // Attempt to send the email: - try { - // Check captcha - $this->recaptcha()->setErrorMode('throw'); - $useRecaptcha = $this->recaptcha()->active('email'); - // Process form submission: - if (!$this->formWasSubmitted('url', $useRecaptcha)) { - throw new \Exception('recaptcha_not_passed'); - } - - $mailer = $this->getServiceLocator()->get('VuFind\Mailer'); - $defaultSubject = $this->params()->fromQuery('cart') - ? $this->translate('bulk_email_title') - : $mailer->getDefaultLinkSubject(); - $view = $this->createEmailViewModel(null, $defaultSubject); - $mailer->setMaxRecipients($view->maxRecipients); - $cc = $this->params()->fromPost('ccself') && $view->from != $view->to - ? $view->from : null; - $mailer->sendLink( - $view->to, $view->from, $view->message, $url, - $this->getViewRenderer(), $view->subject, $cc - ); - return $this->output( - $this->translate('email_success'), self::STATUS_OK - ); - } catch (\Exception $e) { - return $this->output( - $this->translate($e->getMessage()), self::STATUS_ERROR - ); - } - } - /** * Check Request is Valid * @@ -1278,57 +1023,6 @@ class AjaxController extends AbstractBase return $this->output($html, self::STATUS_OK); } - /** - * Delete multiple items from favorites or a list. - * - * @return \Zend\Http\Response - */ - protected function deleteFavoritesAjax() - { - $user = $this->getUser(); - if ($user === false) { - return $this->output( - $this->translate('You must be logged in first'), - self::STATUS_NEED_AUTH - ); - } - - $listID = $this->params()->fromPost('listID'); - $ids = $this->params()->fromPost('ids'); - - if (!is_array($ids)) { - return $this->output( - $this->translate('delete_missing'), - self::STATUS_ERROR - ); - } - - $this->favorites()->delete($ids, $listID, $user); - return $this->output( - ['result' => $this->translate('fav_delete_success')], - self::STATUS_OK - ); - } - - /** - * Delete records from a User's cart - * - * @return \Zend\Http\Response - */ - protected function removeItemsCartAjax() - { - // Without IDs, we can't continue - $ids = $this->params()->fromPost('ids'); - if (empty($ids)) { - return $this->output( - ['result' => $this->translate('bulk_error_missing')], - self::STATUS_ERROR - ); - } - $this->getServiceLocator()->get('VuFind\Cart')->removeItems($ids); - return $this->output(['delete' => true], self::STATUS_OK); - } - /** * Process an export request * diff --git a/module/VuFind/src/VuFind/View/Helper/Blueprint/Factory.php b/module/VuFind/src/VuFind/View/Helper/Blueprint/Factory.php deleted file mode 100644 index 27ef1985263a8ebb93cf0e7b22100bbb465234f8..0000000000000000000000000000000000000000 --- a/module/VuFind/src/VuFind/View/Helper/Blueprint/Factory.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/** - * Factory for Blueprint view helpers. - * - * PHP version 5 - * - * Copyright (C) Villanova University 2014. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -namespace VuFind\View\Helper\Blueprint; -use Zend\ServiceManager\ServiceManager; - -/** - * Factory for Blueprint view helpers. - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - * - * @codeCoverageIgnore - */ -class Factory -{ - /** - * Construct the LayoutClass helper. - * - * @param ServiceManager $sm Service manager. - * - * @return LayoutClass - */ - public static function getLayoutClass(ServiceManager $sm) - { - $config = $sm->getServiceLocator()->get('VuFind\Config')->get('config'); - $left = !isset($config->Site->sidebarOnLeft) - ? false : $config->Site->sidebarOnLeft; - return new LayoutClass($left); - } -} \ No newline at end of file diff --git a/module/VuFind/src/VuFind/View/Helper/Blueprint/LayoutClass.php b/module/VuFind/src/VuFind/View/Helper/Blueprint/LayoutClass.php deleted file mode 100644 index 10fb76a091ea288e82dd823d47e2bee70851ba51..0000000000000000000000000000000000000000 --- a/module/VuFind/src/VuFind/View/Helper/Blueprint/LayoutClass.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php -/** - * Helper class for managing blueprint theme's high-level (body vs. sidebar) page - * layout. - * - * PHP version 5 - * - * Copyright (C) Villanova University 2011. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -namespace VuFind\View\Helper\Blueprint; - -/** - * Helper class for managing blueprint theme's high-level (body vs. sidebar) page - * layout. - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -class LayoutClass extends \VuFind\View\Helper\AbstractLayoutClass -{ - /** - * Helper to allow easily configurable page layout -- given a broad class - * name, return appropriate CSS classes to lay out the page according to - * the current configuration file settings. - * - * @param string $class Type of class to return ('mainbody' or 'sidebar') - * - * @return string CSS classes to apply - */ - public function __invoke($class) - { - switch ($class) { - case 'mainbody': - return $this->left ? 'span-18 push-5 last' : 'span-18'; - case 'sidebar': - return $this->left ? 'span-5 pull-18 sidebarOnLeft' : 'span-5 last'; - default: - return ''; - } - } -} \ No newline at end of file diff --git a/module/VuFind/src/VuFind/View/Helper/Blueprint/Search.php b/module/VuFind/src/VuFind/View/Helper/Blueprint/Search.php deleted file mode 100644 index 42ef66b5fc7042953baa060056ecd2b8ce17d7c4..0000000000000000000000000000000000000000 --- a/module/VuFind/src/VuFind/View/Helper/Blueprint/Search.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php -/** - * Helper class for displaying search-related HTML chunks. - * - * PHP version 5 - * - * Copyright (C) Villanova University 2011. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -namespace VuFind\View\Helper\Blueprint; - -/** - * Helper class for displaying search-related HTML chunks. - * - * @category VuFind2 - * @package View_Helpers - * @author Demian Katz <demian.katz@villanova.edu> - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License - * @link http://vufind.org/wiki/vufind2:developer_manual Wiki - */ -class Search extends \VuFind\View\Helper\AbstractSearch -{ - /** - * Get the CSS classes for the container holding the suggestions. - * - * @return string - */ - protected function getContainerClass() - { - return 'corrections'; - } - - /** - * Render an expand link. - * - * @param string $url Link href - * @param \Zend\View\Renderer\PhpRenderer $view View renderer object - * - * @return string - */ - protected function renderExpandLink($url, $view) - { - return '<a href="' . $url . '"><img src="' - . $view->imageLink('silk/expand.png') - . '" alt="' . $view->transEsc('spell_expand_alt') . '"/></a>'; - } -} \ No newline at end of file diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php index 3de75198fdff3b93a50a3a83b67e4fb75d57d468..a7f1ac5490c4356d145c5f613479d9daa730b2dd 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/Config/UpgradeTest.php @@ -94,7 +94,7 @@ class UpgradeTest extends \VuFindTest\Unit\TestCase $this->assertTrue(isset($results['sms.ini']['Carriers'])); $warnings = $upgrader->getWarnings(); - // Prior to 1.3, we expect exactly one warning about using a non-blueprint + // Prior to 2.4, we expect exactly one warning about using a deprecated // theme: if ((float)$version < 1.3) { $this->assertEquals(1, count($warnings)); @@ -105,6 +105,15 @@ class UpgradeTest extends \VuFindTest\Unit\TestCase . "reimplement your custom theme.", $warnings[0] ); + } else if ((float)$version < 2.4) { + $this->assertEquals(1, count($warnings)); + $this->assertEquals( + "WARNING: This version of VuFind does not support " + . "the blueprint theme. Your config.ini [Site] theme setting " + . "has been reset to the default: bootprint3. You may need to " + . "reimplement your custom theme.", + $warnings[0] + ); } else { $this->assertEquals(0, count($warnings)); } diff --git a/themes/blueprint/css/.htaccess b/themes/blueprint/css/.htaccess deleted file mode 100644 index f2e01735bf72b96391f55aca5f20f2c98ed9aef8..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ -<IfModule mod_rewrite.c> - RewriteEngine Off -</IfModule> - -RemoveType .css -AddType text/css .css \ No newline at end of file diff --git a/themes/blueprint/css/EDS.css b/themes/blueprint/css/EDS.css deleted file mode 100644 index 454ca401bfccf9b2979d5400eb7cd93e2639bddc..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/EDS.css +++ /dev/null @@ -1,78 +0,0 @@ -/* publication type css */ - -.pt-icon { width: 70px; float: left; display: inline-block; background-image: url('../images/EDS/PT_Sprite.png'); background-repeat: no-repeat; } -.pt-serialPeriodical { background-position: -30px -30px; height: 59px; } -.pt-newspaperArticle { background-position: -140px -30px; height: 51px; } -.pt-image { background-position: -245px -30px; height: 47px; } -.pt-videoRecording { background-position: -345px -30px; height: 63px; } -.pt-score { background-position: -445px -30px; height: 57px; } -.pt-audio { background-position: -545px -30px; height: 49px; } -.pt-map { background-position: -35px -120px; height: 45px; } -.pt-book { background-position: -140px -120px; height: 59px; } -.pt-kitObject { background-position: -245px -120px; height: 50px; } -.pt-academicJournal, .pt-unknown { background-position: -345px -120px; height: 57px; } -.pt-dissertation { background-position: -445px -120px; height: 63px; } -.pt-literaryMaterial, .pt-authors { background-position: -35px -215px; height: 55px; } -.pt-tableChart { background-position: -140px -215px; height: 49px; } -.pt-patent { background-position: -245px -215px; height: 56px; } -.pt-report { background-position: -345px -215px; height: 63px; } -.pt-reference, .pt-readersAdvisory { background-position: -445px -215px; height: 52px; } -.pt-governmentDocument { background-position: -545px -215px; height: 60px; } -.pt-editorialOpinion { background-position: -35px -305px; height: 47px; } -.pt-transcript { background-position: -140px -305px; height: 63px; } -.pt-review { background-position: -245px -305px; height: 48px; } -.pt-biography { background-position: -345px -305px; height: 53px; } -.pt-electronicResource { background-position: -445px -305px; height: 63px; } -.pt-recommendedReadsList { background-position: -540px -305px; height: 61px; } -.pt-pictureBookExtender { background-position: -35px -400px; height: 65px; } -.pt-grabAndGo { background-position: -140px -400px; height: 51px; } -.pt-featureArticle { background-position: -245px -400px; height: 65px; } -.pt-curricularConnection { background-position: -345px -400px; height: 65px; } -.pt-bookTalk { background-position: -455px -400px; height: 55px; } -.pt-bookDiscussionGuides { background-position: -545px -400px; height: 55px; } -.pt-awardWinner { background-position: -34px -500px; height: 70px; } -.pt-authorReadalike { background-position: -140px -500px; height: 60px; } -.pt-series { background-position: -245px -495px; height: 75px; } -.pt-ebook { background-position: -350px -510px; height: 60px; } -.pt-audiobook { background-position: -440px -510px; height: 60px; } -.pt-conference { background-position: -545px -505px; height: 70px; } -.pt-Poem { background-position: -35px -615px; height: 60px; } -.pt-ShortStory { background-position: -141px -620px; height: 55px; } -.pt-play{ background-position: -245px -620px; height: 50px; } - -/* full text icons */ -/* Icons */ -.icon { - background: url("../images/EDS/sprites_32.png") no-repeat top left; - height: 32px; - line-height: 32px; - display: inline-block; - padding-left: 36px; -} - -.icon.ebook { - background-position: 0 0; -} - -.icon.html { - background-position: 0 -42px; -} - -.icon.pdf { - background-position: 0 -84px; -} - -.icon13 { - background: url("../images/sprites_32.png") no-repeat top left; - padding-left: 18px; - width: 13px; - height: 13px; -} - -.icon13.collapsed { - background-position: 0 -126px; -} - -.icon13.expanded { - background-position: 0 -149px; -} \ No newline at end of file diff --git a/themes/blueprint/css/blueprint/IMPORTANT-README.txt b/themes/blueprint/css/blueprint/IMPORTANT-README.txt deleted file mode 100644 index 906877b57e2aac2195cee8b07eadcd4778dc6e79..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/IMPORTANT-README.txt +++ /dev/null @@ -1,15 +0,0 @@ -The default styles for form input elements are pretty ugly (at least on Mac OSX). -Those styles are commented out in screen.css (see below). If the default blueprint styles -are desired, you can uncomment them.... - -These are the styles that have been commented out in screen.css. -/* -input[type=text], input[type=password], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} -input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;} -select {background-color:#fff;border-width:1px;border-style:solid;} -input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} -input.text, input.title {width:300px;padding:5px;} -input.title {font-size:1.5em;} -textarea {width:390px;height:250px;padding:5px;} -*/ - diff --git a/themes/blueprint/css/blueprint/ie.css b/themes/blueprint/css/blueprint/ie.css deleted file mode 100644 index 61a5371437013b59312a41fe4732cfcc54ff5330..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/ie.css +++ /dev/null @@ -1,36 +0,0 @@ -/* ----------------------------------------------------------------------- - - - Blueprint CSS Framework 1.0 - http://blueprintcss.org - - * Copyright (c) 2007-Present. See LICENSE for more info. - * See README for instructions on how to use Blueprint. - * For credits and origins, see AUTHORS. - * This is a compressed file. See the sources in the 'src' directory. - ------------------------------------------------------------------------ */ - -/* ie.css */ -body {text-align:center;} -.container {text-align:left;} -* html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {display:inline;overflow-x:hidden;} -* html legend {margin:0px -8px 16px 0;padding:0;} -sup {vertical-align:text-top;} -sub {vertical-align:text-bottom;} -html>body p code {*white-space:normal;} -hr {margin:-8px auto 11px;} -img {-ms-interpolation-mode:bicubic;} -.clearfix, .container {display:inline-block;} -* html .clearfix, * html .container {height:1%;} -fieldset {padding-top:0;} -legend {margin-top:-0.2em;margin-bottom:1em;margin-left:-0.5em;} -textarea {overflow:auto;} -label {vertical-align:middle;position:relative;top:-0.25em;} -input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} -input.text:focus, input.title:focus {border-color:#666;} -input.text, input.title, textarea, select {margin:0.5em 0;} -input.checkbox, input.radio {position:relative;top:.25em;} -form.inline div, form.inline p {vertical-align:middle;} -form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} -button, input.button {position:relative;top:0.25em;} \ No newline at end of file diff --git a/themes/blueprint/css/blueprint/print.css b/themes/blueprint/css/blueprint/print.css deleted file mode 100644 index fe2e08944674f5f0ef84ee171c773622d637b6b2..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/print.css +++ /dev/null @@ -1,29 +0,0 @@ -/* ----------------------------------------------------------------------- - - - Blueprint CSS Framework 1.0 - http://blueprintcss.org - - * Copyright (c) 2007-Present. See LICENSE for more info. - * See README for instructions on how to use Blueprint. - * For credits and origins, see AUTHORS. - * This is a compressed file. See the sources in the 'src' directory. - ------------------------------------------------------------------------ */ - -/* print.css */ -body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} -.container {background:none;} -hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} -hr.space {background:#fff;color:#fff;visibility:hidden;} -h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} -code {font:.9em "Courier New", Monaco, Courier, monospace;} -a img {border:none;} -p img.top {margin-top:0;} -blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} -.small {font-size:.9em;} -.large {font-size:1.1em;} -.quiet {color:#999;} -.hide {display:none;} -a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} -a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} \ No newline at end of file diff --git a/themes/blueprint/css/blueprint/screen.css b/themes/blueprint/css/blueprint/screen.css deleted file mode 100644 index 0efd0b8828089d8d374d8d8a5ff2c3fdf57b73ff..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/screen.css +++ /dev/null @@ -1,267 +0,0 @@ -/* ----------------------------------------------------------------------- - - - Blueprint CSS Framework 1.0 - http://blueprintcss.org - - * Copyright (c) 2007-Present. See LICENSE for more info. - * See README for instructions on how to use Blueprint. - * For credits and origins, see AUTHORS. - * This is a compressed file. See the sources in the 'src' directory. - ------------------------------------------------------------------------ */ - -/* reset.css */ -html {margin:0;padding:0;border:0;} -body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} -article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;} -body {line-height:1.5;background:white;} -table {border-collapse:separate;border-spacing:0;} -caption, th, td {text-align:left;font-weight:normal;float:none !important;} -table, th, td {vertical-align:middle;} -blockquote:before, blockquote:after, q:before, q:after {content:'';} -blockquote, q {quotes:"" "";} -a img {border:none;} -:focus {outline:0;} - -/* typography.css */ -html {font-size:100.01%;} -body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} -h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} -h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} -h2 {font-size:2em;margin-bottom:0.75em;} -h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} -h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} -h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} -h6 {font-size:1em;font-weight:bold;} -h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} -p {margin:0 0 1.5em;} -.left {float:left !important;} -p .left {margin:1.5em 1.5em 1.5em 0;padding:0;} -.right {float:right !important;} -p .right {margin:1.5em 0 1.5em 1.5em;padding:0;} -a:focus, a:hover {color:#09f;} -a {color:#06c;text-decoration:underline;} -blockquote {margin:1.5em;color:#666;font-style:italic;} -strong, dfn {font-weight:bold;} -em, dfn {font-style:italic;} -sup, sub {line-height:0;} -abbr, acronym {border-bottom:1px dotted #666;} -address {margin:0 0 1.5em;font-style:italic;} -del {color:#666;} -pre {margin:1.5em 0;white-space:pre;} -pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} -li ul, li ol {margin:0;} -ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;} -ul {list-style-type:disc;} -ol {list-style-type:decimal;} -dl {margin:0 0 1.5em 0;} -dl dt {font-weight:bold;} -dd {margin-left:1.5em;} -table {margin-bottom:1.4em;width:100%;} -th {font-weight:bold;} -thead th {background:#c3d9ff;} -th, td, caption {padding:4px 10px 4px 5px;} -tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;} -tfoot {font-style:italic;} -caption {background:#eee;} -.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} -.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} -.hide {display:none;} -.quiet {color:#666;} -.loud {color:#000;} -.highlight {background:#ff0;} -.added {background:#060;color:#fff;} -.removed {background:#900;color:#fff;} -.first {margin-left:0;padding-left:0;} -.last {margin-right:0;padding-right:0;} -.top {margin-top:0;padding-top:0;} -.bottom {margin-bottom:0;padding-bottom:0;} - -/* forms.css */ -label {font-weight:bold;} -fieldset {padding:0 1.4em 1.4em 1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} -legend {font-weight:bold;font-size:1.2em;margin-top:-0.2em;margin-bottom:1em;} -fieldset, #IE8#HACK {padding-top:1.4em;} -legend, #IE8#HACK {margin-top:0;margin-bottom:0;} -/* -input[type=text], input[type=password], input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;} -input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus {border-color:#666;} -select {background-color:#fff;border-width:1px;border-style:solid;} -input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} -input.text, input.title {width:300px;padding:5px;} -input.title {font-size:1.5em;} -textarea {width:390px;height:250px;padding:5px;} -*/ -form.inline {line-height:3;} -form.inline p {margin-bottom:0;} -.error, .alert, .notice, .success, .info {padding:0.8em;margin-bottom:1em;border:2px solid #ddd;} -.error, .alert {background:#fbe3e4;color:#8a1f11;border-color:#fbc2c4;} -.notice {background:#fff6bf;color:#514721;border-color:#ffd324;} -.success {background:#e6efc2;color:#264409;border-color:#c6d880;} -.info {background:#d5edf8;color:#205791;border-color:#92cae4;} -.error a, .alert a {color:#8a1f11;} -.notice a {color:#514721;} -.success a {color:#264409;} -.info a {color:#205791;} - -/* grid.css */ -.container {width:950px;margin:0 auto;} -.showgrid {background:url(src/grid.png);} -.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {float:left;margin-right:10px;} -.last {margin-right:0;} -.span-1 {width:30px;} -.span-2 {width:70px;} -.span-3 {width:110px;} -.span-4 {width:150px;} -.span-5 {width:190px;} -.span-6 {width:230px;} -.span-7 {width:270px;} -.span-8 {width:310px;} -.span-9 {width:350px;} -.span-10 {width:390px;} -.span-11 {width:430px;} -.span-12 {width:470px;} -.span-13 {width:510px;} -.span-14 {width:550px;} -.span-15 {width:590px;} -.span-16 {width:630px;} -.span-17 {width:670px;} -.span-18 {width:710px;} -.span-19 {width:750px;} -.span-20 {width:790px;} -.span-21 {width:830px;} -.span-22 {width:870px;} -.span-23 {width:910px;} -.span-24 {width:950px;margin-right:0;} -input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px;border-right-width:1px;padding-left:5px;padding-right:5px;} -input.span-1, textarea.span-1 {width:18px;} -input.span-2, textarea.span-2 {width:58px;} -input.span-3, textarea.span-3 {width:98px;} -input.span-4, textarea.span-4 {width:138px;} -input.span-5, textarea.span-5 {width:178px;} -input.span-6, textarea.span-6 {width:218px;} -input.span-7, textarea.span-7 {width:258px;} -input.span-8, textarea.span-8 {width:298px;} -input.span-9, textarea.span-9 {width:338px;} -input.span-10, textarea.span-10 {width:378px;} -input.span-11, textarea.span-11 {width:418px;} -input.span-12, textarea.span-12 {width:458px;} -input.span-13, textarea.span-13 {width:498px;} -input.span-14, textarea.span-14 {width:538px;} -input.span-15, textarea.span-15 {width:578px;} -input.span-16, textarea.span-16 {width:618px;} -input.span-17, textarea.span-17 {width:658px;} -input.span-18, textarea.span-18 {width:698px;} -input.span-19, textarea.span-19 {width:738px;} -input.span-20, textarea.span-20 {width:778px;} -input.span-21, textarea.span-21 {width:818px;} -input.span-22, textarea.span-22 {width:858px;} -input.span-23, textarea.span-23 {width:898px;} -input.span-24, textarea.span-24 {width:938px;} -.append-1 {padding-right:40px;} -.append-2 {padding-right:80px;} -.append-3 {padding-right:120px;} -.append-4 {padding-right:160px;} -.append-5 {padding-right:200px;} -.append-6 {padding-right:240px;} -.append-7 {padding-right:280px;} -.append-8 {padding-right:320px;} -.append-9 {padding-right:360px;} -.append-10 {padding-right:400px;} -.append-11 {padding-right:440px;} -.append-12 {padding-right:480px;} -.append-13 {padding-right:520px;} -.append-14 {padding-right:560px;} -.append-15 {padding-right:600px;} -.append-16 {padding-right:640px;} -.append-17 {padding-right:680px;} -.append-18 {padding-right:720px;} -.append-19 {padding-right:760px;} -.append-20 {padding-right:800px;} -.append-21 {padding-right:840px;} -.append-22 {padding-right:880px;} -.append-23 {padding-right:920px;} -.prepend-1 {padding-left:40px;} -.prepend-2 {padding-left:80px;} -.prepend-3 {padding-left:120px;} -.prepend-4 {padding-left:160px;} -.prepend-5 {padding-left:200px;} -.prepend-6 {padding-left:240px;} -.prepend-7 {padding-left:280px;} -.prepend-8 {padding-left:320px;} -.prepend-9 {padding-left:360px;} -.prepend-10 {padding-left:400px;} -.prepend-11 {padding-left:440px;} -.prepend-12 {padding-left:480px;} -.prepend-13 {padding-left:520px;} -.prepend-14 {padding-left:560px;} -.prepend-15 {padding-left:600px;} -.prepend-16 {padding-left:640px;} -.prepend-17 {padding-left:680px;} -.prepend-18 {padding-left:720px;} -.prepend-19 {padding-left:760px;} -.prepend-20 {padding-left:800px;} -.prepend-21 {padding-left:840px;} -.prepend-22 {padding-left:880px;} -.prepend-23 {padding-left:920px;} -.border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;} -.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #ddd;} -.pull-1 {margin-left:-40px;} -.pull-2 {margin-left:-80px;} -.pull-3 {margin-left:-120px;} -.pull-4 {margin-left:-160px;} -.pull-5 {margin-left:-200px;} -.pull-6 {margin-left:-240px;} -.pull-7 {margin-left:-280px;} -.pull-8 {margin-left:-320px;} -.pull-9 {margin-left:-360px;} -.pull-10 {margin-left:-400px;} -.pull-11 {margin-left:-440px;} -.pull-12 {margin-left:-480px;} -.pull-13 {margin-left:-520px;} -.pull-14 {margin-left:-560px;} -.pull-15 {margin-left:-600px;} -.pull-16 {margin-left:-640px;} -.pull-17 {margin-left:-680px;} -.pull-18 {margin-left:-720px;} -.pull-19 {margin-left:-760px;} -.pull-20 {margin-left:-800px;} -.pull-21 {margin-left:-840px;} -.pull-22 {margin-left:-880px;} -.pull-23 {margin-left:-920px;} -.pull-24 {margin-left:-960px;} -.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} -.push-1 {margin:0 -40px 1.5em 40px;} -.push-2 {margin:0 -80px 1.5em 80px;} -.push-3 {margin:0 -120px 1.5em 120px;} -.push-4 {margin:0 -160px 1.5em 160px;} -.push-5 {margin:0 -200px 1.5em 200px;} -.push-6 {margin:0 -240px 1.5em 240px;} -.push-7 {margin:0 -280px 1.5em 280px;} -.push-8 {margin:0 -320px 1.5em 320px;} -.push-9 {margin:0 -360px 1.5em 360px;} -.push-10 {margin:0 -400px 1.5em 400px;} -.push-11 {margin:0 -440px 1.5em 440px;} -.push-12 {margin:0 -480px 1.5em 480px;} -.push-13 {margin:0 -520px 1.5em 520px;} -.push-14 {margin:0 -560px 1.5em 560px;} -.push-15 {margin:0 -600px 1.5em 600px;} -.push-16 {margin:0 -640px 1.5em 640px;} -.push-17 {margin:0 -680px 1.5em 680px;} -.push-18 {margin:0 -720px 1.5em 720px;} -.push-19 {margin:0 -760px 1.5em 760px;} -.push-20 {margin:0 -800px 1.5em 800px;} -.push-21 {margin:0 -840px 1.5em 840px;} -.push-22 {margin:0 -880px 1.5em 880px;} -.push-23 {margin:0 -920px 1.5em 920px;} -.push-24 {margin:0 -960px 1.5em 960px;} -.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:left;position:relative;} -div.prepend-top, .prepend-top {margin-top:1.5em;} -div.append-bottom, .append-bottom {margin-bottom:1.5em;} -.box {padding:1.5em;margin-bottom:1.5em;background:#e5eCf9;} -hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 1.45em;border:none;} -hr.space {background:#fff;color:#fff;visibility:hidden;} -.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} -.clearfix, .container {display:block;} -.clear {clear:both;} \ No newline at end of file diff --git a/themes/blueprint/css/blueprint/src/forms.css b/themes/blueprint/css/blueprint/src/forms.css deleted file mode 100644 index 4dc4bc2ec36be0837d132293d5541b30ec898723..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/forms.css +++ /dev/null @@ -1,81 +0,0 @@ -/* -------------------------------------------------------------- - - forms.css - * Sets up some default styling for forms - * Gives you classes to enhance your forms - - Usage: - * For text fields, use class .title or .text - * For inline forms, use .inline (even when using columns) - --------------------------------------------------------------- */ - -/* - A special hack is included for IE8 since it does not apply padding - correctly on fieldsets - */ -label { font-weight: bold; } -fieldset { padding:0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; } -legend { font-weight: bold; font-size:1.2em; margin-top:-0.2em; margin-bottom:1em; } - -fieldset, #IE8#HACK { padding-top:1.4em; } -legend, #IE8#HACK { margin-top:0; margin-bottom:0; } - -/* Form fields --------------------------------------------------------------- */ - -/* - Attribute selectors are used to differentiate the different types - of input elements, but to support old browsers, you will have to - add classes for each one. ".title" simply creates a large text - field, this is purely for looks. - */ -input[type=text], input[type=password], -input.text, input.title, -textarea { - background-color:#fff; - border:1px solid #bbb; -} -input[type=text]:focus, input[type=password]:focus, -input.text:focus, input.title:focus, -textarea:focus { - border-color:#666; -} -select { background-color:#fff; border-width:1px; border-style:solid; } - -input[type=text], input[type=password], -input.text, input.title, -textarea, select { - margin:0.5em 0; -} - -input.text, -input.title { width: 300px; padding:5px; } -input.title { font-size:1.5em; } -textarea { width: 390px; height: 250px; padding:5px; } - -/* - This is to be used on forms where a variety of elements are - placed side-by-side. Use the p tag to denote a line. - */ -form.inline { line-height:3; } -form.inline p { margin-bottom:0; } - - -/* Success, info, notice and error/alert boxes --------------------------------------------------------------- */ - -.error, -.alert, -.notice, -.success, -.info { padding: 0.8em; margin-bottom: 1em; border: 2px solid #ddd; } - -.error, .alert { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; } -.notice { background: #fff6bf; color: #514721; border-color: #ffd324; } -.success { background: #e6efc2; color: #264409; border-color: #c6d880; } -.info { background: #d5edf8; color: #205791; border-color: #92cae4; } -.error a, .alert a { color: #8a1f11; } -.notice a { color: #514721; } -.success a { color: #264409; } -.info a { color: #205791; } diff --git a/themes/blueprint/css/blueprint/src/grid.css b/themes/blueprint/css/blueprint/src/grid.css deleted file mode 100644 index c102c1fbde8febbe5da9ed17643b5974aef9fb7e..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/grid.css +++ /dev/null @@ -1,280 +0,0 @@ -/* -------------------------------------------------------------- - - grid.css - * Sets up an easy-to-use grid of 24 columns. - - By default, the grid is 950px wide, with 24 columns - spanning 30px, and a 10px margin between columns. - - If you need fewer or more columns, namespaces or semantic - element names, use the compressor script (lib/compress.rb) - --------------------------------------------------------------- */ - -/* A container should group all your columns. */ -.container { - width: 950px; - margin: 0 auto; -} - -/* Use this class on any .span / container to see the grid. */ -.showgrid { - background: url(src/grid.png); -} - - -/* Columns --------------------------------------------------------------- */ - -/* Sets up basic grid floating and margin. */ -.column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 { - float: left; - margin-right: 10px; -} - -/* The last column in a row needs this class. */ -.last { margin-right: 0; } - -/* Use these classes to set the width of a column. */ -.span-1 {width: 30px;} - -.span-2 {width: 70px;} -.span-3 {width: 110px;} -.span-4 {width: 150px;} -.span-5 {width: 190px;} -.span-6 {width: 230px;} -.span-7 {width: 270px;} -.span-8 {width: 310px;} -.span-9 {width: 350px;} -.span-10 {width: 390px;} -.span-11 {width: 430px;} -.span-12 {width: 470px;} -.span-13 {width: 510px;} -.span-14 {width: 550px;} -.span-15 {width: 590px;} -.span-16 {width: 630px;} -.span-17 {width: 670px;} -.span-18 {width: 710px;} -.span-19 {width: 750px;} -.span-20 {width: 790px;} -.span-21 {width: 830px;} -.span-22 {width: 870px;} -.span-23 {width: 910px;} -.span-24 {width:950px; margin-right:0;} - -/* Use these classes to set the width of an input. */ -input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 { - border-left-width: 1px; - border-right-width: 1px; - padding-left: 5px; - padding-right: 5px; -} - -input.span-1, textarea.span-1 { width: 18px; } -input.span-2, textarea.span-2 { width: 58px; } -input.span-3, textarea.span-3 { width: 98px; } -input.span-4, textarea.span-4 { width: 138px; } -input.span-5, textarea.span-5 { width: 178px; } -input.span-6, textarea.span-6 { width: 218px; } -input.span-7, textarea.span-7 { width: 258px; } -input.span-8, textarea.span-8 { width: 298px; } -input.span-9, textarea.span-9 { width: 338px; } -input.span-10, textarea.span-10 { width: 378px; } -input.span-11, textarea.span-11 { width: 418px; } -input.span-12, textarea.span-12 { width: 458px; } -input.span-13, textarea.span-13 { width: 498px; } -input.span-14, textarea.span-14 { width: 538px; } -input.span-15, textarea.span-15 { width: 578px; } -input.span-16, textarea.span-16 { width: 618px; } -input.span-17, textarea.span-17 { width: 658px; } -input.span-18, textarea.span-18 { width: 698px; } -input.span-19, textarea.span-19 { width: 738px; } -input.span-20, textarea.span-20 { width: 778px; } -input.span-21, textarea.span-21 { width: 818px; } -input.span-22, textarea.span-22 { width: 858px; } -input.span-23, textarea.span-23 { width: 898px; } -input.span-24, textarea.span-24 { width: 938px; } - -/* Add these to a column to append empty cols. */ - -.append-1 { padding-right: 40px;} -.append-2 { padding-right: 80px;} -.append-3 { padding-right: 120px;} -.append-4 { padding-right: 160px;} -.append-5 { padding-right: 200px;} -.append-6 { padding-right: 240px;} -.append-7 { padding-right: 280px;} -.append-8 { padding-right: 320px;} -.append-9 { padding-right: 360px;} -.append-10 { padding-right: 400px;} -.append-11 { padding-right: 440px;} -.append-12 { padding-right: 480px;} -.append-13 { padding-right: 520px;} -.append-14 { padding-right: 560px;} -.append-15 { padding-right: 600px;} -.append-16 { padding-right: 640px;} -.append-17 { padding-right: 680px;} -.append-18 { padding-right: 720px;} -.append-19 { padding-right: 760px;} -.append-20 { padding-right: 800px;} -.append-21 { padding-right: 840px;} -.append-22 { padding-right: 880px;} -.append-23 { padding-right: 920px;} - -/* Add these to a column to prepend empty cols. */ - -.prepend-1 { padding-left: 40px;} -.prepend-2 { padding-left: 80px;} -.prepend-3 { padding-left: 120px;} -.prepend-4 { padding-left: 160px;} -.prepend-5 { padding-left: 200px;} -.prepend-6 { padding-left: 240px;} -.prepend-7 { padding-left: 280px;} -.prepend-8 { padding-left: 320px;} -.prepend-9 { padding-left: 360px;} -.prepend-10 { padding-left: 400px;} -.prepend-11 { padding-left: 440px;} -.prepend-12 { padding-left: 480px;} -.prepend-13 { padding-left: 520px;} -.prepend-14 { padding-left: 560px;} -.prepend-15 { padding-left: 600px;} -.prepend-16 { padding-left: 640px;} -.prepend-17 { padding-left: 680px;} -.prepend-18 { padding-left: 720px;} -.prepend-19 { padding-left: 760px;} -.prepend-20 { padding-left: 800px;} -.prepend-21 { padding-left: 840px;} -.prepend-22 { padding-left: 880px;} -.prepend-23 { padding-left: 920px;} - - -/* Border on right hand side of a column. */ -.border { - padding-right: 4px; - margin-right: 5px; - border-right: 1px solid #ddd; -} - -/* Border with more whitespace, spans one column. */ -.colborder { - padding-right: 24px; - margin-right: 25px; - border-right: 1px solid #ddd; -} - - -/* Use these classes on an element to push it into the -next column, or to pull it into the previous column. */ - - -.pull-1 { margin-left: -40px; } -.pull-2 { margin-left: -80px; } -.pull-3 { margin-left: -120px; } -.pull-4 { margin-left: -160px; } -.pull-5 { margin-left: -200px; } -.pull-6 { margin-left: -240px; } -.pull-7 { margin-left: -280px; } -.pull-8 { margin-left: -320px; } -.pull-9 { margin-left: -360px; } -.pull-10 { margin-left: -400px; } -.pull-11 { margin-left: -440px; } -.pull-12 { margin-left: -480px; } -.pull-13 { margin-left: -520px; } -.pull-14 { margin-left: -560px; } -.pull-15 { margin-left: -600px; } -.pull-16 { margin-left: -640px; } -.pull-17 { margin-left: -680px; } -.pull-18 { margin-left: -720px; } -.pull-19 { margin-left: -760px; } -.pull-20 { margin-left: -800px; } -.pull-21 { margin-left: -840px; } -.pull-22 { margin-left: -880px; } -.pull-23 { margin-left: -920px; } -.pull-24 { margin-left: -960px; } - -.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;} - - -.push-1 { margin: 0 -40px 1.5em 40px; } -.push-2 { margin: 0 -80px 1.5em 80px; } -.push-3 { margin: 0 -120px 1.5em 120px; } -.push-4 { margin: 0 -160px 1.5em 160px; } -.push-5 { margin: 0 -200px 1.5em 200px; } -.push-6 { margin: 0 -240px 1.5em 240px; } -.push-7 { margin: 0 -280px 1.5em 280px; } -.push-8 { margin: 0 -320px 1.5em 320px; } -.push-9 { margin: 0 -360px 1.5em 360px; } -.push-10 { margin: 0 -400px 1.5em 400px; } -.push-11 { margin: 0 -440px 1.5em 440px; } -.push-12 { margin: 0 -480px 1.5em 480px; } -.push-13 { margin: 0 -520px 1.5em 520px; } -.push-14 { margin: 0 -560px 1.5em 560px; } -.push-15 { margin: 0 -600px 1.5em 600px; } -.push-16 { margin: 0 -640px 1.5em 640px; } -.push-17 { margin: 0 -680px 1.5em 680px; } -.push-18 { margin: 0 -720px 1.5em 720px; } -.push-19 { margin: 0 -760px 1.5em 760px; } -.push-20 { margin: 0 -800px 1.5em 800px; } -.push-21 { margin: 0 -840px 1.5em 840px; } -.push-22 { margin: 0 -880px 1.5em 880px; } -.push-23 { margin: 0 -920px 1.5em 920px; } -.push-24 { margin: 0 -960px 1.5em 960px; } - -.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: left; position:relative;} - - -/* Misc classes and elements --------------------------------------------------------------- */ - -/* In case you need to add a gutter above/below an element */ -div.prepend-top, .prepend-top { - margin-top:1.5em; -} -div.append-bottom, .append-bottom { - margin-bottom:1.5em; -} - -/* Use a .box to create a padded box inside a column. */ -.box { - padding: 1.5em; - margin-bottom: 1.5em; - background: #e5eCf9; -} - -/* Use this to create a horizontal ruler across a column. */ -hr { - background: #ddd; - color: #ddd; - clear: both; - float: none; - width: 100%; - height: 1px; - margin: 0 0 1.45em; - border: none; -} - -hr.space { - background: #fff; - color: #fff; - visibility: hidden; -} - - -/* Clearing floats without extra markup - Based on How To Clear Floats Without Structural Markup by PiE - [http://www.positioniseverything.net/easyclearing.html] */ - -.clearfix:after, .container:after { - content: "\0020"; - display: block; - height: 0; - clear: both; - visibility: hidden; - overflow:hidden; -} -.clearfix, .container {display: block;} - -/* Regular clearing - apply to column that should drop below previous ones. */ - -.clear { clear:both; } diff --git a/themes/blueprint/css/blueprint/src/grid.png b/themes/blueprint/css/blueprint/src/grid.png deleted file mode 100644 index d42a6c32c173bf067ee9fe1aa062afd915fb366c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/blueprint/src/grid.png and /dev/null differ diff --git a/themes/blueprint/css/blueprint/src/ie.css b/themes/blueprint/css/blueprint/src/ie.css deleted file mode 100644 index 111a2eaf2e0cffaf747d1d44d2f72d5fe0a1a64a..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/ie.css +++ /dev/null @@ -1,79 +0,0 @@ -/* -------------------------------------------------------------- - - ie.css - - Contains every hack for Internet Explorer, - so that our core files stay sweet and nimble. - --------------------------------------------------------------- */ - -/* Make sure the layout is centered in IE5 */ -body { text-align: center; } -.container { text-align: left; } - -/* Fixes IE margin bugs */ -* html .column, * html .span-1, * html .span-2, -* html .span-3, * html .span-4, * html .span-5, -* html .span-6, * html .span-7, * html .span-8, -* html .span-9, * html .span-10, * html .span-11, -* html .span-12, * html .span-13, * html .span-14, -* html .span-15, * html .span-16, * html .span-17, -* html .span-18, * html .span-19, * html .span-20, -* html .span-21, * html .span-22, * html .span-23, -* html .span-24 { display:inline; overflow-x: hidden; } - - -/* Elements --------------------------------------------------------------- */ - -/* Fixes incorrect styling of legend in IE6. */ -* html legend { margin:0px -8px 16px 0; padding:0; } - -/* Fixes wrong line-height on sup/sub in IE. */ -sup { vertical-align:text-top; } -sub { vertical-align:text-bottom; } - -/* Fixes IE7 missing wrapping of code elements. */ -html>body p code { *white-space: normal; } - -/* IE 6&7 has problems with setting proper <hr> margins. */ -hr { margin:-8px auto 11px; } - -/* Explicitly set interpolation, allowing dynamically resized images to not look horrible */ -img { -ms-interpolation-mode:bicubic; } - -/* Clearing --------------------------------------------------------------- */ - -/* Makes clearfix actually work in IE */ -.clearfix, .container { display:inline-block; } -* html .clearfix, -* html .container { height:1%; } - - -/* Forms --------------------------------------------------------------- */ - -/* Fixes padding on fieldset */ -fieldset { padding-top:0; } -legend { margin-top:-0.2em; margin-bottom:1em; margin-left:-0.5em; } - -/* Makes classic textareas in IE 6 resemble other browsers */ -textarea { overflow:auto; } - -/* Makes labels behave correctly in IE 6 and 7 */ -label { vertical-align:middle; position:relative; top:-0.25em; } - -/* Fixes rule that IE 6 ignores */ -input.text, input.title, textarea { background-color:#fff; border:1px solid #bbb; } -input.text:focus, input.title:focus { border-color:#666; } -input.text, input.title, textarea, select { margin:0.5em 0; } -input.checkbox, input.radio { position:relative; top:.25em; } - -/* Fixes alignment of inline form elements */ -form.inline div, form.inline p { vertical-align:middle; } -form.inline input.checkbox, form.inline input.radio, -form.inline input.button, form.inline button { - margin:0.5em 0; -} -button, input.button { position:relative;top:0.25em; } diff --git a/themes/blueprint/css/blueprint/src/print.css b/themes/blueprint/css/blueprint/src/print.css deleted file mode 100644 index 5db0e65c5e5df914765f70ebcb1b398d57f951eb..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/print.css +++ /dev/null @@ -1,92 +0,0 @@ -/* -------------------------------------------------------------- - - print.css - * Gives you some sensible styles for printing pages. - * See Readme file in this directory for further instructions. - - Some additions you'll want to make, customized to your markup: - #header, #footer, #navigation { display:none; } - --------------------------------------------------------------- */ - -body { - line-height: 1.5; - font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; - color:#000; - background: none; - font-size: 10pt; -} - - -/* Layout --------------------------------------------------------------- */ - -.container { - background: none; -} - -hr { - background:#ccc; - color:#ccc; - width:100%; - height:2px; - margin:2em 0; - padding:0; - border:none; -} -hr.space { - background: #fff; - color: #fff; - visibility: hidden; -} - - -/* Text --------------------------------------------------------------- */ - -h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; } -code { font:.9em "Courier New", Monaco, Courier, monospace; } - -a img { border:none; } -p img.top { margin-top: 0; } - -blockquote { - margin:1.5em; - padding:1em; - font-style:italic; - font-size:.9em; -} - -.small { font-size: .9em; } -.large { font-size: 1.1em; } -.quiet { color: #999; } -.hide { display:none; } - - -/* Links --------------------------------------------------------------- */ - -a:link, a:visited { - background: transparent; - font-weight:700; - text-decoration: underline; -} - -/* - This has been the source of many questions in the past. This - snippet of CSS appends the URL of each link within the text. - The idea is that users printing your webpage will want to know - the URLs they go to. If you want to remove this functionality, - comment out this snippet and make sure to re-compress your files. - */ -a:link:after, a:visited:after { - content: " (" attr(href) ")"; - font-size: 90%; -} - -/* If you're having trouble printing relative links, uncomment and customize this: - (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */ - -/* a[href^="/"]:after { - content: " (http://www.yourdomain.com" attr(href) ") "; -} */ diff --git a/themes/blueprint/css/blueprint/src/reset.css b/themes/blueprint/css/blueprint/src/reset.css deleted file mode 100644 index 1417c4c63c928d7e75fee24f319522baf1c206ec..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/reset.css +++ /dev/null @@ -1,67 +0,0 @@ -/* -------------------------------------------------------------- - - reset.css - * Resets default browser CSS. - --------------------------------------------------------------- */ - -html { - margin:0; - padding:0; - border:0; -} - -body, div, span, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, code, -del, dfn, em, img, q, dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, dialog, figure, footer, header, -hgroup, nav, section { - margin: 0; - padding: 0; - border: 0; - font-weight: inherit; - font-style: inherit; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; -} - -/* This helps to make newer HTML5 elements behave like DIVs in older browers */ -article, aside, dialog, figure, footer, header, -hgroup, nav, section { - display:block; -} - -/* Line-height should always be unitless! */ -body { - line-height: 1.5; - background: white; -} - -/* Tables still need 'cellspacing="0"' in the markup. */ -table { - border-collapse: separate; - border-spacing: 0; -} -/* float:none prevents the span-x classes from breaking table-cell display */ -caption, th, td { - text-align: left; - font-weight: normal; - float:none !important; -} -table, th, td { - vertical-align: middle; -} - -/* Remove possible quote marks (") from <q>, <blockquote>. */ -blockquote:before, blockquote:after, q:before, q:after { content: ''; } -blockquote, q { quotes: "" ""; } - -/* Remove annoying border on linked images. */ -a img { border: none; } - -/* Remember to define your own focus styles! */ -:focus { outline: 0; } \ No newline at end of file diff --git a/themes/blueprint/css/blueprint/src/typography.css b/themes/blueprint/css/blueprint/src/typography.css deleted file mode 100644 index 159832045c447ba606c0c1cd71be5f8e3e91787c..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/blueprint/src/typography.css +++ /dev/null @@ -1,123 +0,0 @@ -/* -------------------------------------------------------------- - - typography.css - * Sets up some sensible default typography. - --------------------------------------------------------------- */ - -/* Default font settings. - The font-size percentage is of 16px. (0.75 * 16px = 12px) */ -html { font-size:100.01%; } -body { - font-size: 75%; - color: #222; - background: #fff; - font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; -} - - -/* Headings --------------------------------------------------------------- */ - -h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; } - -h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; } -h2 { font-size: 2em; margin-bottom: 0.75em; } -h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; } -h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; } -h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; } -h6 { font-size: 1em; font-weight: bold; } - -h1 img, h2 img, h3 img, -h4 img, h5 img, h6 img { - margin: 0; -} - - -/* Text elements --------------------------------------------------------------- */ - -p { margin: 0 0 1.5em; } -/* - These can be used to pull an image at the start of a paragraph, so - that the text flows around it (usage: <p><img class="left">Text</p>) - */ -.left { float: left !important; } -p .left { margin: 1.5em 1.5em 1.5em 0; padding: 0; } -.right { float: right !important; } -p .right { margin: 1.5em 0 1.5em 1.5em; padding: 0; } - -a:focus, -a:hover { color: #09f; } -a { color: #06c; text-decoration: underline; } - -blockquote { margin: 1.5em; color: #666; font-style: italic; } -strong,dfn { font-weight: bold; } -em,dfn { font-style: italic; } -sup, sub { line-height: 0; } - -abbr, -acronym { border-bottom: 1px dotted #666; } -address { margin: 0 0 1.5em; font-style: italic; } -del { color:#666; } - -pre { margin: 1.5em 0; white-space: pre; } -pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; } - - -/* Lists --------------------------------------------------------------- */ - -li ul, -li ol { margin: 0; } -ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; } - -ul { list-style-type: disc; } -ol { list-style-type: decimal; } - -dl { margin: 0 0 1.5em 0; } -dl dt { font-weight: bold; } -dd { margin-left: 1.5em;} - - -/* Tables --------------------------------------------------------------- */ - -/* - Because of the need for padding on TH and TD, the vertical rhythm - on table cells has to be 27px, instead of the standard 18px or 36px - of other elements. - */ -table { margin-bottom: 1.4em; width:100%; } -th { font-weight: bold; } -thead th { background: #c3d9ff; } -th,td,caption { padding: 4px 10px 4px 5px; } -/* - You can zebra-stripe your tables in outdated browsers by adding - the class "even" to every other table row. - */ -tbody tr:nth-child(even) td, -tbody tr.even td { - background: #e5ecf9; -} -tfoot { font-style: italic; } -caption { background: #eee; } - - -/* Misc classes --------------------------------------------------------------- */ - -.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; } -.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; } -.hide { display: none; } - -.quiet { color: #666; } -.loud { color: #000; } -.highlight { background:#ff0; } -.added { background:#060; color: #fff; } -.removed { background:#900; color: #fff; } - -.first { margin-left:0; padding-left:0; } -.last { margin-right:0; padding-right:0; } -.top { margin-top:0; padding-top:0; } -.bottom { margin-bottom:0; padding-bottom:0; } diff --git a/themes/blueprint/css/combined.css b/themes/blueprint/css/combined.css deleted file mode 100644 index 5b5bec034d737377789d328cede5baab90345530..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/combined.css +++ /dev/null @@ -1,6 +0,0 @@ -.main {padding:0;} -.main .combined-list {margin:0 2px;} -.main .combined-list .result [class^=span-] {width:100%;} -.main .combined-list .result .last {display:none;} -.main .combined-list .result .summcover {display:block;margin:0 auto;} -.main .combined-list .result .span-15 {margin-left:5px;width:80%} \ No newline at end of file diff --git a/themes/blueprint/css/ie.css b/themes/blueprint/css/ie.css deleted file mode 100644 index 3eb855d7d9ae31bec6005439a42b22fb4e461cf7..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/ie.css +++ /dev/null @@ -1,6 +0,0 @@ -/** Hacks for IE */ - -/* Left align citations */ -.ui-dialog-content.ui-widget-content { - text-align:left; -} \ No newline at end of file diff --git a/themes/blueprint/css/ie8-tab.css b/themes/blueprint/css/ie8-tab.css deleted file mode 100644 index 73dd277f3685676ced7ca1d8900d40ee24497d43..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/ie8-tab.css +++ /dev/null @@ -1,15 +0,0 @@ -/* Hacks for IE8 */ - -#feedbackTabText { - width: 86px; - height: 30px; - margin-top: -88px; - margin-left: 0px; - position: relative; - text-indent: 0; - text-align: center; - color: white; - font: bold 15px/30px 'lucida sans', 'trebuchet MS', 'Tahoma'; - z-index: 10; - -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; /* Internet Explorer */ -} diff --git a/themes/blueprint/css/inspector.css b/themes/blueprint/css/inspector.css deleted file mode 100644 index 010d987293806a5a763a5010e0230240ba59ed94..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/inspector.css +++ /dev/null @@ -1,139 +0,0 @@ -/* Version 1.3b */ - -.jquery_inspector { - padding:0; - -moz-user-select:none; - -webkit-user-select:none; - user-select:none -} -.jquery_inspector .loading { - display:table; - position:absolute; - top:10px; - left:50%; - width:100px; - margin-left:-50px; - color:#FFF; - font:10pt Tahoma,Verdana,Arial; - text-align:center; -} - -.jquery_inspector .turn_left, -.jquery_inspector .turn_right { - z-index:1; - position:absolute; - top:4px; - width:32px; - height:32px; - cursor:pointer; -} -.jquery_inspector .turn_left { - left:5px; -} -.jquery_inspector .turn_right { - right:5px; -} - -.jquery_inspector .zoom_level { - z-index:1; - font:14px Verdana; - color:#FFF; - text-align:center; - position:absolute; - bottom:10px; - left:50%; - margin:0 0 0 -50px; - padding:3px 2px 3px 3px; - width:80px; - cursor:pointer; - background:rgba(0,0,0,.5); - filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#88000000', EndColorStr='#88000000'); - border-radius:4px; - -moz-user-select:none; - -webkit-user-select:none; - user-select:none -} -.jquery_inspector .zoom_level span { - display:inline-block; - width:41px -} -.jquery_inspector .zoom_level .plus, -.jquery_inspector .zoom_level .minus { - color:#FFF; - text-decoration:none -} - -/* -- MAP -- */ -.jquery_inspector .doc_map { - position:absolute; - bottom:0; - right:0; - width:150px; - height:150px; - border:1px solid #DDD; - border-width:1px 0 0 1px; - z-index:1; - background:#000; - background:rgba(0,0,0,.7); - filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#AA000000', EndColorStr='#AA000000'); - box-shadow:0 0 10px #000; -} -.jquery_inspector .doc_map img { - position:absolute; - z-index:1; -} -.jquery_inspector .doc_map .pane { - display:block; - position:absolute; - left:10px; - top:10px; - border:2px solid #E00; - background:url('../images/trans.png'); - overflow:hidden; - width:130px; - height:130px; - cursor:move; - z-index:2; -} - -/* -- ZOOM SET BUBBLES -- */ -.jquery_inspector .zoom-set { - position:absolute; - left:50%; - margin:0 0 0 -58px; - bottom:42px; - width:95px; - background:#FFF; - border:1px solid #000; - border-radius:5px; - -moz-border-radius:5px; - -webkit-border-radius:5px; - padding:4px 5px; - text-align:right; -} -.jquery_inspector .zoom-set input { - font:12px Verdana -} -.jquery_inspector .zoom-set button { - font:11px Verdana; - vertical-align:top -} -.jquery_inspector .zoom-set:before, -.jquery_inspector .zoom-set:after { - content:""; - display:block; - position:absolute; - left:50%; - width:0; - bottom:-8px; - margin-left:-6px; - border-color:#000 transparent; - border-style:solid; - border-width:8px 8px 0 -} -.jquery_inspector .zoom-set:after { - bottom:-7px; - margin-left:-5px; - border-color:#FFF transparent; - border-width:7px 7px 0 -} \ No newline at end of file diff --git a/themes/blueprint/css/jquery-ui/README-build-options.txt b/themes/blueprint/css/jquery-ui/README-build-options.txt deleted file mode 100644 index 98bfa6d8a1048eb139990d7be338ee498e564104..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/jquery-ui/README-build-options.txt +++ /dev/null @@ -1,5 +0,0 @@ -UI Core: all -Interactions: Draggable, Droppable -Widgets: Autocomplete, Dialog, Tabs, Slider -Effects: none -Theme: smoothness \ No newline at end of file diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png deleted file mode 100644 index 5b5dab2ab7b1c50dea9cfe73dc5a269a92d2d4b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png deleted file mode 100644 index ac8b229af950c29356abf64a6c4aa894575445f0..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png deleted file mode 100644 index ad3d6346e00f246102f72f2e026ed0491988b394..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png deleted file mode 100644 index 42ccba269b6e91bef12ad0fa18be651b5ef0ee68..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png deleted file mode 100644 index 5a46b47cb16631068aee9e0bd61269fc4e95e5cd..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png deleted file mode 100644 index 86c2baa655eac8539db34f8d9adb69ec1226201c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png deleted file mode 100644 index 4443fdc1a156babad4336f004eaf5ca5dfa0f9ab..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png deleted file mode 100644 index 7c9fa6c6edcfcdd3e5b77e6f547b719e6fc66e30..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png deleted file mode 100644 index b273ff111d219c9b9a8b96d57683d0075fb7871a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png deleted file mode 100644 index 09d1cdc856c292c4ab6dd818c7543ac0828bd616..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png deleted file mode 100644 index 59bd45b907c4fd965697774ce8c5fc6b2fd9c105..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png deleted file mode 100644 index 6d02426c114be4b57aabc0a80b8a63d9e56b9eb6..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png b/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png deleted file mode 100644 index 2ab019b73ec11a485fa09378f3a0e155194f6a5d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png and /dev/null differ diff --git a/themes/blueprint/css/jquery-ui/css/smoothness/jquery-ui.css b/themes/blueprint/css/jquery-ui/css/smoothness/jquery-ui.css deleted file mode 100644 index bb945652d6885da981931b7a86faa303054e1683..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/jquery-ui/css/smoothness/jquery-ui.css +++ /dev/null @@ -1,404 +0,0 @@ -/* - * jQuery UI CSS Framework 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Theming/API - */ - -/* Layout helpers -----------------------------------*/ -.ui-helper-hidden { display: none; } -.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } -.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } -.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } -.ui-helper-clearfix { display: inline-block; } -/* required comment for clearfix to work in Opera \*/ -* html .ui-helper-clearfix { height:1%; } -.ui-helper-clearfix { display:block; } -/* end clearfix */ -.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } - - -/* Interaction Cues -----------------------------------*/ -.ui-state-disabled { cursor: default !important; } - - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } - - -/* Misc visuals -----------------------------------*/ - -/* Overlays */ -.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } - - -/* - * jQuery UI CSS Framework 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Theming/API - * - * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px - */ - - -/* Component containers -----------------------------------*/ -.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; } -.ui-widget .ui-widget { font-size: 1em; } -.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; } -.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; } -.ui-widget-content a { color: #222222; } -.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; } -.ui-widget-header a { color: #222222; } - -/* Interaction states -----------------------------------*/ -.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; } -.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; } -.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } -.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; } -.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } -.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; } -.ui-widget :active { outline: none; } - -/* Interaction Cues -----------------------------------*/ -.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; } -.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; } -.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; } -.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; } -.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; } -.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } -.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } -.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } - -/* Icons -----------------------------------*/ - -/* states and images */ -.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); } -.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } -.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } -.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); } -.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); } -.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); } -.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); } -.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); } - -/* positioning */ -.ui-icon-carat-1-n { background-position: 0 0; } -.ui-icon-carat-1-ne { background-position: -16px 0; } -.ui-icon-carat-1-e { background-position: -32px 0; } -.ui-icon-carat-1-se { background-position: -48px 0; } -.ui-icon-carat-1-s { background-position: -64px 0; } -.ui-icon-carat-1-sw { background-position: -80px 0; } -.ui-icon-carat-1-w { background-position: -96px 0; } -.ui-icon-carat-1-nw { background-position: -112px 0; } -.ui-icon-carat-2-n-s { background-position: -128px 0; } -.ui-icon-carat-2-e-w { background-position: -144px 0; } -.ui-icon-triangle-1-n { background-position: 0 -16px; } -.ui-icon-triangle-1-ne { background-position: -16px -16px; } -.ui-icon-triangle-1-e { background-position: -32px -16px; } -.ui-icon-triangle-1-se { background-position: -48px -16px; } -.ui-icon-triangle-1-s { background-position: -64px -16px; } -.ui-icon-triangle-1-sw { background-position: -80px -16px; } -.ui-icon-triangle-1-w { background-position: -96px -16px; } -.ui-icon-triangle-1-nw { background-position: -112px -16px; } -.ui-icon-triangle-2-n-s { background-position: -128px -16px; } -.ui-icon-triangle-2-e-w { background-position: -144px -16px; } -.ui-icon-arrow-1-n { background-position: 0 -32px; } -.ui-icon-arrow-1-ne { background-position: -16px -32px; } -.ui-icon-arrow-1-e { background-position: -32px -32px; } -.ui-icon-arrow-1-se { background-position: -48px -32px; } -.ui-icon-arrow-1-s { background-position: -64px -32px; } -.ui-icon-arrow-1-sw { background-position: -80px -32px; } -.ui-icon-arrow-1-w { background-position: -96px -32px; } -.ui-icon-arrow-1-nw { background-position: -112px -32px; } -.ui-icon-arrow-2-n-s { background-position: -128px -32px; } -.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } -.ui-icon-arrow-2-e-w { background-position: -160px -32px; } -.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } -.ui-icon-arrowstop-1-n { background-position: -192px -32px; } -.ui-icon-arrowstop-1-e { background-position: -208px -32px; } -.ui-icon-arrowstop-1-s { background-position: -224px -32px; } -.ui-icon-arrowstop-1-w { background-position: -240px -32px; } -.ui-icon-arrowthick-1-n { background-position: 0 -48px; } -.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } -.ui-icon-arrowthick-1-e { background-position: -32px -48px; } -.ui-icon-arrowthick-1-se { background-position: -48px -48px; } -.ui-icon-arrowthick-1-s { background-position: -64px -48px; } -.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } -.ui-icon-arrowthick-1-w { background-position: -96px -48px; } -.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } -.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } -.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } -.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } -.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } -.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } -.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } -.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } -.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } -.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } -.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } -.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } -.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } -.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } -.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } -.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } -.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } -.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } -.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } -.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } -.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } -.ui-icon-arrow-4 { background-position: 0 -80px; } -.ui-icon-arrow-4-diag { background-position: -16px -80px; } -.ui-icon-extlink { background-position: -32px -80px; } -.ui-icon-newwin { background-position: -48px -80px; } -.ui-icon-refresh { background-position: -64px -80px; } -.ui-icon-shuffle { background-position: -80px -80px; } -.ui-icon-transfer-e-w { background-position: -96px -80px; } -.ui-icon-transferthick-e-w { background-position: -112px -80px; } -.ui-icon-folder-collapsed { background-position: 0 -96px; } -.ui-icon-folder-open { background-position: -16px -96px; } -.ui-icon-document { background-position: -32px -96px; } -.ui-icon-document-b { background-position: -48px -96px; } -.ui-icon-note { background-position: -64px -96px; } -.ui-icon-mail-closed { background-position: -80px -96px; } -.ui-icon-mail-open { background-position: -96px -96px; } -.ui-icon-suitcase { background-position: -112px -96px; } -.ui-icon-comment { background-position: -128px -96px; } -.ui-icon-person { background-position: -144px -96px; } -.ui-icon-print { background-position: -160px -96px; } -.ui-icon-trash { background-position: -176px -96px; } -.ui-icon-locked { background-position: -192px -96px; } -.ui-icon-unlocked { background-position: -208px -96px; } -.ui-icon-bookmark { background-position: -224px -96px; } -.ui-icon-tag { background-position: -240px -96px; } -.ui-icon-home { background-position: 0 -112px; } -.ui-icon-flag { background-position: -16px -112px; } -.ui-icon-calendar { background-position: -32px -112px; } -.ui-icon-cart { background-position: -48px -112px; } -.ui-icon-pencil { background-position: -64px -112px; } -.ui-icon-clock { background-position: -80px -112px; } -.ui-icon-disk { background-position: -96px -112px; } -.ui-icon-calculator { background-position: -112px -112px; } -.ui-icon-zoomin { background-position: -128px -112px; } -.ui-icon-zoomout { background-position: -144px -112px; } -.ui-icon-search { background-position: -160px -112px; } -.ui-icon-wrench { background-position: -176px -112px; } -.ui-icon-gear { background-position: -192px -112px; } -.ui-icon-heart { background-position: -208px -112px; } -.ui-icon-star { background-position: -224px -112px; } -.ui-icon-link { background-position: -240px -112px; } -.ui-icon-cancel { background-position: 0 -128px; } -.ui-icon-plus { background-position: -16px -128px; } -.ui-icon-plusthick { background-position: -32px -128px; } -.ui-icon-minus { background-position: -48px -128px; } -.ui-icon-minusthick { background-position: -64px -128px; } -.ui-icon-close { background-position: -80px -128px; } -.ui-icon-closethick { background-position: -96px -128px; } -.ui-icon-key { background-position: -112px -128px; } -.ui-icon-lightbulb { background-position: -128px -128px; } -.ui-icon-scissors { background-position: -144px -128px; } -.ui-icon-clipboard { background-position: -160px -128px; } -.ui-icon-copy { background-position: -176px -128px; } -.ui-icon-contact { background-position: -192px -128px; } -.ui-icon-image { background-position: -208px -128px; } -.ui-icon-video { background-position: -224px -128px; } -.ui-icon-script { background-position: -240px -128px; } -.ui-icon-alert { background-position: 0 -144px; } -.ui-icon-info { background-position: -16px -144px; } -.ui-icon-notice { background-position: -32px -144px; } -.ui-icon-help { background-position: -48px -144px; } -.ui-icon-check { background-position: -64px -144px; } -.ui-icon-bullet { background-position: -80px -144px; } -.ui-icon-radio-off { background-position: -96px -144px; } -.ui-icon-radio-on { background-position: -112px -144px; } -.ui-icon-pin-w { background-position: -128px -144px; } -.ui-icon-pin-s { background-position: -144px -144px; } -.ui-icon-play { background-position: 0 -160px; } -.ui-icon-pause { background-position: -16px -160px; } -.ui-icon-seek-next { background-position: -32px -160px; } -.ui-icon-seek-prev { background-position: -48px -160px; } -.ui-icon-seek-end { background-position: -64px -160px; } -.ui-icon-seek-start { background-position: -80px -160px; } -/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ -.ui-icon-seek-first { background-position: -80px -160px; } -.ui-icon-stop { background-position: -96px -160px; } -.ui-icon-eject { background-position: -112px -160px; } -.ui-icon-volume-off { background-position: -128px -160px; } -.ui-icon-volume-on { background-position: -144px -160px; } -.ui-icon-power { background-position: 0 -176px; } -.ui-icon-signal-diag { background-position: -16px -176px; } -.ui-icon-signal { background-position: -32px -176px; } -.ui-icon-battery-0 { background-position: -48px -176px; } -.ui-icon-battery-1 { background-position: -64px -176px; } -.ui-icon-battery-2 { background-position: -80px -176px; } -.ui-icon-battery-3 { background-position: -96px -176px; } -.ui-icon-circle-plus { background-position: 0 -192px; } -.ui-icon-circle-minus { background-position: -16px -192px; } -.ui-icon-circle-close { background-position: -32px -192px; } -.ui-icon-circle-triangle-e { background-position: -48px -192px; } -.ui-icon-circle-triangle-s { background-position: -64px -192px; } -.ui-icon-circle-triangle-w { background-position: -80px -192px; } -.ui-icon-circle-triangle-n { background-position: -96px -192px; } -.ui-icon-circle-arrow-e { background-position: -112px -192px; } -.ui-icon-circle-arrow-s { background-position: -128px -192px; } -.ui-icon-circle-arrow-w { background-position: -144px -192px; } -.ui-icon-circle-arrow-n { background-position: -160px -192px; } -.ui-icon-circle-zoomin { background-position: -176px -192px; } -.ui-icon-circle-zoomout { background-position: -192px -192px; } -.ui-icon-circle-check { background-position: -208px -192px; } -.ui-icon-circlesmall-plus { background-position: 0 -208px; } -.ui-icon-circlesmall-minus { background-position: -16px -208px; } -.ui-icon-circlesmall-close { background-position: -32px -208px; } -.ui-icon-squaresmall-plus { background-position: -48px -208px; } -.ui-icon-squaresmall-minus { background-position: -64px -208px; } -.ui-icon-squaresmall-close { background-position: -80px -208px; } -.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } -.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } -.ui-icon-grip-solid-vertical { background-position: -32px -224px; } -.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } -.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } -.ui-icon-grip-diagonal-se { background-position: -80px -224px; } - - -/* Misc visuals -----------------------------------*/ - -/* Corner radius */ -.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; } -.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; } -.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } -.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } - -/* Overlays */ -.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); } -.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/* - * jQuery UI Autocomplete 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Autocomplete#theming - */ -.ui-autocomplete { position: absolute; cursor: default; } - -/* workarounds */ -* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ - -/* - * jQuery UI Menu 1.8.16 - * - * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Menu#theming - */ -.ui-menu { - list-style:none; - padding: 2px; - margin: 0; - display:block; - float: left; -} -.ui-menu .ui-menu { - margin-top: -3px; -} -.ui-menu .ui-menu-item { - margin:0; - padding: 0; - zoom: 1; - float: left; - clear: left; - width: 100%; -} -.ui-menu .ui-menu-item a { - text-decoration:none; - display:block; - padding:.2em .4em; - line-height:1.5; - zoom:1; -} -.ui-menu .ui-menu-item a.ui-state-hover, -.ui-menu .ui-menu-item a.ui-state-active { - font-weight: normal; - margin: -1px; -} -/* - * jQuery UI Dialog 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Dialog#theming - */ -.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } -.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } -.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } -.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } -.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } -.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } -.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } -.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } -.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } -.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } -.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } -.ui-draggable .ui-dialog-titlebar { cursor: move; } -/* - * jQuery UI Slider 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Slider#theming - */ -.ui-slider { position: relative; text-align: left; } -.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } -.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } - -.ui-slider-horizontal { height: .8em; } -.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } -.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } -.ui-slider-horizontal .ui-slider-range-min { left: 0; } -.ui-slider-horizontal .ui-slider-range-max { right: 0; } - -.ui-slider-vertical { width: .8em; height: 100px; } -.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } -.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } -.ui-slider-vertical .ui-slider-range-min { bottom: 0; } -.ui-slider-vertical .ui-slider-range-max { top: 0; }/* - * jQuery UI Tabs 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Tabs#theming - */ -.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ -.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } -.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } -.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } -.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } -.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } -.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ -.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } -.ui-tabs .ui-tabs-hide { display: none !important; } diff --git a/themes/blueprint/css/print.css b/themes/blueprint/css/print.css deleted file mode 100644 index 41dff79e19ef8233021435e2d1ffa48b88420ed8..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/print.css +++ /dev/null @@ -1,17 +0,0 @@ -@CHARSET "UTF-8"; - -#headerRight, .searchbox, .breadcrumbs, .authorbox, .resulthead, #tabnav, .main .span-5, .result .span-4, .searchtools, .toolbar, .footer, .pagination, .offscreen, .checkbox { - display: none; -} - -body { - margin-top:0; -} -.container, .main .span-18 { - width:100%; -} - -.result .span-9 { - width: 810px; - margin-right: 0; -} diff --git a/themes/blueprint/css/slick/ajax-loader.gif b/themes/blueprint/css/slick/ajax-loader.gif deleted file mode 100644 index e0e6e9760bc04861cc4771e327f22ed7962e0858..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/slick/ajax-loader.gif and /dev/null differ diff --git a/themes/blueprint/css/slick/fonts/slick.eot b/themes/blueprint/css/slick/fonts/slick.eot deleted file mode 100644 index 2cbab9ca97723bc24c50315a0a9bd155db4e0aa5..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/slick/fonts/slick.eot and /dev/null differ diff --git a/themes/blueprint/css/slick/fonts/slick.svg b/themes/blueprint/css/slick/fonts/slick.svg deleted file mode 100644 index b36a66a6c454fb901133b8bce089a5ff7f74f871..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/slick/fonts/slick.svg +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" standalone="no"?> -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -<svg xmlns="http://www.w3.org/2000/svg"> -<metadata>Generated by Fontastic.me</metadata> -<defs> -<font id="slick" horiz-adv-x="512"> -<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/> -<missing-glyph horiz-adv-x="512" /> - -<glyph unicode="→" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> -<glyph unicode="←" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> -<glyph unicode="•" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/> -<glyph unicode="a" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/> -</font></defs></svg> diff --git a/themes/blueprint/css/slick/fonts/slick.ttf b/themes/blueprint/css/slick/fonts/slick.ttf deleted file mode 100644 index 9d03461b653373f7cda3b4af104c6bca07f9892b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/slick/fonts/slick.ttf and /dev/null differ diff --git a/themes/blueprint/css/slick/fonts/slick.woff b/themes/blueprint/css/slick/fonts/slick.woff deleted file mode 100644 index 8ee99721bb81b59a5e1ceee1d3256b15f907d96b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/css/slick/fonts/slick.woff and /dev/null differ diff --git a/themes/blueprint/css/slick/slick.css b/themes/blueprint/css/slick/slick.css deleted file mode 100644 index c7bd010baf3cffc324749fa5bfb50e07f0923c4c..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/slick/slick.css +++ /dev/null @@ -1,85 +0,0 @@ -@charset "UTF-8"; -/* Slider */ -.slick-slider { position: relative; display: block; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -ms-touch-action: pan-y; touch-action: pan-y; -webkit-tap-highlight-color: transparent; } - -.slick-list { position: relative; overflow: hidden; display: block; margin: 0; padding: 0; } -.slick-list:focus { outline: none; } -.slick-loading .slick-list { background: #fff url("./ajax-loader.gif") center center no-repeat; } -.slick-list.dragging { cursor: pointer; cursor: hand; } - -.slick-slider .slick-track { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } - -.slick-track { position: relative; left: 0; top: 0; display: block; } -.slick-track:before, .slick-track:after { content: ""; display: table; } -.slick-track:after { clear: both; } -.slick-loading .slick-track { visibility: hidden; } - -.slick-slide { float: left; height: 100%; min-height: 1px; display: none; } -[dir="rtl"] .slick-slide { float: right; } -.slick-slide img { display: block; } -.slick-slide.slick-loading img { display: none; } -.slick-slide.dragging img { pointer-events: none; } -.slick-initialized .slick-slide { display: block; } -.slick-loading .slick-slide { visibility: hidden; } -.slick-vertical .slick-slide { display: block; height: auto; border: 1px solid transparent; } - -/* Icons */ -@font-face { font-family: "slick"; src: url("./fonts/slick.eot"); src: url("./fonts/slick.eot?#iefix") format("embedded-opentype"), url("./fonts/slick.woff") format("woff"), url("./fonts/slick.ttf") format("truetype"), url("./fonts/slick.svg#slick") format("svg"); font-weight: normal; font-style: normal; } -/* Arrows */ -.slick-prev, .slick-next { position: absolute; display: block; height: 20px; width: 20px; line-height: 0; font-size: 0; cursor: pointer; background: transparent; color: transparent; top: 50%; margin-top: -10px; padding: 0; border: none; outline: none; } -.slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus { outline: none; background: transparent; color: transparent; } -.slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before { opacity: 1; } -.slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: 0.25; } - -.slick-prev:before, .slick-next:before { font-family: "slick"; font-size: 20px; line-height: 1; color: black; opacity: 0.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } - -.slick-prev { left: -25px; } -[dir="rtl"] .slick-prev { left: auto; right: -25px; } -.slick-prev:before { content: "â†"; } -[dir="rtl"] .slick-prev:before { content: "→"; } - -.slick-next { right: -25px; } -[dir="rtl"] .slick-next { left: -25px; right: auto; } -.slick-next:before { content: "→"; } -[dir="rtl"] .slick-next:before { content: "â†"; } - -/* Dots */ -.slick-slider { margin-bottom: 30px; } - -.slick-dots { position: absolute; bottom: -45px; list-style: none; display: block; text-align: center; padding: 0; width: 100%; } -.slick-dots li { position: relative; display: inline-block; height: 20px; width: 20px; margin: 0 5px; padding: 0; cursor: pointer; } -.slick-dots li button { border: 0; background: transparent; display: block; height: 20px; width: 20px; outline: none; line-height: 0; font-size: 0; color: transparent; padding: 5px; cursor: pointer; } -.slick-dots li button:hover, .slick-dots li button:focus { outline: none; } -.slick-dots li button:hover:before, .slick-dots li button:focus:before { opacity: 1; } -.slick-dots li button:before { position: absolute; top: 0; left: 0; content: "•"; width: 20px; height: 20px; font-family: "slick"; font-size: 6px; line-height: 20px; text-align: center; color: black; opacity: 0.25; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } -.slick-dots li.slick-active button:before { color: black; opacity: 0.75; } - -/*# sourceMappingURL=slick.css.map */ - -/* - similar items carousel - */ -.hover-overlay { - display:block; - position:relative; - text-align:center; - margin:auto; - min-width:150px; - min-height:200px; -} -.hover-overlay img { - margin:auto; - max-width:100%; -} -.hover-overlay .content { - display:none; - position:absolute; - top:0; - left:0; - width:100%; - height:100%; - background:rgba(0,0,0,.5); - color:#FFF; - padding:.5em .5em 0; -} -.hover-overlay:hover .content { - display:block; -} \ No newline at end of file diff --git a/themes/blueprint/css/styles.css b/themes/blueprint/css/styles.css deleted file mode 100644 index de669af5d6b25d24616c1122ccd894def0ddc441..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/styles.css +++ /dev/null @@ -1,2431 +0,0 @@ -@CHARSET "UTF-8"; - -/** General ***/ -body { - margin: 1.5em 0; - /*background:url("../images/bg_body.jpg") no-repeat scroll center top;*/ - background: #619144; -} - -.ui-widget { - font-family: inherit; - font-size: inherit; -} - -.sidebarOnLeft .sidegroup { - margin-left: 10px; -} - -/* adjust some default blueprint styles */ -p,ul,dl,form,input,textarea,select,label { margin-bottom: 0.2em; } -h1 { font-size: 1.5em; margin-top: 0.5em; margin-bottom: 0.5em; } -h2 { font-size: 1.4em; margin-top: 0.5em; margin-bottom: 0.5em; } -h3 { font-size: 1.3em; margin-top: 0.5em; margin-bottom: 0.5em; } -h4 { font-size: 1.2em; margin-top: 0.5em; margin-bottom: 0.5em; } -h5 { font-size: 1.1em; font-weight: bold; margin-bottom: 0.5em; } -h6 { font-size: 1em; font-weight: bold; margin-bottom: 0.4em; } -fieldset { padding:0 .4em .8em 1em;} -legend { font-size:100%;} -fieldset, #IE8#HACK { padding-top:0.4em; } - -.container { - border-radius: 5px 5px 5px 5px; - -moz-border-radius: 5px 5px 5px 5px; - -webkit-border-radius: 5px 5px 5px 5px; - border: 1px solid #ddd; - background: none repeat scroll 0 0 #FFFFFF; - box-shadow:0 4px 8px #111; -} - -.searchbox,.breadcrumbs,.main,.footer { - border-top: 1px solid #ddd; -} - -.header,.searchbox,.breadcrumbs,.main,.footer { - padding: .8em; -} - -.clearer { - clear: both; -} - -#logo { - background:url("../images/vufind_logo.png") no-repeat scroll left center transparent; - float:left; - height:65px; - width:300px; -} - -#headerRight { - width: 400px; - float: right; - text-align: right; -} - -#langForm { - margin-top: .3em; -} - -label.invalid { - background:url("../images/unchecked.gif") no-repeat scroll 0 0 transparent; - color:#EA5200; - font-weight:bold; - padding-bottom:2px; - padding-left:16px; - margin-left: 5px; -} - -/** class to make stuff "invisible" but still readable by screen readers */ -.offscreen { - position:absolute; - left:-10000px; - top:auto; - width:1px; - height:1px; - overflow:hidden; - display:inline; -} - -div.dialogLoading { - background: url(../images/dialog_loading.gif) no-repeat center center; - height:100%; -} - -.ajax_availability, .ajax_hold_availability, .ajax_storage_retrieval_request_availability, .ajax_ill_request_availability, .ajax_ill_request_loading, .ajax_hold_request_loading { - background: url(../images/ajax_loading.gif) no-repeat left top; - padding:0 .5em .5em 20px; -} -.highlight { - font-weight: bold; - background: none; -} -.floatleft { float:left; } -.floatright { float:right; } -img.alignright { - float: right; - margin: 0 0 0 10px; -} -img.alignleft { - float: left; - margin: 0 10px 0 0; -} - -p.listDescription { - padding: .4em .4em 1em .4em; -} - -/** Buttons to do "bulk" actions **/ - -div.bulkActionButtons { - border-bottom: 1px solid #eee; - padding: 1em 0; -} - -div.bulkActionButtons a { - padding-bottom: 0.2em; -} - -div.bulkActionButtons input.button { - background-color:transparent; - background-position: 2px center; - text-decoration: underline; - border:0 none; - cursor:pointer; - padding:0 0 0 20px; - vertical-align: top; - color: #06C; -} -div.bulkActionButtons input.button:hover { - color: #09D; -} - -div.bulkActionButtons input.button { - width: 0; /* IE table-cell margin fix */ - overflow: visible; - margin-left: .5em; - margin-right: .25em; -} - -div.bulkActionButtons input.button[class] { /* IE < 7 ignores [class] */ - width: auto; /* cancel margin fix for other browsers */ -} - -div.bulkActionButtons input.checkbox { - vertical-align: top; -} -input.smallButton { - background-position: 2px center; - padding: 2px 2px 2px 22px; -} -a.smallButton { - background-color:#EEE; - background-position: 2px center; - border:2px outset #DDD; - color:#000; - display:inline-block; - font-size:10pt; - padding: 1px 4px 1px 26px; - text-decoration:none; -} -a.smallButton:active { - border:2px inset #EEE; -} - -/** Cart **/ -.cartSummary { - float:left; -} -.header .cartSummary { - float:right; -} -ul.cartContent { - list-style-type:none; - margin:0; - padding:0; -} - -/** Alphabetic browse **/ -.alphaBrowseResult { - padding: 0 0.5em 0.5em 0.5em; -} - -.alphaBrowseEntry { - padding: 0.25em 0.5em; - background-color: #eee; - zoom: 1; -} - -.alphaBrowseEntry.alt, .alphaBrowseEntry.alt * { - background-color: #fff; -} - -.alphaBrowseExtra { - display: block; - float: left; - padding-left: .75em; - line-height: 1.31em; -} - -.alphaBrowseForm { - zoom: 1; -} - -.alphaBrowseHeading { - float: left; - width: 650px; - line-height: 1.31em; -} - -.alphaBrowseSource_dewey .alphaBrowseHeading { - width: 200px; - padding-right: .5em; -} - -.alphaBrowseSource_dewey .alphaBrowseColumn_title { - width: 450px; -} - -.alphaBrowseSource_lcc .alphaBrowseHeading { - width: 200px; - padding-right: .5em; -} - -.alphaBrowseSource_lcc .alphaBrowseColumn_title { - width: 450px; -} - -.alphaBrowseSource_title .alphaBrowseHeading { - width: 300px; - padding-right: .5em; -} - -.alphaBrowseSource_title .alphaBrowseColumn_author { - width: 200px; -} - -.alphaBrowseSource_title .alphaBrowseColumn_format { - width: 100px; -} - -.alphaBrowseSource_title .alphaBrowseColumn_publishDate { - width: 45px; -} - -.alphaBrowseCount { - float: right; -} - -.alphaBrowseHeader { - text-align: right; - clear: both; - font-weight: bold; - zoom: 1; -} - -.alphaBrowsePageLinks { - margin: 1em; - font-weight: bold; - background-color: #fff; -} - -.alphaBrowsePrevLink { - float: left; -} - -.alphaBrowseNextLink { - float: right; -} - -.alphaBrowseRelatedHeading { - clear: left; -} - -.alphaBrowseRelatedHeading .title { - font-weight: bold; - font-size: 90%; - margin-left: 2em; -} - -.alphaBrowseRelatedHeading li { - margin-left: 4em; -} - -.alphaBrowseEntry.browse-match { - border:.2em solid #619144; -} - -.browseAlphabetSelectorItem { - float: left; - margin-right:5px; - margin-left:5px; -} - -.browseJumpTo { - float: right; - margin-right:5px; - margin-left:5px; -} - -/** Autocomplete */ -.ui-autocomplete { - max-width: 500px; - max-height: 300px; - overflow: hidden; -} - -/** Publication Year facet */ -fieldset.pubyearLimit { - padding: 0; - border: 0; -} -fieldset.publishDateLimit .ui-slider { - clear: both; - margin: .5em; -} - - -/*****************Breadcrumbs*******************/ -div.breadcrumbs { - overflow:hidden; - padding:0; - height:30px; - line-height:30px; - /* background-color:#ddd; */ -} -div.breadcrumbs a, div.breadcrumbs em, div.breadcrumbs span { - float:left; - overflow:hidden; - height:30px; - padding:0 8px; - font-style:normal; - font-size: 90%; -} -div.breadcrumbs span { - background:url(../images/bg_breadcrumb.png) no-repeat left center; - overflow:hidden; - padding:0; - width:10px; - font-size: 0pt; - line-height: 0px; - - filter:alpha(opacity=40); - opacity:0.4; -} -div.breadcrumbinner { - margin:0 .4em; -} - -/*****************Homepage*******************/ -.searchHomeContent { - padding:5em 0; - margin:0 auto; - width:800px; - text-align:left; -} -.searchHomeForm { - background-color: #E6EFC2; - padding:2em; - text-align:left; - margin-top:.5em; - font-size: 12pt; - border-radius: 5px 5px 5px 5px; - -moz-border-radius: 5px 5px 5px 5px; - -webkit-border-radius: 5px 5px 5px 5px; - border: 2px solid #C6D880; - color: #264409; -} -div.searchHomeForm div.searchform { - width:600px; - margin-left: auto; - margin-right: auto; -} - -.searchHomeForm a, .searchHomeForm a:hover { - color:#264409; -} -.searchHomeBrowse { - margin-left:auto; - margin-right:auto; - padding: .4em; - width:800px; -} -.searchHomeBrowse h2 { - border-bottom: 1px solid #94c632; -} - -.searchHomeBrowse ul { - list-style-type: none; - padding:0; -} - -#searchForm_type { - padding:2px; -} - -/******** Result List ***/ - -ul.recordSet { - margin: 0; - padding: 0; - list-style-type: none; -} -ul.recordSet li { - padding: .4em; -} - -ul.recordSet li.alt { - background-color: #eee; -} -ul.recordSet input.checkbox { - display:block; - float: left; - margin-top: .2em; - margin-left: 0; - margin-right: .4em; -} -ul.recordSet .recordNumber { - display:table; - float: left; - font-weight: bold; - margin: 0; - min-width:40px; - text-align:right; -} -ul.recordSet .recordNumber .checkbox_ui { - vertical-align:bottom; - margin:0 3px 3px 2px; -} -ul.recordSet .addToFavLink { - float: right; - text-align: right; -} -.summcover { - min-height: 1px; /* Chrome display glitch workaround */ - max-width: 70px; - padding:0; - margin:0; -} -.authorbox, .authorbio, .authoritybox { - padding:0 0 .4em .4em; - border-bottom: 1px #eee solid; - margin-bottom:.5em; - background-image:url(../images/bg_authorbox.jpg); - background-repeat: repeat-x; - background-position: bottom; -} -.authorbox .applied {color:#000;} -.authorbox .applied img {vertical-align:sub;} -.authorbox .span-5 {white-space:nowrap;} -.authorbox .span-5 a {white-space:normal;} -.authorbio .providerLink { - margin-top: 1em; - margin-bottom: .4em; -} -.searchtools { - /*background-color: #f5f5f5;*/ - border-top: #eee solid 1px; - padding: 1em; - font-size: 90%; -} -.resulthead { - padding:.4em .4em 0em .4em; - border-bottom: 1px #eee solid; - position: relative; -} -.savedLists { - margin-top: .4em; - padding-bottom:0.4em; - padding-top:0.4em; -} -.savedLists ul { margin-top: 0; } -.savedLists ul li { padding:0; } - -li.result blockquote { - margin:0; -} -.groupCallnumber { - margin-left: 18px; -} -.result .qrcodeHolder, .recordsubcontent .qrcodeHolder { - border: 1px solid #cfcfcf; - position: absolute; - display: none; -} - -/** Side facets */ - -ul.filters { - background-color: orange; - color: white; - list-style-type:none; - margin:0; - padding:0.2em 0.4em; -} -ul.filters img { - vertical-align: top; -} -ul.filters a { - color: white; - text-decoration: none; -} -div.sidegroup h4 { - border-bottom:2px solid #ddd; -} -dl.narrowList img { - vertical-align: top; -} -dl.narrowList a:hover { - /*text-decoration: underline;*/ -} -dl.narrowList a { - text-decoration: none; -} -.keywordFilterForm { - margin: 5px 0px 5px 0px; -} -.navmenu dd { - padding: 0.1em 0 0.1em 0.4em; - list-style-type: none; - border-bottom: 1px solid #e3e3e3; - margin: 0; -} -.navmenu dt { - cursor:pointer; - margin-top:.75em; - font-weight:bold; - padding:0.2em 0.4em; - background-color: #eee; -} -.navmenu dt:before { - content:'\25BC'; - display:block; - float:right; - width:10px; - margin:1px 3px 0 0; - text-align:center; - font-size:8pt; -} -.navmenu dd {display:none} -.navmenu.open dt:before {content:'\25B2'} -.navmenu.open dd {display:block} - -dd input[type="checkbox"] { - margin:0 4px 0 0; - vertical-align:text-bottom; -} - -/* Icon Classes */ - -.bookbag { - background-image:url(../images/fugue/bookbag.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} - -input.bookbagView, -input.bookbagAdd, -input.bookbagDelete, -input.bookbagEmpty { - background-color:transparent; - display:inline; - border:0; - color:#06C; - font:8pt Arial; - text-decoration:underline; - cursor:pointer; - padding:0 .5em .5em 16px; -} -.bulkActionButtons input.bookbagView, -.bulkActionButtons input.bookbagAdd, -.bulkActionButtons input.bookbagDelete, -.bulkActionButtons input.bookbagEmpty { - font-size:10pt; -} -.bookbagView:hover, -.bookbagAdd:hover, -.bookbagDelete:hover, -.bookbagEmpty:hover { - color:#09f; -} - -.bookbagView { - background-image:url(../images/fugue/bookbag.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} - -.bookbagAdd { - background-image:url(../images/fugue/bookbagAdd.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.bookbagDelete { - background-image:url(../images/fugue/bookbagDelete.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} - -.bookbagEmpty { - background-image:url(../images/fugue/bookbagEmpty.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} - -.print { - background-image:url(../images/silk/printer.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} - -.login { - background-image:url(../images/silk/user.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.logout { - background-image:url(../images/silk/door_out.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.account { - background-image:url(../images/silk/user.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.new_account { - background-image:url(../images/silk/user_add.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.forgot_password { - background-image:url(../images/silk/key_go.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.lock { - background-image:url(../images/silk/lock.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; -} -.cite { - background-image:url(../images/silk/report.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.export { - background-image:url(../images/silk/application_add.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.sms { - background-image:url(../images/silk/phone.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.tag { - background-image:url(../images/silk/tag_blue.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.mail { - background-image:url(../images/silk/email.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.fav { - background-image:url(../images/silk/heart.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.edit { - background-image:url(../images/silk/edit.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em 0 .5em 18px; - margin-right:.7em; -} -.save { - background-image:url(../images/silk/disk-black.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em 0 .5em 18px; - margin-right:.7em; -} -.delete { - background-image:url(../images/silk/delete.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 18px; - margin-right:0; -} -.feed { - background-image:url(../images/silk/feed.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-left:1em; -} -.list { - background-image:url(../images/silk/list.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - /*margin-left:1em;*/ -} -.gear { - background-image:url(../images/silk/cog.png); - background-repeat:no-repeat; - background-position: left; - padding:.6em .5em .5em 20px; - /*margin-left:1em;*/ -} -h3.list { - padding-bottom:0; - margin-bottom:0; -} -.add { - background-image:url(../images/silk/add.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 18px; - margin-right:0; -} -.available { - background-image:url(../images/silk/bullet_green.png); - background-repeat:no-repeat; - color:#009900; - padding-left:18px -} -.availableLoc { - background-image:url(../images/fugue/tick-small.png); - background-repeat:no-repeat; - padding-left:18px -} -.checkedout { - background-image:url(../images/silk/bullet_red.png); - background-repeat:no-repeat; - color:#cc0000; - padding-left:18px -} -.checkedoutLoc { - background-image:url(../images/fugue/cross-small.png); - background-repeat:no-repeat; - padding-left:18px -} -.cd { - background-image:url(../images/silk/cd.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.dvd { - background-image:url(../images/silk/dvd.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.electronic { - background-image:url(../images/tango/www.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.map { - background-image:url(../images/silk/map.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.globe { - background-image:url(../images/silk/world.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.slide { - background-image:url(../images/silk/photo.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.microfilm { - background-image:url(../images/silk/film.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.photo { - background-image:url(../images/silk/picture.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.video { - background-image:url(../images/tango/video.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.kit { - background-image:url(../images/silk/package.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.musicalscore { - background-image:url(../images/silk/music.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.sensorimage { -} -.audio { - background-image:url(../images/tango/audio-volume-high.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.physicalobject { -} -.manuscript { - background-image:url(../images/silk/report_edit.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.ebook { - background-image:url(../images/ebook.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.book { - background-image:url(../images/silk/book.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.journal { - background-image:url(../images/silk/report.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.newspaper { - background-image:url(../images/silk/newspaper.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.qrcodeLink { - background-image:url(../images/fugue/qrcode.png); - background-repeat:no-repeat; - padding:0 .5em .5em 20px; - display: block; -} -.software { - background-image:url(../images/silk/disk_multiple.png); - background-repeat:no-repeat; - background-position: left top; - padding:0 .5em .5em 20px; - margin-right:1em; -} -.iconlabel { - line-height: 16px; - font-size: 8pt; - font-weight: bold; -} -.addThis { - background-image:url(../images/silk/tag_yellow.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.holdPlace, .storageRetrievalRequestPlace, .ILLRequestPlace { - background-image:url(../images/fugue/holdPlace.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.holdCancel, .storageRetrievalRequestCancel, .ILLRequestCancel { - background-image:url(../images/fugue/holdCancel.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.holdCancelAll, .storageRetrievalRequestCancelAll, .ILLRequestCancelAll { - background-image:url(../images/fugue/holdCancelAll.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.renew { - background-image:url(../images/fugue/renew.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.renewAll { - background-image:url(../images/fugue/renewAll.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} -.checkRequest, .checkStorageRetrievalRequest, .checkILLRequest { - background-image:url(../images/fugue/checkRequest.png); - background-repeat:no-repeat; - padding-left:18px; -} -.holdBlocked { - background-image:url(../images/fugue/holdBlocked.png); - background-repeat:no-repeat; - padding-left:18px; -} -.unknown { - background-image:url(../images/silk/bullet_orange.png); - background-repeat:no-repeat; - color:#ff890f; - padding-left:18px; -} - -/***** Pagination *****/ - -.pagination { - font-size:90%; - padding:1em 0 1em 0; - margin:1.5em 0; - text-align:center; -} -.pagination a { - padding: .2em .3em; - margin-right:.5em; - border: 1px solid #fff; -} -.pagination a:hover { - border: 1px solid #cccccc; -} -.pagination span { - padding: .2em .3em; - margin-right:.5em; - font-weight:bold; -} - -/*** Record Page */ -div.record { - padding:0 1.5em; -} -div.recordsubcontent { - padding:1em 1.5em 1em 1.5em; -} -.recordcover { - display: block; - padding:3px; - background-color:#eee; - border:1px solid #cfcfcf; - margin: 1em auto 0; - max-width: 120px; -} - -div.record img.qrcode { - display: block; - margin: 1em auto 0; - border:1px solid #cfcfcf; -} -.holdsMessage { - margin-top: 1em; -} -.phone-error { - color:red; - margin-left:80px; -} -#tagRecord { - display: inline-block; - padding-top: 4px; -} -.record-tag, -.record-tag * { - display: inline-block; - vertical-align: top; -} -.record-tag { - float: left; - margin: 0 4px; - padding-top: 4px; - padding-right: 1px; - padding-bottom: 0; - padding-left: 6px; -} -.record-tag .badge { - background-color: #DDD; - border: 0; - border-radius: 1em; - cursor: pointer; - display: inline-block; - font-size: 8pt; - margin-top: -2px; - background-position: 85%; - padding-top: 4px; - padding-left: .5em; - padding-bottom: 4px; - padding-right: 20px; -} -.record-tag span.badge { - padding-top: 2px; - padding-left: 4px; - padding-bottom: 2px; - padding-right: 4px; -} -.record-tag.selected { - background: #619144; - border-radius: 3px; -} -.record-tag.selected a { - color: #FFF; -} - -/* hack to hide redundant titles introduced by syndetics plus */ -#syn_nyreview .syn_title, -#syn_chreview .syn_title, -#syn_dbchapter .syn_title, -#syn_anotes .syn_title, -#syn_video_clip .syn_title { - display:none; -} - -/***** Citation Table *****/ -.citation { - font-size:90%; -} -.citation th { - text-align:left; - color:#666; - padding:.3em 0 .3em 0; - border-bottom: 1px solid #f3f3f3; - vertical-align: top; -} -.citation tr { - border-collapse: collapse; -} -.citation td { - padding:.3em 0 .3em 1em; - border-bottom: 1px solid #f3f3f3; -} -.citation tr, .citation td { - vertical-align:top; -} - -.citation tbody tr td { - background:none repeat scroll 0 0 white; -} - -div.recordsubcontent table.citation { - width: auto; -} - -table.authors th { - font-size:120%; - padding:0 0.8em; -} - -/************* Tabs (Record Page) *****************/ - -#tabnav { - font-size:90%; - margin-top:1em; - padding:0 0 0 1em; - background-color:#fafafa; - border-top:1px #eee solid; - border-bottom: 1px #dcdcdc solid; -} -#tabnav ul { -float: left; - margin:0; - padding:0px 5px 0 0; - list-style:none; -} -#tabnav li { - float:left; - margin:0 0 0 0px; - padding:0 0 0 10px; -} -#tabnav a { - float:left; - display:block; - padding:18px 10px 10px 5px; - text-decoration:none; - font-weight:normal; - color:#000; -} -/* Commented Backslash Hack - hides rule from IE5-Mac \*/ -#tabnav a {float:none;} -/* End IE5-Mac hack */ -#tabnav a:hover { - color:#000; -} -#tabnav .active { - background:url(../images/subnavTab_left.jpg) no-repeat left top; - margin-bottom:-1px; -} -#tabnav .active a { - background:url(../images/subnavTab_right.jpg) no-repeat right top; - color:#000; - padding:18px 10px 12px 0px; -} - -/** Similar Items (record view) **/ - -ul.similar { - list-style: none; - padding: 0 13px 0 0; - margin: 0px; - text-align:justified; -} - -ul.similar li { - padding-bottom:10px; -} - -/** Random Items (results view) **/ - -ul.random { - list-style: none; - padding: 0; - margin: 0px; - text-align:justified; -} - -ul.random li { - padding-bottom:10px; -} - -ul.random li img { - margin: 0 auto 1em auto; -} - -ul.random.image, ul.random.mixed { - text-align: center; -} - -ul.random.image li img { - margin: 0 auto; -} - -/*********** Toolbar (Record View) ************/ -.toolbar { - border-bottom:1px solid #eee; - text-align:right; - font-size:90%; - min-height:2em; - padding-left:1em; - margin-bottom:1em; -} -.toolbar ul { - display:inline; - height:23px; - list-style-type:none; -} -.toolbar ul li { - float:left; - margin-left:.5em; -} -.toolbar ul.menu { - display:block; - margin-top: 0; - border-right: 1px solid #cccccc; - border-left: 1px solid #cccccc; - position:absolute; - background:white; - height:auto; - padding: 0; -} -.toolbar ul.menu li { - border-bottom: 1px solid #cccccc; - padding:5px; - clear: left; - position:block; - width:100px; - text-align: left; - background:white; - margin: 0px; -} - -/*********** Storage Retrieval Request Form ************/ -.storageRetrievalRequestForm .label { - width: 70px; - text-align: right; - float: left; - margin-right: 12px; -} -.storageRetrievalRequestReference { - margin-left: 12px; -} - -/*********** Toolbar (Favorites View) ************/ -.toolbar ul li input.button { - background-color:transparent; - background-position: 2px center; - border:0 none; - cursor:pointer; - margin-right:0; - padding:0 0 0 23px; - vertical-align: top; - color: #06C; -} - -.toolbar ul li input.button { - width: 0; /* IE table-cell margin fix */ - overflow: visible; -} - -.toolbar ul li input.button[class] { /* IE < 7 ignores [class] */ - width: auto; /* cancel margin fix for other browsers */ -} - -.toolbar ul li input.checkbox { - vertical-align: top; -} - -/*** MARC view (Record page) **/ - -table.marc th { - text-align: right; - vertical-align: top; -} - -/** tag list */ -#tagList { - width: 350px; -} - -/***** Data Grid (Holdings) ******/ - -table.datagrid { - width:100%;/*oringinally set to auto*/ - border-collapse: collapse; - margin-bottom:1.5em; -} - -table.datagrid th { - color: #003366; - background-color: #DDEEFF; - border: solid 1px #99CCFF; - text-align: left; - border-left: 1px solid #FFFFFF; - border-right: 1px solid #FFFFFF; - padding: 5px 15px 5px 15px; -} - -table.datagrid th a { - color: #336699; -} - -table.datagrid td { - border-left: 1px solid #FFFFFF; - border-right: 1px solid #FFFFFF; - padding: 5px 10px 5px 10px; -} - -table.datagrid td a { - color: #003366; -} - -table.datagrid tr.evenrow { - background-color: #EEEEEE; -} - -table.datagrid tr.oddrow { - background-color: #DDDDDD; -} - -.qrcodeHoldings { - float: right; - text-align: left; -} - -.qrcodeHoldings a { - float: none; -} - -/* Comments */ - -ul.commentList { - margin-bottom: 1em; - list-style-type:none; -} -ul.commentList li { - border-bottom: 1px solid #eee; - padding-bottom: 1em; - margin-bottom:1em; -} -ul.commentList li div.posted { - color:#666; - font-size: 80%; - margin-top:1em; - width:100%; -} - -form#commentRecord { - padding-left: 1.5em; -} -form#commentRecord #comment { - vertical-align: middle; -} - -/** Forms **/ - -label.displayBlock { - display:block; - font-weight:bold; -} -input.button { -} -#listForm fieldset { - width: 400px -} - -/** Citation **/ - -p.citationText { - padding-left:25px; - text-indent:-25px; - width:95%; -} - -/* Tag cloud */ - -.cloud1 { - font-size: .8em; -} -.cloud2 { - font-size: 1em; -} -.cloud3 { - font-size: 1.2em; -} -.cloud4 { - font-size: 1.4em; -} -.cloud5 { - font-size: 1.6em; -} - -/* New advanced search screen stuff */ -.advSearchContent { - /* Needed for IE7 compatibility: */ - width: 96%; -} -.advSearchContent div[class*="span-"] select { - display:block; - width:100%; -} -.groupSearchHolder { - clear: both; - padding: 10px 10px 5px; -} -.groupSearchHolder .advRow { - padding: 1px 0px; - clear:both; -} -.groupSearchHolder .advRow div { - float: left; - padding: 0px 5px; -} -.groupSearchHolder span.clearer { - display: block; - clear: left; -} -.groupSearchDetails .join { - padding-right: 5px; - float: left; -} -.groupSearchHolder .label, .groupSearchHolder .join { - width: 140px; - text-align: right; -} -.addSearch { - padding: 0px 0px 4px 165px; -} -.groupSearchHolder .terms { - width: 250px; -} -.groupSearchHolder .terms input { - width: 100%; -} -.groupSearchHolder .field { -} -.group .groupSearchDetails { - float: right; - text-align: right; - padding: 3px 5px; -} -.group0 .groupSearchDetails { - border: 1px solid #D8D7D8; - border-top: 0px; -} -.group1 .groupSearchDetails { - border: 1px solid #94C632; - border-top: 0px; -} -#searchHolder .group0 { - border-top : 1px solid #D8D7D8; - background:url(../images/gradient_grey.gif) repeat-y; -} -#searchHolder .group1 { - border-top: 1px solid #94C632; - background:url(../images/gradient_green.gif) repeat-y; -} -#searchHolder .group { - margin-bottom: 10px; -} -.searchGroups { - margin-bottom: 10px; - font-size: 125%; -} -.searchGroups .searchGroupDetails { - float: right; -} - - -/* Browse Lists */ -.browseNav { - font-size:90%; - background-color:#fff; - width: 215px; - border: 1px solid; - height: 300px; - overflow: scroll; -} -.browseNav ul { - width: 100%; - display:block; - list-style:none; - margin: 0; - padding: 0; -} -.browseNav li { - width: 100%; - display:block; -} -.browseNav a { - display:block; - background:url(../images/tabs_bg.jpg) repeat-x right top; - padding:.7em 1em .7em 1em; - text-decoration:none; - /* - border-top: 1px solid #ccc; - border-left: 1px solid #eee; - border-right: 1px solid #ccc; - */ - color:#333; -} -.browseNav a:hover { - color: #0066CC; - background:url(../images/tabs_hover_bg.jpg) repeat-x right top; -} -.browseNav .active a:hover { - background:url(../images/tab_active_bg.jpg) repeat-x right top; -} -.browseNav a.first { - border-left: 1px solid #ccc; -} -.browseNav .active a { - background-image:url(../images/tab_active_bg.jpg); - color:#000; -} -.browseNav a.viewRecords { - float:right; - display:table; - font-size:80%; - height:100%; - padding:5px 8px; - background:rgba(255,255,255,.3); - margin-left:3px; -} -.browseNav a.viewRecords:hover { - background:rgba(255,255,255,.6); -} - -/** Google search **/ -#searchcontrol .gsc-control { - width: 100%; -} - -/** Solr record editor */ -div.fieldValue { - width: 500px; - overflow: auto; -} - -/** system unavailable and other fatal error pages */ -div.unavailable, div.fatalError { - width: 65%; - margin:5em auto 5em auto; - padding: 2em 5em; - border-radius: 5px 5px 5px 5px; - -moz-border-radius: 5px 5px 5px 5px; - -webkit-border-radius: 5px 5px 5px 5px; - font-size:125%; -} -div.debug code { - font-size: x-small; -} - -/** Open Library Subjects **/ -.olSubjectImage { - width:36px; - border: 1px solid black -} - -.olSubjectCover { - float:left; - margin-right: 10px; -} - -.olSubjectAuthor { - color:black; - display:block; -} - -.olSubjectMore { - text-align:right; - text-decoration:none; -} - -/* Grid View */ - -.hitCount { - position: absolute; - bottom: 0px; -} - -.viewButtons { - text-align: right; - margin-bottom: 2px; -} -.viewButtons a { - text-decoration:none; -} -.viewButtons span { - padding: 2px; -} -.viewButtons img, .viewButtons span { - border:1px solid transparent; - border-radius:3px; -} -.viewButtons .selected { - border-color:orange; -} - -.gridImageBox { - text-align:center; - width:155px; - height:130px; - overflow:hidden; - display:block; -} - -.gridImage{ - height:130px; -} - -.gridTitleBox { - height:55px; - display:block; - text-align:center; - font-size:86%; - width:155px; -} - -.gridTitle { - display:block; - height:40px; - overflow:hidden; - line-height:1.2em; -} - -td.gridCell { - width: 25%; -} - -tr:nth-child(even) td.gridCell {background-color:white;} - -/* These two separate styles cannot be combined; they are both needed for - cross-browser support. */ -tr:nth-child(even) td.gridMouseOver { - background-color:#f5f5f5; -} -.gridMouseOver { - background-color:#f5f5f5; -} - -/* Result Limit */ -#limit { - margin-bottom: 2px; -} - -.limitSelect { - text-align: right; -} - -/* Lightbox-specific tweaks */ -#modalDialog div.record { - padding:0; -} -#modalDialog .hideinlightbox { - display: none; -} - -/************************* COLLECTIONS PAGE ************************/ -.disambiguationDiv { - background-color: #FFF; - padding: 20px; -} - -.disambiguationDiv h1 { - font-size: 2em; -} - -#disambiguationItemsDiv { - padding: 5px; - margin-bottom: 30px; -} - -.disambiguationItem { - background-color: #EEEEEE; -} - -.disambiguationItem.alt { - background-color: #FFF; -} - -.collectionDetails { - background-color: #FFF; - padding:20px 1em 1em 1em; - border: 2px solid #EEEEEE; - margin-top: -2px; - margin-bottom: 20px; -} - -.collectionDetails form { - border: 1px solid #EEEEEE; -} - -.collectionDetails .sortSelector { - border: 0px solid #FFF; - float: right; -} - -.collectionDetails li.result { - background-color: #EEEEEE; - margin-bottom: 0px; -} - -.collectionDetails li.result.alt { - background-color: #FFF; - margin-bottom: 0px; -} - -.collectionDetails .pagination span { - border: 1px solid #EEEEEE; - padding-left: 4px; - padding-right: 4px; -} - -.collectionDetails .paginationTop .pagination { - text-align: center; - margin-top: 5px; - margin-bottom: 8px; - padding-bottom: 0; - padding-top: 0; -} - -.collectionDetails .paginationTop .pagination span { - border: 1px solid #EEEEEE; - font-weight: bold; - padding-left: 4px; - padding-right: 4px; - margin-left: 3px; -} - -.collectionDetails .paginationTop .pagination a:hover { - border: 1px solid #EEEEEE; -} - -.collectionDetails .paginationTop .pagination a { - border: 1px solid #FFF; - padding-left: 4px; - padding-right: 4px; - margin-left: 3px; -} - -.collectionDetails .viewButtons { - float:right; - margin-right:10px; -} - -.collectionBrowseResult { - padding: 0 0.5em 0.5em; - border-top: solid 1px #EEEEEE; -} - -.collectionBrowseEntry.listBrowse.alt { - background-color:#EEEEEE; -} - -.collectionBrowseHeading { - float: left; - width: 80%; - padding: 0.5em; -} - -.collectionBrowseCount { - padding: 0.5em; - float: right; -} - -/* Rss Recommendations */ -div.suggestionHeader { - min-height:30px; - padding-top: 5px; - border: 2px solid #EEE; -} - -div.submenuSuggestion { - margin-top: 10px; -} - -.submenuSuggestion h4 { - font-family: Georgia,"Times New Roman",Serif; - color: #7c1416; - padding-top:12px; -} - -.suggestionLogo { - float:right; - margin-bottom:2px; -} -.suggestionWhatsThis { - color: #7C1416; - font-family: Georgia,"Times New Roman",Serif; - font-size: 10px; - float:right; - clear:right; -} -.suggestedResult { - background-color:#EEEEEE; - padding:10px 0px 10px 0px; -} -.suggestedResult.alt { - background-color:#FFF; -} - -ul.suggestion { - border: 0px solid #EEE; - list-style: none; - margin: 0px; - padding-left: 0px; - padding-right: 0px; -} -ul.suggestion li{ - padding-left: 4px; - padding-right: 4px; -} - -/* Europeana recommendation images */ -.europeanaImage { - width:65px; - border: 1px solid white; -} - -.europeanaImg { - float:left; - margin-right: 10px; -} - -/* Google map */ -.mapClusterToggle{ - position: relative; - float: right; - top: -474px; - left: -92px; - width: 63px; - height: 19px; - background-color: #FFF; - padding: 0px 4px 0px 4px; - border:1px solid #CDF; - border-radius:1px; - box-shadow:2px 2px 3px #788; - background-image: linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); - background-image: -o-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); - background-image: -moz-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); - background-image: -webkit-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); - background-image: -ms-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%); -} -.mapClusterToggle input { - vertical-align:top; -} -.mapClusterToggle label { - vertical-align:middle; -} -.mapInfoWrapper{ - min-width: 450px; - max-width: 450px; - overflow: hidden; - display: block; - max-height: 275px; -} -.mapInfoResult { - min-width: 440px; - max-width: 440px; - background-color:#EEEEEE; - padding:2px 2px 2px 2px; -} -.mapInfoResult.alt { - background-color:#FFF; -} -.mapSeeAllDiv{ - font-size:1.2em; - font-weight: bold; - text-align:center; -} -.mapInfoResults{ - float: left; - border:1px solid #EEEEEE; -} -.mapInfoResultThumb { - float: right; -} -.mapInfoResultThumbImg { - height: 32px; - width: 32px; -} -/************pubdate_vis timeline**********/ -.dateVisClear { - background-color: #FFF; - border: 2px solid #545454; - position: absolute; - left: 6px; top: 6px; - height: 20px; - padding-left: 5px; - padding-right: 5px; -} - -/* table for displaying full status in result list */ -table.summHoldings { - font-size: smaller; - margin-bottom: .5em; -} -table.summHoldings th { - padding: 0; - color: #666666; - border-bottom: 1px solid #999999; -} -table.summHoldings td { - background: inherit !important; - padding: 0; -} -table.summHoldings .locationColumn { - width: 50%; -} -table.summHoldings .callnumColumn { - width: 30%; -} -table.summHoldings .statusColumn { - width: 20%; -} -a.summHoldings { - font-size: smaller; -} -/*****************contextHelp*******************/ - -table#contextHelp td, table#contextHelp tr { - padding: 0; -} - -table#contextHelp { - z-index: 1; - display: none; - position: absolute; - border-spacing: 0; - border-collapse: collapse; - max-width: 400px; - top: 0; -} -table#contextHelp tr.top td, table#contextHelp tr.bottom td { - background-image: url(../images/contextHelp.png); - background-repeat: repeat-x; - height: 9px; -} -table#contextHelp tr.top td.left { - background-position: 0 0; - width: 4px; -} -table#contextHelp tr.top td.center { - background-position: 0 100%; -} -table#contextHelp tr.top td.right { - background-position: -4px 0; - width: 4px; -} -table#contextHelp tr.bottom td.left { - background-position: -12px 0; - width: 4px; -} -table#contextHelp tr.bottom td.center { - background-position: 0 -9px; -} -table#contextHelp tr.bottom td.right { - background-position: -8px 0; - width: 4px; -} -table#contextHelp tr.middle td{ - background: #ededed; -} -table#contextHelp td.body { - padding: 12px 10px; - background: #ededed; -} -table#contextHelp td.body h2 { - font-size: 1.4em; - margin-bottom: 5px; - color: #2D4687; - font-weight: bold; -} -table#contextHelp a { - color: #04778E; - /*border-bottom: solid 1px #ACD4DB;*/ - text-decoration: underline; - font-weight: bold; -} -table#contextHelp a:hover { - color: #024A59; - /*border-color: #82A1A5;*/ -} -table#contextHelp div.arrow { - height: 6px; - background-image: url(../images/contextHelp-arrow.png); - background-repeat: no-repeat; - margin: 0 15px; -} -table#contextHelp div.arrow.down { - background-position: 0 -6px; - margin-top: 3px; -} -table#contextHelp div.arrow.up { - background-position: 0 0; - margin-bottom: 3px; -} -table#contextHelp p { - font-size: 0.9em; - text-align: left; - font-weight: bold; -} -table#contextHelp p.separator { - background: url(../images/dashed-line-grey.gif) 0 top repeat-x scroll; - margin-top:15px; - padding-top:15px; -} -div#closeContextHelp { - float: right; - width: 16px; - height: 16px; - margin-top: -6px; - margin-right:-4px; - background: url(../images/cross-stack.png) 0 0; - cursor: pointer; -} -div#closeContextHelp:hover { - background-position: 0 -16px; -} -div#closeContextHelp:active { - background-position: 0 -32px; -} - -.sysInfo { - margin: 0 auto; - padding: 1em; - background-color: #FFEF8F; - border: 2px solid #F9DD34; - border-radius: 5px 5px 5px 5px; -} -.confirmDialog { - margin: auto; -} -.confirmDialog form { - display:inline-block; - float: center; -} - -.mobileViewLink { - width:100%; - padding:10px; - background-color: #FDD5A3; - border: solid 2px #E77825; - font-size:24px; -} - -/* Make sure COinS information is invisible */ -.Z3988 { - display: none; -} - -#hierarchyTreeHolder, #hierarchyRecordHolder { - background-color: #FFF; - padding: 0.5em; -} - -#hierarchyTreeHolder { - border: 1px solid #DCDCDC; -} - -.collectionDetailsTree #hierarchyTreeHolder, .collectionDetailsTree #hierarchyRecordHolder { - border-top: 0; -} - -#hierarchyTree, #hierarchyRecord { - padding: 0.5em 0.5em 0.5em 0; - max-height:375px; - min-height:375px; - overflow: hidden; - overflow-y: auto; -} - -#hierarchyRecord { - overflow: auto; -} - -#hierarchyRecord th { - width: 12em; -} - -#treeSearch { - display:none; - float: right; - width: 100%; - border: 1px solid #DCDCDC; -} - -#treeSearch #treeSearchText{ - display:block; - float:right; - margin: 1px 0px 0px 0px; -} - -#treeSearch #search { - display:block; - float:right; - margin-bottom: 0px; -} - -#treeSearch #treeSearchType { - display:block; - float:right; - margin:2px 4px 0px 4px; -} - -#treeSearch #treeSearchNoResults { - display:none; - float:left; - color: #AF1B0A; - margin:3px 0px 0px 5px; -} - -#treeSearch #treeSearchLoadingImg { - display:none; - float:right; - margin:3px 4px 4px 5px; -} - -#treeSearchLimitReached { - display:none; - color: #AF1B0A; - margin:3px 0px 0px 5px; -} - -#modalDialog #hierarchyTree { - max-height: 100%; - min-height: 100%; - overflow: auto; - overflow-y: auto; -} - -#hierarchyTree ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -.tree { - background-image:url(../images/fugue/tree.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} - -.currentTree, .hierarchyTreeLinkText { - background-image:url(../images/fugue/treeCurrent.png); - background-repeat:no-repeat; - background-position: left; - padding:.5em .5em .5em 20px; - margin-right:1em; -} - -#hierarchyTree #treeList li { - background-image:url(../images/fugue/treeItem.png); - background-repeat: no-repeat; - padding: 0.25em 0 0 23px; - background-position: 0 0.25em; -} - -#hierarchyTree #treeList li.currentRecord { - background-image:url(../images/fugue/treeItemCurrent.png); - background-repeat: no-repeat; - padding: 0.25em 0 0 23px; - background-position: 0 0.25em; -} - -#hierarchyTree #treeList li.hierarchy { - background-image:url(../images/fugue/collection.png); - background-repeat: no-repeat; - padding: 0.25em 0 0 23px; - background-position: 0 0.25em; -} - -#hierarchyTree #treeList li.currentHierarchy { - background-image:url(../images/fugue/collectionCurrent.png); - background-repeat: no-repeat; - padding: 0.25em 0 0 23px; - background-position: 0 0.25em; -} - -#hierarchyTree #treeList li.currentHierarchy > a, #hierarchyTree #treeList li.currentRecord > a { - color: #000; - font-weight: bold; -} - -#toggleTree { - background-image:url(../images/fugue/treeCurrent.png); - background-repeat: no-repeat; - padding: 0.25em 0 0 23px; - background-position: 0 0.25em; -} - -#treeSelector { - background-color: #FAFAFA; - border: 1px solid #DCDCDC; - border-bottom: 0 none; - padding: 0.25em; -} - -.collectionDetailsTree #treeSelector { - background-color: #FAFAFA; - border: 1px solid #DCDCDC; - border-top: 0 none; - padding: 0.25em; -} - -#treeSelector a { - margin-right: 1em; -} - -.jstree-highlight { - font-weight: bold; -} - -/* hides the div so that only people with JavaScript will see the tab */ -div.slideOutForm { - display: none; -} - -/* stylizes the feedback tab div */ -.slide-out-div { - padding: 20px; - width: 270px; - height: 300px; - background: #6B8F25; - border: 1px solid #000000; - z-index: 9; - color: white; -} - -/* larger font size for "send us your feedback" */ -p.feedbackHeader { - font-size: 1.4em; -} - -/* this is used to change the properties of errors in the feedback tab */ -#contact_form .error { - padding: .1em; - line-height: 2.5; -} - -#contact_form .invalid { - background-color: white; -} - -/* changes the text on the feedback home page */ -.feedbackPageLabel { - color: black; -} - -/* These two sections change the colors of the selected and unselected text fields */ -.feedbackSelect { - background: #D6FFAD; -} - -.feedbackDeselect { - background: #FFFFFF; -} - -/* Creates and positions the new handle on the feedback form */ -div.handle { - cursor:pointer; - text-decoration: none; -} - -#feedbackTabBox { - margin-top: 0px; - margin-left: 0px; - - width:30px; - height:86px; - background-color:#6B8F25; - overflow: visible; - border-right: solid 1px black; - border-bottom: solid 1px black; - border-top: solid 1px black; - - padding: 0; - position: relative; -} - -#feedbackTabText { - transform:rotate(-90deg); - -ms-transform:rotate(-90deg); /* IE 9 */ - -webkit-transform:rotate(-90deg); /* Safari and Chrome */ - -o-transform: rotate(-90deg); /* Opera */ - -moz-transform: rotate(-90deg); /*Firefox*/ - width: 86px; - height: 30px; - margin-top: -58px; - margin-left: -28px; - position: relative; - text-indent: 0; - text-align: center; - color: white; - font: bold 15px/30px 'lucida sans', 'trebuchet MS', 'Tahoma'; - z-index: 10; -} - -.searchTabNav { - border-bottom:1px solid #619144; - display:table; - list-style:none; - padding:0 10px 1px 10px; -} -.searchTabNav li { - background:#EFD; - border:1px solid #619144; - display:inline; - font-size:10pt; - margin:0 1px; - padding:3px 6px; - text-align:center; - width:60px; -} -.searchTabNav li.active { - background:#FFF; - border-bottom:1px solid #FFF; -} -.searchTabNav li.active a { - color:#000; - text-decoration:none; -} - -.combinedResult { - width: 47%; - margin: 5px; - padding: 5px; - float: left; - border: 1px solid #eee; -} - -.combinedResult .span-4, .combinedResult ul.recordSet .recordNumber { - display: none; -} - -.combinedResult .span-9 { - width: 330px; -} - -.combinedResult .span-2 { - clear: left; - float: left; -} - -.combinedResult .more_link { - text-align: center; - border-top: 1px solid #eee; -} - -.authmethod0 { - width:47%; - float:left; - padding:1%; - border-right:1px solid rgb(204, 204, 204); -} - -.authmethod1 { - width:47%; - float:left; - padding:1%; - border-left:1px solid rgb(204, 204, 204); - margin:-1px; /* keep the borders on top of one another; longest one will win */ -} - -#authcontainer { - float:left; - width:100%; -} - -/* Admin styling */ -.tagForm select { - width:200px; -} - -/********** Styles for results visualizations **********/ - -#visualResults .node { - border: solid 1px white; - font: 10px sans-serif; - line-height: 12px; - overflow: hidden; - position: absolute; - margin:-1px; -} - -#visualResults .node div { - margin-left: 3px; - margin-top: 0px; -} - -#visualResults .toplevel {border: 2px solid black;} - -#visualResults .label { - display: block; - line-height: 1; - padding: 2px; - background: rgba(0, 0, 0, 0.2); - color: #000000; - border-radius: 2px; - z-index: 200; - position: absolute; - bottom: 0; - right: 0; -} - -#visualResults .notalabel {color: #000000;} - -#viz-instructions {padding-top:600px;} - -#gbsViewer { - margin:25px 0px 50px 25px; - width: 90%; - height: 600px; -} diff --git a/themes/blueprint/css/vudl.css b/themes/blueprint/css/vudl.css deleted file mode 100644 index cee20e59b848ecd056e4274635f17b9650d7be15..0000000000000000000000000000000000000000 --- a/themes/blueprint/css/vudl.css +++ /dev/null @@ -1,161 +0,0 @@ -/** GENERAL **/ -div.main { - padding-top:2px; -} -.inspector_container,.bottom { - position:relative; - clear:both; -} - -/** SIDE BAR **/ -.side_nav { - display:table; - position:relative; - float:left; - width:150px; - text-align:center; - border-right:5px solid #EEE; - padding:9px 5px 0 0; - margin:3px 0 0 0; - overflow:hidden; -} -.side_nav a.top { - float:left; - display:inline-block; - width:50%; - height:20px; - padding:6px 0 0 0; - margin:0 0 4px 0; -} -.side_nav a.top.selected { - color:#060; - text-decoration:none; - border-top:3px solid #AB6; - cursor:default; - padding:3px 0 0 0; - font-weight:bold; -} -.side-loading { - display:block; - background:#EEE; - border-radius:3px; - margin:6px 2px 0 0; -} -.page_list { - clear:both; - display:block; - width:150px; - height:100%; - margin:0; - padding:0; - overflow-y:scroll; -} - -/** PAGE AND DOC ICONS **/ -.page_link { - clear:both; - display:block; - text-align:center; - padding:10px 2px; - margin:3px 0; - border-radius:3px; - cursor:pointer; - width:125px; -} -.page_link:not(.selected):hover { - background:#EEE; -} -.page_list .selected,.doc_list .selected { - background:#E6EFC2; - border: 2px solid #C6D880; - border-radius: 5px; - -moz-border-radius: 5px; - padding:8px 0; - cursor:default; -} -.page_link img,.page_link div { - display:block; - margin:3px auto; -} -.doc_list .pdf { - background:url('../images/small/pdf.png'); - width:70px; - height:87px; -} -.doc_list .doc { - background:url('../images/small/doc.png'); - width:116px; - height:85px; -} - -/** MAIN VIEW **/ -.view { - display:block; - float:right; - width:756px; - padding:0 5px; - margin:0; -} -.view .navigation { - display:block; - width:100%; - margin:0 0 1px 0; - padding:0; - border-bottom:1px solid #C6D880; - text-align:center; -} -.view .navigation a { - display:inline-block; - padding:0; - width:144px; - padding:10px 0; - text-align:center; - border:1px solid #C6D880; - border-bottom:0; - margin:0 1px; - cursor:pointer; -} -.view .navigation a.selected { - background:#E6EFC2; - padding:13px 0 10px 0; - color:#060; - text-decoration:none; - font-weight:bold; -} -.preview { - overflow-y:auto; -} -#preview { - display:block; - max-width:100%; - margin:auto; -} - -/** VARIOUS VIEWS **/ -.information { - padding:0 2em; - font-size:12pt; -} -.information p { - margin:0 2em; - text-indent:-1em; -} -.information h2 { - text-align:center; - text-indent:0; -} -.zoomFrame { - width:754px; - height:700px; - position:relative; -} - -/** INSPECTOR IMAGES **/ -.turn_left,.turn_right { - width:32px; - height:32px; - background:url('../images/rotate_anticlockwise.png'); -} -.turn_right { - background:url('../images/rotate_clockwise.png'); -} \ No newline at end of file diff --git a/themes/blueprint/images/.htaccess b/themes/blueprint/images/.htaccess deleted file mode 100644 index d96fae1a2e794096294f36bf3e2b5ee9090f0bf1..0000000000000000000000000000000000000000 --- a/themes/blueprint/images/.htaccess +++ /dev/null @@ -1,3 +0,0 @@ -<IfModule mod_rewrite.c> - RewriteEngine Off -</IfModule> diff --git a/themes/blueprint/images/1.gif b/themes/blueprint/images/1.gif deleted file mode 100644 index f47a0ae473047665fb42b4637266cc59654b2e56..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/1.gif and /dev/null differ diff --git a/themes/blueprint/images/2.gif b/themes/blueprint/images/2.gif deleted file mode 100644 index b400fd7ce999c40f78afd90b49c1322bd9bf7783..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/2.gif and /dev/null differ diff --git a/themes/blueprint/images/3.gif b/themes/blueprint/images/3.gif deleted file mode 100644 index 74582c6d8fcacc1136b3f15cbcfe588b1f6fd47f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/3.gif and /dev/null differ diff --git a/themes/blueprint/images/4.gif b/themes/blueprint/images/4.gif deleted file mode 100644 index f05c24d5432e1137f4d4d8a32ea7d8e2682efb97..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/4.gif and /dev/null differ diff --git a/themes/blueprint/images/5.gif b/themes/blueprint/images/5.gif deleted file mode 100644 index f6a4bb712442deb9f82df33484122187c213c3a8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/5.gif and /dev/null differ diff --git a/themes/blueprint/images/EDS/PT_Sprite.png b/themes/blueprint/images/EDS/PT_Sprite.png deleted file mode 100644 index 64225908ea429e97bf01b89c6e77cbfe2b0840e2..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/EDS/PT_Sprite.png and /dev/null differ diff --git a/themes/blueprint/images/EDS/sprites_32.png b/themes/blueprint/images/EDS/sprites_32.png deleted file mode 100644 index 1ac5486a8216e8262069cd08d1ba6fad8a04cd30..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/EDS/sprites_32.png and /dev/null differ diff --git a/themes/blueprint/images/ajax_loading.gif b/themes/blueprint/images/ajax_loading.gif deleted file mode 100644 index d42f72c723644bbf8cf8d6e1b7ff0bea7ddd305a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/ajax_loading.gif and /dev/null differ diff --git a/themes/blueprint/images/bg_authorbox.jpg b/themes/blueprint/images/bg_authorbox.jpg deleted file mode 100644 index cb7efb1d3257db7d34ff7692d0fd4ed3f5fb0866..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/bg_authorbox.jpg and /dev/null differ diff --git a/themes/blueprint/images/bg_body.jpg b/themes/blueprint/images/bg_body.jpg deleted file mode 100644 index 4ff574fef126051a225c808b7f98a8ca6297d98e..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/bg_body.jpg and /dev/null differ diff --git a/themes/blueprint/images/bg_breadcrumb.png b/themes/blueprint/images/bg_breadcrumb.png deleted file mode 100644 index 748a53ee20ba7ad30430c65305ce9f40a51dcfa4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/bg_breadcrumb.png and /dev/null differ diff --git a/themes/blueprint/images/bullet_green.png b/themes/blueprint/images/bullet_green.png deleted file mode 100644 index 058ad261f520490be9d3fc2e322392fdedfd1cbd..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/bullet_green.png and /dev/null differ diff --git a/themes/blueprint/images/bullet_red.png b/themes/blueprint/images/bullet_red.png deleted file mode 100644 index 0cd803115831933aa171497cfe9c1af983035f86..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/bullet_red.png and /dev/null differ diff --git a/themes/blueprint/images/contextHelp-arrow.png b/themes/blueprint/images/contextHelp-arrow.png deleted file mode 100644 index 6a62a447a032b9a335f9c8a9fbde59c5e183eee8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/contextHelp-arrow.png and /dev/null differ diff --git a/themes/blueprint/images/contextHelp.png b/themes/blueprint/images/contextHelp.png deleted file mode 100644 index fbb82ee2639c9b8d450f83c50b0b447ab710b492..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/contextHelp.png and /dev/null differ diff --git a/themes/blueprint/images/cross-stack.png b/themes/blueprint/images/cross-stack.png deleted file mode 100644 index 2b378cf8f36d24d1f623b898a6010e3e2cbca497..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/cross-stack.png and /dev/null differ diff --git a/themes/blueprint/images/dialog_loading.gif b/themes/blueprint/images/dialog_loading.gif deleted file mode 100644 index 0ca7ada960568fff04400cda966fbdcb106abfa2..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/dialog_loading.gif and /dev/null differ diff --git a/themes/blueprint/images/ebook.png b/themes/blueprint/images/ebook.png deleted file mode 100644 index 6535ad8e5a2cb3591f5657e65d85d9f8fb8a8fe9..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/ebook.png and /dev/null differ diff --git a/themes/blueprint/images/europeana.eu.png b/themes/blueprint/images/europeana.eu.png deleted file mode 100644 index 0e09113d028a16592e52667c2882d492fb5b98a1..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/europeana.eu.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/bookbag.png b/themes/blueprint/images/fugue/bookbag.png deleted file mode 100644 index 223e889eb13ca5f03cea33109a3fa8547c6c5e48..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/bookbag.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/bookbagAdd.png b/themes/blueprint/images/fugue/bookbagAdd.png deleted file mode 100644 index 2398cd9d3ebe89b63c330f05cf4b996bfe912e0e..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/bookbagAdd.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/bookbagDelete.png b/themes/blueprint/images/fugue/bookbagDelete.png deleted file mode 100644 index 21a2243339bb524403053cd06489c63a141cb7f4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/bookbagDelete.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/bookbagEmpty.png b/themes/blueprint/images/fugue/bookbagEmpty.png deleted file mode 100644 index 65c2fc83fd9444816694c5c31bad10920c03603b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/bookbagEmpty.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/checkRequest.png b/themes/blueprint/images/fugue/checkRequest.png deleted file mode 100644 index 4362dcbf3b61828f4d7dc5074691945b85214a4d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/checkRequest.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/collection.png b/themes/blueprint/images/fugue/collection.png deleted file mode 100644 index 320e701ae15d052d22907794f55b3ed15f07a0a7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/collection.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/collectionCurrent.png b/themes/blueprint/images/fugue/collectionCurrent.png deleted file mode 100644 index 9732669670328e6952326f9a4e30ba8b34664362..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/collectionCurrent.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/cross-small.png b/themes/blueprint/images/fugue/cross-small.png deleted file mode 100644 index 53c3a71b25917651d5294126cbaa30f33d18d971..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/cross-small.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/holdBlocked.png b/themes/blueprint/images/fugue/holdBlocked.png deleted file mode 100644 index a4a414b5cfd9b1fcbbf2f664df3a82a3b41d0bee..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/holdBlocked.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/holdCancel.png b/themes/blueprint/images/fugue/holdCancel.png deleted file mode 100644 index 38558b29b4b0b879351581f62ce79f04b7bf0878..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/holdCancel.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/holdCancelAll.png b/themes/blueprint/images/fugue/holdCancelAll.png deleted file mode 100644 index 3f93371db6b30a338f935655f91e2d8dbbc536df..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/holdCancelAll.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/holdPlace.png b/themes/blueprint/images/fugue/holdPlace.png deleted file mode 100644 index b001bb7358621cf970eae192abfd5b24e2863e40..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/holdPlace.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/qrcode.png b/themes/blueprint/images/fugue/qrcode.png deleted file mode 100644 index c2cfa4765abf4f837d36536299b9b0715acfea4d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/qrcode.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/renew.png b/themes/blueprint/images/fugue/renew.png deleted file mode 100644 index a502793fb1ca15f1f5099eca161cc42cc60e4e5f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/renew.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/renewAll.png b/themes/blueprint/images/fugue/renewAll.png deleted file mode 100644 index 92506b6cc2366c16242824ac226c1085931f66ba..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/renewAll.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/tick-small.png b/themes/blueprint/images/fugue/tick-small.png deleted file mode 100644 index a110aef9330c6e9089dfb18544d1a46d65d9fa92..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/tick-small.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/tree.png b/themes/blueprint/images/fugue/tree.png deleted file mode 100644 index d0b534db872347ebc238a87e9dd8b889778086ed..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/tree.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/treeCurrent.png b/themes/blueprint/images/fugue/treeCurrent.png deleted file mode 100644 index dc4d5008d17afb112dfe6dc60b6527f724e0c455..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/treeCurrent.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/treeItem.png b/themes/blueprint/images/fugue/treeItem.png deleted file mode 100644 index 13cb0a63c697eadd1985cbaa7e8aee40ac7a76a8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/treeItem.png and /dev/null differ diff --git a/themes/blueprint/images/fugue/treeItemCurrent.png b/themes/blueprint/images/fugue/treeItemCurrent.png deleted file mode 100644 index 78918c872c4b7062d11cac03e52557fba1dc14b7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/fugue/treeItemCurrent.png and /dev/null differ diff --git a/themes/blueprint/images/gradient_green.gif b/themes/blueprint/images/gradient_green.gif deleted file mode 100644 index fa0e0c802b0fc1fce6d5f09a467df313c39c9d2c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/gradient_green.gif and /dev/null differ diff --git a/themes/blueprint/images/gradient_grey.gif b/themes/blueprint/images/gradient_grey.gif deleted file mode 100644 index 526e8c50dfcd969d52b5e15c1f9c8a73e57bc29b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/gradient_grey.gif and /dev/null differ diff --git a/themes/blueprint/images/loading.gif b/themes/blueprint/images/loading.gif deleted file mode 100644 index 471c1a4f93f2cabf0b3a85c3ff8e0a8aadefc548..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/loading.gif and /dev/null differ diff --git a/themes/blueprint/images/preview_ht.gif b/themes/blueprint/images/preview_ht.gif deleted file mode 100644 index 289a45854e505145fd75ef1281c05c7fba313952..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/preview_ht.gif and /dev/null differ diff --git a/themes/blueprint/images/preview_ol.gif b/themes/blueprint/images/preview_ol.gif deleted file mode 100644 index 51ae53f7aba4358179e03062fbbe7b00cdae76b0..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/preview_ol.gif and /dev/null differ diff --git a/themes/blueprint/images/rotate_anticlockwise.png b/themes/blueprint/images/rotate_anticlockwise.png deleted file mode 100644 index 204535a3e1fa4e4b46bc9fc3670556e3c6550cef..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/rotate_anticlockwise.png and /dev/null differ diff --git a/themes/blueprint/images/rotate_clockwise.png b/themes/blueprint/images/rotate_clockwise.png deleted file mode 100644 index 9d9f34876f27d46f565d95eeb640e850f1df787a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/rotate_clockwise.png and /dev/null differ diff --git a/themes/blueprint/images/silk/add.png b/themes/blueprint/images/silk/add.png deleted file mode 100644 index 6332fefea4be19eeadf211b0b202b272e8564898..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/add.png and /dev/null differ diff --git a/themes/blueprint/images/silk/application_add.png b/themes/blueprint/images/silk/application_add.png deleted file mode 100644 index 2e945076cf7686b3b408d6eb2cf913992100da15..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/application_add.png and /dev/null differ diff --git a/themes/blueprint/images/silk/bin.png b/themes/blueprint/images/silk/bin.png deleted file mode 100644 index ebad933c8b3729a9b27dc34c5a111600b8d46fdb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/bin.png and /dev/null differ diff --git a/themes/blueprint/images/silk/book.png b/themes/blueprint/images/silk/book.png deleted file mode 100644 index b0f4dd7928cc5714e002fd2a6e8f2faac0073f00..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/book.png and /dev/null differ diff --git a/themes/blueprint/images/silk/book_link.png b/themes/blueprint/images/silk/book_link.png deleted file mode 100644 index dd0820e86d0ae7484a9d1fea509ce168ad44699a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/book_link.png and /dev/null differ diff --git a/themes/blueprint/images/silk/book_open.png b/themes/blueprint/images/silk/book_open.png deleted file mode 100644 index 7d863f949741ff83fd8373a77c0d95a3d95e441f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/book_open.png and /dev/null differ diff --git a/themes/blueprint/images/silk/box.png b/themes/blueprint/images/silk/box.png deleted file mode 100644 index 8443c23eb944cf8ef49c9d13cd496502f46f1885..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/box.png and /dev/null differ diff --git a/themes/blueprint/images/silk/bullet_green.png b/themes/blueprint/images/silk/bullet_green.png deleted file mode 100644 index 058ad261f520490be9d3fc2e322392fdedfd1cbd..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/bullet_green.png and /dev/null differ diff --git a/themes/blueprint/images/silk/bullet_orange.png b/themes/blueprint/images/silk/bullet_orange.png deleted file mode 100644 index fa63024e55bdde1851f2067dee1a6cad2e9115ea..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/bullet_orange.png and /dev/null differ diff --git a/themes/blueprint/images/silk/bullet_red.png b/themes/blueprint/images/silk/bullet_red.png deleted file mode 100644 index 0cd803115831933aa171497cfe9c1af983035f86..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/bullet_red.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cart.png b/themes/blueprint/images/silk/cart.png deleted file mode 100644 index 1baf7b9fde1195da75a09a4ac8a7cdcc11542c3a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cart.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cart_delete.png b/themes/blueprint/images/silk/cart_delete.png deleted file mode 100644 index ac5bce5c8862ff091d89763a9c0ed19a70e639a5..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cart_delete.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cart_go.png b/themes/blueprint/images/silk/cart_go.png deleted file mode 100644 index 20ee0584f61fbc7a4759ccda9a3d805460bc70c8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cart_go.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cart_put.png b/themes/blueprint/images/silk/cart_put.png deleted file mode 100644 index 3aec353e03f6b750e7e5ecce6118a0827df168ae..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cart_put.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cart_remove.png b/themes/blueprint/images/silk/cart_remove.png deleted file mode 100644 index 360217b526d10a3a39e0acfbc4f4a41bbf986734..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cart_remove.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cd.png b/themes/blueprint/images/silk/cd.png deleted file mode 100644 index ef4322357cbc34e0b5eeed34f9fdf553a1de2ee7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cd.png and /dev/null differ diff --git a/themes/blueprint/images/silk/cog.png b/themes/blueprint/images/silk/cog.png deleted file mode 100644 index 67de2c6ccbeac17742f56cf7391e72b2bf5033ba..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/cog.png and /dev/null differ diff --git a/themes/blueprint/images/silk/delete.png b/themes/blueprint/images/silk/delete.png deleted file mode 100644 index 08f249365afd29594b51210c6e21ba253897505d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/delete.png and /dev/null differ diff --git a/themes/blueprint/images/silk/disk-black.png b/themes/blueprint/images/silk/disk-black.png deleted file mode 100644 index 8d1a21e35d099667a716d90c84c1d7790bf2fe83..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/disk-black.png and /dev/null differ diff --git a/themes/blueprint/images/silk/disk_multiple.png b/themes/blueprint/images/silk/disk_multiple.png deleted file mode 100644 index fc5a52f5e4a7e8eb54bcd59728e88a2db5f046ed..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/disk_multiple.png and /dev/null differ diff --git a/themes/blueprint/images/silk/door_in.png b/themes/blueprint/images/silk/door_in.png deleted file mode 100644 index 41676a0a5be0f026fb136315fafb6c4566522d7a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/door_in.png and /dev/null differ diff --git a/themes/blueprint/images/silk/door_out.png b/themes/blueprint/images/silk/door_out.png deleted file mode 100644 index 2541d2bcbc218b194f79fd99f67d33de1873c6c4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/door_out.png and /dev/null differ diff --git a/themes/blueprint/images/silk/dvd.png b/themes/blueprint/images/silk/dvd.png deleted file mode 100644 index 9d94de5df00c518c84b400de7176f15843af7f4b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/dvd.png and /dev/null differ diff --git a/themes/blueprint/images/silk/edit.png b/themes/blueprint/images/silk/edit.png deleted file mode 100644 index 0bfecd50ee9f5bc5828f0c0745aa3e0effcbe250..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/edit.png and /dev/null differ diff --git a/themes/blueprint/images/silk/email.png b/themes/blueprint/images/silk/email.png deleted file mode 100644 index 7348aed77fe6a64c2210a202f12c6eccae7fcf24..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/email.png and /dev/null differ diff --git a/themes/blueprint/images/silk/error.png b/themes/blueprint/images/silk/error.png deleted file mode 100644 index 628cf2dae3d419ae220c8928ac71393b480745a3..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/error.png and /dev/null differ diff --git a/themes/blueprint/images/silk/expand.png b/themes/blueprint/images/silk/expand.png deleted file mode 100644 index af4fe07477243b9b2099899d1ef47b8e3fd87b09..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/expand.png and /dev/null differ diff --git a/themes/blueprint/images/silk/feed.png b/themes/blueprint/images/silk/feed.png deleted file mode 100644 index 315c4f4fa62cb720326ba3f54259666ba3999e42..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/feed.png and /dev/null differ diff --git a/themes/blueprint/images/silk/film.png b/themes/blueprint/images/silk/film.png deleted file mode 100644 index b0ce7bb198a3b268bd634d2b26e9b710f3797d37..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/film.png and /dev/null differ diff --git a/themes/blueprint/images/silk/heart.png b/themes/blueprint/images/silk/heart.png deleted file mode 100644 index d9ee53e590a68a95a9fa9483f0ebd14f3f25bb72..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/heart.png and /dev/null differ diff --git a/themes/blueprint/images/silk/help.png b/themes/blueprint/images/silk/help.png deleted file mode 100644 index 5c870176d4dea68aab9e51166cc3d7a582f326d6..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/help.png and /dev/null differ diff --git a/themes/blueprint/images/silk/house.png b/themes/blueprint/images/silk/house.png deleted file mode 100644 index fed62219f57cdfb854782dbadf5123c44d056bd4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/house.png and /dev/null differ diff --git a/themes/blueprint/images/silk/key_go.png b/themes/blueprint/images/silk/key_go.png deleted file mode 100644 index 30b0dc316e52dba388d88112d4c1cc32672fffbb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/key_go.png and /dev/null differ diff --git a/themes/blueprint/images/silk/list.png b/themes/blueprint/images/silk/list.png deleted file mode 100644 index 244e6ca045c50a130086ac388b560a12761544b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/list.png and /dev/null differ diff --git a/themes/blueprint/images/silk/lock.png b/themes/blueprint/images/silk/lock.png deleted file mode 100644 index 2ebc4f6f9663e32cad77d67ef93ab8843dfea3c0..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/lock.png and /dev/null differ diff --git a/themes/blueprint/images/silk/map.png b/themes/blueprint/images/silk/map.png deleted file mode 100644 index f90ef25ec7f1cb0fdae38d9fe2d9edeee9928ef1..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/map.png and /dev/null differ diff --git a/themes/blueprint/images/silk/music.png b/themes/blueprint/images/silk/music.png deleted file mode 100644 index a8b3ede3df956f8d505543b190bc8d1b5b4dce75..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/music.png and /dev/null differ diff --git a/themes/blueprint/images/silk/newspaper.png b/themes/blueprint/images/silk/newspaper.png deleted file mode 100644 index 6a2ecce1b85eaa9084b427ee2c5226e2296eaeb8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/newspaper.png and /dev/null differ diff --git a/themes/blueprint/images/silk/package.png b/themes/blueprint/images/silk/package.png deleted file mode 100644 index da3c2a2d74bab159ba0f65d7db601768258afcb2..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/package.png and /dev/null differ diff --git a/themes/blueprint/images/silk/phone.png b/themes/blueprint/images/silk/phone.png deleted file mode 100644 index c39f162f854a7c412fab9b6ff38fffdc61754a58..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/phone.png and /dev/null differ diff --git a/themes/blueprint/images/silk/photo.png b/themes/blueprint/images/silk/photo.png deleted file mode 100644 index 6c2aaaaaf33ec07184ae0f5824ef24c82c41106f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/photo.png and /dev/null differ diff --git a/themes/blueprint/images/silk/picture.png b/themes/blueprint/images/silk/picture.png deleted file mode 100644 index 4a158fef7e0da8fd19525f574f2c4966443866cf..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/picture.png and /dev/null differ diff --git a/themes/blueprint/images/silk/printer.png b/themes/blueprint/images/silk/printer.png deleted file mode 100644 index a350d1871536eb28fe2949936de1c79c1c26269d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/printer.png and /dev/null differ diff --git a/themes/blueprint/images/silk/readme.txt b/themes/blueprint/images/silk/readme.txt deleted file mode 100644 index 2cf67dcaff69312455f374df0901fa912c451a13..0000000000000000000000000000000000000000 --- a/themes/blueprint/images/silk/readme.txt +++ /dev/null @@ -1,22 +0,0 @@ -Silk icon set 1.3 - -_________________________________________ -Mark James -http://www.famfamfam.com/lab/icons/silk/ -_________________________________________ - -This work is licensed under a -Creative Commons Attribution 2.5 License. -[ http://creativecommons.org/licenses/by/2.5/ ] - -This means you may use it for any purpose, -and make any changes you like. -All I ask is that you include a link back -to this page in your credits. - -Are you using this icon set? Send me an email -(including a link or picture if available) to -mjames@gmail.com - -Any other questions about this icon set please -contact mjames@gmail.com \ No newline at end of file diff --git a/themes/blueprint/images/silk/report.png b/themes/blueprint/images/silk/report.png deleted file mode 100644 index 779ad58efc5776825ef81064a042eceba274a928..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/report.png and /dev/null differ diff --git a/themes/blueprint/images/silk/report_edit.png b/themes/blueprint/images/silk/report_edit.png deleted file mode 100644 index c61a6d847795a2c6c9f0d8e6c69d3f72cec5e77d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/report_edit.png and /dev/null differ diff --git a/themes/blueprint/images/silk/report_picture.png b/themes/blueprint/images/silk/report_picture.png deleted file mode 100644 index 3a9a7e5eb91319a532f1c796740c70692b8335eb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/report_picture.png and /dev/null differ diff --git a/themes/blueprint/images/silk/script.png b/themes/blueprint/images/silk/script.png deleted file mode 100644 index 0f9ed4d48301ffdce04cdb17dbf8acbad8372d11..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/script.png and /dev/null differ diff --git a/themes/blueprint/images/silk/script_edit.png b/themes/blueprint/images/silk/script_edit.png deleted file mode 100644 index b4d31ce282f378e5b94cd40680d283842229e491..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/script_edit.png and /dev/null differ diff --git a/themes/blueprint/images/silk/sound.png b/themes/blueprint/images/silk/sound.png deleted file mode 100644 index 6056d234a9818d248987389d4a621e5c83ce0851..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/sound.png and /dev/null differ diff --git a/themes/blueprint/images/silk/tag_blue.png b/themes/blueprint/images/silk/tag_blue.png deleted file mode 100644 index 9757fc6ed6597438eb8e5a70a1ab2402cdebd5d1..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/tag_blue.png and /dev/null differ diff --git a/themes/blueprint/images/silk/tag_yellow.png b/themes/blueprint/images/silk/tag_yellow.png deleted file mode 100644 index 83d12924ff3847904f13ce02fe7d96ee1a6012c7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/tag_yellow.png and /dev/null differ diff --git a/themes/blueprint/images/silk/tick.png b/themes/blueprint/images/silk/tick.png deleted file mode 100644 index a9925a06ab02db30c1e7ead9c701c15bc63145cb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/tick.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user.png b/themes/blueprint/images/silk/user.png deleted file mode 100644 index 79f35ccbdad44489dbf07d1bf688c411aa3b612c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_add.png b/themes/blueprint/images/silk/user_add.png deleted file mode 100644 index deae99bcff9815d8530a920e754d743700ddd5fb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_add.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_comment.png b/themes/blueprint/images/silk/user_comment.png deleted file mode 100644 index e54ebebafb5072fabac9a0f3d8a79fcee3265f9f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_comment.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_delete.png b/themes/blueprint/images/silk/user_delete.png deleted file mode 100644 index acbb5630e51a12a1cd30ea799d659b309e7041cd..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_delete.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_edit.png b/themes/blueprint/images/silk/user_edit.png deleted file mode 100644 index c1974cda745278a404b9e29fa91e0503a84accb1..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_edit.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_gray.png b/themes/blueprint/images/silk/user_gray.png deleted file mode 100644 index 8fd539e9cb04111e950ac9b0cce82676f12f67d4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_gray.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_green.png b/themes/blueprint/images/silk/user_green.png deleted file mode 100644 index 30383c2de517fd22945a87b0528d2821ec4d49ce..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_green.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_orange.png b/themes/blueprint/images/silk/user_orange.png deleted file mode 100644 index b818127df6d064b71838c377063c2c61517ffa01..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_orange.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_red.png b/themes/blueprint/images/silk/user_red.png deleted file mode 100644 index c6f66e8b300750826b214e38e7cf3365fa637878..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_red.png and /dev/null differ diff --git a/themes/blueprint/images/silk/user_suit.png b/themes/blueprint/images/silk/user_suit.png deleted file mode 100644 index b3454e15fb60fe8704a574b0ac35c4d0c902d738..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/user_suit.png and /dev/null differ diff --git a/themes/blueprint/images/silk/world.png b/themes/blueprint/images/silk/world.png deleted file mode 100644 index 68f21d30116710e48a8bf462cb32441e51fad5f6..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/silk/world.png and /dev/null differ diff --git a/themes/blueprint/images/small/Book.png b/themes/blueprint/images/small/Book.png deleted file mode 100644 index c6e7b30f6b623e89d222c2e374a962ed8df8a4fa..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/Book.png and /dev/null differ diff --git a/themes/blueprint/images/small/BookChapter.png b/themes/blueprint/images/small/BookChapter.png deleted file mode 100644 index ab0b9508d4fccbc7fbbdd5d4ed147445edacf642..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/BookChapter.png and /dev/null differ diff --git a/themes/blueprint/images/small/BookReview.png b/themes/blueprint/images/small/BookReview.png deleted file mode 100644 index 369a83a2babdbd653cf2ff10c077ad5f5f997fd9..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/BookReview.png and /dev/null differ diff --git a/themes/blueprint/images/small/Dissertation.png b/themes/blueprint/images/small/Dissertation.png deleted file mode 100644 index a91cb33f87a0a5709dbfc11fa8ca279a062b8a1f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/Dissertation.png and /dev/null differ diff --git a/themes/blueprint/images/small/Journal.png b/themes/blueprint/images/small/Journal.png deleted file mode 100644 index 015762a1ce880c2fe5d0e3fd3fa03992cba613b5..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/Journal.png and /dev/null differ diff --git a/themes/blueprint/images/small/JournalArticle.png b/themes/blueprint/images/small/JournalArticle.png deleted file mode 100644 index 4f833af9bd2fc97c4dd201bbb6395b626b750d83..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/JournalArticle.png and /dev/null differ diff --git a/themes/blueprint/images/small/NewspaperArticle.png b/themes/blueprint/images/small/NewspaperArticle.png deleted file mode 100644 index 53e97223e01283bd2813743461f2382d0b9087bf..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/NewspaperArticle.png and /dev/null differ diff --git a/themes/blueprint/images/small/Report.png b/themes/blueprint/images/small/Report.png deleted file mode 100644 index ed2f758e4acf1bac97c1fcc0096e63ca430c1666..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/Report.png and /dev/null differ diff --git a/themes/blueprint/images/small/TradePublicationArticle.png b/themes/blueprint/images/small/TradePublicationArticle.png deleted file mode 100644 index 753f47a95a7b30eb02daca2a57426e4526003f7e..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/TradePublicationArticle.png and /dev/null differ diff --git a/themes/blueprint/images/small/doc.png b/themes/blueprint/images/small/doc.png deleted file mode 100644 index 447826c011b97641ad5c51f6828eb61addc9de8c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/doc.png and /dev/null differ diff --git a/themes/blueprint/images/small/eBook.png b/themes/blueprint/images/small/eBook.png deleted file mode 100644 index d0632f7b95e7dfef74bfcf207a18c7209b0b940d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/eBook.png and /dev/null differ diff --git a/themes/blueprint/images/small/pdf.png b/themes/blueprint/images/small/pdf.png deleted file mode 100644 index 15eb6dce505236ef3bd213802598624d14dc171e..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/small/pdf.png and /dev/null differ diff --git a/themes/blueprint/images/subnavTab_left.jpg b/themes/blueprint/images/subnavTab_left.jpg deleted file mode 100644 index 64874ade1f6da1b466d8eb462f6d50dee06895f5..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/subnavTab_left.jpg and /dev/null differ diff --git a/themes/blueprint/images/subnavTab_right.jpg b/themes/blueprint/images/subnavTab_right.jpg deleted file mode 100644 index 1539d14ba3cad41c04c2def4661a2c2f964e15b5..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/subnavTab_right.jpg and /dev/null differ diff --git a/themes/blueprint/images/tab_active_arrow.jpg b/themes/blueprint/images/tab_active_arrow.jpg deleted file mode 100644 index 31c1836c5e808d9960abf99d66a9344214a0c818..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tab_active_arrow.jpg and /dev/null differ diff --git a/themes/blueprint/images/tab_active_bg.jpg b/themes/blueprint/images/tab_active_bg.jpg deleted file mode 100644 index 57988815080c2a5aa6c05ea88452b816a7ecd37b..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tab_active_bg.jpg and /dev/null differ diff --git a/themes/blueprint/images/tabs_bg.jpg b/themes/blueprint/images/tabs_bg.jpg deleted file mode 100644 index e54c7050def45ba4ce80878196bba08a50279b18..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tabs_bg.jpg and /dev/null differ diff --git a/themes/blueprint/images/tabs_hover_bg.jpg b/themes/blueprint/images/tabs_hover_bg.jpg deleted file mode 100644 index 6996a02c077574f4f08b69c3045b78f4d6b98c74..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tabs_hover_bg.jpg and /dev/null differ diff --git a/themes/blueprint/images/tango/audio-volume-high.png b/themes/blueprint/images/tango/audio-volume-high.png deleted file mode 100644 index ec8f00b4ad0c6138d17957a9ba6d8616bb39a6a7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/audio-volume-high.png and /dev/null differ diff --git a/themes/blueprint/images/tango/bookmark_add.png b/themes/blueprint/images/tango/bookmark_add.png deleted file mode 100644 index 6cf6443a296cd908ac3e6dba8861b3955a919e20..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/bookmark_add.png and /dev/null differ diff --git a/themes/blueprint/images/tango/email.png b/themes/blueprint/images/tango/email.png deleted file mode 100644 index 859251fe0fcdbdf20de5040a802825ce977c1a24..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/email.png and /dev/null differ diff --git a/themes/blueprint/images/tango/film.png b/themes/blueprint/images/tango/film.png deleted file mode 100644 index 4a71b1d66e152a7a07932ffeda2986d25dd596fe..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/film.png and /dev/null differ diff --git a/themes/blueprint/images/tango/find.png b/themes/blueprint/images/tango/find.png deleted file mode 100644 index d072d3cbe2dadb1494f77e950952123813613677..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/find.png and /dev/null differ diff --git a/themes/blueprint/images/tango/gnome-help.png b/themes/blueprint/images/tango/gnome-help.png deleted file mode 100644 index f25fc3fbf106af60de59581bf2e6fba58d489bf8..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/gnome-help.png and /dev/null differ diff --git a/themes/blueprint/images/tango/video.png b/themes/blueprint/images/tango/video.png deleted file mode 100644 index 5dacbb231ad6e13b216c398c8383b80b51fd92e7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/video.png and /dev/null differ diff --git a/themes/blueprint/images/tango/www.png b/themes/blueprint/images/tango/www.png deleted file mode 100644 index 53014ab153f17a68c5b107a7b0f1d153d956afbb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/tango/www.png and /dev/null differ diff --git a/themes/blueprint/images/trans.png b/themes/blueprint/images/trans.png deleted file mode 100644 index 44a2b9dcb681d1a5006018da8d1afe2cd511f66f..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/trans.png and /dev/null differ diff --git a/themes/blueprint/images/unchecked.gif b/themes/blueprint/images/unchecked.gif deleted file mode 100644 index 06ecaba118eef7e0e6116ee5ff14e16091629dd3..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/unchecked.gif and /dev/null differ diff --git a/themes/blueprint/images/view_grid.png b/themes/blueprint/images/view_grid.png deleted file mode 100644 index 1c4e4391966e8dd5dc246a4b7d25a8e19d84a35c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/view_grid.png and /dev/null differ diff --git a/themes/blueprint/images/view_list.png b/themes/blueprint/images/view_list.png deleted file mode 100644 index 847c39a8ee1eed769cc3e60e07f5f4adb6ac8acc..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/view_list.png and /dev/null differ diff --git a/themes/blueprint/images/view_visual.png b/themes/blueprint/images/view_visual.png deleted file mode 100644 index 12e3eb9e631fc8975af5de9f313dfef358401d5c..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/view_visual.png and /dev/null differ diff --git a/themes/blueprint/images/vufind_logo.png b/themes/blueprint/images/vufind_logo.png deleted file mode 100755 index b873fdc6662f4b13007e758fe79d59af57e77a10..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/images/vufind_logo.png and /dev/null differ diff --git a/themes/blueprint/js/.htaccess b/themes/blueprint/js/.htaccess deleted file mode 100644 index a00c90e011ab940bae2c5bf8c9bff11b583787c4..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/.htaccess +++ /dev/null @@ -1,6 +0,0 @@ -<IfModule mod_rewrite.c> - RewriteEngine Off -</IfModule> - -RemoveType .js -AddType text/javascript .js \ No newline at end of file diff --git a/themes/blueprint/js/advanced_search.js b/themes/blueprint/js/advanced_search.js deleted file mode 100644 index 4baa0b70d7c928c059a50a770f50e0ae047191d4..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/advanced_search.js +++ /dev/null @@ -1,189 +0,0 @@ -/*global addSearchString, deleteSearchGroupString, searchFieldLabel, searchFields, searchJoins, searchLabel, searchMatch*/ - -var nextGroupNumber = 0; -var groupSearches = []; - -function jsEntityEncode(str) -{ - var new_str = str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, '''); - return new_str; -} - -function addSearch(group, term, field) -{ - if (term == undefined) {term = '';} - if (field == undefined) {field = '';} - - var newSearch = '<div class="advRow">'; - - // Label - newSearch += '<div class="label"><label '; - if (groupSearches[group] > 0) { - newSearch += 'class="hide"'; - } - newSearch += ' for="search_lookfor' + group + '_' + groupSearches[group] + '">' + searchLabel + ':</label> </div>'; - - // Terms - newSearch += '<div class="terms"><input type="text" id="search_lookfor' + group + '_' + groupSearches[group] + '" name="lookfor' + group + '[]" size="50" value="' + jsEntityEncode(term) + '"/></div>'; - - // Field - newSearch += '<div class="field"><label for="search_type' + group + '_' + groupSearches[group] + '">' + searchFieldLabel + '</label> '; - newSearch += '<select id="search_type' + group + '_' + groupSearches[group] + '" name="type' + group + '[]">'; - for (var key in searchFields) { - newSearch += '<option value="' + key + '"'; - if (key == field) { - newSearch += ' selected="selected"'; - } - newSearch += ">" + searchFields[key] + "</option>"; - } - newSearch += '</select>'; - newSearch += '</div>'; - - // Handle floating nonsense - newSearch += '<span class="clearer"></span>'; - newSearch += '</div>'; - - // Done - $("#group" + group + "SearchHolder").append(newSearch); - - // Actual value doesn't matter once it's not zero. - groupSearches[group]++; -} - -function reNumGroup(oldGroup, newNum) -{ - // Keep the old details for use - var oldId = $(oldGroup).attr("id"); - var oldNum = oldId.substring(5, oldId.length); - - // Which alternating row we're on - var alt = newNum % 2; - - // Make sure the function was called correctly - if (oldNum != newNum) { - // Update the delete link with the new ID - $("#delete_link_" + oldNum).attr("id", "delete_link_" + newNum); - - // Update the bool[] parameter number - $(oldGroup).find("[name='bool" + oldNum + "[]']:first").attr("name", "bool" + newNum + "[]"); - - // Update the add term link with the new ID - $("#add_search_link_" + oldNum).attr("id", "add_search_link_" + newNum); - - // Now loop through and update all lookfor[] and type[] parameters - $("#group"+ oldNum + "SearchHolder").find("[name='lookfor" + oldNum + "[]']").each(function() { - $(this).attr("name", "lookfor" + newNum + "[]"); - }); - $("#group"+ oldNum + "SearchHolder").find("[name='type" + oldNum + "[]']").each(function() { - $(this).attr("name", "type" + newNum + "[]"); - }); - - // Update search holder ID - $("#group"+ oldNum + "SearchHolder").attr("id", "group" + newNum + "SearchHolder"); - - // Finally, re-number the group itself - $(oldGroup).attr("id", "group" + newNum).attr("class", "group group" + alt); - } -} - -function reSortGroups() -{ - // Loop through all groups - var groups = 0; - $("#searchHolder > .group").each(function() { - // If the number of this group doesn't - // match our running count - if ($(this).attr("id") != "group"+groups) { - // Re-number this group - reNumGroup(this, groups); - } - groups++; - }); - nextGroupNumber = groups; - - // Hide some group-related controls if there is only one group: - if (nextGroupNumber == 1) { - $("#groupJoin").hide(); - $("#delete_link_0").hide(); - } else { - $("#groupJoin").show(); - $("#delete_link_0").show(); - } -} - -function addGroup(firstTerm, firstField, join) -{ - if (firstTerm == undefined) {firstTerm = '';} - if (firstField == undefined) {firstField = '';} - if (join == undefined) {join = '';} - - var newGroup = '<div id="group' + nextGroupNumber + '" class="group group' + (nextGroupNumber % 2) + '">'; - newGroup += '<div class="groupSearchDetails">'; - - // Boolean operator drop-down - newGroup += '<div class="join"><label for="search_bool' + nextGroupNumber + '">' + searchMatch + ':</label> '; - newGroup += '<select id="search_bool' + nextGroupNumber + '" name="bool' + nextGroupNumber + '[]">'; - for (var key in searchJoins) { - newGroup += '<option value="' + key + '"'; - if (key == join) { - newGroup += ' selected="selected"'; - } - newGroup += '>' + searchJoins[key] + '</option>'; - } - newGroup += '</select>'; - newGroup += '</div>'; - - // Delete link - newGroup += '<a href="#" class="delete" id="delete_link_' + nextGroupNumber + '" onclick="deleteGroupJS(this); return false;">' + deleteSearchGroupString + '</a>'; - newGroup += '</div>'; - - // Holder for all the search fields - newGroup += '<div id="group' + nextGroupNumber + 'SearchHolder" class="groupSearchHolder"></div>'; - - // Add search term link - newGroup += '<div class="addSearch"><a href="#" class="add" id="add_search_link_' + nextGroupNumber + '" onclick="addSearchJS(this); return false;">' + addSearchString + '</a></div>'; - - newGroup += '</div>'; - - // Set to 0 so adding searches knows - // which one is first. - groupSearches[nextGroupNumber] = 0; - - // Add the new group into the page - $("#searchHolder").append(newGroup); - // Add the first search field - addSearch(nextGroupNumber, firstTerm, firstField); - // Keep the page in order - reSortGroups(); - - // Pass back the number of this group - return nextGroupNumber - 1; -} - -function deleteGroup(group) -{ - // Find the group and remove it - $("#group" + group).remove(); - // And keep the page in order - reSortGroups(); - // If the last group was removed, add an empty group - if (nextGroupNumber == 0) { - addGroup(); - } -} - -// Fired by onclick event -function deleteGroupJS(group) -{ - var groupNum = group.id.replace("delete_link_", ""); - deleteGroup(groupNum); - return false; -} - -// Fired by onclick event -function addSearchJS(group) -{ - var groupNum = group.id.replace("add_search_link_", ""); - addSearch(groupNum); - return false; -} \ No newline at end of file diff --git a/themes/blueprint/js/advanced_search_eds.js b/themes/blueprint/js/advanced_search_eds.js deleted file mode 100644 index 77be147149db744ea3cbf62efbbe8811f23cc845..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/advanced_search_eds.js +++ /dev/null @@ -1,205 +0,0 @@ -/*global addSearchString, deleteSearchGroupString, searchFieldLabel, searchFields, searchJoins, searchLabel, searchMatch*/ - -var nextGroupNumber = 0; -var groupSearches = []; -var booleanSearchOperators = [ "AND", "OR", "NOT"]; -function jsEntityEncode(str) -{ - var new_str = str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, '''); - return new_str; -} - -function addSearch(group, term, field, op) -{ - if (term == undefined) {term = '';} - if (field == undefined) {field = '';} - if (op == undefined) {op = 'AND';} - - var newSearch = '<div class="advRow">'; - - // Label - newSearch += '<div class="label">'; - if (groupSearches[group] == 0) { - newSearch += '<label for="search_lookfor' + group + '_' + groupSearches[group] + '">' + searchLabel + ':</label> '; - } - - newSearch +='<select id="search_op' + group + '_' + groupSearches[group] + '" name="op' + group + '[]"'; - if (groupSearches[group] == 0) { - newSearch += 'class="hide" '; - } - newSearch += ">'"; - for(var i in booleanSearchOperators) { - var searchOp = booleanSearchOperators[i]; - var sel = ''; - if(op == searchOp) { - sel = ' selected=selected '; - } - newSearch += '<option value="' + searchOp + '" ' + sel + ">" + searchOp +"</option>"; - } - newSearch += '</select>'; - - newSearch += '</div>'; //end label/op dropdown - // Terms - newSearch += '<div class="terms"><input type="text" id="search_lookfor' + group + '_' + groupSearches[group] + '" name="lookfor' + group + '[]" size="50" value="' + jsEntityEncode(term) + '"/></div>'; - - // Field - newSearch += '<div class="field"><label for="search_type' + group + '_' + groupSearches[group] + '">' + searchFieldLabel + '</label> '; - newSearch += '<select id="search_type' + group + '_' + groupSearches[group] + '" name="type' + group + '[]">'; - for (var key in searchFields) { - newSearch += '<option value="' + key + '"'; - if (key == field) { - newSearch += ' selected="selected"'; - } - newSearch += ">" + searchFields[key] + "</option>"; - } - newSearch += '</select>'; - newSearch += '</div>'; - - // Handle floating nonsense - newSearch += '<span class="clearer"></span>'; - newSearch += '</div>'; - - // Done - $("#group" + group + "SearchHolder").append(newSearch); - - // Actual value doesn't matter once it's not zero. - groupSearches[group]++; -} - -function reNumGroup(oldGroup, newNum) -{ - // Keep the old details for use - var oldId = $(oldGroup).attr("id"); - var oldNum = oldId.substring(5, oldId.length); - - // Which alternating row we're on - var alt = newNum % 2; - - // Make sure the function was called correctly - if (oldNum != newNum) { - // Update the delete link with the new ID - $("#delete_link_" + oldNum).attr("id", "delete_link_" + newNum); - - // Update the bool[] parameter number - $(oldGroup).find("[name='bool" + oldNum + "[]']:first").attr("name", "bool" + newNum + "[]"); - - // Update the add term link with the new ID - $("#add_search_link_" + oldNum).attr("id", "add_search_link_" + newNum); - - // Now loop through and update all lookfor[] and type[] parameters - $("#group"+ oldNum + "SearchHolder").find("[name='lookfor" + oldNum + "[]']").each(function() { - $(this).attr("name", "lookfor" + newNum + "[]"); - }); - $("#group"+ oldNum + "SearchHolder").find("[name='type" + oldNum + "[]']").each(function() { - $(this).attr("name", "type" + newNum + "[]"); - }); - - // Update search holder ID - $("#group"+ oldNum + "SearchHolder").attr("id", "group" + newNum + "SearchHolder"); - - // Finally, re-number the group itself - $(oldGroup).attr("id", "group" + newNum).attr("class", "group group" + alt); - } -} - -function reSortGroups() -{ - // Loop through all groups - var groups = 0; - $("#searchHolder > .group").each(function() { - // If the number of this group doesn't - // match our running count - if ($(this).attr("id") != "group"+groups) { - // Re-number this group - reNumGroup(this, groups); - } - groups++; - }); - nextGroupNumber = groups; - - // Hide some group-related controls if there is only one group: - if (nextGroupNumber == 1) { - $("#groupJoin").hide(); - $("#delete_link_0").hide(); - } else { - $("#groupJoin").show(); - $("#delete_link_0").show(); - } -} - -function addGroup(firstTerm, firstField, join) -{ - if (firstTerm == undefined) {firstTerm = '';} - if (firstField == undefined) {firstField = '';} - if (join == undefined) {join = '';} - - var newGroup = '<div id="group' + nextGroupNumber + '" class="group group' + (nextGroupNumber % 2) + '">'; - newGroup += '<div class="groupSearchDetails">'; - - // Boolean operator drop-down - newGroup += '<div class="join hide"><label for="search_bool' + nextGroupNumber + '">' + searchMatch + ':</label> '; - newGroup += '<select id="search_bool' + nextGroupNumber + '" name="bool' + nextGroupNumber + '[]">'; - for (var key in searchJoins) { - newGroup += '<option value="' + key + '"'; - if (key == join) { - newGroup += ' selected="selected"'; - } - newGroup += '>' + searchJoins[key] + '</option>'; - } - newGroup += '</select>'; - newGroup += '</div>'; - - // Delete link - newGroup += '<a href="#" class="delete" id="delete_link_' + nextGroupNumber + '" onclick="deleteGroupJS(this); return false;">' + deleteSearchGroupString + '</a>'; - newGroup += '</div>'; - - // Holder for all the search fields - newGroup += '<div id="group' + nextGroupNumber + 'SearchHolder" class="groupSearchHolder"></div>'; - - // Add search term link - newGroup += '<div class="addSearch"><a href="#" class="add" id="add_search_link_' + nextGroupNumber + '" onclick="addSearchJS(this); return false;">' + addSearchString + '</a></div>'; - - newGroup += '</div>'; - - // Set to 0 so adding searches knows - // which one is first. - groupSearches[nextGroupNumber] = 0; - - // Add the new group into the page - $("#searchHolder").append(newGroup); - // Add the first search field - addSearch(nextGroupNumber, firstTerm, firstField); - // Keep the page in order - reSortGroups(); - - // Pass back the number of this group - return nextGroupNumber - 1; -} - -function deleteGroup(group) -{ - // Find the group and remove it - $("#group" + group).remove(); - // And keep the page in order - reSortGroups(); - // If the last group was removed, add an empty group - if (nextGroupNumber == 0) { - addGroup(); - } -} - -// Fired by onclick event -function deleteGroupJS(group) -{ - var groupNum = group.id.replace("delete_link_", ""); - deleteGroup(groupNum); - return false; -} - -// Fired by onclick event -function addSearchJS(group) -{ - var groupNum = group.id.replace("add_search_link_", ""); - addSearch(groupNum); - return false; -} \ No newline at end of file diff --git a/themes/blueprint/js/bulk_actions.js b/themes/blueprint/js/bulk_actions.js deleted file mode 100644 index 4afe029e9a71ffc40eedbfbf1a603254541f9a52..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/bulk_actions.js +++ /dev/null @@ -1,78 +0,0 @@ -/*global extractSource, getLightbox, printIDs*/ - -function registerBulkActions() { - $('form[name="bulkActionForm"] input[type="submit"]').unbind('click').click(function(){ - var ids = $.map($(this.form).find('input.checkbox_ui:checked'), function(i) { - return $(i).val(); - }); - // If no IDs were selected, let the non-Javascript action display an error: - if (ids.length == 0) { - return true; - } - var action = $(this).attr('name'); - var message = $(this).attr('title'); - var id = ''; - var module = "Cart"; - var postParams; - switch (action) { - case 'export': - postParams = {ids:ids, 'export':'1'}; - action = "MyResearchBulk"; - break; - case 'delete': - module = "MyResearch"; - action = "Delete"; - id = $(this).attr('id'); - id = (id.indexOf('bottom_delete_list_items_') != -1) - ? id.replace('bottom_delete_list_items_', '') - : id.replace('delete_list_items_', ''); - postParams = {ids:ids, 'delete':'1', 'listID':id}; - break; - case 'email': - action = "MyResearchBulk"; - postParams = {ids:ids, email:'1'}; - break; - case 'print': - if (printIDs(ids)) { - // IDs successfully printed -- we're done: - return false; - } else { - // No selected IDs: show error - action = "MyResearchBulk"; - postParams = {error:'1'}; - } - break; - } - getLightbox(module, action, id, '', message, '', '', '', postParams); - return false; - }); - - // Support delete list button: - $('.deleteList').unbind('click').click(function(){ - var id = $(this).attr('id').substr('deleteList'.length); - var message = $(this).attr('title'); - var postParams = {listID: id, deleteList: 'deleteList'}; - getLightbox('MyResearch', 'DeleteList', '', '', message, 'MyResearch', 'Favorites', '', postParams); - return false; - }); - - // Support delete item from list button: - $('.delete.tool').unbind('click').click(function(){ - var recordID = this.href.substring(this.href.indexOf('delete=')+'delete='.length); - recordID = decodeURIComponent(recordID.split('&')[0].replace(/\+/g, ' ')); - var listID = this.href.substring(this.href.lastIndexOf('/')+1); - listID = decodeURIComponent(listID.split('?')[0]); - if (listID == 'Favorites') { - listID = ''; - } - var message = $(this).attr('title'); - var postParams = {'delete': recordID, 'source': extractSource(this)}; - getLightbox('MyResearch', 'MyList', listID, '', message, 'MyResearch', 'MyList', listID, postParams); - - return false; - }); -} - -$(document).ready(function(){ - registerBulkActions(); -}); \ No newline at end of file diff --git a/themes/blueprint/js/cart.js b/themes/blueprint/js/cart.js deleted file mode 100644 index c3a1f1fad9b82ae85d206b442698106e146c6133..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/cart.js +++ /dev/null @@ -1,217 +0,0 @@ -/*global cartCookieDomain, contextHelp, vufindString*/ - -var _CART_COOKIE = 'vufind_cart'; -var _CART_COOKIE_SOURCES = 'vufind_cart_src'; -var _CART_COOKIE_DELIM = "\t"; - -function getItemsFromCartCookie() { - var ids = $.cookie(_CART_COOKIE); - if (ids) { - var cart = ids.split(_CART_COOKIE_DELIM); - if (!cart) { - return []; - } - - var sources = $.cookie(_CART_COOKIE_SOURCES); - - var i; - if (!sources) { - // Backward compatibility with VuFind 1.x -- if no source cookie, all - // items come from the VuFind source: - for (i = 0; i < cart.length; i++) { - cart[i] = 'VuFind|' + cart[i]; - } - } else { - // Default case for VuFind 2.x carts -- decompress source data: - sources = sources.split(_CART_COOKIE_DELIM); - for (i = 0; i < cart.length; i++) { - var sourceIndex = cart[i].charCodeAt(0) - 65; - cart[i] = sources[sourceIndex] + '|' + cart[i].substr(1); - } - } - - return cart; - } - return []; -} - -function cartHelp(msg, elId) { - contextHelp.flash('#' + elId, '10', '1', 'down', 'right', msg, 5000); -} - -// return unique values from the given array -function uniqueValues(array) { - var o = {}, i, l = array.length, r = []; - for(i=0; i<l;i++) { - o[array[i]] = array[i]; - } - for(i in o) { - r.push(o[i]); - } - return r; -} - -function getCartCookieParams() { - if (cartCookieDomain) { - return { path: '/', domain: cartCookieDomain }; - } else { - return { path: '/' }; - } -} - -function saveCartCookie(items) { - // No items? Clear cookies: - if (items.length == 0) { - $.cookie(_CART_COOKIE, null, getCartCookieParams()); - $.cookie(_CART_COOKIE_SOURCES, null, getCartCookieParams()); - return; - } - - // If we got this far, we actually need to save things: - var sources = []; - var ids = []; - for (var i = 0; i < items.length; i++) { - // Break apart the source and the ID: - var parts = items[i].split('|'); - var itemSource = parts[0]; - - // Just in case the ID contains a pipe, put the pieces back together: - parts.splice(0, 1); - var itemId = parts.join('|'); - - // Add the source to the source array if it is not already there: - var sourceIndex = $.inArray(itemSource, sources); - if (sourceIndex == -1) { - sourceIndex = sources.length; - sources[sourceIndex] = itemSource; - } - - // Encode the source into the ID as a single character: - ids.push(String.fromCharCode(65 + sourceIndex) + itemId); - } - - // Save the cookies: - $.cookie(_CART_COOKIE, ids.join(_CART_COOKIE_DELIM), getCartCookieParams()); - $.cookie(_CART_COOKIE_SOURCES, sources.join(_CART_COOKIE_DELIM), getCartCookieParams()); -} - -function addItemToCartCookie(item) { - var items = getItemsFromCartCookie(); - if(items.length < vufindString.bookbagMax) { - items.push(item); - } - items = uniqueValues(items); - saveCartCookie(items); - return items; -} - -function removeItemFromCartCookie(item) { - var items = getItemsFromCartCookie(); - var index = $.inArray(item, items); - if (index != -1) { - items.splice(index, 1); - } - saveCartCookie(items); - return items; -} - -function updateRecordState(items) { - var cartRecordId = $('#cartId').val(); - if (cartRecordId != undefined) { - var index = $.inArray(cartRecordId, items); - if(index != -1) { - $('#recordCart').html(vufindString.removeBookBag).removeClass('cartAdd').addClass('cartRemove'); - } else { - $('#recordCart').html(vufindString.addBookBag).removeClass('cartRemove').addClass('cartAdd'); - } - } -} - -function updateCartSummary(items) { - $('#cartSize').empty().append(items.length); - var cartStatus = (items.length >= vufindString.bookbagMax) ? " (" + vufindString.bookbagStatusFull + ")" : " "; - $('#cartStatus').html(cartStatus); -} - -function removeRecordState() { - $('#recordCart').html(vufindString.addBookBag).removeClass('cartRemove').addClass('cartAdd'); - $('#cartSize').empty().append("0"); -} - -function removeCartCheckbox() { - $('.checkbox_ui, .selectAllCheckboxes').each(function(){ - $(this).attr('checked', false); - }); -} - -function redrawCartStatus() { - var items = getItemsFromCartCookie(); - removeCartCheckbox(); - updateRecordState(items); - updateCartSummary(items); -} - -function registerUpdateCart($form) { - if($form) { - $("#updateCart, #bottom_updateCart").unbind('click').click(function(){ - var elId = this.id; - var selectedBoxes = $("input[name='ids[]']:checked", $form); - var selected = []; - $(selectedBoxes).each(function(i) { - selected[i] = this.value; - }); - - if (selected.length > 0) { - var inCart = 0; - var msg = ""; - var orig = getItemsFromCartCookie(); - $(selected).each(function(i) { - for (var x in orig) { - if (this == orig[x]) { - inCart++; - return; - } - } - addItemToCartCookie(this); - }); - var updated = getItemsFromCartCookie(); - var added = updated.length - orig.length; - msg += added + " " + vufindString.itemsAddBag + "<br />"; - if (inCart > 0 && orig.length > 0) { - msg += inCart + " " + vufindString.itemsInBag + "<br />"; - } - if (updated.length >= vufindString.bookbagMax) { - msg += vufindString.bookbagFull + "<br />"; - } - cartHelp(msg, elId); - } else { - cartHelp(vufindString.bulk_noitems_advice, elId); - } - redrawCartStatus(); - return false; - }); - } -} - -$(document).ready(function() { - var cartRecordId = $('#cartId').val(); - $('#cartItems').hide(); - $('#viewCart, #updateCart, #bottom_updateCart').removeClass('offscreen'); - - // Record - $('#recordCart').removeClass('offscreen').click(function() { - if(cartRecordId != undefined) { - if ($(this).hasClass('bookbagAdd')) { - updateCartSummary(addItemToCartCookie(cartRecordId)); - $(this).html(vufindString.removeBookBag).removeClass('bookbagAdd').addClass('bookbagDelete'); - } else { - updateCartSummary(removeItemFromCartCookie(cartRecordId)); - $(this).html(vufindString.addBookBag).removeClass('bookbagDelete').addClass('bookbagAdd'); - } - } - return false; - }); - redrawCartStatus(); - var $form = $('form[name="bulkActionForm"]'); - registerUpdateCart($form); -}); \ No newline at end of file diff --git a/themes/blueprint/js/check_item_statuses.js b/themes/blueprint/js/check_item_statuses.js deleted file mode 100644 index 5ec034a777f7f00587a684f241cc2e4489234ad2..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/check_item_statuses.js +++ /dev/null @@ -1,81 +0,0 @@ -/*global path*/ - -function checkItemStatuses() { - var id = $.map($('.ajaxItemId'), function(i) { - return $(i).find('.hiddenId')[0].value; - }); - if (id.length) { - $(".ajax_availability").show(); - $.ajax({ - dataType: 'json', - url: path + '/AJAX/JSON?method=getItemStatuses', - data: {id:id}, - success: function(response) { - if(response.status == 'OK') { - $.each(response.data, function(i, result) { - - var item = $($('.ajaxItemId')[result.record_number]); - - item.find('.status').empty().append(result.availability_message); - if (typeof(result.full_status) != 'undefined' - && result.full_status.length > 0 - && item.find('.callnumAndLocation').length > 0 - ) { - // Full status mode is on -- display the HTML and hide extraneous junk: - item.find('.callnumAndLocation').empty().append(result.full_status); - item.find('.callnumber').hide(); - item.find('.location').hide(); - item.find('.hideIfDetailed').hide(); - item.find('.status').hide(); - } else if (typeof(result.missing_data) != 'undefined' - && result.missing_data - ) { - // No data is available -- hide the entire status area: - item.find('.callnumAndLocation').hide(); - item.find('.status').hide(); - } else if (result.locationList) { - // We have multiple locations -- build appropriate HTML and hide unwanted labels: - item.find('.callnumber').hide(); - item.find('.hideIfDetailed').hide(); - item.find('.location').hide(); - var locationListHTML = ""; - for (var x=0; x<result.locationList.length; x++) { - locationListHTML += '<div class="groupLocation">'; - if (result.locationList[x].availability) { - locationListHTML += '<span class="availableLoc">' - + result.locationList[x].location + '</span> '; - } else { - locationListHTML += '<span class="checkedoutLoc">' - + result.locationList[x].location + '</span> '; - } - locationListHTML += '</div>'; - locationListHTML += '<div class="groupCallnumber">'; - locationListHTML += (result.locationList[x].callnumbers) - ? result.locationList[x].callnumbers : ''; - locationListHTML += '</div>'; - } - item.find('.locationDetails').show(); - item.find('.locationDetails').empty().append(locationListHTML); - } else { - // Default case -- load call number and location into appropriate containers: - item.find('.callnumber').empty().append(result.callnumber); - item.find('.location').empty().append( - result.reserve == 'true' - ? result.reserve_message - : result.location - ); - } - }); - } else { - // display the error message on each of the ajax status place holder - $(".ajax_availability").empty().append(response.data); - } - $(".ajax_availability").removeClass('ajax_availability'); - } - }); - } -} - -$(document).ready(function() { - checkItemStatuses(); -}); \ No newline at end of file diff --git a/themes/blueprint/js/check_save_statuses.js b/themes/blueprint/js/check_save_statuses.js deleted file mode 100644 index b1e2f7e1d445827da41ca3c019fb8ff5a53d8c2e..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/check_save_statuses.js +++ /dev/null @@ -1,58 +0,0 @@ -/*global extractController, extractSource, getLightbox, path*/ - -function checkSaveStatuses() { - var data = $.map($('.recordId'), function(i) { - return {'id':$(i).find('.hiddenId')[0].value, 'source':extractSource(i)}; - }); - if (data.length) { - var ids = []; - var srcs = []; - for (var i = 0; i < data.length; i++) { - ids[i] = data[i].id; - srcs[i] = data[i].source; - } - $.ajax({ - dataType: 'json', - url: path + '/AJAX/JSON?method=getSaveStatuses', - data: {id:ids, 'source':srcs}, - success: function(response) { - if(response.status == 'OK') { - $('.savedLists > ul').empty(); - $.each(response.data, function(i, result) { - var $container = $('#result'+result.record_number).find('.savedLists'); - if ($container.length == 0) { // Record view - $container = $('#savedLists'); - } - var $ul = $container.children('ul:first'); - if ($ul.length == 0) { - $container.append('<ul></ul>'); - $ul = $container.children('ul:first'); - } - var html = '<li><a href="' + path + '/MyResearch/MyList/' + result.list_id + '">' - + result.list_title + '</a></li>'; - $ul.append(html); - $container.show(); - }); - } - } - }); - } -} - -$(document).ready(function() { - checkSaveStatuses(); - // attach click event to the save record link - $('a.saveRecord').click(function() { - var id = $(this).parents('.recordId').find('.hiddenId'); - if (id.length > 0) { - // search results: - id = id[0].value; - } else { - // record view: - id = document.getElementById('record_id').value; - } - var controller = extractController(this); - var $dialog = getLightbox(controller, 'Save', id, null, this.title, controller, 'Save', id); - return false; - }); -}); \ No newline at end of file diff --git a/themes/blueprint/js/collection_record.js b/themes/blueprint/js/collection_record.js deleted file mode 100644 index fcd40d33ab594c45044d90c47775be9f53fa00da..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/collection_record.js +++ /dev/null @@ -1,16 +0,0 @@ -function toggleCollectionInfo() { - $("#collectionInfo").toggle(); -} - -function showMoreInfoToggle() { - toggleCollectionInfo(); - $("#moreInfoToggle").show(); - $("#moreInfoToggle").click(function(e) { - e.preventDefault(); - toggleCollectionInfo(); - }); -} - -$(document).ready(function() { - showMoreInfoToggle(); -}); \ No newline at end of file diff --git a/themes/blueprint/js/common.js b/themes/blueprint/js/common.js deleted file mode 100644 index 974147d4595767b46edbe437b11e7927488affbd..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/common.js +++ /dev/null @@ -1,484 +0,0 @@ -/*global getLightbox, isPhoneNumberValid, path, vufindString*/ - -/** - * Initialize common functions and event handlers. - */ -// disable caching for all AJAX requests -$.ajaxSetup({cache: false}); - -// set global options for the jQuery validation plugin -$.validator.setDefaults({ - errorClass: 'invalid' -}); - -function toggleMenu(elemId) { - var elem = $("#"+elemId); - if (elem.hasClass("offscreen")) { - elem.removeClass("offscreen"); - } else { - elem.addClass("offscreen"); - } -} - -function moreFacets(name) { - $("#more"+name).addClass("offscreen"); - $("#narrowGroupHidden_"+name).removeClass("offscreen"); -} - -function lessFacets(name) { - $("#more"+name).removeClass("offscreen"); - $("#narrowGroupHidden_"+name).addClass("offscreen"); -} - -function filterAll(element, formId) { - // Look for filters (specifically checkbox filters) - if (formId == null) { - formId = "searchForm"; - } - $("#" + formId + " :input[type='checkbox'][name='filter[]']") - .attr('checked', element.checked); - $("#" + formId + " :input[type='checkbox'][name='dfApplied']") - .attr('checked', element.checked); -} - -function extractParams(str) { - var params = {}; - var classes = str.split(/\s+/); - for(var i = 0; i < classes.length; i++) { - if (classes[i].indexOf(':') > 0) { - var pair = classes[i].split(':'); - params[pair[0]] = pair[1]; - } - } - return params; -} - -function initAutocomplete() { - $('input.autocomplete').each(function() { - var lastXhr = null; - var params = extractParams($(this).attr('class')); - var maxItems = params.maxItems > 0 ? params.maxItems : 10; - var $autocomplete = $(this).autocomplete({ - source: function(request, response) { - var type = params.type; - if (!type && params.typeSelector) { - type = $('#' + params.typeSelector).val(); - } - var searcher = params.searcher; - if (!searcher) { - searcher = 'Solr'; - } - // Abort previous access if one is defined - if (lastXhr !== null && typeof lastXhr["abort"] != "undefined") { - lastXhr.abort(); - } - lastXhr = $.ajax({ - url: path + '/AJAX/JSON', - data: {method:'getACSuggestions',type:type,q:request.term,searcher:searcher}, - dataType:'json', - success: function(json) { - if (json.status == 'OK' && json.data.length > 0) { - response(json.data.slice(0, maxItems)); - } else { - $autocomplete.autocomplete('close'); - } - } - }); - } - }); - }); -} - -function htmlEncode(value){ - if (value) { - return jQuery('<div />').text(value).html(); - } else { - return ''; - } -} - -// mostly lifted from http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_by_an_ID_that_has_characters_used_in_CSS_notation.3F -function jqEscape(myid) { - return String(myid).replace(/(:|\.)/g,'\\$1'); -} - -function printIDs(ids) -{ - if(ids.length == 0) { - return false; - } - var parts = []; - $(ids).each(function() { - parts[parts.length] = encodeURIComponent('id[]') + '=' + encodeURIComponent(this); - }); - var url = path + '/Records?print=true&' + parts.join('&'); - window.open(url); - return true; -} - -var contextHelp = { - init: function() { - $('body').append('<table cellspacing="0" cellpadding="0" id="contextHelp"><tbody><tr class="top"><td class="left"></td><td class="center"><div class="arrow up"></div></td><td class="right"></td></tr><tr class="middle"><td></td><td class="body"><div id="closeContextHelp"></div><div id="contextHelpContent"></div></td><td></td></tr><tr class="bottom"><td class="left"></td><td class="center"><div class="arrow down"></div></td><td class="right"></td></tr></tbody></table>'); - }, - - hover: function(listenTo, widthOffset, heightOffset, direction, align, msgText) { - $(listenTo).mouseenter(function() { - contextHelp.contextHelpSys.setPosition(listenTo, widthOffset, heightOffset, direction, align, '', false); - contextHelp.contextHelpSys.updateContents(msgText); - }); - $(listenTo).mouseleave(function() { - contextHelp.contextHelpSys.hideMessage(); - }); - }, - - flash: function(id, widthOffset, heightOffset, direction, align, msgText, duration) { - this.contextHelpSys.setPosition(id, widthOffset, heightOffset, direction, align); - this.contextHelpSys.updateContents(msgText); - setTimeout(this.contextHelpSys.hideMessage, duration); - }, - - contextHelpSys: { - CHTable:"#contextHelp", - CHContent:"#contextHelpContent", - arrowUp:"#contextHelp .arrow.up", - arrowDown:"#contextHelp .arrow.down", - closeButton:"#closeContextHelp", - showCloseButton: true, - curElement:null, - curOffsetX:0, - curOffsetY:0, - curDirection:"auto", - curAlign:"auto", - curMaxWidth:null, - isUp:false, - load:function(){ - $(contextHelp.contextHelpSys.closeButton).click(contextHelp.contextHelpSys.hideMessage); - $(window).resize(contextHelp.contextHelpSys.position);}, - setPosition:function(element, offsetX, offsetY, direction, align, maxWidth, showCloseButton){ - if(element==null){element=document;} - if(offsetX==null){offsetX=0;} - if(offsetY==null){offsetY=0;} - if(direction==null){direction="auto";} - if(align==null){align="auto";} - if(showCloseButton==null){showCloseButton=true;} - contextHelp.contextHelpSys.curElement=$(element); - contextHelp.contextHelpSys.curOffsetX=offsetX; - contextHelp.contextHelpSys.curOffsetY=offsetY; - contextHelp.contextHelpSys.curDirection=direction; - contextHelp.contextHelpSys.curAlign=align; - contextHelp.contextHelpSys.curMaxWidth=maxWidth; - contextHelp.contextHelpSys.showCloseButton=showCloseButton;}, - position:function(){ - if(!contextHelp.contextHelpSys.isUp||!contextHelp.contextHelpSys.curElement.length){return;} - var offset=contextHelp.contextHelpSys.curElement.offset(); - var left=parseInt(offset.left, 10)+parseInt(contextHelp.contextHelpSys.curOffsetX, 10); - var top=parseInt(offset.top, 10)+parseInt(contextHelp.contextHelpSys.curOffsetY, 10); - var direction=contextHelp.contextHelpSys.curDirection; - var align=contextHelp.contextHelpSys.curAlign; - if(contextHelp.contextHelpSys.curMaxWidth){ - $(contextHelp.contextHelpSys.CHTable).css("width",contextHelp.contextHelpSys.curMaxWidth); - } else { - $(contextHelp.contextHelpSys.CHTable).css("width","auto"); - } - if (direction=="auto") { - if (parseInt(top, 10)-parseInt($(contextHelp.contextHelpSys.CHTable).height()<$(document).scrollTop(), 10)) { - direction="down"; - } else { - direction="up"; - } - } - if(direction=="up"){ - top = parseInt(top, 10) - parseInt($(contextHelp.contextHelpSys.CHTable).height(), 10); - $(contextHelp.contextHelpSys.arrowUp).css("display","none"); - $(contextHelp.contextHelpSys.arrowDown).css("display","block"); - } else { - if(direction=="down"){ - top = parseInt(top, 10) + parseInt(contextHelp.contextHelpSys.curElement.height(), 10); - $(contextHelp.contextHelpSys.arrowUp).css("display","block"); - $(contextHelp.contextHelpSys.arrowDown).css("display","none"); - } - } - if(align=="auto"){ - if(left+parseInt($(contextHelp.contextHelpSys.CHTable).width()>$(document).width(), 10)){ - align="left"; - } else { - align="right"; - } - } - if(align=="right"){ - left-=24; - $(contextHelp.contextHelpSys.arrowUp).css("background-position","0 0"); - $(contextHelp.contextHelpSys.arrowDown).css("background-position","0 -6px"); - } - else{ - if(align=="left"){ - left-=parseInt($(contextHelp.contextHelpSys.CHTable).width(), 10); - left+=24; - $(contextHelp.contextHelpSys.arrowUp).css("background-position","100% 0"); - $(contextHelp.contextHelpSys.arrowDown).css("background-position","100% -6px"); - } - } - if(contextHelp.contextHelpSys.showCloseButton) { - $(contextHelp.contextHelpSys.closeButton).show(); - } else { - $(contextHelp.contextHelpSys.closeButton).hide(); - } - $(contextHelp.contextHelpSys.CHTable).css("left",left + "px"); - $(contextHelp.contextHelpSys.CHTable).css("top",top + "px"); - }, - updateContents:function(msg){ - contextHelp.contextHelpSys.isUp=true; - $(contextHelp.contextHelpSys.CHContent).empty(); - $(contextHelp.contextHelpSys.CHContent).append(msg); - contextHelp.contextHelpSys.position(); - $(contextHelp.contextHelpSys.CHTable).hide(); - $(contextHelp.contextHelpSys.CHTable).fadeIn(); - }, - hideMessage:function(){ - if(contextHelp.contextHelpSys.isUp){ - $(contextHelp.contextHelpSys.CHTable).fadeOut(); - contextHelp.contextHelpSys.isUp=false; - } - } - } -}; - -function extractDataByClassPrefix(element, prefix) -{ - var classes = $(element).attr('class').split(/\s+/); - - for (var i = 0; i < classes.length; i++) { - if (classes[i].substr(0, prefix.length) == prefix) { - return classes[i].substr(prefix.length); - } - } - - // No matching controller class was found! - return ''; -} - -// extract a controller name from the classes of the provided element -function extractController(element) -{ - return extractDataByClassPrefix(element, 'controller'); -} - -// extract a record source name from the classes of the provided element; default -// to 'VuFind' if no source found -function extractSource(element) -{ - var x = extractDataByClassPrefix(element, 'source'); - return x.length == 0 ? 'VuFind' : x; -} - -// Advanced facets -function updateOrFacets(url, op) { - window.location.assign(url); - var list = $(op).parents('dl'); - var header = $(list).find('dt'); - list.html(header[0].outerHTML+'<div class="info">'+vufindString.loading+'...</div>'); -} -function setupOrFacets() { - var facets = $('.facetOR'); - for(var i=0;i<facets.length;i++) { - var $facet = $(facets[i]); - if($facet.hasClass('applied')) { - $facet.prepend('<input type="checkbox" checked onChange="updateOrFacets($(this).parent().attr(\'href\'), this)"/>'); - } else { - $facet.before('<input type="checkbox" onChange="updateOrFacets($(this).next(\'a\').attr(\'href\'), this)"/>'); - } - } -} - -// Phone number validation -var libphoneTranslateCodes = ["libphonenumber_invalid", "libphonenumber_invalidcountry", "libphonenumber_invalidregion", "libphonenumber_notanumber", "libphonenumber_toolong", "libphonenumber_tooshort", "libphonenumber_tooshortidd"]; -var libphoneErrorStrings = ["Phone number invalid", "Invalid country calling code", "Invalid region code", "The string supplied did not seem to be a phone number", "The string supplied is too long to be a phone number", "The string supplied is too short to be a phone number", "Phone number too short after IDD"]; -function phoneNumberFormHandler(numID, regionCode) { - var phoneInput = document.getElementById(numID); - var number = phoneInput.value; - var valid = isPhoneNumberValid(number, regionCode); - if(valid !== true) { - if(typeof valid === 'string') { - for(var i=libphoneErrorStrings.length;i--;) { - if(valid.match(libphoneErrorStrings[i])) { - valid = vufindString[libphoneTranslateCodes[i]]; - } - } - } else { - valid = vufindString['libphonenumber_invalid']; - } - $(phoneInput).siblings('.phone-error').html(valid); - } else { - $(phoneInput).siblings('.phone-error').html(''); - } - return valid == true; -} - -$(document).ready(function(){ - // initialize autocomplete - initAutocomplete(); - - // put focus on the "mainFocus" element - $('.mainFocus').each(function(){ $(this).focus(); } ); - - // support "jump menu" dropdown boxes - $('select.jumpMenu').change(function(){ $(this).parent('form').submit(); }); - - // attach click event to the "keep filters" checkbox - $('#searchFormKeepFilters').change(function() { filterAll(this); }); - - // attach click event to the search help links - $('a.searchHelp').click(function(){ - window.open(path + '/Help/Home?topic=search', 'Help', 'width=625, height=510'); - return false; - }); - - // attach click event to the advanced search help links - $('a.advsearchHelp').click(function(){ - window.open(path + '/Help/Home?topic=advsearch', 'Help', 'width=625, height=510'); - return false; - }); - - // attach click event to the visualization help links - $('a.visualizationHelp').click(function(){ - window.open(path + '/Help/Home?topic=visualization', 'Help', 'width=625, height=510'); - return false; - }); - - // assign click event to "email search" links - $('a.mailSearch').click(function() { - var id = this.id.substr('mailSearch'.length); - var $dialog = getLightbox('Search', 'Email', id, null, this.title, 'Search', 'Email', id); - return false; - }); - - // assign action to the "select all checkboxes" class - $('input[type="checkbox"].selectAllCheckboxes').change(function(){ - $(this.form).find('input[type="checkbox"]').attr('checked', $(this).is(':checked')); - }); - - // attach mouseover event to grid view records - $('.gridCellHover').mouseover(function() { - $(this).addClass('gridMouseOver'); - }); - - // attach mouseout event to grid view records - $('.gridCellHover').mouseout(function() { - $(this).removeClass('gridMouseOver'); - }); - - // assign click event to "viewCart" links - $('a.viewCart').click(function() { - var $dialog = getLightbox('Cart', 'Home', null, null, this.title, '', '', '', {viewCart:"1"}); - return false; - }); - - // handle QR code links - $('a.qrcodeLink').click(function() { - if ($(this).hasClass("active")) { - $(this).html(vufindString.qrcode_show).removeClass("active"); - } else { - $(this).html(vufindString.qrcode_hide).addClass("active"); - } - - var holder = $(this).next('.qrcodeHolder'); - - if (holder.find('img').length == 0) { - // We need to insert the QRCode image - var template = holder.find('.qrCodeImgTag').html(); - holder.html(template); - } - - holder.toggle(); - - return false; - }); - - // Print - var url = window.location.href; - if(url.indexOf('?' + 'print' + '=') != -1 || url.indexOf('&' + 'print' + '=') != -1) { - $("link[media='print']").attr("media", "all"); - window.print(); - } - - // Collapsing facets - $('.narrowList dt').click(function(){ - $(this).parent().toggleClass('open'); - $(this.className.replace('facet_', '#narrowGroupHidden_')).toggleClass('open'); - }); - - // Support holds cancel list buttons: - function cancelHolds(type) { - var typeIDS = type+'IDS'; - var selector = '[name="'+typeIDS+'[]"]'; - if (type == 'cancelSelected') { - selector += ':checked'; - } - var ids = $(selector); - var cancelIDS = []; - for(var i=0;i<ids.length;i++) { - cancelIDS.push(ids[i].value); - } - // Skip submission if no selection. - if (cancelIDS.length < 1) { - return false; - } - var postParams = {'confirm':0}; - postParams[type] = 1; - postParams[typeIDS] = cancelIDS; - getLightbox('MyResearch', 'Holds', '', '', '', 'MyResearch', 'Holds', '', postParams); - return false; - } - $('.holdCancel').unbind('click').click(function(){ - return cancelHolds('cancelSelected'); - }); - $('.holdCancelAll').unbind('click').click(function(){ - return cancelHolds('cancelAll'); - }); - - // Bulk action ribbon - function bulkActionRibbonLightbox(action) { - var ids = []; - var checks = $('.recordNumber [type=checkbox]:checked'); - $('.bulkActionButtons .error').remove(); - if(checks.length == 0) { - $('.bulkActionButtons').prepend('<div class="error">'+vufindString.bulk_noitems_advice+'</div>'); - return false; - } - for(var i=0;i<checks.length;i++) { - ids.push(checks[i].value); - } - getLightbox('Cart', action, ids, null, null, 'Cart', action, '', {ids:ids}); - return false; - } - $('#ribbon-email').unbind('click').click(function(){ - return bulkActionRibbonLightbox('Email'); - }); - $('#ribbon-export').unbind('click').click(function(){ - return bulkActionRibbonLightbox('Export'); - }); - $('#ribbon-save').unbind('click').click(function(){ - return bulkActionRibbonLightbox('Save'); - }); - $('#ribbon-print').unbind('click').click(function(){ - //redirect page - var url = path+'/Records/Home?print=true'; - var checks = $('.recordNumber [type=checkbox]:checked'); - $('.bulkActionButtons .error').remove(); - if(checks.length == 0) { - $('.bulkActionButtons').prepend('<div class="error">'+vufindString.bulk_noitems_advice+'</div>'); - return false; - } - for(var i=0;i<checks.length;i++) { - url += '&id[]='+checks[i].value; - } - document.location.href = url; - }); - - //ContextHelp - contextHelp.init(); - contextHelp.contextHelpSys.load(); - - // Advanced facets - setupOrFacets(); -}); diff --git a/themes/blueprint/js/d3.js b/themes/blueprint/js/d3.js deleted file mode 100644 index 8cfc9ef3f4917b76800f6783d33197cd8d618f33..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/d3.js +++ /dev/null @@ -1,5 +0,0 @@ -!function(){function n(n){return null!=n&&!isNaN(n)}function t(n){return n.length}function e(n){for(var t=1;n*t%1;)t*=10;return t}function r(n,t){try{for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}catch(r){n.prototype=t}}function u(){}function i(n){return aa+n in this}function o(n){return n=aa+n,n in this&&delete this[n]}function a(){var n=[];return this.forEach(function(t){n.push(t)}),n}function c(){var n=0;for(var t in this)t.charCodeAt(0)===ca&&++n;return n}function s(){for(var n in this)if(n.charCodeAt(0)===ca)return!1;return!0}function l(){}function f(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function h(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.substring(1);for(var e=0,r=sa.length;r>e;++e){var u=sa[e]+t;if(u in n)return u}}function g(){}function p(){}function v(n){function t(){for(var t,r=e,u=-1,i=r.length;++u<i;)(t=r[u].on)&&t.apply(this,arguments);return n}var e=[],r=new u;return t.on=function(t,u){var i,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,i=e.indexOf(o)).concat(e.slice(i+1)),r.remove(t)),u&&e.push(r.set(t,{on:u})),n)},t}function d(){Xo.event.preventDefault()}function m(){for(var n,t=Xo.event;n=t.sourceEvent;)t=n;return t}function y(n){for(var t=new p,e=0,r=arguments.length;++e<r;)t[arguments[e]]=v(t);return t.of=function(e,r){return function(u){try{var i=u.sourceEvent=Xo.event;u.target=n,Xo.event=u,t[u.type].apply(e,r)}finally{Xo.event=i}}},t}function x(n){return fa(n,da),n}function M(n){return"function"==typeof n?n:function(){return ha(n,this)}}function _(n){return"function"==typeof n?n:function(){return ga(n,this)}}function b(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=Xo.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?a:o:n.local?i:u}function w(n){return n.trim().replace(/\s+/g," ")}function S(n){return new RegExp("(?:^|\\s+)"+Xo.requote(n)+"(?:\\s+|$)","g")}function k(n){return n.trim().split(/^|\s+/)}function E(n,t){function e(){for(var e=-1;++e<u;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<u;)n[e](this,r)}n=k(n).map(A);var u=n.length;return"function"==typeof t?r:e}function A(n){var t=S(n);return function(e,r){if(u=e.classList)return r?u.add(n):u.remove(n);var u=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||e.setAttribute("class",w(u+" "+n))):e.setAttribute("class",w(u.replace(t," ")))}}function C(n,t,e){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,e)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?i:u}function N(n,t){function e(){delete this[n]}function r(){this[n]=t}function u(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?u:r}function L(n){return"function"==typeof n?n:(n=Xo.ns.qualify(n)).local?function(){return this.ownerDocument.createElementNS(n.space,n.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,n)}}function z(n){return{__data__:n}}function q(n){return function(){return va(this,n)}}function T(n){return arguments.length||(n=Xo.ascending),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function R(n,t){for(var e=0,r=n.length;r>e;e++)for(var u,i=n[e],o=0,a=i.length;a>o;o++)(u=i[o])&&t(u,o,e);return n}function D(n){return fa(n,ya),n}function P(n){var t,e;return function(r,u,i){var o,a=n[i].update,c=a.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(o=a[t])&&++t<c;);return o}}function U(){var n=this.__transition__;n&&++n.active}function j(n,t,e){function r(){var t=this[o];t&&(this.removeEventListener(n,t,t.$),delete this[o])}function u(){var u=c(t,Bo(arguments));r.call(this),this.addEventListener(n,this[o]=u,u.$=e),u._=t}function i(){var t,e=new RegExp("^__on([^.]+)"+Xo.requote(n)+"$");for(var r in this)if(t=r.match(e)){var u=this[r];this.removeEventListener(t[1],u,u.$),delete this[r]}}var o="__on"+n,a=n.indexOf("."),c=H;a>0&&(n=n.substring(0,a));var s=Ma.get(n);return s&&(n=s,c=F),a?t?u:r:t?g:i}function H(n,t){return function(e){var r=Xo.event;Xo.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{Xo.event=r}}}function F(n,t){var e=H(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function O(){var n=".dragsuppress-"+ ++ba,t="click"+n,e=Xo.select(Go).on("touchmove"+n,d).on("dragstart"+n,d).on("selectstart"+n,d);if(_a){var r=Jo.style,u=r[_a];r[_a]="none"}return function(i){function o(){e.on(t,null)}e.on(n,null),_a&&(r[_a]=u),i&&(e.on(t,function(){d(),o()},!0),setTimeout(o,0))}}function Y(n,t){t.changedTouches&&(t=t.changedTouches[0]);var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>wa&&(Go.scrollX||Go.scrollY)){e=Xo.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var u=e[0][0].getScreenCTM();wa=!(u.f||u.e),e.remove()}return wa?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}function I(n){return n>0?1:0>n?-1:0}function Z(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function V(n){return n>1?0:-1>n?Sa:Math.acos(n)}function X(n){return n>1?Ea:-1>n?-Ea:Math.asin(n)}function $(n){return((n=Math.exp(n))-1/n)/2}function B(n){return((n=Math.exp(n))+1/n)/2}function W(n){return((n=Math.exp(2*n))-1)/(n+1)}function J(n){return(n=Math.sin(n/2))*n}function G(){}function K(n,t,e){return new Q(n,t,e)}function Q(n,t,e){this.h=n,this.s=t,this.l=e}function nt(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(o-i)*n/60:180>n?o:240>n?i+(o-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,i=2*e-o,gt(u(n+120),u(n),u(n-120))}function tt(n,t,e){return new et(n,t,e)}function et(n,t,e){this.h=n,this.c=t,this.l=e}function rt(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),ut(e,Math.cos(n*=Na)*t,Math.sin(n)*t)}function ut(n,t,e){return new it(n,t,e)}function it(n,t,e){this.l=n,this.a=t,this.b=e}function ot(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=ct(u)*Fa,r=ct(r)*Oa,i=ct(i)*Ya,gt(lt(3.2404542*u-1.5371385*r-.4985314*i),lt(-.969266*u+1.8760108*r+.041556*i),lt(.0556434*u-.2040259*r+1.0572252*i))}function at(n,t,e){return n>0?tt(Math.atan2(e,t)*La,Math.sqrt(t*t+e*e),n):tt(0/0,0/0,n)}function ct(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function st(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function lt(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function ft(n){return gt(n>>16,255&n>>8,255&n)}function ht(n){return ft(n)+""}function gt(n,t,e){return new pt(n,t,e)}function pt(n,t,e){this.r=n,this.g=t,this.b=e}function vt(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function dt(n,t,e){var r,u,i,o=0,a=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(n))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(Mt(u[0]),Mt(u[1]),Mt(u[2]))}return(i=Va.get(n))?t(i.r,i.g,i.b):(null!=n&&"#"===n.charAt(0)&&(4===n.length?(o=n.charAt(1),o+=o,a=n.charAt(2),a+=a,c=n.charAt(3),c+=c):7===n.length&&(o=n.substring(1,3),a=n.substring(3,5),c=n.substring(5,7)),o=parseInt(o,16),a=parseInt(a,16),c=parseInt(c,16)),t(o,a,c))}function mt(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-i,c=(o+i)/2;return a?(u=.5>c?a/(o+i):a/(2-o-i),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=0/0,u=c>0&&1>c?0:r),K(r,u,c)}function yt(n,t,e){n=xt(n),t=xt(t),e=xt(e);var r=st((.4124564*n+.3575761*t+.1804375*e)/Fa),u=st((.2126729*n+.7151522*t+.072175*e)/Oa),i=st((.0193339*n+.119192*t+.9503041*e)/Ya);return ut(116*u-16,500*(r-u),200*(u-i))}function xt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Mt(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function _t(n){return"function"==typeof n?n:function(){return n}}function bt(n){return n}function wt(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),St(t,e,n,r)}}function St(n,t,e,r){function u(){var n,t=c.status;if(!t&&c.responseText||t>=200&&300>t||304===t){try{n=e.call(i,c)}catch(r){return o.error.call(i,r),void 0}o.load.call(i,n)}else o.error.call(i,c)}var i={},o=Xo.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,s=null;return!Go.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=u:c.onreadystatechange=function(){c.readyState>3&&u()},c.onprogress=function(n){var t=Xo.event;Xo.event=n;try{o.progress.call(i,c)}finally{Xo.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(s=n,i):s},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(Bo(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var l in a)c.setRequestHeader(l,a[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=s&&(c.responseType=s),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),o.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},Xo.rebind(i,o,"on"),null==r?i:i.get(kt(r))}function kt(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Et(){var n=At(),t=Ct()-n;t>24?(isFinite(t)&&(clearTimeout(Wa),Wa=setTimeout(Et,t)),Ba=0):(Ba=1,Ga(Et))}function At(){var n=Date.now();for(Ja=Xa;Ja;)n>=Ja.t&&(Ja.f=Ja.c(n-Ja.t)),Ja=Ja.n;return n}function Ct(){for(var n,t=Xa,e=1/0;t;)t.f?t=n?n.n=t.n:Xa=t.n:(t.t<e&&(e=t.t),t=(n=t).n);return $a=n,e}function Nt(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function Lt(n,t){var e=Math.pow(10,3*oa(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function zt(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r?function(n){for(var t=n.length,u=[],i=0,o=r[0];t>0&&o>0;)u.push(n.substring(t-=o,t+o)),o=r[i=(i+1)%r.length];return u.reverse().join(e)}:bt;return function(n){var e=Qa.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"",c=e[4]||"",s=e[5],l=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1;switch(h&&(h=+h.substring(1)),(s||"0"===r&&"="===o)&&(s=r="0",o="=",f&&(l-=Math.floor((l-1)/4))),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+g.toLowerCase());case"c":case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===c&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=nc.get(g)||qt;var y=s&&f;return function(n){if(m&&n%1)return"";var e=0>n||0===n&&0>1/n?(n=-n,"-"):a;if(0>p){var u=Xo.formatPrefix(n,h);n=u.scale(n),d=u.symbol}else n*=p;n=g(n,h);var c=n.lastIndexOf("."),x=0>c?n:n.substring(0,c),M=0>c?"":t+n.substring(c+1);!s&&f&&(x=i(x));var _=v.length+x.length+M.length+(y?0:e.length),b=l>_?new Array(_=l-_+1).join(r):"";return y&&(x=i(b+x)),e+=v,n=x+M,("<"===o?e+n+b:">"===o?b+e+n:"^"===o?b.substring(0,_>>=1)+e+n+b.substring(_):e+(y?n:b+n))+d}}}function qt(n){return n+""}function Tt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Rt(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new ec(e-1)),1),e}function i(n,e){return t(n=new ec(+n),e),n}function o(n,r,i){var o=u(n),a=[];if(i>1)for(;r>o;)e(o)%i||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{ec=Tt;var r=new Tt;return r._=n,o(r,t,e)}finally{ec=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=o;var c=n.utc=Dt(n);return c.floor=c,c.round=Dt(r),c.ceil=Dt(u),c.offset=Dt(i),c.range=a,n}function Dt(n){return function(t,e){try{ec=Tt;var r=new Tt;return r._=t,n(r,e)._}finally{ec=Date}}}function Pt(n){function t(n){function t(t){for(var e,u,i,o=[],a=-1,c=0;++a<r;)37===n.charCodeAt(a)&&(o.push(n.substring(c,a)),null!=(u=uc[e=n.charAt(++a)])&&(e=n.charAt(++a)),(i=C[e])&&(e=i(t,null==u?"e"===e?" ":"0":u)),o.push(e),c=a+1);return o.push(n.substring(c,a)),o.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=e(r,n,t,0);if(u!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&ec!==Tt,o=new(i?Tt:ec);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+Math.floor(r.Z/100),r.M+r.Z%100,r.S,r.L),i?o._:o},t.toString=function(){return n},t}function e(n,t,e,r){for(var u,i,o,a=0,c=t.length,s=e.length;c>a;){if(r>=s)return-1;if(u=t.charCodeAt(a++),37===u){if(o=t.charAt(a++),i=N[o in uc?t.charAt(a++):o],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){b.lastIndex=0;var r=b.exec(t.substring(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){M.lastIndex=0;var r=M.exec(t.substring(e));return r?(n.w=_.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){E.lastIndex=0;var r=E.exec(t.substring(e));return r?(n.m=A.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.substring(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,C.c.toString(),t,r)}function c(n,t,r){return e(n,C.x.toString(),t,r)}function s(n,t,r){return e(n,C.X.toString(),t,r)}function l(n,t,e){var r=x.get(t.substring(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{ec=Tt;var t=new ec;return t._=n,r(t)}finally{ec=Date}}var r=t(n);return e.parse=function(n){try{ec=Tt;var t=r.parse(n);return t&&t._}finally{ec=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ee;var x=Xo.map(),M=jt(v),_=Ht(v),b=jt(d),w=Ht(d),S=jt(m),k=Ht(m),E=jt(y),A=Ht(y);p.forEach(function(n,t){x.set(n.toLowerCase(),t)});var C={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return Ut(n.getDate(),t,2)},e:function(n,t){return Ut(n.getDate(),t,2)},H:function(n,t){return Ut(n.getHours(),t,2)},I:function(n,t){return Ut(n.getHours()%12||12,t,2)},j:function(n,t){return Ut(1+tc.dayOfYear(n),t,3)},L:function(n,t){return Ut(n.getMilliseconds(),t,3)},m:function(n,t){return Ut(n.getMonth()+1,t,2)},M:function(n,t){return Ut(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return Ut(n.getSeconds(),t,2)},U:function(n,t){return Ut(tc.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Ut(tc.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return Ut(n.getFullYear()%100,t,2)},Y:function(n,t){return Ut(n.getFullYear()%1e4,t,4)},Z:ne,"%":function(){return"%"}},N={a:r,A:u,b:i,B:o,c:a,d:Bt,e:Bt,H:Jt,I:Jt,j:Wt,L:Qt,m:$t,M:Gt,p:l,S:Kt,U:Ot,w:Ft,W:Yt,x:c,X:s,y:Zt,Y:It,Z:Vt,"%":te};return t}function Ut(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function jt(n){return new RegExp("^(?:"+n.map(Xo.requote).join("|")+")","i")}function Ht(n){for(var t=new u,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function Ft(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Ot(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e));return r?(n.U=+r[0],e+r[0].length):-1}function Yt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e));return r?(n.W=+r[0],e+r[0].length):-1}function It(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Zt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.y=Xt(+r[0]),e+r[0].length):-1}function Vt(n,t,e){return/^[+-]\d{4}$/.test(t=t.substring(e,e+5))?(n.Z=+t,e+5):-1}function Xt(n){return n+(n>68?1900:2e3)}function $t(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Bt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function Wt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function Jt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function Gt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function Kt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function Qt(n,t,e){ic.lastIndex=0;var r=ic.exec(t.substring(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ne(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=~~(oa(t)/60),u=oa(t)%60;return e+Ut(r,"0",2)+Ut(u,"0",2)}function te(n,t,e){oc.lastIndex=0;var r=oc.exec(t.substring(e,e+1));return r?e+r[0].length:-1}function ee(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function re(){}function ue(n,t,e){var r=e.s=n+t,u=r-n,i=r-u;e.t=n-i+(t-u)}function ie(n,t){n&&lc.hasOwnProperty(n.type)&&lc[n.type](n,t)}function oe(n,t,e){var r,u=-1,i=n.length-e;for(t.lineStart();++u<i;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function ae(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)oe(n[e],t,1);t.polygonEnd()}function ce(){function n(n,t){n*=Na,t=t*Na/2+Sa/4;var e=n-r,o=Math.cos(t),a=Math.sin(t),c=i*a,s=u*o+c*Math.cos(e),l=c*Math.sin(e);hc.add(Math.atan2(l,s)),r=n,u=o,i=a}var t,e,r,u,i;gc.point=function(o,a){gc.point=n,r=(t=o)*Na,u=Math.cos(a=(e=a)*Na/2+Sa/4),i=Math.sin(a)},gc.lineEnd=function(){n(t,e)}}function se(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function le(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function fe(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function he(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function ge(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function pe(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function ve(n){return[Math.atan2(n[1],n[0]),X(n[2])]}function de(n,t){return oa(n[0]-t[0])<Aa&&oa(n[1]-t[1])<Aa}function me(n,t){n*=Na;var e=Math.cos(t*=Na);ye(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function ye(n,t,e){++pc,dc+=(n-dc)/pc,mc+=(t-mc)/pc,yc+=(e-yc)/pc}function xe(){function n(n,u){n*=Na;var i=Math.cos(u*=Na),o=i*Math.cos(n),a=i*Math.sin(n),c=Math.sin(u),s=Math.atan2(Math.sqrt((s=e*c-r*a)*s+(s=r*o-t*c)*s+(s=t*a-e*o)*s),t*o+e*a+r*c);vc+=s,xc+=s*(t+(t=o)),Mc+=s*(e+(e=a)),_c+=s*(r+(r=c)),ye(t,e,r)}var t,e,r;kc.point=function(u,i){u*=Na;var o=Math.cos(i*=Na);t=o*Math.cos(u),e=o*Math.sin(u),r=Math.sin(i),kc.point=n,ye(t,e,r)}}function Me(){kc.point=me}function _e(){function n(n,t){n*=Na;var e=Math.cos(t*=Na),o=e*Math.cos(n),a=e*Math.sin(n),c=Math.sin(t),s=u*c-i*a,l=i*o-r*c,f=r*a-u*o,h=Math.sqrt(s*s+l*l+f*f),g=r*o+u*a+i*c,p=h&&-V(g)/h,v=Math.atan2(h,g);bc+=p*s,wc+=p*l,Sc+=p*f,vc+=v,xc+=v*(r+(r=o)),Mc+=v*(u+(u=a)),_c+=v*(i+(i=c)),ye(r,u,i)}var t,e,r,u,i;kc.point=function(o,a){t=o,e=a,kc.point=n,o*=Na;var c=Math.cos(a*=Na);r=c*Math.cos(o),u=c*Math.sin(o),i=Math.sin(a),ye(r,u,i)},kc.lineEnd=function(){n(t,e),kc.lineEnd=Me,kc.point=me}}function be(){return!0}function we(n,t,e,r,u){var i=[],o=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(de(e,r)){u.lineStart();for(var a=0;t>a;++a)u.point((e=n[a])[0],e[1]);return u.lineEnd(),void 0}var c=new ke(e,n,null,!0),s=new ke(e,null,c,!1);c.o=s,i.push(c),o.push(s),c=new ke(r,n,null,!1),s=new ke(r,null,c,!0),c.o=s,i.push(c),o.push(s)}}),o.sort(t),Se(i),Se(o),i.length){for(var a=0,c=e,s=o.length;s>a;++a)o[a].e=c=!c;for(var l,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;l=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var a=0,s=l.length;s>a;++a)u.point((f=l[a])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){l=g.p.z;for(var a=l.length-1;a>=0;--a)u.point((f=l[a])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,l=g.z,p=!p}while(!g.v);u.lineEnd()}}}function Se(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r<t;)u.n=e=n[r],e.p=u,u=e;u.n=e=n[0],e.p=u}}function ke(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Ee(n,t,e,r){return function(u,i){function o(t,e){var r=u(t,e);n(t=r[0],e=r[1])&&i.point(t,e)}function a(n,t){var e=u(n,t);d.point(e[0],e[1])}function c(){y.point=a,d.lineStart()}function s(){y.point=o,d.lineEnd()}function l(n,t){v.push([n,t]);var e=u(n,t);M.point(e[0],e[1])}function f(){M.lineStart(),v=[]}function h(){l(v[0][0],v[0][1]),M.lineEnd();var n,t=M.clean(),e=x.buffer(),r=e.length;if(v.pop(),p.push(v),v=null,r){if(1&t){n=e[0];var u,r=n.length-1,o=-1;for(i.lineStart();++o<r;)i.point((u=n[o])[0],u[1]);return i.lineEnd(),void 0}r>1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Ae))}}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:o,lineStart:c,lineEnd:s,polygonStart:function(){y.point=l,y.lineStart=f,y.lineEnd=h,g=[],p=[],i.polygonStart()},polygonEnd:function(){y.point=o,y.lineStart=c,y.lineEnd=s,g=Xo.merge(g);var n=Le(m,p);g.length?we(g,Ne,n,e,i):n&&(i.lineStart(),e(null,null,1,i),i.lineEnd()),i.polygonEnd(),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},x=Ce(),M=t(x);return y}}function Ae(n){return n.length>1}function Ce(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:g,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ne(n,t){return((n=n.x)[0]<0?n[1]-Ea-Aa:Ea-n[1])-((t=t.x)[0]<0?t[1]-Ea-Aa:Ea-t[1])}function Le(n,t){var e=n[0],r=n[1],u=[Math.sin(e),-Math.cos(e),0],i=0,o=0;hc.reset();for(var a=0,c=t.length;c>a;++a){var s=t[a],l=s.length;if(l)for(var f=s[0],h=f[0],g=f[1]/2+Sa/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===l&&(d=0),n=s[d];var m=n[0],y=n[1]/2+Sa/4,x=Math.sin(y),M=Math.cos(y),_=m-h,b=oa(_)>Sa,w=p*x;if(hc.add(Math.atan2(w*Math.sin(_),v*M+w*Math.cos(_))),i+=b?_+(_>=0?ka:-ka):_,b^h>=e^m>=e){var S=fe(se(f),se(n));pe(S);var k=fe(u,S);pe(k);var E=(b^_>=0?-1:1)*X(k[2]);(r>E||r===E&&(S[0]||S[1]))&&(o+=b^_>=0?1:-1)}if(!d++)break;h=m,p=x,v=M,f=n}}return(-Aa>i||Aa>i&&0>hc)^1&o}function ze(n){var t,e=0/0,r=0/0,u=0/0;return{lineStart:function(){n.lineStart(),t=1},point:function(i,o){var a=i>0?Sa:-Sa,c=oa(i-e);oa(c-Sa)<Aa?(n.point(e,r=(r+o)/2>0?Ea:-Ea),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(i,r),t=0):u!==a&&c>=Sa&&(oa(e-u)<Aa&&(e-=u*Aa),oa(i-a)<Aa&&(i-=a*Aa),r=qe(e,r,i,o),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(a,r),t=0),n.point(e=i,r=o),u=a},lineEnd:function(){n.lineEnd(),e=r=0/0},clean:function(){return 2-t}}}function qe(n,t,e,r){var u,i,o=Math.sin(n-e);return oa(o)>Aa?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*o)):(t+r)/2}function Te(n,t,e,r){var u;if(null==n)u=e*Ea,r.point(-Sa,u),r.point(0,u),r.point(Sa,u),r.point(Sa,0),r.point(Sa,-u),r.point(0,-u),r.point(-Sa,-u),r.point(-Sa,0),r.point(-Sa,u);else if(oa(n[0]-t[0])>Aa){var i=n[0]<t[0]?Sa:-Sa;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(t[0],t[1])}function Re(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=o?v?0:u(f,h):v?u(f+(0>f?Sa:-Sa),h):0;if(!e&&(s=c=v)&&n.lineStart(),v!==c&&(g=r(e,p),(de(e,g)||de(p,g))&&(p[0]+=Aa,p[1]+=Aa,v=t(p[0],p[1]))),v!==c)l=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(a&&e&&o^v){var m;d&i||!(m=r(p,e,!0))||(l=0,o?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&de(e,p)||n.point(p[0],p[1]),e=p,c=v,i=d},lineEnd:function(){c&&n.lineEnd(),e=null},clean:function(){return l|(s&&c)<<1}}}function r(n,t,e){var r=se(n),u=se(t),o=[1,0,0],a=fe(r,u),c=le(a,a),s=a[0],l=c-s*s;if(!l)return!e&&n;var f=i*c/l,h=-i*s/l,g=fe(o,a),p=ge(o,f),v=ge(a,h);he(p,v);var d=g,m=le(p,d),y=le(d,d),x=m*m-y*(le(p,p)-1);if(!(0>x)){var M=Math.sqrt(x),_=ge(d,(-m-M)/y);if(he(_,p),_=ve(_),!e)return _;var b,w=n[0],S=t[0],k=n[1],E=t[1];w>S&&(b=w,w=S,S=b);var A=S-w,C=oa(A-Sa)<Aa,N=C||Aa>A;if(!C&&k>E&&(b=k,k=E,E=b),N?C?k+E>0^_[1]<(oa(_[0]-w)<Aa?k:E):k<=_[1]&&_[1]<=E:A>Sa^(w<=_[0]&&_[0]<=S)){var L=ge(d,(-m+M)/y);return he(L,p),[_,ve(L)]}}}function u(t,e){var r=o?n:Sa-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),o=i>0,a=oa(i)>Aa,c=cr(n,6*Na);return Ee(t,e,c,o?[0,-n]:[-Sa,n-Sa])}function De(n,t,e,r){return function(u){var i,o=u.a,a=u.b,c=o.x,s=o.y,l=a.x,f=a.y,h=0,g=1,p=l-c,v=f-s;if(i=n-c,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-c,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-s,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-s,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:c+h*p,y:s+h*v}),1>g&&(u.b={x:c+g*p,y:s+g*v}),u}}}}}}function Pe(n,t,e,r){function u(r,u){return oa(r[0]-n)<Aa?u>0?0:3:oa(r[0]-e)<Aa?u>0?2:1:oa(r[1]-t)<Aa?u>0?1:0:u>0?3:2}function i(n,t){return o(n.x,t.x)}function o(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function c(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,o=1,a=d[u],c=a.length,s=a[0];c>o;++o)i=a[o],s[1]<=r?i[1]>r&&Z(s,i,n)>0&&++t:i[1]<=r&&Z(s,i,n)<0&&--t,s=i;return 0!==t}function s(i,a,c,s){var l=0,f=0;if(null==i||(l=u(i,c))!==(f=u(a,c))||o(i,a)<0^c>0){do s.point(0===l||3===l?n:e,l>1?r:t);while((l=(l+c+4)%4)!==f)}else s.point(a[0],a[1])}function l(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){l(n,t)&&a.point(n,t)}function h(){N.point=p,d&&d.push(m=[]),S=!0,w=!1,_=b=0/0}function g(){v&&(p(y,x),M&&w&&A.rejoin(),v.push(A.buffer())),N.point=f,w&&a.lineEnd()}function p(n,t){n=Math.max(-Ac,Math.min(Ac,n)),t=Math.max(-Ac,Math.min(Ac,t));var e=l(n,t);if(d&&m.push([n,t]),S)y=n,x=t,M=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:_,y:b},b:{x:n,y:t}};C(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}_=n,b=t,w=e}var v,d,m,y,x,M,_,b,w,S,k,E=a,A=Ce(),C=De(n,t,e,r),N={point:f,lineStart:h,lineEnd:g,polygonStart:function(){a=A,v=[],d=[],k=!0},polygonEnd:function(){a=E,v=Xo.merge(v);var t=c([n,r]),e=k&&t,u=v.length;(e||u)&&(a.polygonStart(),e&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),u&&we(v,i,t,s,a),a.polygonEnd()),v=d=m=null}};return N}}function Ue(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function je(n){var t=0,e=Sa/3,r=nr(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*Sa/180,e=n[1]*Sa/180):[180*(t/Sa),180*(e/Sa)]},u}function He(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),o-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),o=Math.sqrt(i)/u;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/u,X((i-(n*n+e*e)*u*u)/(2*u))]},e}function Fe(){function n(n,t){Nc+=u*n-r*t,r=n,u=t}var t,e,r,u;Rc.point=function(i,o){Rc.point=n,t=r=i,e=u=o},Rc.lineEnd=function(){n(t,e)}}function Oe(n,t){Lc>n&&(Lc=n),n>qc&&(qc=n),zc>t&&(zc=t),t>Tc&&(Tc=t)}function Ye(){function n(n,t){o.push("M",n,",",t,i)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function u(){o.push("Z")}var i=Ie(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return i=Ie(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Ie(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Ze(n,t){dc+=n,mc+=t,++yc}function Ve(){function n(n,r){var u=n-t,i=r-e,o=Math.sqrt(u*u+i*i);xc+=o*(t+n)/2,Mc+=o*(e+r)/2,_c+=o,Ze(t=n,e=r)}var t,e;Pc.point=function(r,u){Pc.point=n,Ze(t=r,e=u)}}function Xe(){Pc.point=Ze}function $e(){function n(n,t){var e=n-r,i=t-u,o=Math.sqrt(e*e+i*i);xc+=o*(r+n)/2,Mc+=o*(u+t)/2,_c+=o,o=u*n-r*t,bc+=o*(r+n),wc+=o*(u+t),Sc+=3*o,Ze(r=n,u=t)}var t,e,r,u;Pc.point=function(i,o){Pc.point=n,Ze(t=r=i,e=u=o)},Pc.lineEnd=function(){n(t,e)}}function Be(n){function t(t,e){n.moveTo(t,e),n.arc(t,e,o,0,ka)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function u(){a.point=t}function i(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:u,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=u,a.point=t},pointRadius:function(n){return o=n,a},result:g};return a}function We(n){function t(n){return(a?r:e)(n)}function e(t){return Ke(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){x=0/0,S.point=i,t.lineStart()}function i(e,r){var i=se([e,r]),o=n(e,r);u(x,M,y,_,b,w,x=o[0],M=o[1],y=e,_=i[0],b=i[1],w=i[2],a,t),t.point(x,M)}function o(){S.point=e,t.lineEnd()}function c(){r(),S.point=s,S.lineEnd=l}function s(n,t){i(f=n,h=t),g=x,p=M,v=_,d=b,m=w,S.point=i}function l(){u(x,M,y,_,b,w,g,p,f,v,d,m,a,t),S.lineEnd=o,o()}var f,h,g,p,v,d,m,y,x,M,_,b,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=c},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,a,c,s,l,f,h,g,p,v,d,m){var y=l-t,x=f-e,M=y*y+x*x;if(M>4*i&&d--){var _=a+g,b=c+p,w=s+v,S=Math.sqrt(_*_+b*b+w*w),k=Math.asin(w/=S),E=oa(oa(w)-1)<Aa||oa(r-h)<Aa?(r+h)/2:Math.atan2(b,_),A=n(E,k),C=A[0],N=A[1],L=C-t,z=N-e,q=x*L-y*z;(q*q/M>i||oa((y*L+x*z)/M-.5)>.3||o>a*g+c*p+s*v)&&(u(t,e,r,a,c,s,C,N,E,_/=S,b/=S,w,d,m),m.point(C,N),u(C,N,E,_,b,w,l,f,h,g,p,v,d,m))}}var i=.5,o=Math.cos(30*Na),a=16;return t.precision=function(n){return arguments.length?(a=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function Je(n){var t=We(function(t,e){return n([t*La,e*La])});return function(n){return tr(t(n))}}function Ge(n){this.stream=n}function Ke(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function Qe(n){return nr(function(){return n})()}function nr(n){function t(n){return n=a(n[0]*Na,n[1]*Na),[n[0]*h+c,s-n[1]*h]}function e(n){return n=a.invert((n[0]-c)/h,(s-n[1])/h),n&&[n[0]*La,n[1]*La]}function r(){a=Ue(o=ur(m,y,x),i);var n=i(v,d);return c=g-n[0]*h,s=p+n[1]*h,u()}function u(){return l&&(l.valid=!1,l=null),t}var i,o,a,c,s,l,f=We(function(n,t){return n=i(n,t),[n[0]*h+c,s-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,y=0,x=0,M=Ec,_=bt,b=null,w=null;return t.stream=function(n){return l&&(l.valid=!1),l=tr(M(o,f(_(n)))),l.valid=!0,l},t.clipAngle=function(n){return arguments.length?(M=null==n?(b=n,Ec):Re((b=+n)*Na),u()):b -},t.clipExtent=function(n){return arguments.length?(w=n,_=n?Pe(n[0][0],n[0][1],n[1][0],n[1][1]):bt,u()):w},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Na,d=n[1]%360*Na,r()):[v*La,d*La]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Na,y=n[1]%360*Na,x=n.length>2?n[2]%360*Na:0,r()):[m*La,y*La,x*La]},Xo.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function tr(n){return Ke(n,function(t,e){n.point(t*Na,e*Na)})}function er(n,t){return[n,t]}function rr(n,t){return[n>Sa?n-ka:-Sa>n?n+ka:n,t]}function ur(n,t,e){return n?t||e?Ue(or(n),ar(t,e)):or(n):t||e?ar(t,e):rr}function ir(n){return function(t,e){return t+=n,[t>Sa?t-ka:-Sa>t?t+ka:t,e]}}function or(n){var t=ir(n);return t.invert=ir(-n),t}function ar(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*r+a*u;return[Math.atan2(c*i-l*o,a*r-s*u),X(l*i+c*o)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,c=Math.sin(n)*e,s=Math.sin(t),l=s*i-c*o;return[Math.atan2(c*i+s*o,a*r+l*u),X(l*r-a*u)]},e}function cr(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,o,a){var c=o*t;null!=u?(u=sr(e,u),i=sr(e,i),(o>0?i>u:u>i)&&(u+=o*ka)):(u=n+o*ka,i=n-.5*c);for(var s,l=u;o>0?l>i:i>l;l-=c)a.point((s=ve([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],s[1])}}function sr(n,t){var e=se(t);e[0]-=n,pe(e);var r=V(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Aa)%(2*Math.PI)}function lr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function fr(n,t,e){var r=Xo.range(n,t-Aa,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function hr(n){return n.source}function gr(n){return n.target}function pr(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(n),s=u*Math.sin(n),l=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(J(r-t)+u*o*J(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*l,u=e*s+t*f,o=e*i+t*a;return[Math.atan2(u,r)*La,Math.atan2(o,Math.sqrt(r*r+u*u))*La]}:function(){return[n*La,t*La]};return p.distance=h,p}function vr(){function n(n,u){var i=Math.sin(u*=Na),o=Math.cos(u),a=oa((n*=Na)-t),c=Math.cos(a);Uc+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),t=n,e=i,r=o}var t,e,r;jc.point=function(u,i){t=u*Na,e=Math.sin(i*=Na),r=Math.cos(i),jc.point=n},jc.lineEnd=function(){jc.point=jc.lineEnd=g}}function dr(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(n*i,r*o),Math.asin(r&&e*i/r)]},e}function mr(n,t){function e(n,t){var e=oa(oa(t)-Ea)<Aa?0:o/Math.pow(u(t),i);return[e*Math.sin(i*n),o-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(Sa/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),o=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=o-t,r=I(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ea]},e):xr}function yr(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return oa(u)<Aa?er:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-I(u)*Math.sqrt(n*n+e*e)]},e)}function xr(n,t){return[n,Math.log(Math.tan(Sa/4+t/2))]}function Mr(n){var t,e=Qe(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var o=i.apply(e,arguments);if(o===e){if(t=null==n){var a=Sa*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else t&&(o=null);return o},e.clipExtent(null)}function _r(n,t){return[Math.log(Math.tan(Sa/4+t/2)),-n]}function br(n){return n[0]}function wr(n){return n[1]}function Sr(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Z(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function kr(n,t){return n[0]-t[0]||n[1]-t[1]}function Er(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Ar(n,t,e,r){var u=n[0],i=e[0],o=t[0]-u,a=r[0]-i,c=n[1],s=e[1],l=t[1]-c,f=r[1]-s,h=(a*(c-s)-f*(u-i))/(f*o-a*l);return[u+h*o,c+h*l]}function Cr(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Nr(){Jr(this),this.edge=this.site=this.circle=null}function Lr(n){var t=Jc.pop()||new Nr;return t.site=n,t}function zr(n){Or(n),$c.remove(n),Jc.push(n),Jr(n)}function qr(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,o=n.N,a=[n];zr(n);for(var c=i;c.circle&&oa(e-c.circle.x)<Aa&&oa(r-c.circle.cy)<Aa;)i=c.P,a.unshift(c),zr(c),c=i;a.unshift(c),Or(c);for(var s=o;s.circle&&oa(e-s.circle.x)<Aa&&oa(r-s.circle.cy)<Aa;)o=s.N,a.push(s),zr(s),s=o;a.push(s),Or(s);var l,f=a.length;for(l=1;f>l;++l)s=a[l],c=a[l-1],$r(s.edge,c.site,s.site,u);c=a[0],s=a[f-1],s.edge=Vr(c.site,s.site,null,u),Fr(c),Fr(s)}function Tr(n){for(var t,e,r,u,i=n.x,o=n.y,a=$c._;a;)if(r=Rr(a,o)-i,r>Aa)a=a.L;else{if(u=i-Dr(a,o),!(u>Aa)){r>-Aa?(t=a.P,e=a):u>-Aa?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var c=Lr(n);if($c.insert(t,c),t||e){if(t===e)return Or(t),e=Lr(t.site),$c.insert(c,e),c.edge=e.edge=Vr(t.site,c.site),Fr(t),Fr(e),void 0;if(!e)return c.edge=Vr(t.site,c.site),void 0;Or(t),Or(e);var s=t.site,l=s.x,f=s.y,h=n.x-l,g=n.y-f,p=e.site,v=p.x-l,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,x=v*v+d*d,M={x:(d*y-g*x)/m+l,y:(h*x-v*y)/m+f};$r(e.edge,s,p,M),c.edge=Vr(s,n,null,M),e.edge=Vr(n,p,null,M),Fr(t),Fr(e)}}function Rr(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var o=n.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,s=c-t;if(!s)return a;var l=a-r,f=1/i-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+u-i/2)))/f+r:(r+a)/2}function Dr(n,t){var e=n.N;if(e)return Rr(e,t);var r=n.site;return r.y===t?r.x:1/0}function Pr(n){this.site=n,this.edges=[]}function Ur(n){for(var t,e,r,u,i,o,a,c,s,l,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=Xc,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(a=i.edges,c=a.length,o=0;c>o;)l=a[o].end(),r=l.x,u=l.y,s=a[++o%c].start(),t=s.x,e=s.y,(oa(r-t)>Aa||oa(u-e)>Aa)&&(a.splice(o,0,new Br(Xr(i.site,l,oa(r-f)<Aa&&p-u>Aa?{x:f,y:oa(t-f)<Aa?e:p}:oa(u-p)<Aa&&h-r>Aa?{x:oa(e-p)<Aa?t:h,y:p}:oa(r-h)<Aa&&u-g>Aa?{x:h,y:oa(t-h)<Aa?e:g}:oa(u-g)<Aa&&r-f>Aa?{x:oa(e-g)<Aa?t:f,y:g}:null),i.site,null)),++c)}function jr(n,t){return t.angle-n.angle}function Hr(){Jr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Fr(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,s=r.y-a,l=i.x-o,f=i.y-a,h=2*(c*f-s*l);if(!(h>=-Ca)){var g=c*c+s*s,p=l*l+f*f,v=(f*g-s*p)/h,d=(c*p-l*g)/h,f=d+a,m=Gc.pop()||new Hr;m.arc=n,m.site=u,m.x=v+o,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,x=Wc._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Wc.insert(y,m),y||(Bc=m)}}}}function Or(n){var t=n.circle;t&&(t.P||(Bc=t.N),Wc.remove(t),Gc.push(t),Jr(t),n.circle=null)}function Yr(n){for(var t,e=Vc,r=De(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Ir(t,n)||!r(t)||oa(t.a.x-t.b.x)<Aa&&oa(t.a.y-t.b.y)<Aa)&&(t.a=t.b=null,e.splice(u,1))}function Ir(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,o=t[0][0],a=t[1][0],c=t[0][1],s=t[1][1],l=n.l,f=n.r,h=l.x,g=l.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(o>d||d>=a)return;if(h>p){if(i){if(i.y>=s)return}else i={x:d,y:c};e={x:d,y:s}}else{if(i){if(i.y<c)return}else i={x:d,y:s};e={x:d,y:c}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=s)return}else i={x:(c-u)/r,y:c};e={x:(s-u)/r,y:s}}else{if(i){if(i.y<c)return}else i={x:(s-u)/r,y:s};e={x:(c-u)/r,y:c}}else if(v>g){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}return n.a=i,n.b=e,!0}function Zr(n,t){this.l=n,this.r=t,this.a=this.b=null}function Vr(n,t,e,r){var u=new Zr(n,t);return Vc.push(u),e&&$r(u,n,t,e),r&&$r(u,t,n,r),Xc[n.i].edges.push(new Br(u,n,t)),Xc[t.i].edges.push(new Br(u,t,n)),u}function Xr(n,t,e){var r=new Zr(n,null);return r.a=t,r.b=e,Vc.push(r),r}function $r(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function Br(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function Wr(){this._=null}function Jr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function Gr(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Kr(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Qr(n){for(;n.L;)n=n.L;return n}function nu(n,t){var e,r,u,i=n.sort(tu).pop();for(Vc=[],Xc=new Array(n.length),$c=new Wr,Wc=new Wr;;)if(u=Bc,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(Xc[i.i]=new Pr(i),Tr(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;qr(u.arc)}t&&(Yr(t),Ur(t));var o={cells:Xc,edges:Vc};return $c=Wc=Vc=Xc=null,o}function tu(n,t){return t.y-n.y||t.x-n.x}function eu(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function ru(n){return n.x}function uu(n){return n.y}function iu(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ou(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var o=.5*(e+u),a=.5*(r+i),c=t.nodes;c[0]&&ou(n,c[0],e,r,o,a),c[1]&&ou(n,c[1],o,r,u,a),c[2]&&ou(n,c[2],e,a,o,i),c[3]&&ou(n,c[3],o,a,u,i)}}function au(n,t){n=Xo.rgb(n),t=Xo.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,o=t.g-r,a=t.b-u;return function(n){return"#"+vt(Math.round(e+i*n))+vt(Math.round(r+o*n))+vt(Math.round(u+a*n))}}function cu(n,t){var e,r={},u={};for(e in n)e in t?r[e]=fu(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function su(n,t){return t-=n=+n,function(e){return n+t*e}}function lu(n,t){var e,r,u,i,o,a=0,c=0,s=[],l=[];for(n+="",t+="",Qc.lastIndex=0,r=0;e=Qc.exec(t);++r)e.index&&s.push(t.substring(a,c=e.index)),l.push({i:s.length,x:e[0]}),s.push(null),a=Qc.lastIndex;for(a<t.length&&s.push(t.substring(a)),r=0,i=l.length;(e=Qc.exec(n))&&i>r;++r)if(o=l[r],o.x==e[0]){if(o.i)if(null==s[o.i+1])for(s[o.i-1]+=o.x,s.splice(o.i,1),u=r+1;i>u;++u)l[u].i--;else for(s[o.i-1]+=o.x+s[o.i+1],s.splice(o.i,2),u=r+1;i>u;++u)l[u].i-=2;else if(null==s[o.i+1])s[o.i]=o.x;else for(s[o.i]=o.x+s[o.i+1],s.splice(o.i+1,1),u=r+1;i>u;++u)l[u].i--;l.splice(r,1),i--,r--}else o.x=su(parseFloat(e[0]),parseFloat(o.x));for(;i>r;)o=l.pop(),null==s[o.i+1]?s[o.i]=o.x:(s[o.i]=o.x+s[o.i+1],s.splice(o.i+1,1)),i--;return 1===s.length?null==s[0]?(o=l[0].x,function(n){return o(n)+""}):function(){return t}:function(n){for(r=0;i>r;++r)s[(o=l[r]).i]=o.x(n);return s.join("")}}function fu(n,t){for(var e,r=Xo.interpolators.length;--r>=0&&!(e=Xo.interpolators[r](n,t)););return e}function hu(n,t){var e,r=[],u=[],i=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(fu(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;o>e;++e)u[e]=t[e];return function(n){for(e=0;a>e;++e)u[e]=r[e](n);return u}}function gu(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function pu(n){return function(t){return 1-n(1-t)}}function vu(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function du(n){return n*n}function mu(n){return n*n*n}function yu(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function xu(n){return function(t){return Math.pow(t,n)}}function Mu(n){return 1-Math.cos(n*Ea)}function _u(n){return Math.pow(2,10*(n-1))}function bu(n){return 1-Math.sqrt(1-n*n)}function wu(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/ka*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*ka/t)}}function Su(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function ku(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Eu(n,t){n=Xo.hcl(n),t=Xo.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,o=t.c-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return rt(e+i*n,r+o*n,u+a*n)+""}}function Au(n,t){n=Xo.hsl(n),t=Xo.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,o=t.s-r,a=t.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return nt(e+i*n,r+o*n,u+a*n)+""}}function Cu(n,t){n=Xo.lab(n),t=Xo.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,o=t.a-r,a=t.b-u;return function(n){return ot(e+i*n,r+o*n,u+a*n)+""}}function Nu(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Lu(n){var t=[n.a,n.b],e=[n.c,n.d],r=qu(t),u=zu(t,e),i=qu(Tu(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*La,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*La:0}function zu(n,t){return n[0]*t[0]+n[1]*t[1]}function qu(n){var t=Math.sqrt(zu(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Tu(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ru(n,t){var e,r=[],u=[],i=Xo.transform(n),o=Xo.transform(t),a=i.translate,c=o.translate,s=i.rotate,l=o.rotate,f=i.skew,h=o.skew,g=i.scale,p=o.scale;return a[0]!=c[0]||a[1]!=c[1]?(r.push("translate(",null,",",null,")"),u.push({i:1,x:su(a[0],c[0])},{i:3,x:su(a[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),s!=l?(s-l>180?l+=360:l-s>180&&(s+=360),u.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:su(s,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?u.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:su(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),u.push({i:e-4,x:su(g[0],p[0])},{i:e-2,x:su(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=u.length,function(n){for(var t,i=-1;++i<e;)r[(t=u[i]).i]=t.x(n);return r.join("")}}function Du(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return(e-n)*t}}function Pu(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return Math.max(0,Math.min(1,(e-n)*t))}}function Uu(n){for(var t=n.source,e=n.target,r=Hu(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function ju(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Hu(n,t){if(n===t)return n;for(var e=ju(n),r=ju(t),u=e.pop(),i=r.pop(),o=null;u===i;)o=u,u=e.pop(),i=r.pop();return o}function Fu(n){n.fixed|=2}function Ou(n){n.fixed&=-7}function Yu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Iu(n){n.fixed&=-5}function Zu(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,o=n.nodes,a=o.length,c=-1;++c<a;)i=o[c],null!=i&&(Zu(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var s=t*e[n.point.index];n.charge+=n.pointCharge=s,r+=s*n.point.x,u+=s*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function Vu(n,t){return Xo.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=Wu,n}function Xu(n){return n.children}function $u(n){return n.value}function Bu(n,t){return t.value-n.value}function Wu(n){return Xo.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function Ju(n){return n.x}function Gu(n){return n.y}function Ku(n,t,e){n.y0=t,n.y=e}function Qu(n){return Xo.range(n.length)}function ni(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function ti(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function ei(n){return n.reduce(ri,0)}function ri(n,t){return n+t[1]}function ui(n,t){return ii(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ii(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function oi(n){return[Xo.min(n),Xo.max(n)]}function ai(n,t){return n.parent==t.parent?1:2}function ci(n){var t=n.children;return t&&t.length?t[0]:n._tree.thread}function si(n){var t,e=n.children;return e&&(t=e.length)?e[t-1]:n._tree.thread}function li(n,t){var e=n.children;if(e&&(u=e.length))for(var r,u,i=-1;++i<u;)t(r=li(e[i],t),n)>0&&(n=r);return n}function fi(n,t){return n.x-t.x}function hi(n,t){return t.x-n.x}function gi(n,t){return n.depth-t.depth}function pi(n,t){function e(n,r){var u=n.children;if(u&&(o=u.length))for(var i,o,a=null,c=-1;++c<o;)i=u[c],e(i,a),a=i;t(n,r)}e(n,null)}function vi(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i]._tree,t.prelim+=e,t.mod+=e,e+=t.shift+(r+=t.change)}function di(n,t,e){n=n._tree,t=t._tree;var r=e/(t.number-n.number);n.change+=r,t.change-=r,t.shift+=e,t.prelim+=e,t.mod+=e}function mi(n,t,e){return n._tree.ancestor.parent==t.parent?n._tree.ancestor:e}function yi(n,t){return n.value-t.value}function xi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Mi(n,t){n._pack_next=t,t._pack_prev=n}function _i(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function bi(n){function t(n){l=Math.min(n.x-n.r,l),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(s=e.length)){var e,r,u,i,o,a,c,s,l=1/0,f=-1/0,h=1/0,g=-1/0;if(e.forEach(wi),r=e[0],r.x=-r.r,r.y=0,t(r),s>1&&(u=e[1],u.x=u.r,u.y=0,t(u),s>2))for(i=e[2],Ei(r,u,i),t(i),xi(r,i),r._pack_prev=i,xi(i,u),u=r._pack_next,o=3;s>o;o++){Ei(r,u,i=e[o]);var p=0,v=1,d=1;for(a=u._pack_next;a!==u;a=a._pack_next,v++)if(_i(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!_i(c,i);c=c._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?Mi(r,u=a):Mi(r=c,u),o--):(xi(r,i),u=i,t(i))}var m=(l+f)/2,y=(h+g)/2,x=0;for(o=0;s>o;o++)i=e[o],i.x-=m,i.y-=y,x=Math.max(x,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=x,e.forEach(Si)}}function wi(n){n._pack_next=n._pack_prev=n}function Si(n){delete n._pack_next,delete n._pack_prev}function ki(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,o=u.length;++i<o;)ki(u[i],t,e,r)}function Ei(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var o=t.r+e.r,a=u*u+i*i;o*=o,r*=r;var c=.5+(r-o)/(2*a),s=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=n.x+c*u+s*i,e.y=n.y+c*i-s*u}else e.x=n.x+r,e.y=n.y}function Ai(n){return 1+Xo.max(n,function(n){return n.y})}function Ci(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Ni(n){var t=n.children;return t&&t.length?Ni(t[0]):n}function Li(n){var t,e=n.children;return e&&(t=e.length)?Li(e[t-1]):n}function zi(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function qi(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Ti(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Ri(n){return n.rangeExtent?n.rangeExtent():Ti(n.range())}function Di(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Pi(n,t){var e,r=0,u=n.length-1,i=n[r],o=n[u];return i>o&&(e=r,r=u,u=e,e=i,i=o,o=e),n[r]=t.floor(i),n[u]=t.ceil(o),n}function Ui(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:ls}function ji(n,t,e,r){var u=[],i=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<=a;)u.push(e(n[o-1],n[o])),i.push(r(t[o-1],t[o]));return function(t){var e=Xo.bisect(n,t,1,a)-1;return i[e](u[e](t))}}function Hi(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?ji:Di,c=r?Pu:Du;return o=u(n,t,c,e),a=u(t,n,c,fu),i}function i(n){return o(n)}var o,a;return i.invert=function(n){return a(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(Nu)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Ii(n,t)},i.tickFormat=function(t,e){return Zi(n,t,e)},i.nice=function(t){return Oi(n,t),u()},i.copy=function(){return Hi(n,t,e,r)},u()}function Fi(n,t){return Xo.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Oi(n,t){return Pi(n,Ui(Yi(n,t)[2]))}function Yi(n,t){null==t&&(t=10);var e=Ti(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Ii(n,t){return Xo.range.apply(Xo,Yi(n,t))}function Zi(n,t,e){var r=Yi(n,t);return Xo.format(e?e.replace(Qa,function(n,t,e,u,i,o,a,c,s,l){return[t,e,u,i,o,a,c,s||"."+Xi(l,r),l].join("")}):",."+Vi(r[2])+"f")}function Vi(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function Xi(n,t){var e=Vi(t[2]);return n in fs?Math.abs(e-Vi(Math.max(Math.abs(t[0]),Math.abs(t[1]))))+ +("e"!==n):e-2*("%"===n)}function $i(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(u(t))}return o.invert=function(t){return i(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),o):t},o.nice=function(){var t=Pi(r.map(u),e?Math:gs);return n.domain(t),r=t.map(i),o},o.ticks=function(){var n=Ti(r),o=[],a=n[0],c=n[1],s=Math.floor(u(a)),l=Math.ceil(u(c)),f=t%1?2:t;if(isFinite(l-s)){if(e){for(;l>s;s++)for(var h=1;f>h;h++)o.push(i(s)*h);o.push(i(s))}else for(o.push(i(s));s++<l;)for(var h=f-1;h>0;h--)o.push(i(s)*h);for(s=0;o[s]<a;s++);for(l=o.length;o[l-1]>c;l--);o=o.slice(s,l)}return o},o.tickFormat=function(n,t){if(!arguments.length)return hs;arguments.length<2?t=hs:"function"!=typeof t&&(t=Xo.format(t));var r,a=Math.max(.1,n/o.ticks().length),c=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(n){return n/i(c(u(n)+r))<=a?t(n):""}},o.copy=function(){return $i(n.copy(),t,e,r)},Fi(o,n)}function Bi(n,t,e){function r(t){return n(u(t))}var u=Wi(t),i=Wi(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Ii(e,n)},r.tickFormat=function(n,t){return Zi(e,n,t)},r.nice=function(n){return r.domain(Oi(e,n))},r.exponent=function(o){return arguments.length?(u=Wi(t=o),i=Wi(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return Bi(n.copy(),t,e)},Fi(r,n)}function Wi(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Ji(n,t){function e(e){return o[((i.get(e)||"range"===t.t&&i.set(e,n.push(e)))-1)%o.length]}function r(t,e){return Xo.range(n.length).map(function(n){return t+e*n})}var i,o,a;return e.domain=function(r){if(!arguments.length)return n;n=[],i=new u;for(var o,a=-1,c=r.length;++a<c;)i.has(o=r[a])||i.set(o,n.push(o));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(o=n,a=0,t={t:"range",a:arguments},e):o},e.rangePoints=function(u,i){arguments.length<2&&(i=0);var c=u[0],s=u[1],l=(s-c)/(Math.max(1,n.length-1)+i);return o=r(n.length<2?(c+s)/2:c+l*i/2,l),a=0,t={t:"rangePoints",a:arguments},e},e.rangeBands=function(u,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=u[1]<u[0],l=u[s-0],f=u[1-s],h=(f-l)/(n.length-i+2*c);return o=r(l+h*c,h),s&&o.reverse(),a=h*(1-i),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=u[1]<u[0],l=u[s-0],f=u[1-s],h=Math.floor((f-l)/(n.length-i+2*c)),g=f-l-(n.length-i)*h;return o=r(l+Math.round(g/2),h),s&&o.reverse(),a=Math.round(h*(1-i)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return a},e.rangeExtent=function(){return Ti(t.a[0])},e.copy=function(){return Ji(n,t)},e.domain(n)}function Gi(n,t){function e(){var e=0,i=t.length;for(u=[];++e<i;)u[e-1]=Xo.quantile(n,e/i);return r}function r(n){return isNaN(n=+n)?void 0:t[Xo.bisect(u,n)]}var u;return r.domain=function(t){return arguments.length?(n=t.filter(function(n){return!isNaN(n)}).sort(Xo.ascending),e()):n},r.range=function(n){return arguments.length?(t=n,e()):t},r.quantiles=function(){return u},r.invertExtent=function(e){return e=t.indexOf(e),0>e?[0/0,0/0]:[e>0?u[e-1]:n[0],e<u.length?u[e]:n[n.length-1]]},r.copy=function(){return Gi(n,t)},e()}function Ki(n,t,e){function r(t){return e[Math.max(0,Math.min(o,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),o=e.length-1,r}var i,o;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?0/0:t/i+n,[t,t+1/i]},r.copy=function(){return Ki(n,t,e)},u()}function Qi(n,t){function e(e){return e>=e?t[Xo.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return Qi(n,t)},e}function no(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Ii(n,t)},t.tickFormat=function(t,e){return Zi(n,t,e)},t.copy=function(){return no(n)},t}function to(n){return n.innerRadius}function eo(n){return n.outerRadius}function ro(n){return n.startAngle}function uo(n){return n.endAngle}function io(n){function t(t){function o(){s.push("M",i(n(l),a))}for(var c,s=[],l=[],f=-1,h=t.length,g=_t(e),p=_t(r);++f<h;)u.call(this,c=t[f],f)?l.push([+g.call(this,c,f),+p.call(this,c,f)]):l.length&&(o(),l=[]);return l.length&&o(),s.length?s.join(""):null}var e=br,r=wr,u=be,i=oo,o=i.key,a=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(o="function"==typeof n?i=n:(i=Ms.get(n)||oo).key,t):o},t.tension=function(n){return arguments.length?(a=n,t):a},t}function oo(n){return n.join("L")}function ao(n){return oo(n)+"Z"}function co(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function so(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function lo(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function fo(n,t){return n.length<4?oo(n):n[1]+po(n.slice(1,n.length-1),vo(n,t))}function ho(n,t){return n.length<3?oo(n):n[0]+po((n.push(n[0]),n),vo([n[n.length-2]].concat(n,[n[1]]),t))}function go(n,t){return n.length<3?oo(n):n[0]+po(n,vo(n,t))}function po(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return oo(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],o=t[0],a=o,c=1;if(e&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=n[1],c=2),t.length>1){a=t[1],i=n[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var s=2;s<t.length;s++,c++)i=n[c],a=t[s],r+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(e){var l=n[c];r+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+l[0]+","+l[1]}return r}function vo(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],o=n[1],a=1,c=n.length;++a<c;)e=i,i=o,o=n[a],r.push([u*(o[0]-e[0]),u*(o[1]-e[1])]);return r}function mo(n){if(n.length<3)return oo(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],o=[u,u,u,(r=n[1])[0]],a=[i,i,i,r[1]],c=[u,",",i,"L",_o(ws,o),",",_o(ws,a)];for(n.push(n[e-1]);++t<=e;)r=n[t],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),bo(c,o,a);return n.pop(),c.push("L",r),c.join("")}function yo(n){if(n.length<4)return oo(n);for(var t,e=[],r=-1,u=n.length,i=[0],o=[0];++r<3;)t=n[r],i.push(t[0]),o.push(t[1]);for(e.push(_o(ws,i)+","+_o(ws,o)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),bo(e,i,o);return e.join("")}function xo(n){for(var t,e,r=-1,u=n.length,i=u+4,o=[],a=[];++r<4;)e=n[r%u],o.push(e[0]),a.push(e[1]);for(t=[_o(ws,o),",",_o(ws,a)],--r;++r<i;)e=n[r%u],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),bo(t,o,a);return t.join("")}function Mo(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],o=n[0][1],a=n[e][0]-i,c=n[e][1]-o,s=-1;++s<=e;)r=n[s],u=s/e,r[0]=t*r[0]+(1-t)*(i+u*a),r[1]=t*r[1]+(1-t)*(o+u*c);return mo(n)}function _o(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function bo(n,t,e){n.push("C",_o(_s,t),",",_o(_s,e),",",_o(bs,t),",",_o(bs,e),",",_o(ws,t),",",_o(ws,e))}function wo(n,t){return(t[1]-n[1])/(t[0]-n[0])}function So(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],o=r[0]=wo(u,i);++t<e;)r[t]=(o+(o=wo(u=i,i=n[t+1])))/2;return r[t]=o,r}function ko(n){for(var t,e,r,u,i=[],o=So(n),a=-1,c=n.length-1;++a<c;)t=wo(n[a],n[a+1]),oa(t)<Aa?o[a]=o[a+1]=0:(e=o[a]/t,r=o[a+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(n[Math.min(c,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function Eo(n){return n.length<3?oo(n):n[0]+po(n,ko(n))}function Ao(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]+ys,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Co(n){function t(t){function c(){v.push("M",a(n(m),f),l,s(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,x=t.length,M=_t(e),_=_t(u),b=e===r?function(){return g}:_t(r),w=u===i?function(){return p}:_t(i);++y<x;)o.call(this,h=t[y],y)?(d.push([g=+M.call(this,h,y),p=+_.call(this,h,y)]),m.push([+b.call(this,h,y),+w.call(this,h,y)])):d.length&&(c(),d=[],m=[]);return d.length&&c(),v.length?v.join(""):null}var e=br,r=br,u=0,i=wr,o=be,a=oo,c=a.key,s=a,l="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?a=n:(a=Ms.get(n)||oo).key,s=a.reverse||a,l=a.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(f=n,t):f},t}function No(n){return n.radius}function Lo(n){return[n.x,n.y]}function zo(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]+ys;return[e*Math.cos(r),e*Math.sin(r)]}}function qo(){return 64}function To(){return"circle"}function Ro(n){var t=Math.sqrt(n/Sa);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Do(n,t){return fa(n,Ns),n.id=t,n}function Po(n,t,e,r){var u=n.id;return R(n,"function"==typeof e?function(n,i,o){n.__transition__[u].tween.set(t,r(e.call(n,n.__data__,i,o)))}:(e=r(e),function(n){n.__transition__[u].tween.set(t,e)}))}function Uo(n){return null==n&&(n=""),function(){this.textContent=n}}function jo(n,t,e,r){var i=n.__transition__||(n.__transition__={active:0,count:0}),o=i[e];if(!o){var a=r.time;o=i[e]={tween:new u,time:a,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Xo.timer(function(r){function u(r){return i.active>e?s():(i.active=e,o.event&&o.event.start.call(n,l,t),o.tween.forEach(function(e,r){(r=r.call(n,l,t))&&v.push(r)}),Xo.timer(function(){return p.c=c(r||1)?be:c,1},0,a),void 0)}function c(r){if(i.active!==e)return s();for(var u=r/g,a=f(u),c=v.length;c>0;)v[--c].call(n,a);return u>=1?(o.event&&o.event.end.call(n,l,t),s()):void 0}function s(){return--i.count?delete i[e]:delete n.__transition__,1}var l=n.__data__,f=o.ease,h=o.delay,g=o.duration,p=Ja,v=[];return p.t=h+a,r>=h?u(r-h):(p.c=u,void 0)},0,a)}}function Ho(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function Fo(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function Oo(n){return n.toISOString()}function Yo(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=Xo.bisect(js,u);return i==js.length?[t.year,Yi(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/js[i-1]<js[i]/u?i-1:i]:[Os,Yi(n,e)[2]] -}return r.invert=function(t){return Io(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(Io)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,Io(+e+1),t).length}var i=r.domain(),o=Ti(i),a=null==n?u(o,10):"number"==typeof n&&u(o,n);return a&&(n=a[0],t=a[1]),r.domain(Pi(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=Io(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=Io(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Ti(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],Io(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return Yo(n.copy(),t,e)},Fi(r,n)}function Io(n){return new Date(n)}function Zo(n){return JSON.parse(n.responseText)}function Vo(n){var t=Wo.createRange();return t.selectNode(Wo.body),t.createContextualFragment(n.responseText)}var Xo={version:"3.4.1"};Date.now||(Date.now=function(){return+new Date});var $o=[].slice,Bo=function(n){return $o.call(n)},Wo=document,Jo=Wo.documentElement,Go=window;try{Bo(Jo.childNodes)[0].nodeType}catch(Ko){Bo=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}try{Wo.createElement("div").style.setProperty("opacity",0,"")}catch(Qo){var na=Go.Element.prototype,ta=na.setAttribute,ea=na.setAttributeNS,ra=Go.CSSStyleDeclaration.prototype,ua=ra.setProperty;na.setAttribute=function(n,t){ta.call(this,n,t+"")},na.setAttributeNS=function(n,t,e){ea.call(this,n,t,e+"")},ra.setProperty=function(n,t,e){ua.call(this,n,t+"",e)}}Xo.ascending=function(n,t){return t>n?-1:n>t?1:n>=t?0:0/0},Xo.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:0/0},Xo.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i&&!(null!=(e=n[u])&&e>=e);)e=void 0;for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i&&!(null!=(e=t.call(n,n[u],u))&&e>=e);)e=void 0;for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},Xo.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i&&!(null!=(e=n[u])&&e>=e);)e=void 0;for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i&&!(null!=(e=t.call(n,n[u],u))&&e>=e);)e=void 0;for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},Xo.extent=function(n,t){var e,r,u,i=-1,o=n.length;if(1===arguments.length){for(;++i<o&&!(null!=(e=u=n[i])&&e>=e);)e=u=void 0;for(;++i<o;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<o&&!(null!=(e=u=t.call(n,n[i],i))&&e>=e);)e=void 0;for(;++i<o;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},Xo.sum=function(n,t){var e,r=0,u=n.length,i=-1;if(1===arguments.length)for(;++i<u;)isNaN(e=+n[i])||(r+=e);else for(;++i<u;)isNaN(e=+t.call(n,n[i],i))||(r+=e);return r},Xo.mean=function(t,e){var r,u=t.length,i=0,o=-1,a=0;if(1===arguments.length)for(;++o<u;)n(r=t[o])&&(i+=(r-i)/++a);else for(;++o<u;)n(r=e.call(t,t[o],o))&&(i+=(r-i)/++a);return a?i:void 0},Xo.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},Xo.median=function(t,e){return arguments.length>1&&(t=t.map(e)),t=t.filter(n),t.length?Xo.quantile(t.sort(Xo.ascending),.5):void 0},Xo.bisector=function(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n.call(t,t[i],i)<e?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;e<n.call(t,t[i],i)?u=i:r=i+1}return r}}};var ia=Xo.bisector(function(n){return n});Xo.bisectLeft=ia.left,Xo.bisect=Xo.bisectRight=ia.right,Xo.shuffle=function(n){for(var t,e,r=n.length;r;)e=0|Math.random()*r--,t=n[r],n[r]=n[e],n[e]=t;return n},Xo.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},Xo.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},Xo.zip=function(){if(!(u=arguments.length))return[];for(var n=-1,e=Xo.min(arguments,t),r=new Array(e);++n<e;)for(var u,i=-1,o=r[n]=new Array(u);++i<u;)o[i]=arguments[i][n];return r},Xo.transpose=function(n){return Xo.zip.apply(Xo,n)},Xo.keys=function(n){var t=[];for(var e in n)t.push(e);return t},Xo.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},Xo.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},Xo.merge=function(n){for(var t,e,r,u=n.length,i=-1,o=0;++i<u;)o+=n[i].length;for(e=new Array(o);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--o]=r[t];return e};var oa=Math.abs;Xo.range=function(n,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=n,n=0)),1/0===(t-n)/r)throw new Error("infinite range");var u,i=[],o=e(oa(r)),a=-1;if(n*=o,t*=o,r*=o,0>r)for(;(u=n+r*++a)>t;)i.push(u/o);else for(;(u=n+r*++a)<t;)i.push(u/o);return i},Xo.map=function(n){var t=new u;if(n instanceof u)n.forEach(function(n,e){t.set(n,e)});else for(var e in n)t.set(e,n[e]);return t},r(u,{has:i,get:function(n){return this[aa+n]},set:function(n,t){return this[aa+n]=t},remove:o,keys:a,values:function(){var n=[];return this.forEach(function(t,e){n.push(e)}),n},entries:function(){var n=[];return this.forEach(function(t,e){n.push({key:t,value:e})}),n},size:c,empty:s,forEach:function(n){for(var t in this)t.charCodeAt(0)===ca&&n.call(this,t.substring(1),this[t])}});var aa="\x00",ca=aa.charCodeAt(0);Xo.nest=function(){function n(t,a,c){if(c>=o.length)return r?r.call(i,a):e?a.sort(e):a;for(var s,l,f,h,g=-1,p=a.length,v=o[c++],d=new u;++g<p;)(h=d.get(s=v(l=a[g])))?h.push(l):d.set(s,[l]);return t?(l=t(),f=function(e,r){l.set(e,n(t,r,c))}):(l={},f=function(e,r){l[e]=n(t,r,c)}),d.forEach(f),l}function t(n,e){if(e>=o.length)return n;var r=[],u=a[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,i={},o=[],a=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(Xo.map,e,0),0)},i.key=function(n){return o.push(n),i},i.sortKeys=function(n){return a[o.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},Xo.set=function(n){var t=new l;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},r(l,{has:i,add:function(n){return this[aa+n]=!0,n},remove:function(n){return n=aa+n,n in this&&delete this[n]},values:a,size:c,empty:s,forEach:function(n){for(var t in this)t.charCodeAt(0)===ca&&n.call(this,t.substring(1))}}),Xo.behavior={},Xo.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=f(n,t,t[e]);return n};var sa=["webkit","ms","moz","Moz","o","O"];Xo.dispatch=function(){for(var n=new p,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=v(n);return n},p.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.substring(e+1),n=n.substring(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},Xo.event=null,Xo.requote=function(n){return n.replace(la,"\\$&")};var la=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,fa={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},ha=function(n,t){return t.querySelector(n)},ga=function(n,t){return t.querySelectorAll(n)},pa=Jo[h(Jo,"matchesSelector")],va=function(n,t){return pa.call(n,t)};"function"==typeof Sizzle&&(ha=function(n,t){return Sizzle(n,t)[0]||null},ga=function(n,t){return Sizzle.uniqueSort(Sizzle(n,t))},va=Sizzle.matchesSelector),Xo.selection=function(){return xa};var da=Xo.selection.prototype=[];da.select=function(n){var t,e,r,u,i=[];n=M(n);for(var o=-1,a=this.length;++o<a;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var c=-1,s=r.length;++c<s;)(u=r[c])?(t.push(e=n.call(u,u.__data__,c,o)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return x(i)},da.selectAll=function(n){var t,e,r=[];n=_(n);for(var u=-1,i=this.length;++u<i;)for(var o=this[u],a=-1,c=o.length;++a<c;)(e=o[a])&&(r.push(t=Bo(n.call(e,e.__data__,a,u))),t.parentNode=e);return x(r)};var ma={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Xo.ns={prefix:ma,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&(e=n.substring(0,t),n=n.substring(t+1)),ma.hasOwnProperty(e)?{space:ma[e],local:n}:n}},da.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=Xo.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(b(t,n[t]));return this}return this.each(b(n,t))},da.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=k(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!S(n[u]).test(t))return!1;return!0}for(t in n)this.each(E(t,n[t]));return this}return this.each(E(n,t))},da.style=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t="");for(e in n)this.each(C(e,n[e],t));return this}if(2>r)return Go.getComputedStyle(this.node(),null).getPropertyValue(n);e=""}return this.each(C(n,t,e))},da.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(N(t,n[t]));return this}return this.each(N(n,t))},da.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},da.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},da.append=function(n){return n=L(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},da.insert=function(n,t){return n=L(n),t=M(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},da.remove=function(){return this.each(function(){var n=this.parentNode;n&&n.removeChild(this)})},da.data=function(n,t){function e(n,e){var r,i,o,a=n.length,f=e.length,h=Math.min(a,f),g=new Array(f),p=new Array(f),v=new Array(a);if(t){var d,m=new u,y=new u,x=[];for(r=-1;++r<a;)d=t.call(i=n[r],i.__data__,r),m.has(d)?v[r]=i:m.set(d,i),x.push(d);for(r=-1;++r<f;)d=t.call(e,o=e[r],r),(i=m.get(d))?(g[r]=i,i.__data__=o):y.has(d)||(p[r]=z(o)),y.set(d,o),m.remove(d);for(r=-1;++r<a;)m.has(x[r])&&(v[r]=n[r])}else{for(r=-1;++r<h;)i=n[r],o=e[r],i?(i.__data__=o,g[r]=i):p[r]=z(o);for(;f>r;++r)p[r]=z(e[r]);for(;a>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,c.push(p),s.push(g),l.push(v)}var r,i,o=-1,a=this.length;if(!arguments.length){for(n=new Array(a=(r=this[0]).length);++o<a;)(i=r[o])&&(n[o]=i.__data__);return n}var c=D([]),s=x([]),l=x([]);if("function"==typeof n)for(;++o<a;)e(r=this[o],n.call(r,r.parentNode.__data__,o));else for(;++o<a;)e(r=this[o],n);return s.enter=function(){return c},s.exit=function(){return l},s},da.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},da.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=q(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return x(u)},da.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},da.sort=function(n){n=T.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},da.each=function(n){return R(this,function(t,e,r){n.call(t,t.__data__,e,r)})},da.call=function(n){var t=Bo(arguments);return n.apply(t[0]=this,t),this},da.empty=function(){return!this.node()},da.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},da.size=function(){var n=0;return this.each(function(){++n}),n};var ya=[];Xo.selection.enter=D,Xo.selection.enter.prototype=ya,ya.append=da.append,ya.empty=da.empty,ya.node=da.node,ya.call=da.call,ya.size=da.size,ya.select=function(n){for(var t,e,r,u,i,o=[],a=-1,c=this.length;++a<c;){r=(u=this[a]).update,o.push(t=[]),t.parentNode=u.parentNode;for(var s=-1,l=u.length;++s<l;)(i=u[s])?(t.push(r[s]=e=n.call(u.parentNode,i.__data__,s,a)),e.__data__=i.__data__):t.push(null)}return x(o)},ya.insert=function(n,t){return arguments.length<2&&(t=P(this)),da.insert.call(this,n,t)},da.transition=function(){for(var n,t,e=ks||++Ls,r=[],u=Es||{time:Date.now(),ease:yu,delay:0,duration:250},i=-1,o=this.length;++i<o;){r.push(n=[]);for(var a=this[i],c=-1,s=a.length;++c<s;)(t=a[c])&&jo(t,c,e,u),n.push(t)}return Do(r,e)},da.interrupt=function(){return this.each(U)},Xo.select=function(n){var t=["string"==typeof n?ha(n,Wo):n];return t.parentNode=Jo,x([t])},Xo.selectAll=function(n){var t=Bo("string"==typeof n?ga(n,Wo):n);return t.parentNode=Jo,x([t])};var xa=Xo.select(Jo);da.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(j(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(j(n,t,e))};var Ma=Xo.map({mouseenter:"mouseover",mouseleave:"mouseout"});Ma.forEach(function(n){"on"+n in Wo&&Ma.remove(n)});var _a="onselectstart"in Wo?null:h(Jo.style,"userSelect"),ba=0;Xo.mouse=function(n){return Y(n,m())};var wa=/WebKit/.test(Go.navigator.userAgent)?-1:0;Xo.touches=function(n,t){return arguments.length<2&&(t=m().touches),t?Bo(t).map(function(t){var e=Y(n,t);return e.identifier=t.identifier,e}):[]},Xo.behavior.drag=function(){function n(){this.on("mousedown.drag",o).on("touchstart.drag",a)}function t(){return Xo.event.changedTouches[0].identifier}function e(n,t){return Xo.touches(n).filter(function(n){return n.identifier===t})[0]}function r(n,t,e,r){return function(){function o(){var n=t(l,g),e=n[0]-v[0],r=n[1]-v[1];d|=e|r,v=n,f({type:"drag",x:n[0]+c[0],y:n[1]+c[1],dx:e,dy:r})}function a(){m.on(e+"."+p,null).on(r+"."+p,null),y(d&&Xo.event.target===h),f({type:"dragend"})}var c,s=this,l=s.parentNode,f=u.of(s,arguments),h=Xo.event.target,g=n(),p=null==g?"drag":"drag-"+g,v=t(l,g),d=0,m=Xo.select(Go).on(e+"."+p,o).on(r+"."+p,a),y=O();i?(c=i.apply(s,arguments),c=[c.x-v[0],c.y-v[1]]):c=[0,0],f({type:"dragstart"})}}var u=y(n,"drag","dragstart","dragend"),i=null,o=r(g,Xo.mouse,"mousemove","mouseup"),a=r(t,e,"touchmove","touchend");return n.origin=function(t){return arguments.length?(i=t,n):i},Xo.rebind(n,u,"on")};var Sa=Math.PI,ka=2*Sa,Ea=Sa/2,Aa=1e-6,Ca=Aa*Aa,Na=Sa/180,La=180/Sa,za=Math.SQRT2,qa=2,Ta=4;Xo.interpolateZoom=function(n,t){function e(n){var t=n*y;if(m){var e=B(v),o=i/(qa*h)*(e*W(za*t+v)-$(v));return[r+o*s,u+o*l,i*e/B(za*t+v)]}return[r+n*s,u+n*l,i*Math.exp(za*t)]}var r=n[0],u=n[1],i=n[2],o=t[0],a=t[1],c=t[2],s=o-r,l=a-u,f=s*s+l*l,h=Math.sqrt(f),g=(c*c-i*i+Ta*f)/(2*i*qa*h),p=(c*c-i*i-Ta*f)/(2*c*qa*h),v=Math.log(Math.sqrt(g*g+1)-g),d=Math.log(Math.sqrt(p*p+1)-p),m=d-v,y=(m||Math.log(c/i))/za;return e.duration=1e3*y,e},Xo.behavior.zoom=function(){function n(n){n.on(A,s).on(Pa+".zoom",f).on(C,h).on("dblclick.zoom",g).on(L,l)}function t(n){return[(n[0]-S.x)/S.k,(n[1]-S.y)/S.k]}function e(n){return[n[0]*S.k+S.x,n[1]*S.k+S.y]}function r(n){S.k=Math.max(E[0],Math.min(E[1],n))}function u(n,t){t=e(t),S.x+=n[0]-t[0],S.y+=n[1]-t[1]}function i(){_&&_.domain(M.range().map(function(n){return(n-S.x)/S.k}).map(M.invert)),w&&w.domain(b.range().map(function(n){return(n-S.y)/S.k}).map(b.invert))}function o(n){n({type:"zoomstart"})}function a(n){i(),n({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function c(n){n({type:"zoomend"})}function s(){function n(){l=1,u(Xo.mouse(r),g),a(i)}function e(){f.on(C,Go===r?h:null).on(N,null),p(l&&Xo.event.target===s),c(i)}var r=this,i=z.of(r,arguments),s=Xo.event.target,l=0,f=Xo.select(Go).on(C,n).on(N,e),g=t(Xo.mouse(r)),p=O();U.call(r),o(i)}function l(){function n(){var n=Xo.touches(g);return h=S.k,n.forEach(function(n){n.identifier in v&&(v[n.identifier]=t(n))}),n}function e(){for(var t=Xo.event.changedTouches,e=0,i=t.length;i>e;++e)v[t[e].identifier]=null;var o=n(),c=Date.now();if(1===o.length){if(500>c-x){var s=o[0],l=v[s.identifier];r(2*S.k),u(s,l),d(),a(p)}x=c}else if(o.length>1){var s=o[0],f=o[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function i(){for(var n,t,e,i,o=Xo.touches(g),c=0,s=o.length;s>c;++c,i=null)if(e=o[c],i=v[e.identifier]){if(t)break;n=e,t=i}if(i){var l=(l=e[0]-n[0])*l+(l=e[1]-n[1])*l,f=m&&Math.sqrt(l/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+i[0])/2,(t[1]+i[1])/2],r(f*h)}x=null,u(n,t),a(p)}function f(){if(Xo.event.touches.length){for(var t=Xo.event.changedTouches,e=0,r=t.length;r>e;++e)delete v[t[e].identifier];for(var u in v)return void n()}b.on(M,null).on(_,null),w.on(A,s).on(L,l),k(),c(p)}var h,g=this,p=z.of(g,arguments),v={},m=0,y=Xo.event.changedTouches[0].identifier,M="touchmove.zoom-"+y,_="touchend.zoom-"+y,b=Xo.select(Go).on(M,i).on(_,f),w=Xo.select(g).on(A,null).on(L,e),k=O();U.call(g),e(),o(p)}function f(){var n=z.of(this,arguments);m?clearTimeout(m):(U.call(this),o(n)),m=setTimeout(function(){m=null,c(n)},50),d();var e=v||Xo.mouse(this);p||(p=t(e)),r(Math.pow(2,.002*Ra())*S.k),u(e,p),a(n)}function h(){p=null}function g(){var n=z.of(this,arguments),e=Xo.mouse(this),i=t(e),s=Math.log(S.k)/Math.LN2;o(n),r(Math.pow(2,Xo.event.shiftKey?Math.ceil(s)-1:Math.floor(s)+1)),u(e,i),a(n),c(n)}var p,v,m,x,M,_,b,w,S={x:0,y:0,k:1},k=[960,500],E=Da,A="mousedown.zoom",C="mousemove.zoom",N="mouseup.zoom",L="touchstart.zoom",z=y(n,"zoomstart","zoom","zoomend");return n.event=function(n){n.each(function(){var n=z.of(this,arguments),t=S;ks?Xo.select(this).transition().each("start.zoom",function(){S=this.__chart__||{x:0,y:0,k:1},o(n)}).tween("zoom:zoom",function(){var e=k[0],r=k[1],u=e/2,i=r/2,o=Xo.interpolateZoom([(u-S.x)/S.k,(i-S.y)/S.k,e/S.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=o(t),c=e/r[2];this.__chart__=S={x:u-r[0]*c,y:i-r[1]*c,k:c},a(n)}}).each("end.zoom",function(){c(n)}):(this.__chart__=S,o(n),a(n),c(n))})},n.translate=function(t){return arguments.length?(S={x:+t[0],y:+t[1],k:S.k},i(),n):[S.x,S.y]},n.scale=function(t){return arguments.length?(S={x:S.x,y:S.y,k:+t},i(),n):S.k},n.scaleExtent=function(t){return arguments.length?(E=null==t?Da:[+t[0],+t[1]],n):E},n.center=function(t){return arguments.length?(v=t&&[+t[0],+t[1]],n):v},n.size=function(t){return arguments.length?(k=t&&[+t[0],+t[1]],n):k},n.x=function(t){return arguments.length?(_=t,M=t.copy(),S={x:0,y:0,k:1},n):_},n.y=function(t){return arguments.length?(w=t,b=t.copy(),S={x:0,y:0,k:1},n):w},Xo.rebind(n,z,"on")};var Ra,Da=[0,1/0],Pa="onwheel"in Wo?(Ra=function(){return-Xo.event.deltaY*(Xo.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Wo?(Ra=function(){return Xo.event.wheelDelta},"mousewheel"):(Ra=function(){return-Xo.event.detail},"MozMousePixelScroll");G.prototype.toString=function(){return this.rgb()+""},Xo.hsl=function(n,t,e){return 1===arguments.length?n instanceof Q?K(n.h,n.s,n.l):dt(""+n,mt,K):K(+n,+t,+e)};var Ua=Q.prototype=new G;Ua.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),K(this.h,this.s,this.l/n)},Ua.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),K(this.h,this.s,n*this.l)},Ua.rgb=function(){return nt(this.h,this.s,this.l)},Xo.hcl=function(n,t,e){return 1===arguments.length?n instanceof et?tt(n.h,n.c,n.l):n instanceof it?at(n.l,n.a,n.b):at((n=yt((n=Xo.rgb(n)).r,n.g,n.b)).l,n.a,n.b):tt(+n,+t,+e)};var ja=et.prototype=new G;ja.brighter=function(n){return tt(this.h,this.c,Math.min(100,this.l+Ha*(arguments.length?n:1)))},ja.darker=function(n){return tt(this.h,this.c,Math.max(0,this.l-Ha*(arguments.length?n:1)))},ja.rgb=function(){return rt(this.h,this.c,this.l).rgb()},Xo.lab=function(n,t,e){return 1===arguments.length?n instanceof it?ut(n.l,n.a,n.b):n instanceof et?rt(n.l,n.c,n.h):yt((n=Xo.rgb(n)).r,n.g,n.b):ut(+n,+t,+e)};var Ha=18,Fa=.95047,Oa=1,Ya=1.08883,Ia=it.prototype=new G;Ia.brighter=function(n){return ut(Math.min(100,this.l+Ha*(arguments.length?n:1)),this.a,this.b)},Ia.darker=function(n){return ut(Math.max(0,this.l-Ha*(arguments.length?n:1)),this.a,this.b)},Ia.rgb=function(){return ot(this.l,this.a,this.b)},Xo.rgb=function(n,t,e){return 1===arguments.length?n instanceof pt?gt(n.r,n.g,n.b):dt(""+n,gt,nt):gt(~~n,~~t,~~e)};var Za=pt.prototype=new G;Za.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),gt(Math.min(255,~~(t/n)),Math.min(255,~~(e/n)),Math.min(255,~~(r/n)))):gt(u,u,u)},Za.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),gt(~~(n*this.r),~~(n*this.g),~~(n*this.b))},Za.hsl=function(){return mt(this.r,this.g,this.b)},Za.toString=function(){return"#"+vt(this.r)+vt(this.g)+vt(this.b)};var Va=Xo.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Va.forEach(function(n,t){Va.set(n,ft(t))}),Xo.functor=_t,Xo.xhr=wt(bt),Xo.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var o=St(n,t,null==e?r:u(e),i);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:u(n)):e},o}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),c=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(l>=s)return o;if(u)return u=!1,i;var t=l;if(34===n.charCodeAt(t)){for(var e=t;e++<s;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}l=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++l):10===r&&(u=!0),n.substring(t+1,e).replace(/""/g,'"')}for(;s>l;){var r=n.charCodeAt(l++),a=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(l)&&(++l,++a);else if(r!==c)continue;return n.substring(t,l-a)}return n.substring(t)}for(var r,u,i={},o={},a=[],s=n.length,l=0,f=0;(r=e())!==o;){for(var h=[];r!==i&&r!==o;)h.push(r),r=e();(!t||(h=t(h,f++)))&&a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new l,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(o).join(n)].concat(t.map(function(t){return u.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},Xo.csv=Xo.dsv(",","text/csv"),Xo.tsv=Xo.dsv(" ","text/tab-separated-values");var Xa,$a,Ba,Wa,Ja,Ga=Go[h(Go,"requestAnimationFrame")]||function(n){setTimeout(n,17)};Xo.timer=function(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,f:!1,n:null};$a?$a.n=i:Xa=i,$a=i,Ba||(Wa=clearTimeout(Wa),Ba=1,Ga(Et))},Xo.timer.flush=function(){At(),Ct()},Xo.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var Ka=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Lt);Xo.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=Xo.round(n,Nt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((0>=e?e+1:e-1)/3)))),Ka[8+e/3]};var Qa=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,nc=Xo.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=Xo.round(n,Nt(n,t))).toFixed(Math.max(0,Math.min(20,Nt(n*(1+1e-15),t))))}}),tc=Xo.time={},ec=Date;Tt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){rc.setUTCDate.apply(this._,arguments)},setDay:function(){rc.setUTCDay.apply(this._,arguments)},setFullYear:function(){rc.setUTCFullYear.apply(this._,arguments)},setHours:function(){rc.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){rc.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){rc.setUTCMinutes.apply(this._,arguments)},setMonth:function(){rc.setUTCMonth.apply(this._,arguments)},setSeconds:function(){rc.setUTCSeconds.apply(this._,arguments)},setTime:function(){rc.setTime.apply(this._,arguments)}};var rc=Date.prototype;tc.year=Rt(function(n){return n=tc.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),tc.years=tc.year.range,tc.years.utc=tc.year.utc.range,tc.day=Rt(function(n){var t=new ec(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),tc.days=tc.day.range,tc.days.utc=tc.day.utc.range,tc.dayOfYear=function(n){var t=tc.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=tc[n]=Rt(function(n){return(n=tc.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=tc.year(n).getDay();return Math.floor((tc.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});tc[n+"s"]=e.range,tc[n+"s"].utc=e.utc.range,tc[n+"OfYear"]=function(n){var e=tc.year(n).getDay();return Math.floor((tc.dayOfYear(n)+(e+t)%7)/7)}}),tc.week=tc.sunday,tc.weeks=tc.sunday.range,tc.weeks.utc=tc.sunday.utc.range,tc.weekOfYear=tc.sundayOfYear;var uc={"-":"",_:" ",0:"0"},ic=/^\s*\d+/,oc=/^%/;Xo.locale=function(n){return{numberFormat:zt(n),timeFormat:Pt(n)}};var ac=Xo.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Xo.format=ac.numberFormat,Xo.geo={},re.prototype={s:0,t:0,add:function(n){ue(n,this.t,cc),ue(cc.s,this.s,this),this.s?this.t+=cc.t:this.s=cc.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cc=new re;Xo.geo.stream=function(n,t){n&&sc.hasOwnProperty(n.type)?sc[n.type](n,t):ie(n,t)};var sc={Feature:function(n,t){ie(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)ie(e[r].geometry,t)}},lc={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){oe(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)oe(e[r],t,0)},Polygon:function(n,t){ae(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)ae(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)ie(e[r],t)}};Xo.geo.area=function(n){return fc=0,Xo.geo.stream(n,gc),fc};var fc,hc=new re,gc={sphere:function(){fc+=4*Sa},point:g,lineStart:g,lineEnd:g,polygonStart:function(){hc.reset(),gc.lineStart=ce},polygonEnd:function(){var n=2*hc;fc+=0>n?4*Sa+n:n,gc.lineStart=gc.lineEnd=gc.point=g}};Xo.geo.bounds=function(){function n(n,t){x.push(M=[l=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=se([t*Na,e*Na]);if(m){var u=fe(m,r),i=[u[1],-u[0],0],o=fe(i,u);pe(o),o=ve(o);var c=t-p,s=c>0?1:-1,v=o[0]*La*s,d=oa(c)>180;if(d^(v>s*p&&s*t>v)){var y=o[1]*La;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>s*p&&s*t>v)){var y=-o[1]*La;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?a(l,t)>a(l,h)&&(h=t):a(t,h)>a(l,h)&&(l=t):h>=l?(l>t&&(l=t),t>h&&(h=t)):t>p?a(l,t)>a(l,h)&&(h=t):a(t,h)>a(l,h)&&(l=t)}else n(t,e);m=r,p=t}function e(){_.point=t}function r(){M[0]=l,M[1]=h,_.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=oa(r)>180?r+(r>0?360:-360):r}else v=n,d=e;gc.point(n,e),t(n,e)}function i(){gc.lineStart()}function o(){u(v,d),gc.lineEnd(),oa(y)>Aa&&(l=-(h=180)),M[0]=l,M[1]=h,m=null}function a(n,t){return(t-=n)<0?t+360:t}function c(n,t){return n[0]-t[0]}function s(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var l,f,h,g,p,v,d,m,y,x,M,_={point:n,lineStart:e,lineEnd:r,polygonStart:function(){_.point=u,_.lineStart=i,_.lineEnd=o,y=0,gc.polygonStart()},polygonEnd:function(){gc.polygonEnd(),_.point=n,_.lineStart=e,_.lineEnd=r,0>hc?(l=-(h=180),f=-(g=90)):y>Aa?g=90:-Aa>y&&(f=-90),M[0]=l,M[1]=h -}};return function(n){g=h=-(l=f=1/0),x=[],Xo.geo.stream(n,_);var t=x.length;if(t){x.sort(c);for(var e,r=1,u=x[0],i=[u];t>r;++r)e=x[r],s(e[0],u)||s(e[1],u)?(a(u[0],e[1])>a(u[0],u[1])&&(u[1]=e[1]),a(e[0],u[1])>a(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var o,e,p=-1/0,t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(o=a(u[1],e[0]))>p&&(p=o,l=e[0],h=u[1])}return x=M=null,1/0===l||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[l,f],[h,g]]}}(),Xo.geo.centroid=function(n){pc=vc=dc=mc=yc=xc=Mc=_c=bc=wc=Sc=0,Xo.geo.stream(n,kc);var t=bc,e=wc,r=Sc,u=t*t+e*e+r*r;return Ca>u&&(t=xc,e=Mc,r=_c,Aa>vc&&(t=dc,e=mc,r=yc),u=t*t+e*e+r*r,Ca>u)?[0/0,0/0]:[Math.atan2(e,t)*La,X(r/Math.sqrt(u))*La]};var pc,vc,dc,mc,yc,xc,Mc,_c,bc,wc,Sc,kc={sphere:g,point:me,lineStart:xe,lineEnd:Me,polygonStart:function(){kc.lineStart=_e},polygonEnd:function(){kc.lineStart=xe}},Ec=Ee(be,ze,Te,[-Sa,-Sa/2]),Ac=1e9;Xo.geo.clipExtent=function(){var n,t,e,r,u,i,o={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(a){return arguments.length?(i=Pe(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),u&&(u.valid=!1,u=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(Xo.geo.conicEqualArea=function(){return je(He)}).raw=He,Xo.geo.albers=function(){return Xo.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Xo.geo.albersUsa=function(){function n(n){var i=n[0],o=n[1];return t=null,e(i,o),t||(r(i,o),t)||u(i,o),t}var t,e,r,u,i=Xo.geo.albers(),o=Xo.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=Xo.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?o:u>=.166&&.234>u&&r>=-.214&&-.115>r?a:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),o.precision(t),a.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),o.scale(.35*t),a.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var s=i.scale(),l=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[l-.455*s,f-.238*s],[l+.455*s,f+.238*s]]).stream(c).point,r=o.translate([l-.307*s,f+.201*s]).clipExtent([[l-.425*s+Aa,f+.12*s+Aa],[l-.214*s-Aa,f+.234*s-Aa]]).stream(c).point,u=a.translate([l-.205*s,f+.212*s]).clipExtent([[l-.214*s+Aa,f+.166*s+Aa],[l-.115*s-Aa,f+.234*s-Aa]]).stream(c).point,n},n.scale(1070)};var Cc,Nc,Lc,zc,qc,Tc,Rc={point:g,lineStart:g,lineEnd:g,polygonStart:function(){Nc=0,Rc.lineStart=Fe},polygonEnd:function(){Rc.lineStart=Rc.lineEnd=Rc.point=g,Cc+=oa(Nc/2)}},Dc={point:Oe,lineStart:g,lineEnd:g,polygonStart:g,polygonEnd:g},Pc={point:Ze,lineStart:Ve,lineEnd:Xe,polygonStart:function(){Pc.lineStart=$e},polygonEnd:function(){Pc.point=Ze,Pc.lineStart=Ve,Pc.lineEnd=Xe}};Xo.geo.path=function(){function n(n){return n&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),Xo.geo.stream(n,o)),i.result()}function t(){return o=null,n}var e,r,u,i,o,a=4.5;return n.area=function(n){return Cc=0,Xo.geo.stream(n,u(Rc)),Cc},n.centroid=function(n){return dc=mc=yc=xc=Mc=_c=bc=wc=Sc=0,Xo.geo.stream(n,u(Pc)),Sc?[bc/Sc,wc/Sc]:_c?[xc/_c,Mc/_c]:yc?[dc/yc,mc/yc]:[0/0,0/0]},n.bounds=function(n){return qc=Tc=-(Lc=zc=1/0),Xo.geo.stream(n,u(Dc)),[[Lc,zc],[qc,Tc]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||Je(n):bt,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new Ye:new Be(n),"function"!=typeof a&&i.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(i.pointRadius(+t),+t),n):a},n.projection(Xo.geo.albersUsa()).context(null)},Xo.geo.transform=function(n){return{stream:function(t){var e=new Ge(t);for(var r in n)e[r]=n[r];return e}}},Ge.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Xo.geo.projection=Qe,Xo.geo.projectionMutator=nr,(Xo.geo.equirectangular=function(){return Qe(er)}).raw=er.invert=er,Xo.geo.rotation=function(n){function t(t){return t=n(t[0]*Na,t[1]*Na),t[0]*=La,t[1]*=La,t}return n=ur(n[0]%360*Na,n[1]*Na,n.length>2?n[2]*Na:0),t.invert=function(t){return t=n.invert(t[0]*Na,t[1]*Na),t[0]*=La,t[1]*=La,t},t},rr.invert=er,Xo.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=ur(-n[0]*Na,-n[1]*Na,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=La,n[1]*=La}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=cr((t=+r)*Na,u*Na),n):t},n.precision=function(r){return arguments.length?(e=cr(t*Na,(u=+r)*Na),n):u},n.angle(90)},Xo.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Na,u=n[1]*Na,i=t[1]*Na,o=Math.sin(r),a=Math.cos(r),c=Math.sin(u),s=Math.cos(u),l=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*o)*e+(e=s*l-c*f*a)*e),c*l+s*f*a)},Xo.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return Xo.range(Math.ceil(i/d)*d,u,d).map(h).concat(Xo.range(Math.ceil(s/m)*m,c,m).map(g)).concat(Xo.range(Math.ceil(r/p)*p,e,p).filter(function(n){return oa(n%d)>Aa}).map(l)).concat(Xo.range(Math.ceil(a/v)*v,o,v).filter(function(n){return oa(n%m)>Aa}).map(f))}var e,r,u,i,o,a,c,s,l,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(c).slice(1),h(u).reverse().slice(1),g(s).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],s=+t[0][1],c=+t[1][1],i>u&&(t=i,i=u,u=t),s>c&&(t=s,s=c,c=t),n.precision(y)):[[i,s],[u,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(y)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,l=lr(a,o,90),f=fr(r,e,y),h=lr(s,c,90),g=fr(i,u,y),n):y},n.majorExtent([[-180,-90+Aa],[180,90-Aa]]).minorExtent([[-180,-80-Aa],[180,80+Aa]])},Xo.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=hr,u=gr;return n.distance=function(){return Xo.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},Xo.geo.interpolate=function(n,t){return pr(n[0]*Na,n[1]*Na,t[0]*Na,t[1]*Na)},Xo.geo.length=function(n){return Uc=0,Xo.geo.stream(n,jc),Uc};var Uc,jc={sphere:g,point:g,lineStart:vr,lineEnd:g,polygonStart:g,polygonEnd:g},Hc=dr(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(Xo.geo.azimuthalEqualArea=function(){return Qe(Hc)}).raw=Hc;var Fc=dr(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},bt);(Xo.geo.azimuthalEquidistant=function(){return Qe(Fc)}).raw=Fc,(Xo.geo.conicConformal=function(){return je(mr)}).raw=mr,(Xo.geo.conicEquidistant=function(){return je(yr)}).raw=yr;var Oc=dr(function(n){return 1/n},Math.atan);(Xo.geo.gnomonic=function(){return Qe(Oc)}).raw=Oc,xr.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ea]},(Xo.geo.mercator=function(){return Mr(xr)}).raw=xr;var Yc=dr(function(){return 1},Math.asin);(Xo.geo.orthographic=function(){return Qe(Yc)}).raw=Yc;var Ic=dr(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(Xo.geo.stereographic=function(){return Qe(Ic)}).raw=Ic,_r.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ea]},(Xo.geo.transverseMercator=function(){var n=Mr(_r),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[-n[1],n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},n.rotate([0,0])}).raw=_r,Xo.geom={},Xo.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=_t(e),i=_t(r),o=n.length,a=[],c=[];for(t=0;o>t;t++)a.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(a.sort(kr),t=0;o>t;t++)c.push([a[t][0],-a[t][1]]);var s=Sr(a),l=Sr(c),f=l[0]===s[0],h=l[l.length-1]===s[s.length-1],g=[];for(t=s.length-1;t>=0;--t)g.push(n[a[s[t]][2]]);for(t=+f;t<l.length-h;++t)g.push(n[a[l[t]][2]]);return g}var e=br,r=wr;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},Xo.geom.polygon=function(n){return fa(n,Zc),n};var Zc=Xo.geom.polygon.prototype=[];Zc.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},Zc.centroid=function(n){var t,e,r=-1,u=this.length,i=0,o=0,a=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=a,a=this[r],e=t[0]*a[1]-a[0]*t[1],i+=(t[0]+a[0])*e,o+=(t[1]+a[1])*e;return[i*n,o*n]},Zc.clip=function(n){for(var t,e,r,u,i,o,a=Cr(n),c=-1,s=this.length-Cr(this),l=this[s-1];++c<s;){for(t=n.slice(),n.length=0,u=this[c],i=t[(r=t.length-a)-1],e=-1;++e<r;)o=t[e],Er(o,l,u)?(Er(i,l,u)||n.push(Ar(i,o,l,u)),n.push(o)):Er(i,l,u)&&n.push(Ar(i,o,l,u)),i=o;a&&n.push(n[0]),l=u}return n};var Vc,Xc,$c,Bc,Wc,Jc=[],Gc=[];Pr.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(jr),t.length},Br.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Wr.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=Qr(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(Gr(this,e),n=e,e=n.U),e.C=!1,r.C=!0,Kr(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(Kr(this,e),n=e,e=n.U),e.C=!1,r.C=!0,Gr(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,o=n.R;if(e=i?o?Qr(o):i:o,u?u.L===n?u.L=e:u.R=e:this._=e,i&&o?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==o?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=o,o.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return n.C=!1,void 0;do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,Gr(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Kr(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,Gr(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,Kr(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Gr(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,Kr(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},Xo.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=a[0][0],u=a[0][1],i=a[1][0],o=a[1][1];return nu(e(n),a).cells.forEach(function(e,a){var c=e.edges,s=e.site,l=t[a]=c.length?c.map(function(n){var t=n.start();return[t.x,t.y]}):s.x>=r&&s.x<=i&&s.y>=u&&s.y<=o?[[r,o],[i,o],[i,u],[r,u]]:[];l.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Aa)*Aa,y:Math.round(o(n,t)/Aa)*Aa,i:t}})}var r=br,u=wr,i=r,o=u,a=Kc;return n?t(n):(t.links=function(n){return nu(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return nu(e(n)).cells.forEach(function(e,r){for(var u,i,o=e.site,a=e.edges.sort(jr),c=-1,s=a.length,l=a[s-1].edge,f=l.l===o?l.r:l.l;++c<s;)u=l,i=f,l=a[c].edge,f=l.l===o?l.r:l.l,r<i.i&&r<f.i&&eu(o,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=_t(r=n),t):r},t.y=function(n){return arguments.length?(o=_t(u=n),t):u},t.clipExtent=function(n){return arguments.length?(a=null==n?Kc:n,t):a===Kc?null:a},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):a===Kc?null:a&&a[1]},t)};var Kc=[[-1e6,-1e6],[1e6,1e6]];Xo.geom.delaunay=function(n){return Xo.geom.voronoi().triangles(n)},Xo.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,o,a){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var c=n.x,l=n.y;if(null!=c)if(oa(c-e)+oa(l-r)<.01)s(n,t,e,r,u,i,o,a);else{var f=n.point;n.x=n.y=n.point=null,s(n,f,c,l,u,i,o,a),s(n,t,e,r,u,i,o,a)}else n.x=e,n.y=r,n.point=t}else s(n,t,e,r,u,i,o,a)}function s(n,t,e,r,u,o,a,c){var s=.5*(u+a),l=.5*(o+c),f=e>=s,h=r>=l,g=(h<<1)+f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=iu()),f?u=s:a=s,h?o=l:c=l,i(n,t,e,r,u,o,a,c)}var l,f,h,g,p,v,d,m,y,x=_t(a),M=_t(c);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,o)for(g=0;p>g;++g)l=n[g],l.x<v&&(v=l.x),l.y<d&&(d=l.y),l.x>m&&(m=l.x),l.y>y&&(y=l.y),f.push(l.x),h.push(l.y);else for(g=0;p>g;++g){var _=+x(l=n[g],g),b=+M(l,g);v>_&&(v=_),d>b&&(d=b),_>m&&(m=_),b>y&&(y=b),f.push(_),h.push(b)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=iu();if(k.add=function(n){i(k,n,+x(n,++g),+M(n,g),v,d,m,y)},k.visit=function(n){ou(n,k,v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=l=null,k}var o,a=br,c=wr;return(o=arguments.length)?(a=ru,c=uu,3===o&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(a=n,i):a},i.y=function(n){return arguments.length?(c=n,i):c},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},Xo.interpolateRgb=au,Xo.interpolateObject=cu,Xo.interpolateNumber=su,Xo.interpolateString=lu;var Qc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;Xo.interpolate=fu,Xo.interpolators=[function(n,t){var e=typeof t;return("string"===e?Va.has(t)||/^(#|rgb\(|hsl\()/.test(t)?au:lu:t instanceof G?au:"object"===e?Array.isArray(t)?hu:cu:su)(n,t)}],Xo.interpolateArray=hu;var ns=function(){return bt},ts=Xo.map({linear:ns,poly:xu,quad:function(){return du},cubic:function(){return mu},sin:function(){return Mu},exp:function(){return _u},circle:function(){return bu},elastic:wu,back:Su,bounce:function(){return ku}}),es=Xo.map({"in":bt,out:pu,"in-out":vu,"out-in":function(n){return vu(pu(n))}});Xo.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.substring(0,t):n,r=t>=0?n.substring(t+1):"in";return e=ts.get(e)||ns,r=es.get(r)||bt,gu(r(e.apply(null,$o.call(arguments,1))))},Xo.interpolateHcl=Eu,Xo.interpolateHsl=Au,Xo.interpolateLab=Cu,Xo.interpolateRound=Nu,Xo.transform=function(n){var t=Wo.createElementNS(Xo.ns.prefix.svg,"g");return(Xo.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Lu(e?e.matrix:rs)})(n)},Lu.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var rs={a:1,b:0,c:0,d:1,e:0,f:0};Xo.interpolateTransform=Ru,Xo.layout={},Xo.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Uu(n[e]));return t}},Xo.layout.chord=function(){function n(){var n,s,f,h,g,p={},v=[],d=Xo.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(s=0,g=-1;++g<i;)s+=u[h][g];v.push(s),m.push(Xo.range(i)),n+=s}for(o&&d.sort(function(n,t){return o(v[n],v[t])}),a&&m.forEach(function(n,t){n.sort(function(n,e){return a(u[t][n],u[t][e])})}),n=(ka-l*i)/n,s=0,h=-1;++h<i;){for(f=s,g=-1;++g<i;){var y=d[h],x=m[y][g],M=u[y][x],_=s,b=s+=M*n;p[y+"-"+x]={index:y,subindex:x,startAngle:_,endAngle:b,value:M}}r[y]={index:y,startAngle:f,endAngle:s,value:(s-f)/n},s+=l}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&t()}function t(){e.sort(function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,o,a,c,s={},l=0;return s.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,s):u},s.padding=function(n){return arguments.length?(l=n,e=r=null,s):l},s.sortGroups=function(n){return arguments.length?(o=n,e=r=null,s):o},s.sortSubgroups=function(n){return arguments.length?(a=n,e=null,s):a},s.sortChords=function(n){return arguments.length?(c=n,e&&t(),s):c},s.chords=function(){return e||n(),e},s.groups=function(){return r||n(),r},s},Xo.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,o=t.cy-n.y,a=u-e,c=i*i+o*o;if(c>a*a/d){if(p>c){var s=t.charge/c;n.px-=i*s,n.py-=o*s}return!0}if(t.point&&c&&p>c){var s=t.pointCharge/c;n.px-=i*s,n.py-=o*s}}return!t.charge}}function t(n){n.px=Xo.event.x,n.py=Xo.event.y,a.resume()}var e,r,u,i,o,a={},c=Xo.dispatch("start","tick","end"),s=[1,1],l=.9,f=us,h=is,g=-30,p=os,v=.1,d=.64,m=[],y=[];return a.tick=function(){if((r*=.99)<.005)return c.end({type:"end",alpha:r=0}),!0;var t,e,a,f,h,p,d,x,M,_=m.length,b=y.length;for(e=0;b>e;++e)a=y[e],f=a.source,h=a.target,x=h.x-f.x,M=h.y-f.y,(p=x*x+M*M)&&(p=r*i[e]*((p=Math.sqrt(p))-u[e])/p,x*=p,M*=p,h.x-=x*(d=f.weight/(h.weight+f.weight)),h.y-=M*d,f.x+=x*(d=1-d),f.y+=M*d);if((d=r*v)&&(x=s[0]/2,M=s[1]/2,e=-1,d))for(;++e<_;)a=m[e],a.x+=(x-a.x)*d,a.y+=(M-a.y)*d;if(g)for(Zu(t=Xo.geom.quadtree(m),r,o),e=-1;++e<_;)(a=m[e]).fixed||t.visit(n(a));for(e=-1;++e<_;)a=m[e],a.fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*l,a.y-=(a.py-(a.py=a.y))*l);c.tick({type:"tick",alpha:r})},a.nodes=function(n){return arguments.length?(m=n,a):m},a.links=function(n){return arguments.length?(y=n,a):y},a.size=function(n){return arguments.length?(s=n,a):s},a.linkDistance=function(n){return arguments.length?(f="function"==typeof n?n:+n,a):f},a.distance=a.linkDistance,a.linkStrength=function(n){return arguments.length?(h="function"==typeof n?n:+n,a):h},a.friction=function(n){return arguments.length?(l=+n,a):l},a.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,a):g},a.chargeDistance=function(n){return arguments.length?(p=n*n,a):Math.sqrt(p)},a.gravity=function(n){return arguments.length?(v=+n,a):v},a.theta=function(n){return arguments.length?(d=n*n,a):Math.sqrt(d)},a.alpha=function(n){return arguments.length?(n=+n,r?r=n>0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),Xo.timer(a.tick)),a):r},a.start=function(){function n(n,r){if(!e){for(e=new Array(c),a=0;c>a;++a)e[a]=[];for(a=0;s>a;++a){var u=y[a];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var i,o=e[t],a=-1,s=o.length;++a<s;)if(!isNaN(i=o[a][n]))return i;return Math.random()*r}var t,e,r,c=m.length,l=y.length,p=s[0],v=s[1];for(t=0;c>t;++t)(r=m[t]).index=t,r.weight=0;for(t=0;l>t;++t)r=y[t],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(t=0;c>t;++t)r=m[t],isNaN(r.x)&&(r.x=n("x",p)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof f)for(t=0;l>t;++t)u[t]=+f.call(this,y[t],t);else for(t=0;l>t;++t)u[t]=f;if(i=[],"function"==typeof h)for(t=0;l>t;++t)i[t]=+h.call(this,y[t],t);else for(t=0;l>t;++t)i[t]=h;if(o=[],"function"==typeof g)for(t=0;c>t;++t)o[t]=+g.call(this,m[t],t);else for(t=0;c>t;++t)o[t]=g;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=Xo.behavior.drag().origin(bt).on("dragstart.force",Fu).on("drag.force",t).on("dragend.force",Ou)),arguments.length?(this.on("mouseover.force",Yu).on("mouseout.force",Iu).call(e),void 0):e},Xo.rebind(a,c,"on")};var us=20,is=1,os=1/0;Xo.layout.hierarchy=function(){function n(t,o,a){var c=u.call(e,t,o);if(t.depth=o,a.push(t),c&&(s=c.length)){for(var s,l,f=-1,h=t.children=new Array(s),g=0,p=o+1;++f<s;)l=h[f]=n(c[f],p,a),l.parent=t,g+=l.value;r&&h.sort(r),i&&(t.value=g)}else delete t.children,i&&(t.value=+i.call(e,t,o)||0);return t}function t(n,r){var u=n.children,o=0;if(u&&(a=u.length))for(var a,c=-1,s=r+1;++c<a;)o+=t(u[c],s);else i&&(o=+i.call(e,n,r)||0);return i&&(n.value=o),o}function e(t){var e=[];return n(t,0,e),e}var r=Bu,u=Xu,i=$u;return e.sort=function(n){return arguments.length?(r=n,e):r},e.children=function(n){return arguments.length?(u=n,e):u},e.value=function(n){return arguments.length?(i=n,e):i},e.revalue=function(n){return t(n,0),n},e},Xo.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(o=i.length)){var o,a,c,s=-1;for(r=t.value?r/t.value:0;++s<o;)n(a=i[s],e,c=a.value*r,u),e+=c}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var o=r.call(this,e,i);return n(o[0],0,u[0],u[1]/t(o[0])),o}var r=Xo.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},Vu(e,r)},Xo.layout.pie=function(){function n(i){var o=i.map(function(e,r){return+t.call(n,e,r)}),a=+("function"==typeof r?r.apply(this,arguments):r),c=(("function"==typeof u?u.apply(this,arguments):u)-a)/Xo.sum(o),s=Xo.range(i.length);null!=e&&s.sort(e===as?function(n,t){return o[t]-o[n]}:function(n,t){return e(i[n],i[t])});var l=[];return s.forEach(function(n){var t;l[n]={data:i[n],value:t=o[n],startAngle:a,endAngle:a+=t*c}}),l}var t=Number,e=as,r=0,u=ka;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n};var as={};Xo.layout.stack=function(){function n(a,c){var s=a.map(function(e,r){return t.call(n,e,r)}),l=s.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),o.call(n,t,e)]})}),f=e.call(n,l,c);s=Xo.permute(s,f),l=Xo.permute(l,f);var h,g,p,v=r.call(n,l,c),d=s.length,m=s[0].length;for(g=0;m>g;++g)for(u.call(n,s[0][g],p=v[g],l[0][g][1]),h=1;d>h;++h)u.call(n,s[h][g],p+=l[h-1][g][1],l[h][g][1]);return a}var t=bt,e=Qu,r=ni,u=Ku,i=Ju,o=Gu;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:cs.get(t)||Qu,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:ss.get(t)||ni,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(u=t,n):u},n};var cs=Xo.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(ti),i=n.map(ei),o=Xo.range(r).sort(function(n,t){return u[n]-u[t]}),a=0,c=0,s=[],l=[];for(t=0;r>t;++t)e=o[t],c>a?(a+=i[e],s.push(e)):(c+=i[e],l.push(e));return l.reverse().concat(s)},reverse:function(n){return Xo.range(n.length).reverse()},"default":Qu}),ss=Xo.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,o=[],a=0,c=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;i>e;++e)c[e]=(a-o[e])/2;return c},wiggle:function(n){var t,e,r,u,i,o,a,c,s,l=n.length,f=n[0],h=f.length,g=[];for(g[0]=c=s=0,e=1;h>e;++e){for(t=0,u=0;l>t;++t)u+=n[t][e][1];for(t=0,i=0,a=f[e][0]-f[e-1][0];l>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;i+=o*n[t][e][1]}g[e]=c-=u?i/u*a:0,s>c&&(s=c)}for(e=0;h>e;++e)g[e]-=s;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,o=1/u,a=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=o}for(e=0;i>e;++e)a[e]=0;return a},zero:ni});Xo.layout.histogram=function(){function n(n,i){for(var o,a,c=[],s=n.map(e,this),l=r.call(this,s,i),f=u.call(this,l,s,i),i=-1,h=s.length,g=f.length-1,p=t?1:1/h;++i<g;)o=c[i]=[],o.dx=f[i+1]-(o.x=f[i]),o.y=0;if(g>0)for(i=-1;++i<h;)a=s[i],a>=l[0]&&a<=l[1]&&(o=c[Xo.bisect(f,a,1,g)-1],o.y+=p,o.push(n[i]));return c}var t=!0,e=Number,r=oi,u=ui;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=_t(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return ii(n,t)}:_t(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},Xo.layout.tree=function(){function n(n,i){function o(n,t){var r=n.children,u=n._tree;if(r&&(i=r.length)){for(var i,a,s,l=r[0],f=l,h=-1;++h<i;)s=r[h],o(s,a),f=c(s,a,f),a=s;vi(n);var g=.5*(l._tree.prelim+s._tree.prelim);t?(u.prelim=t._tree.prelim+e(n,t),u.mod=u.prelim-g):u.prelim=g}else t&&(u.prelim=t._tree.prelim+e(n,t))}function a(n,t){n.x=n._tree.prelim+t;var e=n.children;if(e&&(r=e.length)){var r,u=-1;for(t+=n._tree.mod;++u<r;)a(e[u],t)}}function c(n,t,r){if(t){for(var u,i=n,o=n,a=t,c=n.parent.children[0],s=i._tree.mod,l=o._tree.mod,f=a._tree.mod,h=c._tree.mod;a=si(a),i=ci(i),a&&i;)c=ci(c),o=si(o),o._tree.ancestor=n,u=a._tree.prelim+f-i._tree.prelim-s+e(a,i),u>0&&(di(mi(a,n,r),n,u),s+=u,l+=u),f+=a._tree.mod,s+=i._tree.mod,h+=c._tree.mod,l+=o._tree.mod;a&&!si(o)&&(o._tree.thread=a,o._tree.mod+=f-l),i&&!ci(c)&&(c._tree.thread=i,c._tree.mod+=s-h,r=n)}return r}var s=t.call(this,n,i),l=s[0];pi(l,function(n,t){n._tree={ancestor:n,prelim:0,mod:0,change:0,shift:0,number:t?t._tree.number+1:0}}),o(l),a(l,-l._tree.prelim);var f=li(l,hi),h=li(l,fi),g=li(l,gi),p=f.x-e(f,h)/2,v=h.x+e(h,f)/2,d=g.depth||1;return pi(l,u?function(n){n.x*=r[0],n.y=n.depth*r[1],delete n._tree}:function(n){n.x=(n.x-p)/(v-p)*r[0],n.y=n.depth/d*r[1],delete n._tree}),s}var t=Xo.layout.hierarchy().sort(null).value(null),e=ai,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},Vu(n,t)},Xo.layout.pack=function(){function n(n,i){var o=e.call(this,n,i),a=o[0],c=u[0],s=u[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,pi(a,function(n){n.r=+l(n.value)}),pi(a,bi),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/s))/2;pi(a,function(n){n.r+=f}),pi(a,bi),pi(a,function(n){n.r-=f})}return ki(a,c/2,s/2,t?1:1/Math.max(2*a.r/c,2*a.r/s)),o}var t,e=Xo.layout.hierarchy().sort(yi),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},Vu(n,e)},Xo.layout.cluster=function(){function n(n,i){var o,a=t.call(this,n,i),c=a[0],s=0;pi(c,function(n){var t=n.children;t&&t.length?(n.x=Ci(t),n.y=Ai(t)):(n.x=o?s+=e(n,o):0,n.y=0,o=n)});var l=Ni(c),f=Li(c),h=l.x-e(l,f)/2,g=f.x+e(f,l)/2;return pi(c,u?function(n){n.x=(n.x-c.x)*r[0],n.y=(c.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(c.y?n.y/c.y:1))*r[1]}),a}var t=Xo.layout.hierarchy().sort(null).value(null),e=ai,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},Vu(n,t)},Xo.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var o,a,c,s=f(e),l=[],h=i.slice(),p=1/0,v="slice"===g?s.dx:"dice"===g?s.dy:"slice-dice"===g?1&e.depth?s.dy:s.dx:Math.min(s.dx,s.dy);for(n(h,s.dx*s.dy/e.value),l.area=0;(c=h.length)>0;)l.push(o=h[c-1]),l.area+=o.area,"squarify"!==g||(a=r(l,v))<=p?(h.pop(),p=a):(l.area-=l.pop().area,u(l,v,s,!1),v=Math.min(s.dx,s.dy),l.length=l.area=0,p=1/0);l.length&&(u(l,v,s,!0),l.length=l.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,o=f(t),a=r.slice(),c=[];for(n(a,o.dx*o.dy/t.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,o=-1,a=n.length;++o<a;)(e=n[o].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,o=n.length,a=e.x,s=e.y,l=t?c(n.area/t):0;if(t==e.dx){for((r||l>e.dy)&&(l=e.dy);++i<o;)u=n[i],u.x=a,u.y=s,u.dy=l,a+=u.dx=Math.min(e.x+e.dx-a,l?c(u.area/l):0);u.z=!0,u.dx+=e.x+e.dx-a,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++i<o;)u=n[i],u.x=a,u.y=s,u.dx=l,s+=u.dy=Math.min(e.y+e.dy-s,l?c(u.area/l):0);u.z=!1,u.dy+=e.y+e.dy-s,e.x+=l,e.dx-=l}}function i(r){var u=o||a(r),i=u[0];return i.x=0,i.y=0,i.dx=s[0],i.dy=s[1],o&&a.revalue(i),n([i],i.dx*i.dy/i.value),(o?e:t)(i),h&&(o=u),u}var o,a=Xo.layout.hierarchy(),c=Math.round,s=[1,1],l=null,f=zi,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(s=n,i):s},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?zi(t):qi(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return qi(t,n)}if(!arguments.length)return l;var r;return f=null==(l=n)?zi:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(c=n?Math.round:Number,i):c!=Number},i.sticky=function(n){return arguments.length?(h=n,o=null,i):h},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},Vu(i,a)},Xo.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=Xo.random.normal.apply(Xo,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=Xo.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},Xo.scale={};var ls={floor:bt,ceil:bt};Xo.scale.linear=function(){return Hi([0,1],[0,1],fu,!1)};var fs={s:1,g:1,p:1,r:1,e:1};Xo.scale.log=function(){return $i(Xo.scale.linear().domain([0,1]),10,!0,[1,10])};var hs=Xo.format(".0e"),gs={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};Xo.scale.pow=function(){return Bi(Xo.scale.linear(),1,[0,1])},Xo.scale.sqrt=function(){return Xo.scale.pow().exponent(.5)},Xo.scale.ordinal=function(){return Ji([],{t:"range",a:[[]]})},Xo.scale.category10=function(){return Xo.scale.ordinal().range(ps)},Xo.scale.category20=function(){return Xo.scale.ordinal().range(vs)},Xo.scale.category20b=function(){return Xo.scale.ordinal().range(ds)},Xo.scale.category20c=function(){return Xo.scale.ordinal().range(ms)};var ps=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ht),vs=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ht),ds=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ht),ms=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ht);Xo.scale.quantile=function(){return Gi([],[]) -},Xo.scale.quantize=function(){return Ki(0,1,[0,1])},Xo.scale.threshold=function(){return Qi([.5],[0,1])},Xo.scale.identity=function(){return no([0,1])},Xo.svg={},Xo.svg.arc=function(){function n(){var n=t.apply(this,arguments),i=e.apply(this,arguments),o=r.apply(this,arguments)+ys,a=u.apply(this,arguments)+ys,c=(o>a&&(c=o,o=a,a=c),a-o),s=Sa>c?"0":"1",l=Math.cos(o),f=Math.sin(o),h=Math.cos(a),g=Math.sin(a);return c>=xs?n?"M0,"+i+"A"+i+","+i+" 0 1,1 0,"+-i+"A"+i+","+i+" 0 1,1 0,"+i+"M0,"+n+"A"+n+","+n+" 0 1,0 0,"+-n+"A"+n+","+n+" 0 1,0 0,"+n+"Z":"M0,"+i+"A"+i+","+i+" 0 1,1 0,"+-i+"A"+i+","+i+" 0 1,1 0,"+i+"Z":n?"M"+i*l+","+i*f+"A"+i+","+i+" 0 "+s+",1 "+i*h+","+i*g+"L"+n*h+","+n*g+"A"+n+","+n+" 0 "+s+",0 "+n*l+","+n*f+"Z":"M"+i*l+","+i*f+"A"+i+","+i+" 0 "+s+",1 "+i*h+","+i*g+"L0,0"+"Z"}var t=to,e=eo,r=ro,u=uo;return n.innerRadius=function(e){return arguments.length?(t=_t(e),n):t},n.outerRadius=function(t){return arguments.length?(e=_t(t),n):e},n.startAngle=function(t){return arguments.length?(r=_t(t),n):r},n.endAngle=function(t){return arguments.length?(u=_t(t),n):u},n.centroid=function(){var n=(t.apply(this,arguments)+e.apply(this,arguments))/2,i=(r.apply(this,arguments)+u.apply(this,arguments))/2+ys;return[Math.cos(i)*n,Math.sin(i)*n]},n};var ys=-Ea,xs=ka-Aa;Xo.svg.line=function(){return io(bt)};var Ms=Xo.map({linear:oo,"linear-closed":ao,step:co,"step-before":so,"step-after":lo,basis:mo,"basis-open":yo,"basis-closed":xo,bundle:Mo,cardinal:go,"cardinal-open":fo,"cardinal-closed":ho,monotone:Eo});Ms.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var _s=[0,2/3,1/3,0],bs=[0,1/3,2/3,0],ws=[0,1/6,2/3,1/6];Xo.svg.line.radial=function(){var n=io(Ao);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},so.reverse=lo,lo.reverse=so,Xo.svg.area=function(){return Co(bt)},Xo.svg.area.radial=function(){var n=Co(Ao);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},Xo.svg.chord=function(){function n(n,a){var c=t(this,i,n,a),s=t(this,o,n,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,s)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,s.r,s.p0)+r(s.r,s.p1,s.a1-s.a0)+u(s.r,s.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=a.call(n,u,r),o=c.call(n,u,r)+ys,l=s.call(n,u,r)+ys;return{r:i,a0:o,a1:l,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(l),i*Math.sin(l)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Sa)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=hr,o=gr,a=No,c=ro,s=uo;return n.radius=function(t){return arguments.length?(a=_t(t),n):a},n.source=function(t){return arguments.length?(i=_t(t),n):i},n.target=function(t){return arguments.length?(o=_t(t),n):o},n.startAngle=function(t){return arguments.length?(c=_t(t),n):c},n.endAngle=function(t){return arguments.length?(s=_t(t),n):s},n},Xo.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),o=e.call(this,n,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=hr,e=gr,r=Lo;return n.source=function(e){return arguments.length?(t=_t(e),n):t},n.target=function(t){return arguments.length?(e=_t(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},Xo.svg.diagonal.radial=function(){var n=Xo.svg.diagonal(),t=Lo,e=n.projection;return n.projection=function(n){return arguments.length?e(zo(t=n)):t},n},Xo.svg.symbol=function(){function n(n,r){return(Ss.get(t.call(this,n,r))||Ro)(e.call(this,n,r))}var t=To,e=qo;return n.type=function(e){return arguments.length?(t=_t(e),n):t},n.size=function(t){return arguments.length?(e=_t(t),n):e},n};var Ss=Xo.map({circle:Ro,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Cs)),e=t*Cs;return"M0,"+-t+"L"+e+",0"+" 0,"+t+" "+-e+",0"+"Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/As),e=t*As/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/As),e=t*As/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});Xo.svg.symbolTypes=Ss.keys();var ks,Es,As=Math.sqrt(3),Cs=Math.tan(30*Na),Ns=[],Ls=0;Ns.call=da.call,Ns.empty=da.empty,Ns.node=da.node,Ns.size=da.size,Xo.transition=function(n){return arguments.length?ks?n.transition():n:xa.transition()},Xo.transition.prototype=Ns,Ns.select=function(n){var t,e,r,u=this.id,i=[];n=M(n);for(var o=-1,a=this.length;++o<a;){i.push(t=[]);for(var c=this[o],s=-1,l=c.length;++s<l;)(r=c[s])&&(e=n.call(r,r.__data__,s,o))?("__data__"in r&&(e.__data__=r.__data__),jo(e,s,u,r.__transition__[u]),t.push(e)):t.push(null)}return Do(i,u)},Ns.selectAll=function(n){var t,e,r,u,i,o=this.id,a=[];n=_(n);for(var c=-1,s=this.length;++c<s;)for(var l=this[c],f=-1,h=l.length;++f<h;)if(r=l[f]){i=r.__transition__[o],e=n.call(r,r.__data__,f,c),a.push(t=[]);for(var g=-1,p=e.length;++g<p;)(u=e[g])&&jo(u,g,o,i),t.push(u)}return Do(a,o)},Ns.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=q(n));for(var i=0,o=this.length;o>i;i++){u.push(t=[]);for(var e=this[i],a=0,c=e.length;c>a;a++)(r=e[a])&&n.call(r,r.__data__,a,i)&&t.push(r)}return Do(u,this.id)},Ns.tween=function(n,t){var e=this.id;return arguments.length<2?this.node().__transition__[e].tween.get(n):R(this,null==t?function(t){t.__transition__[e].tween.remove(n)}:function(r){r.__transition__[e].tween.set(n,t)})},Ns.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?Ru:fu,a=Xo.ns.qualify(n);return Po(this,"attr."+n,t,a.local?i:u)},Ns.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=Xo.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Ns.style=function(n,t,e){function r(){this.style.removeProperty(n)}function u(t){return null==t?r:(t+="",function(){var r,u=Go.getComputedStyle(this,null).getPropertyValue(n);return u!==t&&(r=fu(u,t),function(t){this.style.setProperty(n,r(t),e)})})}var i=arguments.length;if(3>i){if("string"!=typeof n){2>i&&(t="");for(e in n)this.style(e,n[e],t);return this}e=""}return Po(this,"style."+n,t,u)},Ns.styleTween=function(n,t,e){function r(r,u){var i=t.call(this,r,u,Go.getComputedStyle(this,null).getPropertyValue(n));return i&&function(t){this.style.setProperty(n,i(t),e)}}return arguments.length<3&&(e=""),this.tween("style."+n,r)},Ns.text=function(n){return Po(this,"text",n,Uo)},Ns.remove=function(){return this.each("end.transition",function(){var n;this.__transition__.count<2&&(n=this.parentNode)&&n.removeChild(this)})},Ns.ease=function(n){var t=this.id;return arguments.length<1?this.node().__transition__[t].ease:("function"!=typeof n&&(n=Xo.ease.apply(Xo,arguments)),R(this,function(e){e.__transition__[t].ease=n}))},Ns.delay=function(n){var t=this.id;return R(this,"function"==typeof n?function(e,r,u){e.__transition__[t].delay=+n.call(e,e.__data__,r,u)}:(n=+n,function(e){e.__transition__[t].delay=n}))},Ns.duration=function(n){var t=this.id;return R(this,"function"==typeof n?function(e,r,u){e.__transition__[t].duration=Math.max(1,n.call(e,e.__data__,r,u))}:(n=Math.max(1,n),function(e){e.__transition__[t].duration=n}))},Ns.each=function(n,t){var e=this.id;if(arguments.length<2){var r=Es,u=ks;ks=e,R(this,function(t,r,u){Es=t.__transition__[e],n.call(t,t.__data__,r,u)}),Es=r,ks=u}else R(this,function(r){var u=r.__transition__[e];(u.event||(u.event=Xo.dispatch("start","end"))).on(n,t)});return this},Ns.transition=function(){for(var n,t,e,r,u=this.id,i=++Ls,o=[],a=0,c=this.length;c>a;a++){o.push(n=[]);for(var t=this[a],s=0,l=t.length;l>s;s++)(e=t[s])&&(r=Object.create(e.__transition__[u]),r.delay+=r.duration,jo(e,s,i,r)),n.push(e)}return Do(o,i)},Xo.svg.axis=function(){function n(n){n.each(function(){var n,s=Xo.select(this),l=this.__chart__||e,f=this.__chart__=e.copy(),h=null==c?f.ticks?f.ticks.apply(f,a):f.domain():c,g=null==t?f.tickFormat?f.tickFormat.apply(f,a):bt:t,p=s.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Aa),d=Xo.transition(p.exit()).style("opacity",Aa).remove(),m=Xo.transition(p).style("opacity",1),y=Ri(f),x=s.selectAll(".domain").data([0]),M=(x.enter().append("path").attr("class","domain"),Xo.transition(x));v.append("line"),v.append("text");var _=v.select("line"),b=m.select("line"),w=p.select("text").text(g),S=v.select("text"),k=m.select("text");switch(r){case"bottom":n=Ho,_.attr("y2",u),S.attr("y",Math.max(u,0)+o),b.attr("x2",0).attr("y2",u),k.attr("x",0).attr("y",Math.max(u,0)+o),w.attr("dy",".71em").style("text-anchor","middle"),M.attr("d","M"+y[0]+","+i+"V0H"+y[1]+"V"+i);break;case"top":n=Ho,_.attr("y2",-u),S.attr("y",-(Math.max(u,0)+o)),b.attr("x2",0).attr("y2",-u),k.attr("x",0).attr("y",-(Math.max(u,0)+o)),w.attr("dy","0em").style("text-anchor","middle"),M.attr("d","M"+y[0]+","+-i+"V0H"+y[1]+"V"+-i);break;case"left":n=Fo,_.attr("x2",-u),S.attr("x",-(Math.max(u,0)+o)),b.attr("x2",-u).attr("y2",0),k.attr("x",-(Math.max(u,0)+o)).attr("y",0),w.attr("dy",".32em").style("text-anchor","end"),M.attr("d","M"+-i+","+y[0]+"H0V"+y[1]+"H"+-i);break;case"right":n=Fo,_.attr("x2",u),S.attr("x",Math.max(u,0)+o),b.attr("x2",u).attr("y2",0),k.attr("x",Math.max(u,0)+o).attr("y",0),w.attr("dy",".32em").style("text-anchor","start"),M.attr("d","M"+i+","+y[0]+"H0V"+y[1]+"H"+i)}if(f.rangeBand){var E=f,A=E.rangeBand()/2;l=f=function(n){return E(n)+A}}else l.rangeBand?l=f:d.call(n,f);v.call(n,l),m.call(n,f)})}var t,e=Xo.scale.linear(),r=zs,u=6,i=6,o=3,a=[10],c=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in qs?t+"":zs,n):r},n.ticks=function(){return arguments.length?(a=arguments,n):a},n.tickValues=function(t){return arguments.length?(c=t,n):c},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var zs="bottom",qs={top:1,right:1,bottom:1,left:1};Xo.svg.brush=function(){function n(i){i.each(function(){var i=Xo.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=i.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=i.selectAll(".resize").data(p,bt);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Ts[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var l,f=Xo.transition(i),h=Xo.transition(o);c&&(l=Ri(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),e(f)),s&&(l=Ri(s),h.attr("y",l[0]).attr("height",l[1]-l[0]),r(f)),t(f)})}function t(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+l[+/e$/.test(n)]+","+f[+/^s/.test(n)]+")"})}function e(n){n.select(".extent").attr("x",l[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(n){n.select(".extent").attr("y",f[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function u(){function u(){32==Xo.event.keyCode&&(C||(x=null,L[0]-=l[1],L[1]-=f[1],C=2),d())}function p(){32==Xo.event.keyCode&&2==C&&(L[0]+=l[1],L[1]+=f[1],C=0,d())}function v(){var n=Xo.mouse(_),u=!1;M&&(n[0]+=M[0],n[1]+=M[1]),C||(Xo.event.altKey?(x||(x=[(l[0]+l[1])/2,(f[0]+f[1])/2]),L[0]=l[+(n[0]<x[0])],L[1]=f[+(n[1]<x[1])]):x=null),E&&m(n,c,0)&&(e(S),u=!0),A&&m(n,s,1)&&(r(S),u=!0),u&&(t(S),w({type:"brush",mode:C?"move":"resize"}))}function m(n,t,e){var r,u,a=Ri(t),c=a[0],s=a[1],p=L[e],v=e?f:l,d=v[1]-v[0];return C&&(c-=p,s-=d+p),r=(e?g:h)?Math.max(c,Math.min(s,n[e])):n[e],C?u=(r+=p)+d:(x&&(p=Math.max(c,Math.min(s,2*x[e]-r))),r>p?(u=r,r=p):u=p),v[0]!=r||v[1]!=u?(e?o=null:i=null,v[0]=r,v[1]=u,!0):void 0}function y(){v(),S.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),Xo.select("body").style("cursor",null),z.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),N(),w({type:"brushend"})}var x,M,_=this,b=Xo.select(Xo.event.target),w=a.of(_,arguments),S=Xo.select(_),k=b.datum(),E=!/^(n|s)$/.test(k)&&c,A=!/^(e|w)$/.test(k)&&s,C=b.classed("extent"),N=O(),L=Xo.mouse(_),z=Xo.select(Go).on("keydown.brush",u).on("keyup.brush",p);if(Xo.event.changedTouches?z.on("touchmove.brush",v).on("touchend.brush",y):z.on("mousemove.brush",v).on("mouseup.brush",y),S.interrupt().selectAll("*").interrupt(),C)L[0]=l[0]-L[0],L[1]=f[0]-L[1];else if(k){var q=+/w$/.test(k),T=+/^n/.test(k);M=[l[1-q]-L[0],f[1-T]-L[1]],L[0]=l[q],L[1]=f[T]}else Xo.event.altKey&&(x=L.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),Xo.select("body").style("cursor",b.style("cursor")),w({type:"brushstart"}),v()}var i,o,a=y(n,"brushstart","brush","brushend"),c=null,s=null,l=[0,0],f=[0,0],h=!0,g=!0,p=Rs[0];return n.event=function(n){n.each(function(){var n=a.of(this,arguments),t={x:l,y:f,i:i,j:o},e=this.__chart__||t;this.__chart__=t,ks?Xo.select(this).transition().each("start.brush",function(){i=e.i,o=e.j,l=e.x,f=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=hu(l,t.x),r=hu(f,t.y);return i=o=null,function(u){l=t.x=e(u),f=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){i=t.i,o=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,p=Rs[!c<<1|!s],n):c},n.y=function(t){return arguments.length?(s=t,p=Rs[!c<<1|!s],n):s},n.clamp=function(t){return arguments.length?(c&&s?(h=!!t[0],g=!!t[1]):c?h=!!t:s&&(g=!!t),n):c&&s?[h,g]:c?h:s?g:null},n.extent=function(t){var e,r,u,a,h;return arguments.length?(c&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),i=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(h=e,e=r,r=h),(e!=l[0]||r!=l[1])&&(l=[e,r])),s&&(u=t[0],a=t[1],c&&(u=u[1],a=a[1]),o=[u,a],s.invert&&(u=s(u),a=s(a)),u>a&&(h=u,u=a,a=h),(u!=f[0]||a!=f[1])&&(f=[u,a])),n):(c&&(i?(e=i[0],r=i[1]):(e=l[0],r=l[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(h=e,e=r,r=h))),s&&(o?(u=o[0],a=o[1]):(u=f[0],a=f[1],s.invert&&(u=s.invert(u),a=s.invert(a)),u>a&&(h=u,u=a,a=h))),c&&s?[[e,u],[r,a]]:c?[e,r]:s&&[u,a])},n.clear=function(){return n.empty()||(l=[0,0],f=[0,0],i=o=null),n},n.empty=function(){return!!c&&l[0]==l[1]||!!s&&f[0]==f[1]},Xo.rebind(n,a,"on")};var Ts={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Rs=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ds=tc.format=ac.timeFormat,Ps=Ds.utc,Us=Ps("%Y-%m-%dT%H:%M:%S.%LZ");Ds.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Oo:Us,Oo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Oo.toString=Us.toString,tc.second=Rt(function(n){return new ec(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),tc.seconds=tc.second.range,tc.seconds.utc=tc.second.utc.range,tc.minute=Rt(function(n){return new ec(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),tc.minutes=tc.minute.range,tc.minutes.utc=tc.minute.utc.range,tc.hour=Rt(function(n){var t=n.getTimezoneOffset()/60;return new ec(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),tc.hours=tc.hour.range,tc.hours.utc=tc.hour.utc.range,tc.month=Rt(function(n){return n=tc.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),tc.months=tc.month.range,tc.months.utc=tc.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Hs=[[tc.second,1],[tc.second,5],[tc.second,15],[tc.second,30],[tc.minute,1],[tc.minute,5],[tc.minute,15],[tc.minute,30],[tc.hour,1],[tc.hour,3],[tc.hour,6],[tc.hour,12],[tc.day,1],[tc.day,2],[tc.week,1],[tc.month,1],[tc.month,3],[tc.year,1]],Fs=Ds.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",be]]),Os={range:function(n,t,e){return Xo.range(+n,+t,e).map(Io)},floor:bt,ceil:bt};Hs.year=tc.year,tc.scale=function(){return Yo(Xo.scale.linear(),Hs,Fs)};var Ys=Hs.map(function(n){return[n[0].utc,n[1]]}),Is=Ps.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",be]]);Ys.year=tc.year.utc,tc.scale.utc=function(){return Yo(Xo.scale.linear(),Ys,Is)},Xo.text=wt(function(n){return n.responseText}),Xo.json=function(n,t){return St(n,"application/json",Zo,t)},Xo.html=function(n,t){return St(n,"text/html",Vo,t)},Xo.xml=wt(function(n){return n.responseXML}),"function"==typeof define&&define.amd?define(Xo):"object"==typeof module&&module.exports?module.exports=Xo:this.d3=Xo}(); \ No newline at end of file diff --git a/themes/blueprint/js/d3_license b/themes/blueprint/js/d3_license deleted file mode 100644 index ef77418668b6b7b5d31f22a79dee139c50fdabfb..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/d3_license +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2010-2014, Michael Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* The name Michael Bostock may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/themes/blueprint/js/embedGBS.js b/themes/blueprint/js/embedGBS.js deleted file mode 100644 index ae81464ebeed323816e8dcb0e1ea3296bf22fbc7..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/embedGBS.js +++ /dev/null @@ -1,14 +0,0 @@ -/*global getBibKeyString, google */ - -// we don't need to wait for dom ready since lang is in the dom root -var lang = document.documentElement.getAttribute('lang'); -google.load("books", "0", {"language":lang}); - -function initialize() { - var bibkeys = getBibKeyString().split(/\s+/); - var viewer = new google.books.DefaultViewer(document.getElementById('gbsViewer')); - viewer.load(bibkeys); -} - -google.setOnLoadCallback(initialize); - diff --git a/themes/blueprint/js/feedback.js b/themes/blueprint/js/feedback.js deleted file mode 100644 index a9dbc84fc9720cfeeb0c5c067e4cd5e96fcc596b..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/feedback.js +++ /dev/null @@ -1,62 +0,0 @@ -/*global alert,path*/ - -// This overrides settings in jquery.tabSlideOut.v2.0.js -$(document).ready(function(){ - $('.slide-out-div').tabSlideOut({ - pathToTabImage: path + '/themes/blueprint/images/trans.png', - imageHeight: '86px', - imageWidth: '30px', - handleOffset: '-1', - speed: '300', - topPos: '150px' - }); -}); - -// This is the ajax for the feedback -$(document).ready(function(){ - $('#contact_form label.error').hide(); - $("div#slideOut").removeClass('slideOutForm'); - $('input.text-input').addClass('feedbackDeselect'); - $('input.text-input').focus(function(){ - $(this).removeClass('feedbackDeselect').addClass('feedbackSelect'); - }); - $('input.text-input').blur(function(){ - $(this).removeClass('feedbackSelect').addClass('feedbackDeselect'); - }); - - $('#contact_form form').validate(); - $('#contact_form form').unbind('submit').submit(function() { - // validate and process form here - var name = $("input#name"); - var email = $("input#email"); - var comments = $("textarea#comments"); - if (!$(this).valid() || !name.valid() || !email.valid() || !comments.valid()) { return false; } - - var dataString = 'name='+ encodeURIComponent(name.val()) + '&email=' - + encodeURIComponent(email.val()) + '&comments=' + encodeURIComponent(comments.val()); - - // Grabs hidden inputs - var formSuccess = $("input#formSuccess").val(); - var feedbackSuccess = $("input#feedbackSuccess").val(); - var feedbackFailure = $("input#feedbackFailure").val(); - - $.ajax({ - type: "POST", - url: $(this).attr('action'), - data: dataString, - success: function() { - $('#contact_form').html("<div id='message'></div>"); - $('#message').html("<p class=\"feedbackHeader\"><b>"+formSuccess+"</b></p> <br />") - .append("<p>"+feedbackSuccess+"</p>") - .hide() - .fadeIn(1500, function() { - $('#message'); - }); - }, - error: function() { - alert(feedbackFailure); - } - }); - return false; - }); -}); diff --git a/themes/blueprint/js/flot/LICENSE.txt b/themes/blueprint/js/flot/LICENSE.txt deleted file mode 100644 index 07d5b2094d15dc5a9e0f62d320a6837375b31c3e..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/flot/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2007-2009 IOLA and Ole Laursen - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/blueprint/js/flot/excanvas.min.js b/themes/blueprint/js/flot/excanvas.min.js deleted file mode 100644 index 988f934a1833e5215838df358dafc4a6ebba8def..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/flot/excanvas.min.js +++ /dev/null @@ -1 +0,0 @@ -if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=z.round;var J=z.sin;var U=z.cos;var b=z.abs;var k=z.sqrt;var D=10;var F=D/2;function T(){return this.context_||(this.context_=new W(this))}var O=Array.prototype.slice;function G(i,j,m){var Z=O.call(arguments,2);return function(){return i.apply(j,Z.concat(O.call(arguments)))}}function AD(Z){return String(Z).replace(/&/g,"&").replace(/"/g,""")}function r(i){if(!i.namespaces.g_vml_){i.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!i.namespaces.g_o_){i.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!i.styleSheets.ex_canvas_){var Z=i.createStyleSheet();Z.owningElement.id="ex_canvas_";Z.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}r(document);var E={init:function(Z){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var i=Z||document;i.createElement("canvas");i.attachEvent("onreadystatechange",G(this.init_,this,i))}},init_:function(m){var j=m.getElementsByTagName("canvas");for(var Z=0;Z<j.length;Z++){this.initElement(j[Z])}},initElement:function(i){if(!i.getContext){i.getContext=T;r(i.ownerDocument);i.innerHTML="";i.attachEvent("onpropertychange",S);i.attachEvent("onresize",w);var Z=i.attributes;if(Z.width&&Z.width.specified){i.style.width=Z.width.nodeValue+"px"}else{i.width=i.clientWidth}if(Z.height&&Z.height.specified){i.style.height=Z.height.nodeValue+"px"}else{i.height=i.clientHeight}}return i}};function S(i){var Z=i.srcElement;switch(i.propertyName){case"width":Z.getContext().clearRect();Z.style.width=Z.attributes.width.nodeValue+"px";Z.firstChild.style.width=Z.clientWidth+"px";break;case"height":Z.getContext().clearRect();Z.style.height=Z.attributes.height.nodeValue+"px";Z.firstChild.style.height=Z.clientHeight+"px";break}}function w(i){var Z=i.srcElement;if(Z.firstChild){Z.firstChild.style.width=Z.clientWidth+"px";Z.firstChild.style.height=Z.clientHeight+"px"}}E.init();var I=[];for(var AC=0;AC<16;AC++){for(var AB=0;AB<16;AB++){I[AC*16+AB]=AC.toString(16)+AB.toString(16)}}function V(){return[[1,0,0],[0,1,0],[0,0,1]]}function d(m,j){var i=V();for(var Z=0;Z<3;Z++){for(var AF=0;AF<3;AF++){var p=0;for(var AE=0;AE<3;AE++){p+=m[Z][AE]*j[AE][AF]}i[Z][AF]=p}}return i}function Q(i,Z){Z.fillStyle=i.fillStyle;Z.lineCap=i.lineCap;Z.lineJoin=i.lineJoin;Z.lineWidth=i.lineWidth;Z.miterLimit=i.miterLimit;Z.shadowBlur=i.shadowBlur;Z.shadowColor=i.shadowColor;Z.shadowOffsetX=i.shadowOffsetX;Z.shadowOffsetY=i.shadowOffsetY;Z.strokeStyle=i.strokeStyle;Z.globalAlpha=i.globalAlpha;Z.font=i.font;Z.textAlign=i.textAlign;Z.textBaseline=i.textBaseline;Z.arcScaleX_=i.arcScaleX_;Z.arcScaleY_=i.arcScaleY_;Z.lineScale_=i.lineScale_}var B={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function g(i){var m=i.indexOf("(",3);var Z=i.indexOf(")",m+1);var j=i.substring(m+1,Z).split(",");if(j.length==4&&i.substr(3,1)=="a"){alpha=Number(j[3])}else{j[3]=1}return j}function C(Z){return parseFloat(Z)/100}function N(i,j,Z){return Math.min(Z,Math.max(j,i))}function c(AF){var j,i,Z;h=parseFloat(AF[0])/360%360;if(h<0){h++}s=N(C(AF[1]),0,1);l=N(C(AF[2]),0,1);if(s==0){j=i=Z=l}else{var m=l<0.5?l*(1+s):l+s-l*s;var AE=2*l-m;j=A(AE,m,h+1/3);i=A(AE,m,h);Z=A(AE,m,h-1/3)}return"#"+I[Math.floor(j*255)]+I[Math.floor(i*255)]+I[Math.floor(Z*255)]}function A(i,Z,j){if(j<0){j++}if(j>1){j--}if(6*j<1){return i+(Z-i)*6*j}else{if(2*j<1){return Z}else{if(3*j<2){return i+(Z-i)*(2/3-j)*6}else{return i}}}}function Y(Z){var AE,p=1;Z=String(Z);if(Z.charAt(0)=="#"){AE=Z}else{if(/^rgb/.test(Z)){var m=g(Z);var AE="#",AF;for(var j=0;j<3;j++){if(m[j].indexOf("%")!=-1){AF=Math.floor(C(m[j])*255)}else{AF=Number(m[j])}AE+=I[N(AF,0,255)]}p=m[3]}else{if(/^hsl/.test(Z)){var m=g(Z);AE=c(m);p=m[3]}else{AE=B[Z]||Z}}}return{color:AE,alpha:p}}var L={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var f={};function X(Z){if(f[Z]){return f[Z]}var m=document.createElement("div");var j=m.style;try{j.font=Z}catch(i){}return f[Z]={style:j.fontStyle||L.style,variant:j.fontVariant||L.variant,weight:j.fontWeight||L.weight,size:j.fontSize||L.size,family:j.fontFamily||L.family}}function P(j,i){var Z={};for(var AF in j){Z[AF]=j[AF]}var AE=parseFloat(i.currentStyle.fontSize),m=parseFloat(j.size);if(typeof j.size=="number"){Z.size=j.size}else{if(j.size.indexOf("px")!=-1){Z.size=m}else{if(j.size.indexOf("em")!=-1){Z.size=AE*m}else{if(j.size.indexOf("%")!=-1){Z.size=(AE/100)*m}else{if(j.size.indexOf("pt")!=-1){Z.size=m/0.75}else{Z.size=AE}}}}}Z.size*=0.981;return Z}function AA(Z){return Z.style+" "+Z.variant+" "+Z.weight+" "+Z.size+"px "+Z.family}function t(Z){switch(Z){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function W(i){this.m_=V();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=D*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var Z=i.ownerDocument.createElement("div");Z.style.width=i.clientWidth+"px";Z.style.height=i.clientHeight+"px";Z.style.overflow="hidden";Z.style.position="absolute";i.appendChild(Z);this.element_=Z;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var M=W.prototype;M.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};M.beginPath=function(){this.currentPath_=[]};M.moveTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"moveTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.lineTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"lineTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.bezierCurveTo=function(j,i,AI,AH,AG,AE){var Z=this.getCoords_(AG,AE);var AF=this.getCoords_(j,i);var m=this.getCoords_(AI,AH);e(this,AF,m,Z)};function e(Z,m,j,i){Z.currentPath_.push({type:"bezierCurveTo",cp1x:m.x,cp1y:m.y,cp2x:j.x,cp2y:j.y,x:i.x,y:i.y});Z.currentX_=i.x;Z.currentY_=i.y}M.quadraticCurveTo=function(AG,j,i,Z){var AF=this.getCoords_(AG,j);var AE=this.getCoords_(i,Z);var AH={x:this.currentX_+2/3*(AF.x-this.currentX_),y:this.currentY_+2/3*(AF.y-this.currentY_)};var m={x:AH.x+(AE.x-this.currentX_)/3,y:AH.y+(AE.y-this.currentY_)/3};e(this,AH,m,AE)};M.arc=function(AJ,AH,AI,AE,i,j){AI*=D;var AN=j?"at":"wa";var AK=AJ+U(AE)*AI-F;var AM=AH+J(AE)*AI-F;var Z=AJ+U(i)*AI-F;var AL=AH+J(i)*AI-F;if(AK==Z&&!j){AK+=0.125}var m=this.getCoords_(AJ,AH);var AG=this.getCoords_(AK,AM);var AF=this.getCoords_(Z,AL);this.currentPath_.push({type:AN,x:m.x,y:m.y,radius:AI,xStart:AG.x,yStart:AG.y,xEnd:AF.x,yEnd:AF.y})};M.rect=function(j,i,Z,m){this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath()};M.strokeRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.stroke();this.currentPath_=p};M.fillRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.fill();this.currentPath_=p};M.createLinearGradient=function(i,m,Z,j){var p=new v("gradient");p.x0_=i;p.y0_=m;p.x1_=Z;p.y1_=j;return p};M.createRadialGradient=function(m,AE,j,i,p,Z){var AF=new v("gradientradial");AF.x0_=m;AF.y0_=AE;AF.r0_=j;AF.x1_=i;AF.y1_=p;AF.r1_=Z;return AF};M.drawImage=function(AO,j){var AH,AF,AJ,AV,AM,AK,AQ,AX;var AI=AO.runtimeStyle.width;var AN=AO.runtimeStyle.height;AO.runtimeStyle.width="auto";AO.runtimeStyle.height="auto";var AG=AO.width;var AT=AO.height;AO.runtimeStyle.width=AI;AO.runtimeStyle.height=AN;if(arguments.length==3){AH=arguments[1];AF=arguments[2];AM=AK=0;AQ=AJ=AG;AX=AV=AT}else{if(arguments.length==5){AH=arguments[1];AF=arguments[2];AJ=arguments[3];AV=arguments[4];AM=AK=0;AQ=AG;AX=AT}else{if(arguments.length==9){AM=arguments[1];AK=arguments[2];AQ=arguments[3];AX=arguments[4];AH=arguments[5];AF=arguments[6];AJ=arguments[7];AV=arguments[8]}else{throw Error("Invalid number of arguments")}}}var AW=this.getCoords_(AH,AF);var m=AQ/2;var i=AX/2;var AU=[];var Z=10;var AE=10;AU.push(" <g_vml_:group",' coordsize="',D*Z,",",D*AE,'"',' coordorigin="0,0"',' style="width:',Z,"px;height:",AE,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var p=[];p.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",K(AW.x/D),",","Dy=",K(AW.y/D),"");var AS=AW;var AR=this.getCoords_(AH+AJ,AF);var AP=this.getCoords_(AH,AF+AV);var AL=this.getCoords_(AH+AJ,AF+AV);AS.x=z.max(AS.x,AR.x,AP.x,AL.x);AS.y=z.max(AS.y,AR.y,AP.y,AL.y);AU.push("padding:0 ",K(AS.x/D),"px ",K(AS.y/D),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",p.join(""),", sizingmethod='clip');")}else{AU.push("top:",K(AW.y/D),"px;left:",K(AW.x/D),"px;")}AU.push(' ">','<g_vml_:image src="',AO.src,'"',' style="width:',D*AJ,"px;"," height:",D*AV,'px"',' cropleft="',AM/AG,'"',' croptop="',AK/AT,'"',' cropright="',(AG-AM-AQ)/AG,'"',' cropbottom="',(AT-AK-AX)/AT,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",AU.join(""))};M.stroke=function(AM){var m=10;var AN=10;var AE=5000;var AG={x:null,y:null};var AL={x:null,y:null};for(var AH=0;AH<this.currentPath_.length;AH+=AE){var AK=[];var AF=false;AK.push("<g_vml_:shape",' filled="',!!AM,'"',' style="position:absolute;width:',m,"px;height:",AN,'px;"',' coordorigin="0,0"',' coordsize="',D*m,",",D*AN,'"',' stroked="',!AM,'"',' path="');var AO=false;for(var AI=AH;AI<Math.min(AH+AE,this.currentPath_.length);AI++){if(AI%AE==0&&AI>0){AK.push(" m ",K(this.currentPath_[AI-1].x),",",K(this.currentPath_[AI-1].y))}var Z=this.currentPath_[AI];var AJ;switch(Z.type){case"moveTo":AJ=Z;AK.push(" m ",K(Z.x),",",K(Z.y));break;case"lineTo":AK.push(" l ",K(Z.x),",",K(Z.y));break;case"close":AK.push(" x ");Z=null;break;case"bezierCurveTo":AK.push(" c ",K(Z.cp1x),",",K(Z.cp1y),",",K(Z.cp2x),",",K(Z.cp2y),",",K(Z.x),",",K(Z.y));break;case"at":case"wa":AK.push(" ",Z.type," ",K(Z.x-this.arcScaleX_*Z.radius),",",K(Z.y-this.arcScaleY_*Z.radius)," ",K(Z.x+this.arcScaleX_*Z.radius),",",K(Z.y+this.arcScaleY_*Z.radius)," ",K(Z.xStart),",",K(Z.yStart)," ",K(Z.xEnd),",",K(Z.yEnd));break}if(Z){if(AG.x==null||Z.x<AG.x){AG.x=Z.x}if(AL.x==null||Z.x>AL.x){AL.x=Z.x}if(AG.y==null||Z.y<AG.y){AG.y=Z.y}if(AL.y==null||Z.y>AL.y){AL.y=Z.y}}}AK.push(' ">');if(!AM){R(this,AK)}else{a(this,AK,AG,AL)}AK.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",AK.join(""))}};function R(j,AE){var i=Y(j.strokeStyle);var m=i.color;var p=i.alpha*j.globalAlpha;var Z=j.lineScale_*j.lineWidth;if(Z<1){p*=Z}AE.push("<g_vml_:stroke",' opacity="',p,'"',' joinstyle="',j.lineJoin,'"',' miterlimit="',j.miterLimit,'"',' endcap="',t(j.lineCap),'"',' weight="',Z,'px"',' color="',m,'" />')}function a(AO,AG,Ah,AP){var AH=AO.fillStyle;var AY=AO.arcScaleX_;var AX=AO.arcScaleY_;var Z=AP.x-Ah.x;var m=AP.y-Ah.y;if(AH instanceof v){var AL=0;var Ac={x:0,y:0};var AU=0;var AK=1;if(AH.type_=="gradient"){var AJ=AH.x0_/AY;var j=AH.y0_/AX;var AI=AH.x1_/AY;var Aj=AH.y1_/AX;var Ag=AO.getCoords_(AJ,j);var Af=AO.getCoords_(AI,Aj);var AE=Af.x-Ag.x;var p=Af.y-Ag.y;AL=Math.atan2(AE,p)*180/Math.PI;if(AL<0){AL+=360}if(AL<0.000001){AL=0}}else{var Ag=AO.getCoords_(AH.x0_,AH.y0_);Ac={x:(Ag.x-Ah.x)/Z,y:(Ag.y-Ah.y)/m};Z/=AY*D;m/=AX*D;var Aa=z.max(Z,m);AU=2*AH.r0_/Aa;AK=2*AH.r1_/Aa-AU}var AS=AH.colors_;AS.sort(function(Ak,i){return Ak.offset-i.offset});var AN=AS.length;var AR=AS[0].color;var AQ=AS[AN-1].color;var AW=AS[0].alpha*AO.globalAlpha;var AV=AS[AN-1].alpha*AO.globalAlpha;var Ab=[];for(var Ae=0;Ae<AN;Ae++){var AM=AS[Ae];Ab.push(AM.offset*AK+AU+" "+AM.color)}AG.push('<g_vml_:fill type="',AH.type_,'"',' method="none" focus="100%"',' color="',AR,'"',' color2="',AQ,'"',' colors="',Ab.join(","),'"',' opacity="',AV,'"',' g_o_:opacity2="',AW,'"',' angle="',AL,'"',' focusposition="',Ac.x,",",Ac.y,'" />')}else{if(AH instanceof u){if(Z&&m){var AF=-Ah.x;var AZ=-Ah.y;AG.push("<g_vml_:fill",' position="',AF/Z*AY*AY,",",AZ/m*AX*AX,'"',' type="tile"',' src="',AH.src_,'" />')}}else{var Ai=Y(AO.fillStyle);var AT=Ai.color;var Ad=Ai.alpha*AO.globalAlpha;AG.push('<g_vml_:fill color="',AT,'" opacity="',Ad,'" />')}}}M.fill=function(){this.stroke(true)};M.closePath=function(){this.currentPath_.push({type:"close"})};M.getCoords_=function(j,i){var Z=this.m_;return{x:D*(j*Z[0][0]+i*Z[1][0]+Z[2][0])-F,y:D*(j*Z[0][1]+i*Z[1][1]+Z[2][1])-F}};M.save=function(){var Z={};Q(this,Z);this.aStack_.push(Z);this.mStack_.push(this.m_);this.m_=d(V(),this.m_)};M.restore=function(){if(this.aStack_.length){Q(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function H(Z){return isFinite(Z[0][0])&&isFinite(Z[0][1])&&isFinite(Z[1][0])&&isFinite(Z[1][1])&&isFinite(Z[2][0])&&isFinite(Z[2][1])}function y(i,Z,j){if(!H(Z)){return }i.m_=Z;if(j){var p=Z[0][0]*Z[1][1]-Z[0][1]*Z[1][0];i.lineScale_=k(b(p))}}M.translate=function(j,i){var Z=[[1,0,0],[0,1,0],[j,i,1]];y(this,d(Z,this.m_),false)};M.rotate=function(i){var m=U(i);var j=J(i);var Z=[[m,j,0],[-j,m,0],[0,0,1]];y(this,d(Z,this.m_),false)};M.scale=function(j,i){this.arcScaleX_*=j;this.arcScaleY_*=i;var Z=[[j,0,0],[0,i,0],[0,0,1]];y(this,d(Z,this.m_),true)};M.transform=function(p,m,AF,AE,i,Z){var j=[[p,m,0],[AF,AE,0],[i,Z,1]];y(this,d(j,this.m_),true)};M.setTransform=function(AE,p,AG,AF,j,i){var Z=[[AE,p,0],[AG,AF,0],[j,i,1]];y(this,Z,true)};M.drawText_=function(AK,AI,AH,AN,AG){var AM=this.m_,AQ=1000,i=0,AP=AQ,AF={x:0,y:0},AE=[];var Z=P(X(this.font),this.element_);var j=AA(Z);var AR=this.element_.currentStyle;var p=this.textAlign.toLowerCase();switch(p){case"left":case"center":case"right":break;case"end":p=AR.direction=="ltr"?"right":"left";break;case"start":p=AR.direction=="rtl"?"right":"left";break;default:p="left"}switch(this.textBaseline){case"hanging":case"top":AF.y=Z.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":AF.y=-Z.size/2.25;break}switch(p){case"right":i=AQ;AP=0.05;break;case"center":i=AP=AQ/2;break}var AO=this.getCoords_(AI+AF.x,AH+AF.y);AE.push('<g_vml_:line from="',-i,' 0" to="',AP,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!AG,'" stroked="',!!AG,'" style="position:absolute;width:1px;height:1px;">');if(AG){R(this,AE)}else{a(this,AE,{x:-i,y:0},{x:AP,y:Z.size})}var AL=AM[0][0].toFixed(3)+","+AM[1][0].toFixed(3)+","+AM[0][1].toFixed(3)+","+AM[1][1].toFixed(3)+",0,0";var AJ=K(AO.x/D)+","+K(AO.y/D);AE.push('<g_vml_:skew on="t" matrix="',AL,'" ',' offset="',AJ,'" origin="',i,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',AD(AK),'" style="v-text-align:',p,";font:",AD(j),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",AE.join(""))};M.fillText=function(j,Z,m,i){this.drawText_(j,Z,m,i,false)};M.strokeText=function(j,Z,m,i){this.drawText_(j,Z,m,i,true)};M.measureText=function(j){if(!this.textMeasureEl_){var Z='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",Z);this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(i.createTextNode(j));return{width:this.textMeasureEl_.offsetWidth}};M.clip=function(){};M.arcTo=function(){};M.createPattern=function(i,Z){return new u(i,Z)};function v(Z){this.type_=Z;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}v.prototype.addColorStop=function(i,Z){Z=Y(Z);this.colors_.push({offset:i,color:Z.color,alpha:Z.alpha})};function u(i,Z){q(i);switch(Z){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=Z;break;default:n("SYNTAX_ERR")}this.src_=i.src;this.width_=i.width;this.height_=i.height}function n(Z){throw new o(Z)}function q(Z){if(!Z||Z.nodeType!=1||Z.tagName!="IMG"){n("TYPE_MISMATCH_ERR")}if(Z.readyState!="complete"){n("INVALID_STATE_ERR")}}function o(Z){this.code=this[Z];this.message=Z+": DOM Exception "+this.code}var x=o.prototype=new Error;x.INDEX_SIZE_ERR=1;x.DOMSTRING_SIZE_ERR=2;x.HIERARCHY_REQUEST_ERR=3;x.WRONG_DOCUMENT_ERR=4;x.INVALID_CHARACTER_ERR=5;x.NO_DATA_ALLOWED_ERR=6;x.NO_MODIFICATION_ALLOWED_ERR=7;x.NOT_FOUND_ERR=8;x.NOT_SUPPORTED_ERR=9;x.INUSE_ATTRIBUTE_ERR=10;x.INVALID_STATE_ERR=11;x.SYNTAX_ERR=12;x.INVALID_MODIFICATION_ERR=13;x.NAMESPACE_ERR=14;x.INVALID_ACCESS_ERR=15;x.VALIDATION_ERR=16;x.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=E;CanvasRenderingContext2D=W;CanvasGradient=v;CanvasPattern=u;DOMException=o})()}; diff --git a/themes/blueprint/js/flot/jquery.flot.min.js b/themes/blueprint/js/flot/jquery.flot.min.js deleted file mode 100644 index 9b913dab86fc77bfb624554bb02603c0eb79d45d..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/flot/jquery.flot.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(){jQuery.color={};jQuery.color.make=function(G,H,J,I){var A={};A.r=G||0;A.g=H||0;A.b=J||0;A.a=I!=null?I:1;A.add=function(C,D){for(var E=0;E<C.length;++E){A[C.charAt(E)]+=D}return A.normalize()};A.scale=function(C,D){for(var E=0;E<C.length;++E){A[C.charAt(E)]*=D}return A.normalize()};A.toString=function(){if(A.a>=1){return"rgb("+[A.r,A.g,A.b].join(",")+")"}else{return"rgba("+[A.r,A.g,A.b,A.a].join(",")+")"}};A.normalize=function(){function C(E,D,F){return D<E?E:(D>F?F:D)}A.r=C(0,parseInt(A.r),255);A.g=C(0,parseInt(A.g),255);A.b=C(0,parseInt(A.b),255);A.a=C(0,A.a,1);return A};A.clone=function(){return jQuery.color.make(A.r,A.b,A.g,A.a)};return A.normalize()};jQuery.color.extract=function(E,F){var A;do{A=E.css(F).toLowerCase();if(A!=""&&A!="transparent"){break}E=E.parent()}while(!jQuery.nodeName(E.get(0),"body"));if(A=="rgba(0, 0, 0, 0)"){A="transparent"}return jQuery.color.parse(A)};jQuery.color.parse=function(A){var F,H=jQuery.color.make;if(F=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(A)){return H(parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10))}if(F=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(A)){return H(parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10),parseFloat(F[4]))}if(F=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(A)){return H(parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55)}if(F=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(A)){return H(parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55,parseFloat(F[4]))}if(F=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(A)){return H(parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16))}if(F=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(A)){return H(parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16))}var G=jQuery.trim(A).toLowerCase();if(G=="transparent"){return H(255,255,255,0)}else{F=B[G];return H(F[0],F[1],F[2])}};var B={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})();(function(C){function B(l,W,X,E){var O=[],g={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:true,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:0.85},xaxis:{mode:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:false},yaxis:{autoscaleMargin:0.02},x2axis:{autoscaleMargin:null},y2axis:{autoscaleMargin:0.02},series:{points:{show:false,radius:3,lineWidth:2,fill:true,fillColor:"#ffffff"},lines:{lineWidth:2,fill:false,fillColor:null,steps:false},bars:{show:false,lineWidth:2,barWidth:1,fill:true,fillColor:null,align:"left",horizontal:false},shadowSize:3},grid:{show:true,aboveData:false,color:"#545454",backgroundColor:null,tickColor:"rgba(0,0,0,0.15)",labelMargin:5,borderWidth:2,borderColor:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:false,hoverable:false,autoHighlight:true,mouseActiveRadius:10},hooks:{}},P=null,AC=null,AD=null,Y=null,AJ=null,s={xaxis:{},yaxis:{},x2axis:{},y2axis:{}},e={left:0,right:0,top:0,bottom:0},y=0,Q=0,I=0,t=0,L={processOptions:[],processRawData:[],processDatapoints:[],draw:[],bindEvents:[],drawOverlay:[]},G=this;G.setData=f;G.setupGrid=k;G.draw=AH;G.getPlaceholder=function(){return l};G.getCanvas=function(){return P};G.getPlotOffset=function(){return e};G.width=function(){return I};G.height=function(){return t};G.offset=function(){var AK=AD.offset();AK.left+=e.left;AK.top+=e.top;return AK};G.getData=function(){return O};G.getAxes=function(){return s};G.getOptions=function(){return g};G.highlight=AE;G.unhighlight=x;G.triggerRedrawOverlay=q;G.pointOffset=function(AK){return{left:parseInt(T(AK,"xaxis").p2c(+AK.x)+e.left),top:parseInt(T(AK,"yaxis").p2c(+AK.y)+e.top)}};G.hooks=L;b(G);r(X);c();f(W);k();AH();AG();function Z(AM,AK){AK=[G].concat(AK);for(var AL=0;AL<AM.length;++AL){AM[AL].apply(this,AK)}}function b(){for(var AK=0;AK<E.length;++AK){var AL=E[AK];AL.init(G);if(AL.options){C.extend(true,g,AL.options)}}}function r(AK){C.extend(true,g,AK);if(g.grid.borderColor==null){g.grid.borderColor=g.grid.color}if(g.xaxis.noTicks&&g.xaxis.ticks==null){g.xaxis.ticks=g.xaxis.noTicks}if(g.yaxis.noTicks&&g.yaxis.ticks==null){g.yaxis.ticks=g.yaxis.noTicks}if(g.grid.coloredAreas){g.grid.markings=g.grid.coloredAreas}if(g.grid.coloredAreasColor){g.grid.markingsColor=g.grid.coloredAreasColor}if(g.lines){C.extend(true,g.series.lines,g.lines)}if(g.points){C.extend(true,g.series.points,g.points)}if(g.bars){C.extend(true,g.series.bars,g.bars)}if(g.shadowSize){g.series.shadowSize=g.shadowSize}for(var AL in L){if(g.hooks[AL]&&g.hooks[AL].length){L[AL]=L[AL].concat(g.hooks[AL])}}Z(L.processOptions,[g])}function f(AK){O=M(AK);U();m()}function M(AN){var AL=[];for(var AK=0;AK<AN.length;++AK){var AM=C.extend(true,{},g.series);if(AN[AK].data){AM.data=AN[AK].data;delete AN[AK].data;C.extend(true,AM,AN[AK]);AN[AK].data=AM.data}else{AM.data=AN[AK]}AL.push(AM)}return AL}function T(AM,AK){var AL=AM[AK];if(!AL||AL==1){return s[AK]}if(typeof AL=="number"){return s[AK.charAt(0)+AL+AK.slice(1)]}return AL}function U(){var AP;var AV=O.length,AK=[],AN=[];for(AP=0;AP<O.length;++AP){var AS=O[AP].color;if(AS!=null){--AV;if(typeof AS=="number"){AN.push(AS)}else{AK.push(C.color.parse(O[AP].color))}}}for(AP=0;AP<AN.length;++AP){AV=Math.max(AV,AN[AP]+1)}var AL=[],AO=0;AP=0;while(AL.length<AV){var AR;if(g.colors.length==AP){AR=C.color.make(100,100,100)}else{AR=C.color.parse(g.colors[AP])}var AM=AO%2==1?-1:1;AR.scale("rgb",1+AM*Math.ceil(AO/2)*0.2);AL.push(AR);++AP;if(AP>=g.colors.length){AP=0;++AO}}var AQ=0,AW;for(AP=0;AP<O.length;++AP){AW=O[AP];if(AW.color==null){AW.color=AL[AQ].toString();++AQ}else{if(typeof AW.color=="number"){AW.color=AL[AW.color].toString()}}if(AW.lines.show==null){var AU,AT=true;for(AU in AW){if(AW[AU].show){AT=false;break}}if(AT){AW.lines.show=true}}AW.xaxis=T(AW,"xaxis");AW.yaxis=T(AW,"yaxis")}}function m(){var AW=Number.POSITIVE_INFINITY,AQ=Number.NEGATIVE_INFINITY,Ac,Aa,AZ,AV,AL,AR,Ab,AX,AP,AO,AK,Ai,Af,AT;for(AK in s){s[AK].datamin=AW;s[AK].datamax=AQ;s[AK].used=false}function AN(Al,Ak,Aj){if(Ak<Al.datamin){Al.datamin=Ak}if(Aj>Al.datamax){Al.datamax=Aj}}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];AR.datapoints={points:[]};Z(L.processRawData,[AR,AR.data,AR.datapoints])}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];var Ah=AR.data,Ae=AR.datapoints.format;if(!Ae){Ae=[];Ae.push({x:true,number:true,required:true});Ae.push({y:true,number:true,required:true});if(AR.bars.show){Ae.push({y:true,number:true,required:false,defaultValue:0})}AR.datapoints.format=Ae}if(AR.datapoints.pointsize!=null){continue}if(AR.datapoints.pointsize==null){AR.datapoints.pointsize=Ae.length}AX=AR.datapoints.pointsize;Ab=AR.datapoints.points;insertSteps=AR.lines.show&&AR.lines.steps;AR.xaxis.used=AR.yaxis.used=true;for(Aa=AZ=0;Aa<Ah.length;++Aa,AZ+=AX){AT=Ah[Aa];var AM=AT==null;if(!AM){for(AV=0;AV<AX;++AV){Ai=AT[AV];Af=Ae[AV];if(Af){if(Af.number&&Ai!=null){Ai=+Ai;if(isNaN(Ai)){Ai=null}}if(Ai==null){if(Af.required){AM=true}if(Af.defaultValue!=null){Ai=Af.defaultValue}}}Ab[AZ+AV]=Ai}}if(AM){for(AV=0;AV<AX;++AV){Ai=Ab[AZ+AV];if(Ai!=null){Af=Ae[AV];if(Af.x){AN(AR.xaxis,Ai,Ai)}if(Af.y){AN(AR.yaxis,Ai,Ai)}}Ab[AZ+AV]=null}}else{if(insertSteps&&AZ>0&&Ab[AZ-AX]!=null&&Ab[AZ-AX]!=Ab[AZ]&&Ab[AZ-AX+1]!=Ab[AZ+1]){for(AV=0;AV<AX;++AV){Ab[AZ+AX+AV]=Ab[AZ+AV]}Ab[AZ+1]=Ab[AZ-AX+1];AZ+=AX}}}}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];Z(L.processDatapoints,[AR,AR.datapoints])}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];Ab=AR.datapoints.points,AX=AR.datapoints.pointsize;var AS=AW,AY=AW,AU=AQ,Ad=AQ;for(Aa=0;Aa<Ab.length;Aa+=AX){if(Ab[Aa]==null){continue}for(AV=0;AV<AX;++AV){Ai=Ab[Aa+AV];Af=Ae[AV];if(!Af){continue}if(Af.x){if(Ai<AS){AS=Ai}if(Ai>AU){AU=Ai}}if(Af.y){if(Ai<AY){AY=Ai}if(Ai>Ad){Ad=Ai}}}}if(AR.bars.show){var Ag=AR.bars.align=="left"?0:-AR.bars.barWidth/2;if(AR.bars.horizontal){AY+=Ag;Ad+=Ag+AR.bars.barWidth}else{AS+=Ag;AU+=Ag+AR.bars.barWidth}}AN(AR.xaxis,AS,AU);AN(AR.yaxis,AY,Ad)}for(AK in s){if(s[AK].datamin==AW){s[AK].datamin=null}if(s[AK].datamax==AQ){s[AK].datamax=null}}}function c(){function AK(AM,AL){var AN=document.createElement("canvas");AN.width=AM;AN.height=AL;if(C.browser.msie){AN=window.G_vmlCanvasManager.initElement(AN)}return AN}y=l.width();Q=l.height();l.html("");if(l.css("position")=="static"){l.css("position","relative")}if(y<=0||Q<=0){throw"Invalid dimensions for plot, width = "+y+", height = "+Q}if(C.browser.msie){window.G_vmlCanvasManager.init_(document)}P=C(AK(y,Q)).appendTo(l).get(0);Y=P.getContext("2d");AC=C(AK(y,Q)).css({position:"absolute",left:0,top:0}).appendTo(l).get(0);AJ=AC.getContext("2d");AJ.stroke()}function AG(){AD=C([AC,P]);if(g.grid.hoverable){AD.mousemove(D)}if(g.grid.clickable){AD.click(d)}Z(L.bindEvents,[AD])}function k(){function AL(AT,AU){function AP(AV){return AV}var AS,AO,AQ=AU.transform||AP,AR=AU.inverseTransform;if(AT==s.xaxis||AT==s.x2axis){AS=AT.scale=I/(AQ(AT.max)-AQ(AT.min));AO=AQ(AT.min);if(AQ==AP){AT.p2c=function(AV){return(AV-AO)*AS}}else{AT.p2c=function(AV){return(AQ(AV)-AO)*AS}}if(!AR){AT.c2p=function(AV){return AO+AV/AS}}else{AT.c2p=function(AV){return AR(AO+AV/AS)}}}else{AS=AT.scale=t/(AQ(AT.max)-AQ(AT.min));AO=AQ(AT.max);if(AQ==AP){AT.p2c=function(AV){return(AO-AV)*AS}}else{AT.p2c=function(AV){return(AO-AQ(AV))*AS}}if(!AR){AT.c2p=function(AV){return AO-AV/AS}}else{AT.c2p=function(AV){return AR(AO-AV/AS)}}}}function AN(AR,AT){var AQ,AS=[],AP;AR.labelWidth=AT.labelWidth;AR.labelHeight=AT.labelHeight;if(AR==s.xaxis||AR==s.x2axis){if(AR.labelWidth==null){AR.labelWidth=y/(AR.ticks.length>0?AR.ticks.length:1)}if(AR.labelHeight==null){AS=[];for(AQ=0;AQ<AR.ticks.length;++AQ){AP=AR.ticks[AQ].label;if(AP){AS.push('<div class="tickLabel" style="float:left;width:'+AR.labelWidth+'px">'+AP+"</div>")}}if(AS.length>0){var AO=C('<div style="position:absolute;top:-10000px;width:10000px;font-size:smaller">'+AS.join("")+'<div style="clear:left"></div></div>').appendTo(l);AR.labelHeight=AO.height();AO.remove()}}}else{if(AR.labelWidth==null||AR.labelHeight==null){for(AQ=0;AQ<AR.ticks.length;++AQ){AP=AR.ticks[AQ].label;if(AP){AS.push('<div class="tickLabel">'+AP+"</div>")}}if(AS.length>0){var AO=C('<div style="position:absolute;top:-10000px;font-size:smaller">'+AS.join("")+"</div>").appendTo(l);if(AR.labelWidth==null){AR.labelWidth=AO.width()}if(AR.labelHeight==null){AR.labelHeight=AO.find("div").height()}AO.remove()}}}if(AR.labelWidth==null){AR.labelWidth=0}if(AR.labelHeight==null){AR.labelHeight=0}}function AM(){var AP=g.grid.borderWidth;for(i=0;i<O.length;++i){AP=Math.max(AP,2*(O[i].points.radius+O[i].points.lineWidth/2))}e.left=e.right=e.top=e.bottom=AP;var AO=g.grid.labelMargin+g.grid.borderWidth;if(s.xaxis.labelHeight>0){e.bottom=Math.max(AP,s.xaxis.labelHeight+AO)}if(s.yaxis.labelWidth>0){e.left=Math.max(AP,s.yaxis.labelWidth+AO)}if(s.x2axis.labelHeight>0){e.top=Math.max(AP,s.x2axis.labelHeight+AO)}if(s.y2axis.labelWidth>0){e.right=Math.max(AP,s.y2axis.labelWidth+AO)}I=y-e.left-e.right;t=Q-e.bottom-e.top}var AK;for(AK in s){K(s[AK],g[AK])}if(g.grid.show){for(AK in s){F(s[AK],g[AK]);p(s[AK],g[AK]);AN(s[AK],g[AK])}AM()}else{e.left=e.right=e.top=e.bottom=0;I=y;t=Q}for(AK in s){AL(s[AK],g[AK])}if(g.grid.show){h()}AI()}function K(AN,AQ){var AM=+(AQ.min!=null?AQ.min:AN.datamin),AK=+(AQ.max!=null?AQ.max:AN.datamax),AP=AK-AM;if(AP==0){var AL=AK==0?1:0.01;if(AQ.min==null){AM-=AL}if(AQ.max==null||AQ.min!=null){AK+=AL}}else{var AO=AQ.autoscaleMargin;if(AO!=null){if(AQ.min==null){AM-=AP*AO;if(AM<0&&AN.datamin!=null&&AN.datamin>=0){AM=0}}if(AQ.max==null){AK+=AP*AO;if(AK>0&&AN.datamax!=null&&AN.datamax<=0){AK=0}}}}AN.min=AM;AN.max=AK}function F(AP,AS){var AO;if(typeof AS.ticks=="number"&&AS.ticks>0){AO=AS.ticks}else{if(AP==s.xaxis||AP==s.x2axis){AO=0.3*Math.sqrt(y)}else{AO=0.3*Math.sqrt(Q)}}var AX=(AP.max-AP.min)/AO,AZ,AT,AV,AW,AR,AM,AL;if(AS.mode=="time"){var AU={second:1000,minute:60*1000,hour:60*60*1000,day:24*60*60*1000,month:30*24*60*60*1000,year:365.2425*24*60*60*1000};var AY=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];var AN=0;if(AS.minTickSize!=null){if(typeof AS.tickSize=="number"){AN=AS.tickSize}else{AN=AS.minTickSize[0]*AU[AS.minTickSize[1]]}}for(AR=0;AR<AY.length-1;++AR){if(AX<(AY[AR][0]*AU[AY[AR][1]]+AY[AR+1][0]*AU[AY[AR+1][1]])/2&&AY[AR][0]*AU[AY[AR][1]]>=AN){break}}AZ=AY[AR][0];AV=AY[AR][1];if(AV=="year"){AM=Math.pow(10,Math.floor(Math.log(AX/AU.year)/Math.LN10));AL=(AX/AU.year)/AM;if(AL<1.5){AZ=1}else{if(AL<3){AZ=2}else{if(AL<7.5){AZ=5}else{AZ=10}}}AZ*=AM}if(AS.tickSize){AZ=AS.tickSize[0];AV=AS.tickSize[1]}AT=function(Ac){var Ah=[],Af=Ac.tickSize[0],Ai=Ac.tickSize[1],Ag=new Date(Ac.min);var Ab=Af*AU[Ai];if(Ai=="second"){Ag.setUTCSeconds(A(Ag.getUTCSeconds(),Af))}if(Ai=="minute"){Ag.setUTCMinutes(A(Ag.getUTCMinutes(),Af))}if(Ai=="hour"){Ag.setUTCHours(A(Ag.getUTCHours(),Af))}if(Ai=="month"){Ag.setUTCMonth(A(Ag.getUTCMonth(),Af))}if(Ai=="year"){Ag.setUTCFullYear(A(Ag.getUTCFullYear(),Af))}Ag.setUTCMilliseconds(0);if(Ab>=AU.minute){Ag.setUTCSeconds(0)}if(Ab>=AU.hour){Ag.setUTCMinutes(0)}if(Ab>=AU.day){Ag.setUTCHours(0)}if(Ab>=AU.day*4){Ag.setUTCDate(1)}if(Ab>=AU.year){Ag.setUTCMonth(0)}var Ak=0,Aj=Number.NaN,Ad;do{Ad=Aj;Aj=Ag.getTime();Ah.push({v:Aj,label:Ac.tickFormatter(Aj,Ac)});if(Ai=="month"){if(Af<1){Ag.setUTCDate(1);var Aa=Ag.getTime();Ag.setUTCMonth(Ag.getUTCMonth()+1);var Ae=Ag.getTime();Ag.setTime(Aj+Ak*AU.hour+(Ae-Aa)*Af);Ak=Ag.getUTCHours();Ag.setUTCHours(0)}else{Ag.setUTCMonth(Ag.getUTCMonth()+Af)}}else{if(Ai=="year"){Ag.setUTCFullYear(Ag.getUTCFullYear()+Af)}else{Ag.setTime(Aj+Ab)}}}while(Aj<Ac.max&&Aj!=Ad);return Ah};AW=function(Aa,Ad){var Af=new Date(Aa);if(AS.timeformat!=null){return C.plot.formatDate(Af,AS.timeformat,AS.monthNames)}var Ab=Ad.tickSize[0]*AU[Ad.tickSize[1]];var Ac=Ad.max-Ad.min;var Ae=(AS.twelveHourClock)?" %p":"";if(Ab<AU.minute){fmt="%h:%M:%S"+Ae}else{if(Ab<AU.day){if(Ac<2*AU.day){fmt="%h:%M"+Ae}else{fmt="%b %d %h:%M"+Ae}}else{if(Ab<AU.month){fmt="%b %d"}else{if(Ab<AU.year){if(Ac<AU.year){fmt="%b"}else{fmt="%b %y"}}else{fmt="%y"}}}}return C.plot.formatDate(Af,fmt,AS.monthNames)}}else{var AK=AS.tickDecimals;var AQ=-Math.floor(Math.log(AX)/Math.LN10);if(AK!=null&&AQ>AK){AQ=AK}AM=Math.pow(10,-AQ);AL=AX/AM;if(AL<1.5){AZ=1}else{if(AL<3){AZ=2;if(AL>2.25&&(AK==null||AQ+1<=AK)){AZ=2.5;++AQ}}else{if(AL<7.5){AZ=5}else{AZ=10}}}AZ*=AM;if(AS.minTickSize!=null&&AZ<AS.minTickSize){AZ=AS.minTickSize}if(AS.tickSize!=null){AZ=AS.tickSize}AP.tickDecimals=Math.max(0,(AK!=null)?AK:AQ);AT=function(Ac){var Ae=[];var Af=A(Ac.min,Ac.tickSize),Ab=0,Aa=Number.NaN,Ad;do{Ad=Aa;Aa=Af+Ab*Ac.tickSize;Ae.push({v:Aa,label:Ac.tickFormatter(Aa,Ac)});++Ab}while(Aa<Ac.max&&Aa!=Ad);return Ae};AW=function(Aa,Ab){return Aa.toFixed(Ab.tickDecimals)}}AP.tickSize=AV?[AZ,AV]:AZ;AP.tickGenerator=AT;if(C.isFunction(AS.tickFormatter)){AP.tickFormatter=function(Aa,Ab){return""+AS.tickFormatter(Aa,Ab)}}else{AP.tickFormatter=AW}}function p(AO,AQ){AO.ticks=[];if(!AO.used){return }if(AQ.ticks==null){AO.ticks=AO.tickGenerator(AO)}else{if(typeof AQ.ticks=="number"){if(AQ.ticks>0){AO.ticks=AO.tickGenerator(AO)}}else{if(AQ.ticks){var AP=AQ.ticks;if(C.isFunction(AP)){AP=AP({min:AO.min,max:AO.max})}var AN,AK;for(AN=0;AN<AP.length;++AN){var AL=null;var AM=AP[AN];if(typeof AM=="object"){AK=AM[0];if(AM.length>1){AL=AM[1]}}else{AK=AM}if(AL==null){AL=AO.tickFormatter(AK,AO)}AO.ticks[AN]={v:AK,label:AL}}}}}if(AQ.autoscaleMargin!=null&&AO.ticks.length>0){if(AQ.min==null){AO.min=Math.min(AO.min,AO.ticks[0].v)}if(AQ.max==null&&AO.ticks.length>1){AO.max=Math.max(AO.max,AO.ticks[AO.ticks.length-1].v)}}}function AH(){Y.clearRect(0,0,y,Q);var AL=g.grid;if(AL.show&&!AL.aboveData){S()}for(var AK=0;AK<O.length;++AK){AA(O[AK])}Z(L.draw,[Y]);if(AL.show&&AL.aboveData){S()}}function N(AL,AR){var AO=AR+"axis",AK=AR+"2axis",AN,AQ,AP,AM;if(AL[AO]){AN=s[AO];AQ=AL[AO].from;AP=AL[AO].to}else{if(AL[AK]){AN=s[AK];AQ=AL[AK].from;AP=AL[AK].to}else{AN=s[AO];AQ=AL[AR+"1"];AP=AL[AR+"2"]}}if(AQ!=null&&AP!=null&&AQ>AP){return{from:AP,to:AQ,axis:AN}}return{from:AQ,to:AP,axis:AN}}function S(){var AO;Y.save();Y.translate(e.left,e.top);if(g.grid.backgroundColor){Y.fillStyle=R(g.grid.backgroundColor,t,0,"rgba(255, 255, 255, 0)");Y.fillRect(0,0,I,t)}var AL=g.grid.markings;if(AL){if(C.isFunction(AL)){AL=AL({xmin:s.xaxis.min,xmax:s.xaxis.max,ymin:s.yaxis.min,ymax:s.yaxis.max,xaxis:s.xaxis,yaxis:s.yaxis,x2axis:s.x2axis,y2axis:s.y2axis})}for(AO=0;AO<AL.length;++AO){var AK=AL[AO],AQ=N(AK,"x"),AN=N(AK,"y");if(AQ.from==null){AQ.from=AQ.axis.min}if(AQ.to==null){AQ.to=AQ.axis.max}if(AN.from==null){AN.from=AN.axis.min}if(AN.to==null){AN.to=AN.axis.max}if(AQ.to<AQ.axis.min||AQ.from>AQ.axis.max||AN.to<AN.axis.min||AN.from>AN.axis.max){continue}AQ.from=Math.max(AQ.from,AQ.axis.min);AQ.to=Math.min(AQ.to,AQ.axis.max);AN.from=Math.max(AN.from,AN.axis.min);AN.to=Math.min(AN.to,AN.axis.max);if(AQ.from==AQ.to&&AN.from==AN.to){continue}AQ.from=AQ.axis.p2c(AQ.from);AQ.to=AQ.axis.p2c(AQ.to);AN.from=AN.axis.p2c(AN.from);AN.to=AN.axis.p2c(AN.to);if(AQ.from==AQ.to||AN.from==AN.to){Y.beginPath();Y.strokeStyle=AK.color||g.grid.markingsColor;Y.lineWidth=AK.lineWidth||g.grid.markingsLineWidth;Y.moveTo(AQ.from,AN.from);Y.lineTo(AQ.to,AN.to);Y.stroke()}else{Y.fillStyle=AK.color||g.grid.markingsColor;Y.fillRect(AQ.from,AN.to,AQ.to-AQ.from,AN.from-AN.to)}}}Y.lineWidth=1;Y.strokeStyle=g.grid.tickColor;Y.beginPath();var AM,AP=s.xaxis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=s.xaxis.max){continue}Y.moveTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,0);Y.lineTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,t)}AP=s.yaxis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(0,Math.floor(AP.p2c(AM))+Y.lineWidth/2);Y.lineTo(I,Math.floor(AP.p2c(AM))+Y.lineWidth/2)}AP=s.x2axis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,-5);Y.lineTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,5)}AP=s.y2axis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(I-5,Math.floor(AP.p2c(AM))+Y.lineWidth/2);Y.lineTo(I+5,Math.floor(AP.p2c(AM))+Y.lineWidth/2)}Y.stroke();if(g.grid.borderWidth){var AR=g.grid.borderWidth;Y.lineWidth=AR;Y.strokeStyle=g.grid.borderColor;Y.strokeRect(-AR/2,-AR/2,I+AR,t+AR)}Y.restore()}function h(){l.find(".tickLabels").remove();var AK=['<div class="tickLabels" style="font-size:smaller;color:'+g.grid.color+'">'];function AM(AP,AQ){for(var AO=0;AO<AP.ticks.length;++AO){var AN=AP.ticks[AO];if(!AN.label||AN.v<AP.min||AN.v>AP.max){continue}AK.push(AQ(AN,AP))}}var AL=g.grid.labelMargin+g.grid.borderWidth;AM(s.xaxis,function(AN,AO){return'<div style="position:absolute;top:'+(e.top+t+AL)+"px;left:"+Math.round(e.left+AO.p2c(AN.v)-AO.labelWidth/2)+"px;width:"+AO.labelWidth+'px;text-align:center" class="tickLabel">'+AN.label+"</div>"});AM(s.yaxis,function(AN,AO){return'<div style="position:absolute;top:'+Math.round(e.top+AO.p2c(AN.v)-AO.labelHeight/2)+"px;right:"+(e.right+I+AL)+"px;width:"+AO.labelWidth+'px;text-align:right" class="tickLabel">'+AN.label+"</div>"});AM(s.x2axis,function(AN,AO){return'<div style="position:absolute;bottom:'+(e.bottom+t+AL)+"px;left:"+Math.round(e.left+AO.p2c(AN.v)-AO.labelWidth/2)+"px;width:"+AO.labelWidth+'px;text-align:center" class="tickLabel">'+AN.label+"</div>"});AM(s.y2axis,function(AN,AO){return'<div style="position:absolute;top:'+Math.round(e.top+AO.p2c(AN.v)-AO.labelHeight/2)+"px;left:"+(e.left+I+AL)+"px;width:"+AO.labelWidth+'px;text-align:left" class="tickLabel">'+AN.label+"</div>"});AK.push("</div>");l.append(AK.join(""))}function AA(AK){if(AK.lines.show){a(AK)}if(AK.bars.show){n(AK)}if(AK.points.show){o(AK)}}function a(AN){function AM(AY,AZ,AR,Ad,Ac){var Ae=AY.points,AS=AY.pointsize,AW=null,AV=null;Y.beginPath();for(var AX=AS;AX<Ae.length;AX+=AS){var AU=Ae[AX-AS],Ab=Ae[AX-AS+1],AT=Ae[AX],Aa=Ae[AX+1];if(AU==null||AT==null){continue}if(Ab<=Aa&&Ab<Ac.min){if(Aa<Ac.min){continue}AU=(Ac.min-Ab)/(Aa-Ab)*(AT-AU)+AU;Ab=Ac.min}else{if(Aa<=Ab&&Aa<Ac.min){if(Ab<Ac.min){continue}AT=(Ac.min-Ab)/(Aa-Ab)*(AT-AU)+AU;Aa=Ac.min}}if(Ab>=Aa&&Ab>Ac.max){if(Aa>Ac.max){continue}AU=(Ac.max-Ab)/(Aa-Ab)*(AT-AU)+AU;Ab=Ac.max}else{if(Aa>=Ab&&Aa>Ac.max){if(Ab>Ac.max){continue}AT=(Ac.max-Ab)/(Aa-Ab)*(AT-AU)+AU;Aa=Ac.max}}if(AU<=AT&&AU<Ad.min){if(AT<Ad.min){continue}Ab=(Ad.min-AU)/(AT-AU)*(Aa-Ab)+Ab;AU=Ad.min}else{if(AT<=AU&&AT<Ad.min){if(AU<Ad.min){continue}Aa=(Ad.min-AU)/(AT-AU)*(Aa-Ab)+Ab;AT=Ad.min}}if(AU>=AT&&AU>Ad.max){if(AT>Ad.max){continue}Ab=(Ad.max-AU)/(AT-AU)*(Aa-Ab)+Ab;AU=Ad.max}else{if(AT>=AU&&AT>Ad.max){if(AU>Ad.max){continue}Aa=(Ad.max-AU)/(AT-AU)*(Aa-Ab)+Ab;AT=Ad.max}}if(AU!=AW||Ab!=AV){Y.moveTo(Ad.p2c(AU)+AZ,Ac.p2c(Ab)+AR)}AW=AT;AV=Aa;Y.lineTo(Ad.p2c(AT)+AZ,Ac.p2c(Aa)+AR)}Y.stroke()}function AO(AX,Ae,Ac){var Af=AX.points,AR=AX.pointsize,AS=Math.min(Math.max(0,Ac.min),Ac.max),Aa,AV=0,Ad=false;for(var AW=AR;AW<Af.length;AW+=AR){var AU=Af[AW-AR],Ab=Af[AW-AR+1],AT=Af[AW],AZ=Af[AW+1];if(Ad&&AU!=null&&AT==null){Y.lineTo(Ae.p2c(AV),Ac.p2c(AS));Y.fill();Ad=false;continue}if(AU==null||AT==null){continue}if(AU<=AT&&AU<Ae.min){if(AT<Ae.min){continue}Ab=(Ae.min-AU)/(AT-AU)*(AZ-Ab)+Ab;AU=Ae.min}else{if(AT<=AU&&AT<Ae.min){if(AU<Ae.min){continue}AZ=(Ae.min-AU)/(AT-AU)*(AZ-Ab)+Ab;AT=Ae.min}}if(AU>=AT&&AU>Ae.max){if(AT>Ae.max){continue}Ab=(Ae.max-AU)/(AT-AU)*(AZ-Ab)+Ab;AU=Ae.max}else{if(AT>=AU&&AT>Ae.max){if(AU>Ae.max){continue}AZ=(Ae.max-AU)/(AT-AU)*(AZ-Ab)+Ab;AT=Ae.max}}if(!Ad){Y.beginPath();Y.moveTo(Ae.p2c(AU),Ac.p2c(AS));Ad=true}if(Ab>=Ac.max&&AZ>=Ac.max){Y.lineTo(Ae.p2c(AU),Ac.p2c(Ac.max));Y.lineTo(Ae.p2c(AT),Ac.p2c(Ac.max));AV=AT;continue}else{if(Ab<=Ac.min&&AZ<=Ac.min){Y.lineTo(Ae.p2c(AU),Ac.p2c(Ac.min));Y.lineTo(Ae.p2c(AT),Ac.p2c(Ac.min));AV=AT;continue}}var Ag=AU,AY=AT;if(Ab<=AZ&&Ab<Ac.min&&AZ>=Ac.min){AU=(Ac.min-Ab)/(AZ-Ab)*(AT-AU)+AU;Ab=Ac.min}else{if(AZ<=Ab&&AZ<Ac.min&&Ab>=Ac.min){AT=(Ac.min-Ab)/(AZ-Ab)*(AT-AU)+AU;AZ=Ac.min}}if(Ab>=AZ&&Ab>Ac.max&&AZ<=Ac.max){AU=(Ac.max-Ab)/(AZ-Ab)*(AT-AU)+AU;Ab=Ac.max}else{if(AZ>=Ab&&AZ>Ac.max&&Ab<=Ac.max){AT=(Ac.max-Ab)/(AZ-Ab)*(AT-AU)+AU;AZ=Ac.max}}if(AU!=Ag){if(Ab<=Ac.min){Aa=Ac.min}else{Aa=Ac.max}Y.lineTo(Ae.p2c(Ag),Ac.p2c(Aa));Y.lineTo(Ae.p2c(AU),Ac.p2c(Aa))}Y.lineTo(Ae.p2c(AU),Ac.p2c(Ab));Y.lineTo(Ae.p2c(AT),Ac.p2c(AZ));if(AT!=AY){if(AZ<=Ac.min){Aa=Ac.min}else{Aa=Ac.max}Y.lineTo(Ae.p2c(AT),Ac.p2c(Aa));Y.lineTo(Ae.p2c(AY),Ac.p2c(Aa))}AV=Math.max(AT,AY)}if(Ad){Y.lineTo(Ae.p2c(AV),Ac.p2c(AS));Y.fill()}}Y.save();Y.translate(e.left,e.top);Y.lineJoin="round";var AP=AN.lines.lineWidth,AK=AN.shadowSize;if(AP>0&&AK>0){Y.lineWidth=AK;Y.strokeStyle="rgba(0,0,0,0.1)";var AQ=Math.PI/18;AM(AN.datapoints,Math.sin(AQ)*(AP/2+AK/2),Math.cos(AQ)*(AP/2+AK/2),AN.xaxis,AN.yaxis);Y.lineWidth=AK/2;AM(AN.datapoints,Math.sin(AQ)*(AP/2+AK/4),Math.cos(AQ)*(AP/2+AK/4),AN.xaxis,AN.yaxis)}Y.lineWidth=AP;Y.strokeStyle=AN.color;var AL=V(AN.lines,AN.color,0,t);if(AL){Y.fillStyle=AL;AO(AN.datapoints,AN.xaxis,AN.yaxis)}if(AP>0){AM(AN.datapoints,0,0,AN.xaxis,AN.yaxis)}Y.restore()}function o(AN){function AP(AU,AT,Ab,AR,AV,AZ,AY){var Aa=AU.points,AQ=AU.pointsize;for(var AS=0;AS<Aa.length;AS+=AQ){var AX=Aa[AS],AW=Aa[AS+1];if(AX==null||AX<AZ.min||AX>AZ.max||AW<AY.min||AW>AY.max){continue}Y.beginPath();Y.arc(AZ.p2c(AX),AY.p2c(AW)+AR,AT,0,AV,false);if(Ab){Y.fillStyle=Ab;Y.fill()}Y.stroke()}}Y.save();Y.translate(e.left,e.top);var AO=AN.lines.lineWidth,AL=AN.shadowSize,AK=AN.points.radius;if(AO>0&&AL>0){var AM=AL/2;Y.lineWidth=AM;Y.strokeStyle="rgba(0,0,0,0.1)";AP(AN.datapoints,AK,null,AM+AM/2,Math.PI,AN.xaxis,AN.yaxis);Y.strokeStyle="rgba(0,0,0,0.2)";AP(AN.datapoints,AK,null,AM/2,Math.PI,AN.xaxis,AN.yaxis)}Y.lineWidth=AO;Y.strokeStyle=AN.color;AP(AN.datapoints,AK,V(AN.points,AN.color),0,2*Math.PI,AN.xaxis,AN.yaxis);Y.restore()}function AB(AV,AU,Ad,AQ,AY,AN,AL,AT,AS,Ac,AZ){var AM,Ab,AR,AX,AO,AK,AW,AP,Aa;if(AZ){AP=AK=AW=true;AO=false;AM=Ad;Ab=AV;AX=AU+AQ;AR=AU+AY;if(Ab<AM){Aa=Ab;Ab=AM;AM=Aa;AO=true;AK=false}}else{AO=AK=AW=true;AP=false;AM=AV+AQ;Ab=AV+AY;AR=Ad;AX=AU;if(AX<AR){Aa=AX;AX=AR;AR=Aa;AP=true;AW=false}}if(Ab<AT.min||AM>AT.max||AX<AS.min||AR>AS.max){return }if(AM<AT.min){AM=AT.min;AO=false}if(Ab>AT.max){Ab=AT.max;AK=false}if(AR<AS.min){AR=AS.min;AP=false}if(AX>AS.max){AX=AS.max;AW=false}AM=AT.p2c(AM);AR=AS.p2c(AR);Ab=AT.p2c(Ab);AX=AS.p2c(AX);if(AL){Ac.beginPath();Ac.moveTo(AM,AR);Ac.lineTo(AM,AX);Ac.lineTo(Ab,AX);Ac.lineTo(Ab,AR);Ac.fillStyle=AL(AR,AX);Ac.fill()}if(AO||AK||AW||AP){Ac.beginPath();Ac.moveTo(AM,AR+AN);if(AO){Ac.lineTo(AM,AX+AN)}else{Ac.moveTo(AM,AX+AN)}if(AW){Ac.lineTo(Ab,AX+AN)}else{Ac.moveTo(Ab,AX+AN)}if(AK){Ac.lineTo(Ab,AR+AN)}else{Ac.moveTo(Ab,AR+AN)}if(AP){Ac.lineTo(AM,AR+AN)}else{Ac.moveTo(AM,AR+AN)}Ac.stroke()}}function n(AM){function AL(AS,AR,AU,AP,AT,AW,AV){var AX=AS.points,AO=AS.pointsize;for(var AQ=0;AQ<AX.length;AQ+=AO){if(AX[AQ]==null){continue}AB(AX[AQ],AX[AQ+1],AX[AQ+2],AR,AU,AP,AT,AW,AV,Y,AM.bars.horizontal)}}Y.save();Y.translate(e.left,e.top);Y.lineWidth=AM.bars.lineWidth;Y.strokeStyle=AM.color;var AK=AM.bars.align=="left"?0:-AM.bars.barWidth/2;var AN=AM.bars.fill?function(AO,AP){return V(AM.bars,AM.color,AO,AP)}:null;AL(AM.datapoints,AK,AK+AM.bars.barWidth,0,AN,AM.xaxis,AM.yaxis);Y.restore()}function V(AM,AK,AL,AO){var AN=AM.fill;if(!AN){return null}if(AM.fillColor){return R(AM.fillColor,AL,AO,AK)}var AP=C.color.parse(AK);AP.a=typeof AN=="number"?AN:0.4;AP.normalize();return AP.toString()}function AI(){l.find(".legend").remove();if(!g.legend.show){return }var AP=[],AN=false,AV=g.legend.labelFormatter,AU,AR;for(i=0;i<O.length;++i){AU=O[i];AR=AU.label;if(!AR){continue}if(i%g.legend.noColumns==0){if(AN){AP.push("</tr>")}AP.push("<tr>");AN=true}if(AV){AR=AV(AR,AU)}AP.push('<td class="legendColorBox"><div style="border:1px solid '+g.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+AU.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+AR+"</td>")}if(AN){AP.push("</tr>")}if(AP.length==0){return }var AT='<table style="font-size:smaller;color:'+g.grid.color+'">'+AP.join("")+"</table>";if(g.legend.container!=null){C(g.legend.container).html(AT)}else{var AQ="",AL=g.legend.position,AM=g.legend.margin;if(AM[0]==null){AM=[AM,AM]}if(AL.charAt(0)=="n"){AQ+="top:"+(AM[1]+e.top)+"px;"}else{if(AL.charAt(0)=="s"){AQ+="bottom:"+(AM[1]+e.bottom)+"px;"}}if(AL.charAt(1)=="e"){AQ+="right:"+(AM[0]+e.right)+"px;"}else{if(AL.charAt(1)=="w"){AQ+="left:"+(AM[0]+e.left)+"px;"}}var AS=C('<div class="legend">'+AT.replace('style="','style="position:absolute;'+AQ+";")+"</div>").appendTo(l);if(g.legend.backgroundOpacity!=0){var AO=g.legend.backgroundColor;if(AO==null){AO=g.grid.backgroundColor;if(AO&&typeof AO=="string"){AO=C.color.parse(AO)}else{AO=C.color.extract(AS,"background-color")}AO.a=1;AO=AO.toString()}var AK=AS.children();C('<div style="position:absolute;width:'+AK.width()+"px;height:"+AK.height()+"px;"+AQ+"background-color:"+AO+';"> </div>').prependTo(AS).css("opacity",g.legend.backgroundOpacity)}}}var w=[],J=null;function AF(AR,AP,AM){var AX=g.grid.mouseActiveRadius,Aj=AX*AX+1,Ah=null,Aa=false,Af,Ad;for(Af=0;Af<O.length;++Af){if(!AM(O[Af])){continue}var AY=O[Af],AQ=AY.xaxis,AO=AY.yaxis,Ae=AY.datapoints.points,Ac=AY.datapoints.pointsize,AZ=AQ.c2p(AR),AW=AO.c2p(AP),AL=AX/AQ.scale,AK=AX/AO.scale;if(AY.lines.show||AY.points.show){for(Ad=0;Ad<Ae.length;Ad+=Ac){var AT=Ae[Ad],AS=Ae[Ad+1];if(AT==null){continue}if(AT-AZ>AL||AT-AZ<-AL||AS-AW>AK||AS-AW<-AK){continue}var AV=Math.abs(AQ.p2c(AT)-AR),AU=Math.abs(AO.p2c(AS)-AP),Ab=AV*AV+AU*AU;if(Ab<=Aj){Aj=Ab;Ah=[Af,Ad/Ac]}}}if(AY.bars.show&&!Ah){var AN=AY.bars.align=="left"?0:-AY.bars.barWidth/2,Ag=AN+AY.bars.barWidth;for(Ad=0;Ad<Ae.length;Ad+=Ac){var AT=Ae[Ad],AS=Ae[Ad+1],Ai=Ae[Ad+2];if(AT==null){continue}if(O[Af].bars.horizontal?(AZ<=Math.max(Ai,AT)&&AZ>=Math.min(Ai,AT)&&AW>=AS+AN&&AW<=AS+Ag):(AZ>=AT+AN&&AZ<=AT+Ag&&AW>=Math.min(Ai,AS)&&AW<=Math.max(Ai,AS))){Ah=[Af,Ad/Ac]}}}}if(Ah){Af=Ah[0];Ad=Ah[1];Ac=O[Af].datapoints.pointsize;return{datapoint:O[Af].datapoints.points.slice(Ad*Ac,(Ad+1)*Ac),dataIndex:Ad,series:O[Af],seriesIndex:Af}}return null}function D(AK){if(g.grid.hoverable){H("plothover",AK,function(AL){return AL.hoverable!=false})}}function d(AK){H("plotclick",AK,function(AL){return AL.clickable!=false})}function H(AL,AK,AM){var AN=AD.offset(),AS={pageX:AK.pageX,pageY:AK.pageY},AQ=AK.pageX-AN.left-e.left,AO=AK.pageY-AN.top-e.top;if(s.xaxis.used){AS.x=s.xaxis.c2p(AQ)}if(s.yaxis.used){AS.y=s.yaxis.c2p(AO)}if(s.x2axis.used){AS.x2=s.x2axis.c2p(AQ)}if(s.y2axis.used){AS.y2=s.y2axis.c2p(AO)}var AT=AF(AQ,AO,AM);if(AT){AT.pageX=parseInt(AT.series.xaxis.p2c(AT.datapoint[0])+AN.left+e.left);AT.pageY=parseInt(AT.series.yaxis.p2c(AT.datapoint[1])+AN.top+e.top)}if(g.grid.autoHighlight){for(var AP=0;AP<w.length;++AP){var AR=w[AP];if(AR.auto==AL&&!(AT&&AR.series==AT.series&&AR.point==AT.datapoint)){x(AR.series,AR.point)}}if(AT){AE(AT.series,AT.datapoint,AL)}}l.trigger(AL,[AS,AT])}function q(){if(!J){J=setTimeout(v,30)}}function v(){J=null;AJ.save();AJ.clearRect(0,0,y,Q);AJ.translate(e.left,e.top);var AL,AK;for(AL=0;AL<w.length;++AL){AK=w[AL];if(AK.series.bars.show){z(AK.series,AK.point)}else{u(AK.series,AK.point)}}AJ.restore();Z(L.drawOverlay,[AJ])}function AE(AM,AK,AN){if(typeof AM=="number"){AM=O[AM]}if(typeof AK=="number"){AK=AM.data[AK]}var AL=j(AM,AK);if(AL==-1){w.push({series:AM,point:AK,auto:AN});q()}else{if(!AN){w[AL].auto=false}}}function x(AM,AK){if(AM==null&&AK==null){w=[];q()}if(typeof AM=="number"){AM=O[AM]}if(typeof AK=="number"){AK=AM.data[AK]}var AL=j(AM,AK);if(AL!=-1){w.splice(AL,1);q()}}function j(AM,AN){for(var AK=0;AK<w.length;++AK){var AL=w[AK];if(AL.series==AM&&AL.point[0]==AN[0]&&AL.point[1]==AN[1]){return AK}}return -1}function u(AN,AM){var AL=AM[0],AR=AM[1],AQ=AN.xaxis,AP=AN.yaxis;if(AL<AQ.min||AL>AQ.max||AR<AP.min||AR>AP.max){return }var AO=AN.points.radius+AN.points.lineWidth/2;AJ.lineWidth=AO;AJ.strokeStyle=C.color.parse(AN.color).scale("a",0.5).toString();var AK=1.5*AO;AJ.beginPath();AJ.arc(AQ.p2c(AL),AP.p2c(AR),AK,0,2*Math.PI,false);AJ.stroke()}function z(AN,AK){AJ.lineWidth=AN.bars.lineWidth;AJ.strokeStyle=C.color.parse(AN.color).scale("a",0.5).toString();var AM=C.color.parse(AN.color).scale("a",0.5).toString();var AL=AN.bars.align=="left"?0:-AN.bars.barWidth/2;AB(AK[0],AK[1],AK[2]||0,AL,AL+AN.bars.barWidth,0,function(){return AM},AN.xaxis,AN.yaxis,AJ,AN.bars.horizontal)}function R(AM,AL,AQ,AO){if(typeof AM=="string"){return AM}else{var AP=Y.createLinearGradient(0,AQ,0,AL);for(var AN=0,AK=AM.colors.length;AN<AK;++AN){var AR=AM.colors[AN];if(typeof AR!="string"){AR=C.color.parse(AO).scale("rgb",AR.brightness);AR.a*=AR.opacity;AR=AR.toString()}AP.addColorStop(AN/(AK-1),AR)}return AP}}}C.plot=function(G,E,D){var F=new B(C(G),E,D,C.plot.plugins);return F};C.plot.plugins=[];C.plot.formatDate=function(H,E,G){var L=function(N){N=""+N;return N.length==1?"0"+N:N};var D=[];var M=false;var K=H.getUTCHours();var I=K<12;if(G==null){G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(E.search(/%p|%P/)!=-1){if(K>12){K=K-12}else{if(K==0){K=12}}}for(var F=0;F<E.length;++F){var J=E.charAt(F);if(M){switch(J){case"h":J=""+K;break;case"H":J=L(K);break;case"M":J=L(H.getUTCMinutes());break;case"S":J=L(H.getUTCSeconds());break;case"d":J=""+H.getUTCDate();break;case"m":J=""+(H.getUTCMonth()+1);break;case"y":J=""+H.getUTCFullYear();break;case"b":J=""+G[H.getUTCMonth()];break;case"p":J=(I)?("am"):("pm");break;case"P":J=(I)?("AM"):("PM");break}D.push(J);M=false}else{if(J=="%"){M=true}else{D.push(J)}}}return D.join("")};function A(E,D){return D*Math.floor(E/D)}})(jQuery); diff --git a/themes/blueprint/js/flot/jquery.flot.selection.min.js b/themes/blueprint/js/flot/jquery.flot.selection.min.js deleted file mode 100644 index 03ab65b458f28e828937ae410bd55bba5f4b260a..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/flot/jquery.flot.selection.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(A){function B(J){var O={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false};var L={};function D(Q){if(O.active){J.getPlaceholder().trigger("plotselecting",[F()]);K(Q)}}function M(Q){if(Q.which!=1){return }document.body.focus();if(document.onselectstart!==undefined&&L.onselectstart==null){L.onselectstart=document.onselectstart;document.onselectstart=function(){return false}}if(document.ondrag!==undefined&&L.ondrag==null){L.ondrag=document.ondrag;document.ondrag=function(){return false}}C(O.first,Q);O.active=true;A(document).one("mouseup",I)}function I(Q){if(document.onselectstart!==undefined){document.onselectstart=L.onselectstart}if(document.ondrag!==undefined){document.ondrag=L.ondrag}O.active=false;K(Q);if(E()){H()}else{J.getPlaceholder().trigger("plotunselected",[]);J.getPlaceholder().trigger("plotselecting",[null])}return false}function F(){if(!E()){return null}var R=Math.min(O.first.x,O.second.x),Q=Math.max(O.first.x,O.second.x),T=Math.max(O.first.y,O.second.y),S=Math.min(O.first.y,O.second.y);var U={};var V=J.getAxes();if(V.xaxis.used){U.xaxis={from:V.xaxis.c2p(R),to:V.xaxis.c2p(Q)}}if(V.x2axis.used){U.x2axis={from:V.x2axis.c2p(R),to:V.x2axis.c2p(Q)}}if(V.yaxis.used){U.yaxis={from:V.yaxis.c2p(T),to:V.yaxis.c2p(S)}}if(V.y2axis.used){U.y2axis={from:V.y2axis.c2p(T),to:V.y2axis.c2p(S)}}return U}function H(){var Q=F();J.getPlaceholder().trigger("plotselected",[Q]);var R=J.getAxes();if(R.xaxis.used&&R.yaxis.used){J.getPlaceholder().trigger("selected",[{x1:Q.xaxis.from,y1:Q.yaxis.from,x2:Q.xaxis.to,y2:Q.yaxis.to}])}}function G(R,S,Q){return S<R?R:(S>Q?Q:S)}function C(U,R){var T=J.getOptions();var S=J.getPlaceholder().offset();var Q=J.getPlotOffset();U.x=G(0,R.pageX-S.left-Q.left,J.width());U.y=G(0,R.pageY-S.top-Q.top,J.height());if(T.selection.mode=="y"){U.x=U==O.first?0:J.width()}if(T.selection.mode=="x"){U.y=U==O.first?0:J.height()}}function K(Q){if(Q.pageX==null){return }C(O.second,Q);if(E()){O.show=true;J.triggerRedrawOverlay()}else{P(true)}}function P(Q){if(O.show){O.show=false;J.triggerRedrawOverlay();if(!Q){J.getPlaceholder().trigger("plotunselected",[])}}}function N(R,Q){var T,S,U=J.getAxes();var V=J.getOptions();if(V.selection.mode=="y"){O.first.x=0;O.second.x=J.width()}else{T=R.xaxis?U.xaxis:(R.x2axis?U.x2axis:U.xaxis);S=R.xaxis||R.x2axis||{from:R.x1,to:R.x2};O.first.x=T.p2c(Math.min(S.from,S.to));O.second.x=T.p2c(Math.max(S.from,S.to))}if(V.selection.mode=="x"){O.first.y=0;O.second.y=J.height()}else{T=R.yaxis?U.yaxis:(R.y2axis?U.y2axis:U.yaxis);S=R.yaxis||R.y2axis||{from:R.y1,to:R.y2};O.first.y=T.p2c(Math.min(S.from,S.to));O.second.y=T.p2c(Math.max(S.from,S.to))}O.show=true;J.triggerRedrawOverlay();if(!Q){H()}}function E(){var Q=5;return Math.abs(O.second.x-O.first.x)>=Q&&Math.abs(O.second.y-O.first.y)>=Q}J.clearSelection=P;J.setSelection=N;J.getSelection=F;J.hooks.bindEvents.push(function(R,Q){var S=R.getOptions();if(S.selection.mode!=null){Q.mousemove(D)}if(S.selection.mode!=null){Q.mousedown(M)}});J.hooks.drawOverlay.push(function(T,Y){if(O.show&&E()){var R=T.getPlotOffset();var Q=T.getOptions();Y.save();Y.translate(R.left,R.top);var U=A.color.parse(Q.selection.color);Y.strokeStyle=U.scale("a",0.8).toString();Y.lineWidth=1;Y.lineJoin="round";Y.fillStyle=U.scale("a",0.4).toString();var W=Math.min(O.first.x,O.second.x),V=Math.min(O.first.y,O.second.y),X=Math.abs(O.second.x-O.first.x),S=Math.abs(O.second.y-O.first.y);Y.fillRect(W,V,X,S);Y.strokeRect(W,V,X,S);Y.restore()}})}A.plot.plugins.push({init:B,options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.0"})})(jQuery); diff --git a/themes/blueprint/js/hierarchyTree_JSTree.js b/themes/blueprint/js/hierarchyTree_JSTree.js deleted file mode 100644 index dafb0f442458a2709782d845a55e30ea37e6f306..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/hierarchyTree_JSTree.js +++ /dev/null @@ -1,271 +0,0 @@ -/*global hierarchySettings, path, vufindString*/ - -var hierarchyID; -var baseTreeSearchFullURL; - -function showTreeError(msg) -{ - $("#hierarchyTreeHolder").html('<p class="error">' + msg + '</p>'); -} - -function getRecord(recordID) -{ - $.ajax({ - url: path + '/Hierarchy/GetRecord?' + $.param({id: recordID}), - dataType: 'html', - success: function(response) { - if (response) { - $('#hierarchyRecord').html(response); - // Remove the old path highlighting - $('#hierarchyTree a').removeClass("jstree-highlight"); - // Add Current path highlighting - var jsTreeNode = $(":input[value='"+recordID+"']").parent(); - jsTreeNode.children("a").addClass("jstree-highlight"); - jsTreeNode.parents("li").children("a").addClass("jstree-highlight"); - } - } - }); -} - -function hideFullHierarchy(jsTreeNode) -{ - // Hide all nodes - $('#hierarchyTree li').hide(); - // Show the nodes on the current path - $(jsTreeNode).show().parents().show(); - // Show the nodes below the current path - $(jsTreeNode).find("li").show(); -} - -function scroll(scroller, mode) -{ - // Get the currently cicked item - var jsTreeNode = $(".jstree-clicked").parent('li'); - // Toggle display of closed nodes - $('#hierarchyTree li.jstree-closed').toggle(); - if (mode == "show") { - $('#hierarchyTree li').show(); - $(scroller).animate({ - scrollTop: -$(scroller).scrollTop() - }); - $('#toggleTree').html(vufindString.hideTree); - } else { - hideFullHierarchy(jsTreeNode); - $(scroller).animate({ - scrollTop: $(jsTreeNode).offset().top - $(scroller).offset().top + $(scroller).scrollTop() - }); - $('#toggleTree').html(vufindString.showTree); - } -} - -function changeNoResultLabel(display) -{ - if (display) { - $("#treeSearchNoResults").show(); - } else { - $("#treeSearchNoResults").hide(); - } -} - -function changeLimitReachedLabel(display) -{ - if (display) { - $("#treeSearchLimitReached").show(); - } else { - $("#treeSearchLimitReached").hide(); - } -} - -function doTreeSearch() -{ - var keyword = $("#treeSearchText").val(); - if (keyword == ""){ - changeNoResultLabel(true); - return; - } - var searchType = $("#treeSearchType").val(); - - $("#treeSearchLoadingImg").show(); - $.getJSON(path + '/Hierarchy/SearchTree?' + $.param({'lookfor': keyword, 'hierarchyID': hierarchyID, 'type': searchType}), function(results) - { - if (results["limitReached"] == true) { - if(typeof(baseTreeSearchFullURL) == "undefined" || baseTreeSearchFullURL == null){ - baseTreeSearchFullURL = $("#fullSearchLink").attr("href"); - } - $("#fullSearchLink").attr("href", baseTreeSearchFullURL + "?lookfor="+ keyword + "&filter[]=hierarchy_top_id:\"" + hierarchyID + "\""); - changeLimitReachedLabel(true); - } else { - changeLimitReachedLabel(false); - } - - if (results["results"].length >= 1) { - $("#hierarchyTree .jstree-search").removeClass("jstree-search"); - $("#hierarchyTree").jstree("close_all", hierarchyID); - changeNoResultLabel(false); - } else { - $("#hierarchyTree .jstree-search").removeClass("jstree-search"); - changeNoResultLabel(true); - } - - $.each(results["results"], function(key, val) - { - var jsTreeNode = $('.jsTreeID:input[value="'+val+'"]').parent(); - if (jsTreeNode.hasClass("jstree-closed")) { - jsTreeNode.removeClass("jstree-closed").addClass("jstree-open"); - } - jsTreeNode.show().children('a:first').addClass("jstree-search"); - var parents = $(jsTreeNode).parents(); - parents.each(function() { - if ($(this).hasClass("jstree-closed")) { - $(this).removeClass("jstree-closed").addClass("jstree-open"); - } - $(this).show(); - }); - }); - if (results["results"].length == 1) { - $("#hierarchyTree .jstree-clicked").removeClass("jstree-clicked"); - // only do this for collection pages - if ($(".Collection").length != 0) { - getRecord(results["results"][0]); - } - } - $("#treeSearchLoadingImg").hide(); - }); -} -// Code for the search button -$(function () -{ - $("#treeSearch input").click(function () - { - if (this.id == "search") { - doTreeSearch(); - } - }); -}); - -$(document).ready(function() -{ - hierarchyID = $("#hierarchyTree").find(".hiddenHierarchyId")[0].value; - var recordID = $("#hierarchyTree").find(".hiddenRecordId")[0].value; - var scroller = hierarchySettings.lightboxMode ? '#modalDialog' : '#hierarchyTree'; - var context = $("#hierarchyTree").find(".hiddenContext")[0].value; - - if (!hierarchySettings.fullHierarchy) { - // Set Up Partial Hierarchy View Toggle - $('#hierarchyTree').parent().prepend('<a href="#" id="toggleTree" class="closed">' + vufindString.showTree + '</a>'); - $('#toggleTree').click(function(e) - { - e.preventDefault(); - $(this).toggleClass("open"); - if ($(this).hasClass("open")) { - scroll(scroller, "show"); - } else { - scroll(scroller, "hide"); - } - $("#hierarchyTree").jstree("toggle_dots"); - }); - } - - $("#hierarchyTree") - .bind("loaded.jstree", function (event, data) - { - var idList = $('#hierarchyTree .JSTreeID'); - $(idList).each(function() - { - var id = $.trim($(this).text()); - $(this).before('<input type="hidden" class="jsTreeID '+context+ '" value="'+id+'" />'); - $(this).remove(); - }); - - $(".Collection").each(function() - { - var id = $(this).attr("value"); - $(this).next("a").click(function(e) - { - e.preventDefault(); - $("#hierarchyTree a").removeClass("jstree-clicked"); - $(this).addClass("jstree-clicked"); - // Open this node - $(this).parent().removeClass("jstree-closed").addClass("jstree-open"); - getRecord(id); - return false; - }); - }); - - $("#hierarchyTree a").click(function(e) - { - e.preventDefault(); - if (context == "Record") { - window.location = $(this).attr("href"); - } - if ($('#toggleTree').length > 0 && !$('#toggleTree').hasClass("open")) { - hideFullHierarchy($(this).parent()); - } - }); - - var jsTreeNode = $(".jsTreeID:input[value='"+recordID+"']").parent(); - // Open Nodes to Current Path - jsTreeNode.parents("li").removeClass("jstree-closed").addClass("jstree-open"); - // Initially Open Current node too - jsTreeNode.removeClass("jstree-closed").addClass("jstree-open"); - // Add clicked class - $("> a", jsTreeNode).addClass("jstree-clicked"); - // Add highlight class to parents - jsTreeNode.parents("li").children("a").addClass("jstree-highlight"); - - if (!hierarchySettings.fullHierarchy) { - // Initial hide of nodes outside current path - hideFullHierarchy(jsTreeNode); - $("#hierarchyTree").jstree("toggle_dots"); - } - // Scroll to the current record - $(scroller).delay(250).animate({ - scrollTop: jsTreeNode.offset().top - $(scroller).offset().top + $(scroller).scrollTop() - }); - }) - .jstree({ - "xml_data" : { - "ajax" : { - "url" : path + '/Hierarchy/GetTree?' + $.param({'hierarchyID': hierarchyID, 'id': recordID, 'context': context, mode: "Tree"}), - success: function(data) - { - // Necessary as data is a string - var dataAsXML = $.parseXML(data); - if(dataAsXML) { - var error = $(dataAsXML).find("error"); - if (error.length > 0) { - showTreeError($(error).text()); - return false; - } else { - return data; - } - } else { - showTreeError("Unable to Parse XML"); - } - }, - failure: function() - { - showTreeError("Unable to Load Tree"); - } - }, - "xsl" : "nest" - }, - "plugins" : [ "themes", "xml_data", "ui" ], - "themes" : { - "url": path + '/themes/blueprint/js/jsTree/themes/vufind/style.css' - } - }).bind("open_node.jstree close_node.jstree", function (e, data) - { - $(data.args[0]).find("li").show(); - }); - - $('#treeSearch').show(); - $('#treeSearchText').bind('keypress', function(e) - { - var code = (e.keyCode ? e.keyCode : e.which); - if(code == 13) { - // Enter keycode should call the search code - doTreeSearch(); - } - }); -}); \ No newline at end of file diff --git a/themes/blueprint/js/hold.js b/themes/blueprint/js/hold.js deleted file mode 100644 index 486506db6f04bb313e9e2260402a59a4caf4c5d6..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/hold.js +++ /dev/null @@ -1,42 +0,0 @@ -/*global path */ -function setUpHoldRequestForm(recordId) { - $('#requestGroupId').change(function() { - var $emptyOption = $("#pickUpLocation option[value='']"); - $("#pickUpLocation option[value!='']").remove(); - if ($('#requestGroupId').val() === '') { - $('#pickUpLocation').attr('disabled', 'disabled'); - return; - } - $('#pickUpLocationLabel').addClass("ajax_hold_request_loading"); - var params = { - method: 'getRequestGroupPickupLocations', - id: recordId, - requestGroupId: $('#requestGroupId').val() - }; - $.ajax({ - data: params, - dataType: 'json', - cache: false, - url: path + '/AJAX/JSON', - success: function(response) { - if (response.status == 'OK') { - var defaultValue = $('#pickUpLocation').data('default'); - $.each(response.data.locations, function() { - var option = $('<option></option>').attr('value', this.locationID).text(this.locationDisplay); - if (this.locationID == defaultValue || (defaultValue == '' && this.isDefault && $emptyOption.length == 0)) { - option.attr('selected', 'selected'); - } - $('#pickUpLocation').append(option); - }); - } - $('#pickUpLocationLabel').removeClass("ajax_hold_request_loading"); - $('#pickUpLocation').removeAttr('disabled'); - }, - fail: function() { - $('#pickUpLocationLabel').removeClass("ajax_hold_request_loading"); - $('#pickUpLocation').removeAttr('disabled'); - } - }); - }); - $('#requestGroupId').change(); -} diff --git a/themes/blueprint/js/ill.js b/themes/blueprint/js/ill.js deleted file mode 100644 index e299090be42c60bf290de463948bfc82e274778f..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/ill.js +++ /dev/null @@ -1,30 +0,0 @@ -/*global path */ -function setUpILLRequestForm(recordId) { - $("#ILLRequestForm #pickupLibrary").change(function() { - $("#ILLRequestForm #pickupLibraryLocation option").remove(); - $("#ILLRequestForm #pickupLibraryLocationLabel").addClass("ajax_ill_request_loading"); - var url = path + '/AJAX/JSON?' + $.param({method:'getLibraryPickupLocations', id: recordId, pickupLib: $("#ILLRequestForm #pickupLibrary").val() }); - $.ajax({ - dataType: 'json', - cache: false, - url: url, - success: function(response) { - if (response.status == 'OK') { - $.each(response.data.locations, function() { - var option = $("<option></option>").attr("value", this.id).text(this.name); - if (this.isDefault) { - option.attr("selected", "selected"); - } - $("#ILLRequestForm #pickupLibraryLocation").append(option); - }); - } - $("#ILLRequestForm #pickupLibraryLocationLabel").removeClass("ajax_ill_request_loading"); - }, - fail: function() { - $("#ILLRequestForm #pickupLibraryLocationLabel").removeClass("ajax_ill_request_loading"); - } - }); - - }); - $("#ILLRequestForm #pickupLibrary").change(); -} diff --git a/themes/blueprint/js/jquery-ui/README-build-options.txt b/themes/blueprint/js/jquery-ui/README-build-options.txt deleted file mode 100644 index 98bfa6d8a1048eb139990d7be338ee498e564104..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery-ui/README-build-options.txt +++ /dev/null @@ -1,5 +0,0 @@ -UI Core: all -Interactions: Draggable, Droppable -Widgets: Autocomplete, Dialog, Tabs, Slider -Effects: none -Theme: smoothness \ No newline at end of file diff --git a/themes/blueprint/js/jquery-ui/js/img-rotate.js b/themes/blueprint/js/jquery-ui/js/img-rotate.js deleted file mode 100644 index 9d053a9f79dec419f8273c2665e1726b3a3a973b..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery-ui/js/img-rotate.js +++ /dev/null @@ -1,50 +0,0 @@ -/* jquery-rotate-0.1.js August 4th 2011 - * A simple plugin to do cross-browser CSS rotations with backwards compatibility - * - * Written by Austen Hoogen - * http://www.austenhoogen.com - * - * This plugin is Open Source Software released under GPL v3 - * - * This software comes with no guarantees. Use at your own risk. - * Use your attorney fees for good, not evil. Donate to a charity instead. - */ - -(function( $ ){ - $.fn.rotate = function(degrees){ - if ($.browser.msie) { - // This fix unearthed from: - // http://msdn.microsoft.com/en-us/library/ms533014%28v=vs.85%29.aspx - // A simple explanation that [MXX] uses the sine and cosine of radians - // instead of degrees would have sped up the search quite a bit... - // But why would we want adequate and verbose documentation?? - // Who enjoys actually getting work done anyway?? Srsly... - deg2radians = Math.PI * 2 / 360; - rad = degrees * deg2radians ; - costheta = Math.cos(rad); - sintheta = Math.sin(rad); - - M11 = costheta; - M12 = -sintheta; - M21 = sintheta; - M22 = costheta; - - msUglyStepdaughterCode = "progid:DXImageTransform.Microsoft.Matrix("; - msUglyStepdaughterCode += "M11=" + M11 + ", M12=" + M12 + ", M21=" + M21 + ", M22=" + M22; - msUglyStepdaughterCode += ", sizingMethod='auto expand')" - - this.css("-ms-transform","rotate(" + degrees + "deg)"); - this.css("filter",msUglyStepdaughterCode); - this.css("zoom","1"); - } else if ($.browser.webkit) { - this.css("-webkit-transform","rotate(" + degrees + "deg)"); - } else if ($.browser.opera) { - this.css("-o-transform","rotate(" + degrees + "deg)"); - } else if ($.browser.mozilla) { - this.css("-moz-transform","rotate(" + degrees + "deg)"); - } else { - this.css("transform","rotate(" + degrees + "deg)"); - } - return this; - }; -})( jQuery); \ No newline at end of file diff --git a/themes/blueprint/js/jquery-ui/js/inspector.js b/themes/blueprint/js/jquery-ui/js/inspector.js deleted file mode 100644 index 3f03947c26c86d8f5c4a5ef346819bba9278b26d..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery-ui/js/inspector.js +++ /dev/null @@ -1,454 +0,0 @@ -/* - * JS Frame for Zooming and Rotating an Image - * - * - Only has one method: $(container).inspector(img-src); - * - Used for initializing ^^^^^^^^^ - * and loading images - * - * Chris Hallberg <crhallberg@gmail.com - * Version 2.0b3 : 30 May 2012 // Map offset bugs - * Version 2.0b2 : 25 May 2012 // Fixed image loading bugs - * Version 2.0b1 : 19 October 2011 // FF bounding problems - * Version 2.0 : 18 October 2011 // Major rewrite of bounding code :) - */ - -(function($){ - var methods = { - init : function(elem) { - $(elem).html('') - .addClass('jquery_inspector') - .css({ - 'overflow':'hidden', - 'position':'relative', - 'width' :$(elem).attr('width'), - 'height' :$(elem).attr('height'), - 'background':'#000' - }) - $('<div>').addClass("drag-master") - .css({'margin':'0'}) - .appendTo(elem) - .attr('unselectable', 'on') // prevent selection - .each(function(){this.onselectstart=function(){return false}}); - $('<span>').addClass("loading") - .html('Loading...') - .appendTo(elem); - $('<img/>').addClass('doc').appendTo('.drag-master',elem); - // ZOOM DISPLAY - $('<div>').addClass('zoom_level') - .html('<a class="minus">–</a> <span></span> <a class="plus">+</a>') - .appendTo(elem); - // ZOOM SET TEXT BOX - $('<style></style>').appendTo('head'); - $('<div></div>').addClass('zoom-set') - .html('<input type="number" size="3" min="5" value="100" max="800" step="5" id="new-zoom-level">') - .appendTo(elem).hide(); - $('<button>%</button>').appendTo('.zoom-set',elem); - // ROTATE LEFT ARROW - $('<div>').addClass('turn_left') - .html('<img src="http://upload.wikimedia.org/wikipedia/commons/f/f7/Farm-Fresh_arrow_rotate_anticlockwise.png">') - .appendTo(elem); - // ROTATE RIGHT ARROW - $('<div>').addClass('turn_right') - .html('<img src="http://upload.wikimedia.org/wikipedia/commons/1/1b/Farm-Fresh_arrow_rotate_clockwise.png">') - .appendTo(elem); - // MAP - $('<div>').addClass('doc_map') - .html('<img src=""><div class="pane"> </div>') - .appendTo(elem); - }, - - // ASSIGN CLICKS DEPENDENT ON STATE - setHandlers: function(elem,state) { - $(elem).resize(function() { - methods.setDrag($('.doc',elem),elem,state); - }); - $(window) - .unbind('load resize scroll') - .load(function() { - methods.setDrag($('.doc',elem),$(elem),state); - }) - .resize(function() { - methods.setDrag($('.doc',elem),elem,state); - }) - .scroll(function() { - methods.setDrag($('.doc',elem),elem,state); - }); - $('.drag-master',elem) - .unbind('click mousewheel') - .click(function(){$('.zoom-set',elem).hide()}) // hide bubble on unfocus - // ZOOMING IN AND OUT - .mousewheel(function(event,delta){ // zoom with mouse scroll - event.preventDefault(); - methods.zoom.call(this,elem,event,delta,state); - }); - $(elem).find('.doc_map .pane') - .unbind('mousewheel') - .mousewheel(function(event,delta){ // zoom with mouse scroll on map - event.preventDefault(); - var newZoom = state.zoom * (1+(delta/4)); - methods.setZoom(elem,newZoom,state); - }); - $('.turn_left',elem) - .unbind('click') - .click(function() { // rotate image counter-clockwise - state.angle -= 90; - $(elem).find('.doc,.doc_map img').rotate(state.angle); - // center - methods.resize($('.doc',elem),elem,state); - methods.setDrag($('.doc',elem),elem,state); - }) - $('.turn_right',elem) - .unbind('click') - .click(function() { // rotate image clockwise - state.angle += 90; - $(elem).find('.doc,.doc_map img').rotate(state.angle); - // center - methods.resize($('.doc',elem),elem,state); - methods.setDrag($('.doc',elem),elem,state); - }); - // IE doc_map rotation - if($.browser.msie) { - $(elem).find('.turn_left,.turn_right').click(function() { - if(state.angle%180 > 0) { - var margin = (state.mapHeight-state.mapWidth)/2; - $(elem).find('.doc_map img').css({ - 'left':state.mapX-margin, - 'top' :state.mapY+margin - }); - } else { - $(elem).find('.doc_map img').css({ - 'left':state.mapX, - 'top' :state.mapY - }); - } - }); - } - $('.zoom-set button',elem) - .unbind('click') - .click(function () { // zoom to typed level - methods.setZoom(elem,$('#new-zoom-level').val()/100,state); - }); - $('.zoom_level span',elem) - .unbind('click') - .click(function() { // clicking the percent opens zoom bubble - $('.zoom-set',elem).toggle(); - }); - $('.zoom_level .plus',elem) - .unbind('click') - .click(function() { // zoom in button - methods.setZoom(elem,state.zoom*1.5,state); - }) - $('.zoom_level .minus',elem) - .unbind('click') - .click(function() { // zoom out button - methods.setZoom(elem,state.zoom*.5,state); - }) - }, - - load: function(elem,src) { - //alert('load'); - $('.loading',elem).show(); - $('.drag-master').css({'cursor':'progress'}); - var state = { - angle:0, - padding:0, - img:src - }; - $('.doc',elem) - .css({ - 'width':'auto', - 'height':'auto' - }) - .unbind('load') - .load(function() { - //alert('img loaded'); - state.width = $(this).width(); - state.height = $(this).height(); - state.size = Math.max(state.width,state.height); - state.zoom = $(elem).width()/state.width; - $(this).css({ - 'position':'absolute' - }) - state = methods.fit(elem,this,state); - $('.zoom_level span',elem).html(Math.round(state.zoom*100)+"%"); - // stop loading - $('.loading',elem).hide(); - $(this).show(); - // map - state.mapSize = 140/state.size; - state.mapWidth = (state.width*state.mapSize); - state.mapHeight = (state.height*state.mapSize); - state.mapX = ((150-state.mapWidth)/2); - state.mapY = ((150-state.mapHeight)/2); - $(elem).find('.doc_map img').css({ - 'width' :state.mapWidth, - 'height':state.mapHeight, - 'left':state.mapX, - 'top':state.mapY - }).rotate(0); - // trying to improve drag performance - $(elem).find('.doc,.doc_map img').rotate(360); - methods.resize($('.doc',elem),elem,state); - methods.setDrag($('.doc',elem),elem,state); - methods.mapDrag({position:{left:$(elem).offset().left,top:$(elem).offset().top}},elem,this,state); - // show signs of life - $('.drag-master').css({'cursor':'move'}); - }) - .attr('src',src) - .hide(); - $(elem).find('.doc_map img').attr('src',src); - return state; - }, - - zoom : function(elem,event,delta,state) { - var newZoom = state.zoom * (1+(delta/4)); - if(newZoom < state.minZoom) newZoom = state.minZoom; - else if(newZoom > 8) newZoom = 8; - if(newZoom == state.zoom) return; - state.center = [ - event.pageX, - event.pageY, - (event.pageX-$('.drag-master',elem).offset().left)/state.zoom, - (event.pageY-$('.drag-master',elem).offset().top) /state.zoom - ]; - state.zoom = newZoom; - methods.resize($('.doc',elem),elem,state,true); - }, - - setZoom : function(elem,newZoom,state) { - if(newZoom < state.minZoom) newZoom = state.minZoom; - if(newZoom > 8) newZoom = 8; // 800% - if(state.zoom == newZoom) return; - var centerX = $(elem).offset().left+($(elem).width()/2); - var centerY = $(elem).offset().top+($(elem).height()/2); - state.center = [ - centerX, - centerY, - (centerX-$(elem).find('.drag-master').offset().left)/state.zoom, - (centerY-$(elem).find('.drag-master').offset().top) /state.zoom - ]; - state.zoom = newZoom; - methods.resize($(elem).find('.doc'),elem,state,true); - $('.zoom-set',elem).hide(); - }, - - setDrag : function(pic,elem,state) { - // container sides - var eOffset = $(elem).offset(); - var left = eOffset.left; - var right = eOffset.left+$(elem).width(); - var top = eOffset.top; - var bottom = eOffset.top+$(elem).height(); - // image size - var width = $(pic).width(); - var height = $(pic).height(); - // rotation fix - if(!$.browser.msie && state.angle%180 > 0) { - width = height; - height = $(pic).width(); - } - - var DM = $(elem).find('.drag-master'); - var offsetX = (DM.width()-width)/2; - var offsetY = (DM.height()-height)/2; - var vals = [ - left - offsetX, - top - offsetY, - right - offsetX - width, - bottom - offsetY - height - ]; - var cont = []; - for(i in vals) cont[i] = vals[i]; - - if(width > $(elem).width()) { - cont[0] = vals[2]; - cont[2] = vals[0]; - } - if(height > $(elem).height()) { - cont[1] = vals[3]; - cont[3] = vals[1]; - } - - $(elem).find('.drag-master').draggable({ - containment:cont, - scroll:false, - drag:function(event,ui) { - methods.mapDrag(ui,elem,pic,state); - } - }); - }, - - // FIT PICTURE TO FRAME - fit : function(elem,img,state) { - if($(elem).width() > $(elem).height()) { - state.zoom = ($(elem).height()*.95)/state.size; - } else { - state.zoom = ($(elem).width()*.95)/state.size; - } - state.minZoom = state.zoom*.9; - state.center = [ - $(elem).offset().left+$(elem).width()/2, - $(elem).offset().top+$(elem).height()/2, - 0, - 0 - ]; - methods.resize(img,elem,state,true); - // center - $('.drag-master',elem).css({ - //'background':'#222', //debug - 'top' :Math.floor(($(elem).height()-(state.size*state.zoom))/2)-1, - 'left' :Math.floor(($(elem).width() -(state.size*state.zoom))/2) - }); - // init pane - $(elem).find('.pane').css({ - 'left':state.mapX, - 'top':state.mapY, - 'right':state.mapX, - 'bottom':state.mapY - }); - return state; - }, - - resize : function(img,elem,state,center) { - if(state.angle%180 > 0 && $.browser.msie) { - var margin = Math.abs(state.height-state.width)*state.zoom/2; - $(img).css({ - 'width' :state.width*state.zoom, - 'height':state.height*state.zoom, - 'top' :(state.size-state.height)*state.zoom/2+margin, - 'left' :(state.size-state.width) *state.zoom/2-margin - }); - } else { - $(img).css({ - 'width' :state.width*state.zoom, - 'height':state.height*state.zoom, - 'top' :(state.size-state.height)*state.zoom/2, - 'left' :(state.size-state.width) *state.zoom/2 - }); - } - $('.drag-master',elem).css({ - 'width' :state.size*state.zoom, - 'height':state.size*state.zoom - }); - - methods.setDrag(img,elem,state); - $('.zoom_level span',elem).html(Math.round(state.zoom*100)+"%"); - - // CENTER - if(center) { - $(elem).find('.drag-master').css({ - 'left':state.center[0]-(state.center[2]*state.zoom)-$(elem).offset().left, - 'top' :state.center[1]-(state.center[3]*state.zoom)-$(elem).offset().top - }); - } - - // MAP - var dm = $(elem).find('.drag-master'); - methods.mapDrag({position:{left:dm.offset().left-$(elem).offset().left,top:dm.offset().top-$(elem).offset().top}},elem,$(elem).find('.doc'),state); - }, - - mapDrag : function(ui,elem,pic,state) { - $(pic).rotate(state.angle); - - var width = state.mapWidth; - var height = state.mapHeight; - var borderWidth = ($.browser.msie)? 0:parseInt($(elem).find('.pane').css('border-left-width')); - - // map info - var mapOffset = $(elem).find('.doc_map').offset(); - var mapImg = $(elem).find('.doc_map img'); - var miOffset = mapImg.offset(); - var miWidth = mapImg.width(); - var miHeight = mapImg.height(); - - // display info - var picWidth = $(pic).width(); - var picHeight = $(pic).height(); - - // rotational dimension consideration - if(!$.browser.msie && state.angle%180 > 0) { - width = height; - height = state.mapWidth; - miWidth = miHeight; - miHeight = mapImg.width(); - picWidth = picHeight; - picHeight = $(pic).width(); - var diff = Math.abs(miWidth-miHeight)/2; - miOffset.left += diff; - miOffset.top -= diff; - } - - // position and width percents - var DM = $('.drag-master'); - var mX = (picWidth-DM.width())/2; - var mY = (picHeight-DM.height())/2; - var posX = Math.min(0,(ui.position.left-mX))/picWidth; - var posY = Math.min(0,(ui.position.top-mY))/picHeight; - var coveredX = Math.max(0,picWidth-$(elem).width())/picWidth; - var coveredY = Math.max(0,picHeight-$(elem).height())/picHeight; - - var css = { - 'left' : miOffset.left - mapOffset.left - miWidth*posX - borderWidth, - 'top' : miOffset.top - mapOffset.top - miHeight*posY - borderWidth, - 'width' : (miWidth - borderWidth) * (1-coveredX), - 'height': (miHeight - borderWidth) * (1-coveredY) - }; - - // firefox rotation fix (doesn't change offset) - if(state.angle%180 > 0 && $.browser.mozilla) { - var m = Math.abs(height-width)/2; - css.left -= m; - css.top += m; - } - - $(elem).find('.pane').css(css); - - // dragging - var cont = [ - miOffset.left, - miOffset.top, - miOffset.left + miWidth - css.width - borderWidth*2, - miOffset.top + miHeight - css.height - borderWidth*2 - ]; - - // firefox rotation fix part 2 - if(state.angle%180 > 0 && $.browser.mozilla) { - var m = Math.abs(height-width)/2; - cont[0] -= m; - cont[1] += m; - cont[2] -= m; - cont[3] += m; - } - - $(elem).find('.pane').draggable({ - containment:cont, - scroll:false, - drag:function(event,ui) { - var DM = $(elem).find('.drag-master'); - var margin = Math.abs(state.height-state.width)/2*state.zoom; - var left = (~(ui.position.left-state.mapX)/width)*picWidth; - var top = (~(ui.position.top-state.mapY)/height)*picHeight; - if(state.width < state.height) - left += mX + mY; - else - top += mX + mY; - if($(elem).width() < $(pic).width()) - DM.css({'left': left }); - if($(elem).height() < $(pic).height()) - DM.css({'top' : top }); - } - }); - } - }; - - $.fn.inspector = function(src) { - if($('.drag-master',this).length == 0 || $.browser.msie) { // init or IE just start over for IE - methods.init(this); // add interface - methods.setHandlers(this, methods.load(this,src) ); - } - else if($('.doc',this).attr('src') != src) { - methods.setHandlers(this, methods.load(this,src) ); - } - return this; - } -})(jQuery); \ No newline at end of file diff --git a/themes/blueprint/js/jquery-ui/js/jquery-ui.js b/themes/blueprint/js/jquery-ui/js/jquery-ui.js deleted file mode 100644 index 8c966753195b2b0047cc5181d95421862a0798b8..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery-ui/js/jquery-ui.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! - * jQuery UI 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI - */ -(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16", -keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d= -this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this, -"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart": -"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight, -outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a, -"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&& -a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&& -c.ui.isOverAxis(b,e,i)}})}})(jQuery); -;/*! - * jQuery UI Widget 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Widget - */ -(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]= -function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)): -d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options= -b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+ -"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled", -c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery); -;/*! - * jQuery UI Mouse 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Mouse - * - * Depends: - * jquery.ui.widget.js - */ -(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+ -this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted= -this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&& -!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted= -false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); -;/* - * jQuery UI Position 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Position - */ -(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, -left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= -k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= -m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= -d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= -a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), -g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); -;/* - * jQuery UI Draggable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Draggables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper== -"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b= -this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;if(b.iframeFix)d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options; -this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}); -this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true}, -_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b= -false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration, -10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle|| -!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&& -a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent= -this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"), -10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"), -10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top, -(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!= -"hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"), -10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+ -this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&& -!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.left<g[0])e=g[0]+this.offset.click.left; -if(a.pageY-this.offset.click.top<g[1])h=g[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>g[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-b.grid[1]:h+b.grid[1]:h;e=b.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/ -b.grid[0])*b.grid[0]:this.originalPageX;e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version< -526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b, -c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.16"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var h=d.data(this,"sortable");if(h&&!h.options.disabled){c.sortables.push({instance:h,shouldRevert:h.options.revert}); -h.refreshPositions();h._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval= -false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true); -this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top; -c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&& -this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity= -a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!= -"x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left< -c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()- -c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this, -width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,h=b.offset.left,g=h+c.helperProportions.width,n=b.offset.top,o=n+c.helperProportions.height,i=c.snapElements.length-1;i>=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&& -o<m+e){if(f.snapMode!="inner"){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left}var t= -p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(k-n)<=e;q=Math.abs(m-o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&& -(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||q||r||s||t}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"), -10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery); -;/* - * jQuery UI Droppable 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Droppables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.mouse.js - * jquery.ui.draggable.js - */ -(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this); -a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&& -this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass); -this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g= -d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop", -a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.16"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height; -switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>= -i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!= -"none";if(c[f].visible){e=="mousedown"&&c[f]._activate.call(c[f],b);c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight}}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem|| -a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance); -if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable"); -a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery); -;/* - * jQuery UI Autocomplete 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Autocomplete - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js - */ -(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g= -false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!= -a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)}; -this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&& -a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"); -d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&& -b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source= -this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close(); -this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label|| -b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this; -d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, -"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery); -(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", --1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id"); -this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b, -this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| -this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active|| -this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery); -;/* - * jQuery UI Dialog 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Dialog - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.button.js - * jquery.ui.draggable.js - * jquery.ui.mouse.js - * jquery.ui.position.js - * jquery.ui.resizable.js - */ -(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, -position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ -b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), -h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id", -e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); -a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== -b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1; -d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== -f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, -function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('<button type="button"></button>').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", -handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, -originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", -f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): -[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); -if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): -e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= -this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- -b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), -create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()|| -c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&& -c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+ -"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery); -;/* - * jQuery UI Slider 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Slider - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+ -this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j<f;j+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>"); -this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle", -g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length? -(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i- -m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy(); -return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false; -this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b= -this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b= -this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b); -c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c<f))c=f;if(c!==this.values(b)){f=this.values();f[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:f});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c}); -a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value= -this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,b){var c,f,e;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e<c.length;e+=1){c[e]=this._trimAlignValue(f[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a): -this.value();else return this._values()},_setOption:function(a,b){var c,f=0;if(d.isArray(this.options.values))f=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation(); -this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<f;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a]; -return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a= -this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e- -g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"}, -b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery); -;/* - * jQuery UI Tabs 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Tabs - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading…</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& -e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= -d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| -(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); -this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= -this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); -if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); -this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ -g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", -function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; -this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= --1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; -d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= -d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, -e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); -j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); -if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, -this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, -load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, -"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, -url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&& -a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery); -; \ No newline at end of file diff --git a/themes/blueprint/js/jquery-ui/js/mousewheel.js b/themes/blueprint/js/jquery-ui/js/mousewheel.js deleted file mode 100644 index 05ebb0a9983c93cdbf8a8187e88fff7b05e070f7..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery-ui/js/mousewheel.js +++ /dev/null @@ -1,11 +0,0 @@ -/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net) - * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) - * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. - * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. - * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. - * - * Version: 3.0.2 - * - * Requires: 1.2.2+ - */ -(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery); \ No newline at end of file diff --git a/themes/blueprint/js/jquery.cookie.js b/themes/blueprint/js/jquery.cookie.js deleted file mode 100644 index 6df1faca25fccd58bea8641b7a32b4df55ec6249..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.cookie.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Cookie plugin - * - * Copyright (c) 2006 Klaus Hartl (stilbuero.de) - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - */ - -/** - * Create a cookie with the given name and value and other optional parameters. - * - * @example $.cookie('the_cookie', 'the_value'); - * @desc Set the value of a cookie. - * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true }); - * @desc Create a cookie with all available options. - * @example $.cookie('the_cookie', 'the_value'); - * @desc Create a session cookie. - * @example $.cookie('the_cookie', null); - * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain - * used when the cookie was set. - * - * @param String name The name of the cookie. - * @param String value The value of the cookie. - * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. - * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. - * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. - * If set to null or omitted, the cookie will be a session cookie and will not be retained - * when the the browser exits. - * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). - * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). - * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will - * require a secure protocol (like HTTPS). - * @type undefined - * - * @name $.cookie - * @cat Plugins/Cookie - * @author Klaus Hartl/klaus.hartl@stilbuero.de - */ - -/** - * Get the value of a cookie with the given name. - * - * @example $.cookie('the_cookie'); - * @desc Get the value of a cookie. - * - * @param String name The name of the cookie. - * @return The value of the cookie. - * @type String - * - * @name $.cookie - * @cat Plugins/Cookie - * @author Klaus Hartl/klaus.hartl@stilbuero.de - */ -jQuery.cookie = function(name, value, options) { - if (typeof value != 'undefined') { // name and value given, set cookie - options = options || {}; - if (value === null) { - value = ''; - options.expires = -1; - } - var expires = ''; - if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { - var date; - if (typeof options.expires == 'number') { - date = new Date(); - date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); - } else { - date = options.expires; - } - expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE - } - // CAUTION: Needed to parenthesize options.path and options.domain - // in the following expressions, otherwise they evaluate to undefined - // in the packed version for some reason... - var path = options.path ? '; path=' + (options.path) : ''; - var domain = options.domain ? '; domain=' + (options.domain) : ''; - var secure = options.secure ? '; secure' : ''; - document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); - } else { // only name given, get cookie - var cookieValue = null; - if (document.cookie && document.cookie != '') { - var cookies = document.cookie.split(';'); - for (var i = 0; i < cookies.length; i++) { - var cookie = jQuery.trim(cookies[i]); - // Does this cookie string begin with the name we want? - if (cookie.substring(0, name.length + 1) == (name + '=')) { - cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); - break; - } - } - } - return cookieValue; - } -}; \ No newline at end of file diff --git a/themes/blueprint/js/jquery.form.js b/themes/blueprint/js/jquery.form.js deleted file mode 100644 index 2b853df428c1f49acfb4ee0a7f0a3aed0a38b874..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.form.js +++ /dev/null @@ -1,785 +0,0 @@ -/*! - * jQuery Form Plugin - * version: 2.49 (18-OCT-2010) - * @requires jQuery v1.3.2 or later - * - * Examples and documentation at: http://malsup.com/jquery/form/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ -;(function($) { - -/* - Usage Note: - ----------- - Do not use both ajaxSubmit and ajaxForm on the same form. These - functions are intended to be exclusive. Use ajaxSubmit if you want - to bind your own submit handler to the form. For example, - - $(document).ready(function() { - $('#myForm').bind('submit', function(e) { - e.preventDefault(); // <-- important - $(this).ajaxSubmit({ - target: '#output' - }); - }); - }); - - Use ajaxForm when you want the plugin to manage all the event binding - for you. For example, - - $(document).ready(function() { - $('#myForm').ajaxForm({ - target: '#output' - }); - }); - - When using ajaxForm, the ajaxSubmit function will be invoked for you - at the appropriate time. -*/ - -/** - * ajaxSubmit() provides a mechanism for immediately submitting - * an HTML form using AJAX. - */ -$.fn.ajaxSubmit = function(options) { - // fast fail if nothing selected (http://dev.jquery.com/ticket/2752) - if (!this.length) { - log('ajaxSubmit: skipping submit process - no element selected'); - return this; - } - - if (typeof options == 'function') { - options = { success: options }; - } - - var url = $.trim(this.attr('action')); - if (url) { - // clean url (don't include hash vaue) - url = (url.match(/^([^#]+)/)||[])[1]; - } - url = url || window.location.href || ''; - - options = $.extend(true, { - url: url, - type: this.attr('method') || 'GET', - iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank' - }, options); - - // hook for manipulating the form data before it is extracted; - // convenient for use with rich editors like tinyMCE or FCKEditor - var veto = {}; - this.trigger('form-pre-serialize', [this, options, veto]); - if (veto.veto) { - log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); - return this; - } - - // provide opportunity to alter form data before it is serialized - if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { - log('ajaxSubmit: submit aborted via beforeSerialize callback'); - return this; - } - - var n,v,a = this.formToArray(options.semantic); - if (options.data) { - options.extraData = options.data; - for (n in options.data) { - if(options.data[n] instanceof Array) { - for (var k in options.data[n]) { - a.push( { name: n, value: options.data[n][k] } ); - } - } - else { - v = options.data[n]; - v = $.isFunction(v) ? v() : v; // if value is fn, invoke it - a.push( { name: n, value: v } ); - } - } - } - - // give pre-submit callback an opportunity to abort the submit - if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { - log('ajaxSubmit: submit aborted via beforeSubmit callback'); - return this; - } - - // fire vetoable 'validate' event - this.trigger('form-submit-validate', [a, this, options, veto]); - if (veto.veto) { - log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); - return this; - } - - var q = $.param(a); - - if (options.type.toUpperCase() == 'GET') { - options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q; - options.data = null; // data is null for 'get' - } - else { - options.data = q; // data is the query string for 'post' - } - - var $form = this, callbacks = []; - if (options.resetForm) { - callbacks.push(function() { $form.resetForm(); }); - } - if (options.clearForm) { - callbacks.push(function() { $form.clearForm(); }); - } - - // perform a load on the target only if dataType is not provided - if (!options.dataType && options.target) { - var oldSuccess = options.success || function(){}; - callbacks.push(function(data) { - var fn = options.replaceTarget ? 'replaceWith' : 'html'; - $(options.target)[fn](data).each(oldSuccess, arguments); - }); - } - else if (options.success) { - callbacks.push(options.success); - } - - options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg - var context = options.context || options; // jQuery 1.4+ supports scope context - for (var i=0, max=callbacks.length; i < max; i++) { - callbacks[i].apply(context, [data, status, xhr || $form, $form]); - } - }; - - // are there files to upload? - var fileInputs = $('input:file', this).length > 0; - var mp = 'multipart/form-data'; - var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp); - - // options.iframe allows user to force iframe mode - // 06-NOV-09: now defaulting to iframe mode if file input is detected - if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { - // hack to fix Safari hang (thanks to Tim Molendijk for this) - // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d - if (options.closeKeepAlive) { - $.get(options.closeKeepAlive, fileUpload); - } - else { - fileUpload(); - } - } - else { - $.ajax(options); - } - - // fire 'notify' event - this.trigger('form-submit-notify', [this, options]); - return this; - - - // private function for handling file uploads (hat tip to YAHOO!) - function fileUpload() { - var form = $form[0]; - - if ($(':input[name=submit],:input[id=submit]', form).length) { - // if there is an input with a name or id of 'submit' then we won't be - // able to invoke the submit fn on the form (at least not x-browser) - alert('Error: Form elements must not have name or id of "submit".'); - return; - } - - var s = $.extend(true, {}, $.ajaxSettings, options); - s.context = s.context || s; - var id = 'jqFormIO' + (new Date().getTime()), fn = '_'+id; - window[fn] = function() { - var f = $io.data('form-plugin-onload'); - if (f) { - f(); - window[fn] = undefined; - try { delete window[fn]; } catch(e){} - } - } - var $io = $('<iframe id="' + id + '" name="' + id + '" src="'+ s.iframeSrc +'" onload="window[\'_\'+this.id]()" />'); - var io = $io[0]; - - $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' }); - - var xhr = { // mock object - aborted: 0, - responseText: null, - responseXML: null, - status: 0, - statusText: 'n/a', - getAllResponseHeaders: function() {}, - getResponseHeader: function() {}, - setRequestHeader: function() {}, - abort: function() { - this.aborted = 1; - $io.attr('src', s.iframeSrc); // abort op in progress - } - }; - - var g = s.global; - // trigger ajax global events so that activity/block indicators work like normal - if (g && ! $.active++) { - $.event.trigger("ajaxStart"); - } - if (g) { - $.event.trigger("ajaxSend", [xhr, s]); - } - - if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) { - if (s.global) { - $.active--; - } - return; - } - if (xhr.aborted) { - return; - } - - var cbInvoked = false; - var timedOut = 0; - - // add submitting element to data if we know it - var sub = form.clk; - if (sub) { - var n = sub.name; - if (n && !sub.disabled) { - s.extraData = s.extraData || {}; - s.extraData[n] = sub.value; - if (sub.type == "image") { - s.extraData[n+'.x'] = form.clk_x; - s.extraData[n+'.y'] = form.clk_y; - } - } - } - - // take a breath so that pending repaints get some cpu time before the upload starts - function doSubmit() { - // make sure form attrs are set - var t = $form.attr('target'), a = $form.attr('action'); - - // update form attrs in IE friendly way - form.setAttribute('target',id); - if (form.getAttribute('method') != 'POST') { - form.setAttribute('method', 'POST'); - } - if (form.getAttribute('action') != s.url) { - form.setAttribute('action', s.url); - } - - // ie borks in some cases when setting encoding - if (! s.skipEncodingOverride) { - $form.attr({ - encoding: 'multipart/form-data', - enctype: 'multipart/form-data' - }); - } - - // support timout - if (s.timeout) { - setTimeout(function() { timedOut = true; cb(); }, s.timeout); - } - - // add "extra" data to form if provided in options - var extraInputs = []; - try { - if (s.extraData) { - for (var n in s.extraData) { - extraInputs.push( - $('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />') - .appendTo(form)[0]); - } - } - - // add iframe to doc and submit the form - $io.appendTo('body'); - $io.data('form-plugin-onload', cb); - form.submit(); - } - finally { - // reset attrs and remove "extra" input elements - form.setAttribute('action',a); - if(t) { - form.setAttribute('target', t); - } else { - $form.removeAttr('target'); - } - $(extraInputs).remove(); - } - } - - if (s.forceSync) { - doSubmit(); - } - else { - setTimeout(doSubmit, 10); // this lets dom updates render - } - - var data, doc, domCheckCount = 50; - - function cb() { - if (cbInvoked) { - return; - } - - $io.removeData('form-plugin-onload'); - - var ok = true; - try { - if (timedOut) { - throw 'timeout'; - } - // extract the server response from the iframe - doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document; - - var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc); - log('isXml='+isXml); - if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) { - if (--domCheckCount) { - // in some browsers (Opera) the iframe DOM is not always traversable when - // the onload callback fires, so we loop a bit to accommodate - log('requeing onLoad callback, DOM not available'); - setTimeout(cb, 250); - return; - } - // let this fall through because server response could be an empty document - //log('Could not access iframe DOM after mutiple tries.'); - //throw 'DOMException: not available'; - } - - //log('response detected'); - cbInvoked = true; - xhr.responseText = doc.documentElement ? doc.documentElement.innerHTML : null; - xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc; - xhr.getResponseHeader = function(header){ - var headers = {'content-type': s.dataType}; - return headers[header]; - }; - - var scr = /(json|script)/.test(s.dataType); - if (scr || s.textarea) { - // see if user embedded response in textarea - var ta = doc.getElementsByTagName('textarea')[0]; - if (ta) { - xhr.responseText = ta.value; - } - else if (scr) { - // account for browsers injecting pre around json response - var pre = doc.getElementsByTagName('pre')[0]; - var b = doc.getElementsByTagName('body')[0]; - if (pre) { - xhr.responseText = pre.innerHTML; - } - else if (b) { - xhr.responseText = b.innerHTML; - } - } - } - else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) { - xhr.responseXML = toXml(xhr.responseText); - } - data = $.httpData(xhr, s.dataType); - } - catch(e){ - log('error caught:',e); - ok = false; - xhr.error = e; - $.handleError(s, xhr, 'error', e); - } - - // ordering of these callbacks/triggers is odd, but that's how $.ajax does it - if (ok) { - s.success.call(s.context, data, 'success', xhr); - if (g) { - $.event.trigger("ajaxSuccess", [xhr, s]); - } - } - if (g) { - $.event.trigger("ajaxComplete", [xhr, s]); - } - if (g && ! --$.active) { - $.event.trigger("ajaxStop"); - } - if (s.complete) { - s.complete.call(s.context, xhr, ok ? 'success' : 'error'); - } - - // clean up - setTimeout(function() { - $io.removeData('form-plugin-onload'); - $io.remove(); - xhr.responseXML = null; - }, 100); - } - - function toXml(s, doc) { - if (window.ActiveXObject) { - doc = new ActiveXObject('Microsoft.XMLDOM'); - doc.async = 'false'; - doc.loadXML(s); - } - else { - doc = (new DOMParser()).parseFromString(s, 'text/xml'); - } - return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null; - } - } -}; - -/** - * ajaxForm() provides a mechanism for fully automating form submission. - * - * The advantages of using this method instead of ajaxSubmit() are: - * - * 1: This method will include coordinates for <input type="image" /> elements (if the element - * is used to submit the form). - * 2. This method will include the submit element's name/value data (for the element that was - * used to submit the form). - * 3. This method binds the submit() method to the form for you. - * - * The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely - * passes the options argument along after properly binding events for submit elements and - * the form itself. - */ -$.fn.ajaxForm = function(options) { - // in jQuery 1.3+ we can fix mistakes with the ready state - if (this.length === 0) { - var o = { s: this.selector, c: this.context }; - if (!$.isReady && o.s) { - log('DOM not ready, queuing ajaxForm'); - $(function() { - $(o.s,o.c).ajaxForm(options); - }); - return this; - } - // is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready() - log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)')); - return this; - } - - return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) { - if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed - e.preventDefault(); - $(this).ajaxSubmit(options); - } - }).bind('click.form-plugin', function(e) { - var target = e.target; - var $el = $(target); - if (!($el.is(":submit,input:image"))) { - // is this a child element of the submit el? (ex: a span within a button) - var t = $el.closest(':submit'); - if (t.length == 0) { - return; - } - target = t[0]; - } - var form = this; - form.clk = target; - if (target.type == 'image') { - if (e.offsetX != undefined) { - form.clk_x = e.offsetX; - form.clk_y = e.offsetY; - } else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin - var offset = $el.offset(); - form.clk_x = e.pageX - offset.left; - form.clk_y = e.pageY - offset.top; - } else { - form.clk_x = e.pageX - target.offsetLeft; - form.clk_y = e.pageY - target.offsetTop; - } - } - // clear form vars - setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100); - }); -}; - -// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm -$.fn.ajaxFormUnbind = function() { - return this.unbind('submit.form-plugin click.form-plugin'); -}; - -/** - * formToArray() gathers form element data into an array of objects that can - * be passed to any of the following ajax functions: $.get, $.post, or load. - * Each object in the array has both a 'name' and 'value' property. An example of - * an array for a simple login form might be: - * - * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ] - * - * It is this array that is passed to pre-submit callback functions provided to the - * ajaxSubmit() and ajaxForm() methods. - */ -$.fn.formToArray = function(semantic) { - var a = []; - if (this.length === 0) { - return a; - } - - var form = this[0]; - var els = semantic ? form.getElementsByTagName('*') : form.elements; - if (!els) { - return a; - } - - var i,j,n,v,el,max,jmax; - for(i=0, max=els.length; i < max; i++) { - el = els[i]; - n = el.name; - if (!n) { - continue; - } - - if (semantic && form.clk && el.type == "image") { - // handle image inputs on the fly when semantic == true - if(!el.disabled && form.clk == el) { - a.push({name: n, value: $(el).val()}); - a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y}); - } - continue; - } - - v = $.fieldValue(el, true); - if (v && v.constructor == Array) { - for(j=0, jmax=v.length; j < jmax; j++) { - a.push({name: n, value: v[j]}); - } - } - else if (v !== null && typeof v != 'undefined') { - a.push({name: n, value: v}); - } - } - - if (!semantic && form.clk) { - // input type=='image' are not found in elements array! handle it here - var $input = $(form.clk), input = $input[0]; - n = input.name; - if (n && !input.disabled && input.type == 'image') { - a.push({name: n, value: $input.val()}); - a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y}); - } - } - return a; -}; - -/** - * Serializes form data into a 'submittable' string. This method will return a string - * in the format: name1=value1&name2=value2 - */ -$.fn.formSerialize = function(semantic) { - //hand off to jQuery.param for proper encoding - return $.param(this.formToArray(semantic)); -}; - -/** - * Serializes all field elements in the jQuery object into a query string. - * This method will return a string in the format: name1=value1&name2=value2 - */ -$.fn.fieldSerialize = function(successful) { - var a = []; - this.each(function() { - var n = this.name; - if (!n) { - return; - } - var v = $.fieldValue(this, successful); - if (v && v.constructor == Array) { - for (var i=0,max=v.length; i < max; i++) { - a.push({name: n, value: v[i]}); - } - } - else if (v !== null && typeof v != 'undefined') { - a.push({name: this.name, value: v}); - } - }); - //hand off to jQuery.param for proper encoding - return $.param(a); -}; - -/** - * Returns the value(s) of the element in the matched set. For example, consider the following form: - * - * <form><fieldset> - * <input name="A" type="text" /> - * <input name="A" type="text" /> - * <input name="B" type="checkbox" value="B1" /> - * <input name="B" type="checkbox" value="B2"/> - * <input name="C" type="radio" value="C1" /> - * <input name="C" type="radio" value="C2" /> - * </fieldset></form> - * - * var v = $(':text').fieldValue(); - * // if no values are entered into the text inputs - * v == ['',''] - * // if values entered into the text inputs are 'foo' and 'bar' - * v == ['foo','bar'] - * - * var v = $(':checkbox').fieldValue(); - * // if neither checkbox is checked - * v === undefined - * // if both checkboxes are checked - * v == ['B1', 'B2'] - * - * var v = $(':radio').fieldValue(); - * // if neither radio is checked - * v === undefined - * // if first radio is checked - * v == ['C1'] - * - * The successful argument controls whether or not the field element must be 'successful' - * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls). - * The default value of the successful argument is true. If this value is false the value(s) - * for each element is returned. - * - * Note: This method *always* returns an array. If no valid value can be determined the - * array will be empty, otherwise it will contain one or more values. - */ -$.fn.fieldValue = function(successful) { - for (var val=[], i=0, max=this.length; i < max; i++) { - var el = this[i]; - var v = $.fieldValue(el, successful); - if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) { - continue; - } - v.constructor == Array ? $.merge(val, v) : val.push(v); - } - return val; -}; - -/** - * Returns the value of the field element. - */ -$.fieldValue = function(el, successful) { - var n = el.name, t = el.type, tag = el.tagName.toLowerCase(); - if (successful === undefined) { - successful = true; - } - - if (successful && (!n || el.disabled || t == 'reset' || t == 'button' || - (t == 'checkbox' || t == 'radio') && !el.checked || - (t == 'submit' || t == 'image') && el.form && el.form.clk != el || - tag == 'select' && el.selectedIndex == -1)) { - return null; - } - - if (tag == 'select') { - var index = el.selectedIndex; - if (index < 0) { - return null; - } - var a = [], ops = el.options; - var one = (t == 'select-one'); - var max = (one ? index+1 : ops.length); - for(var i=(one ? index : 0); i < max; i++) { - var op = ops[i]; - if (op.selected) { - var v = op.value; - if (!v) { // extra pain for IE... - v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value; - } - if (one) { - return v; - } - a.push(v); - } - } - return a; - } - return $(el).val(); -}; - -/** - * Clears the form data. Takes the following actions on the form's input fields: - * - input text fields will have their 'value' property set to the empty string - * - select elements will have their 'selectedIndex' property set to -1 - * - checkbox and radio inputs will have their 'checked' property set to false - * - inputs of type submit, button, reset, and hidden will *not* be effected - * - button elements will *not* be effected - */ -$.fn.clearForm = function() { - return this.each(function() { - $('input,select,textarea', this).clearFields(); - }); -}; - -/** - * Clears the selected form elements. - */ -$.fn.clearFields = $.fn.clearInputs = function() { - return this.each(function() { - var t = this.type, tag = this.tagName.toLowerCase(); - if (t == 'text' || t == 'password' || tag == 'textarea') { - this.value = ''; - } - else if (t == 'checkbox' || t == 'radio') { - this.checked = false; - } - else if (tag == 'select') { - this.selectedIndex = -1; - } - }); -}; - -/** - * Resets the form data. Causes all form elements to be reset to their original value. - */ -$.fn.resetForm = function() { - return this.each(function() { - // guard against an input with the name of 'reset' - // note that IE reports the reset function as an 'object' - if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) { - this.reset(); - } - }); -}; - -/** - * Enables or disables any matching elements. - */ -$.fn.enable = function(b) { - if (b === undefined) { - b = true; - } - return this.each(function() { - this.disabled = !b; - }); -}; - -/** - * Checks/unchecks any matching checkboxes or radio buttons and - * selects/deselects and matching option elements. - */ -$.fn.selected = function(select) { - if (select === undefined) { - select = true; - } - return this.each(function() { - var t = this.type; - if (t == 'checkbox' || t == 'radio') { - this.checked = select; - } - else if (this.tagName.toLowerCase() == 'option') { - var $sel = $(this).parent('select'); - if (select && $sel[0] && $sel[0].type == 'select-one') { - // deselect all other options - $sel.find('option').selected(false); - } - this.selected = select; - } - }); -}; - -// helper fn for console logging -// set $.fn.ajaxSubmit.debug to true to enable debug logging -function log() { - if ($.fn.ajaxSubmit.debug) { - var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,''); - if (window.console && window.console.log) { - window.console.log(msg); - } - else if (window.opera && window.opera.postError) { - window.opera.postError(msg); - } - } -}; - -})(jQuery); diff --git a/themes/blueprint/js/jquery.metadata.js b/themes/blueprint/js/jquery.metadata.js deleted file mode 100644 index ad8bfba404edaa239dd39cba25a450b65fce0f10..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.metadata.js +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Metadata - jQuery plugin for parsing metadata from elements - * - * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * Revision: $Id: jquery.metadata.js 4187 2007-12-16 17:15:27Z joern.zaefferer $ - * - */ - -/** - * Sets the type of metadata to use. Metadata is encoded in JSON, and each property - * in the JSON will become a property of the element itself. - * - * There are three supported types of metadata storage: - * - * attr: Inside an attribute. The name parameter indicates *which* attribute. - * - * class: Inside the class attribute, wrapped in curly braces: { } - * - * elem: Inside a child element (e.g. a script tag). The - * name parameter indicates *which* element. - * - * The metadata for an element is loaded the first time the element is accessed via jQuery. - * - * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements - * matched by expr, then redefine the metadata type and run another $(expr) for other elements. - * - * @name $.metadata.setType - * - * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p> - * @before $.metadata.setType("class") - * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" - * @desc Reads metadata from the class attribute - * - * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p> - * @before $.metadata.setType("attr", "data") - * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" - * @desc Reads metadata from a "data" attribute - * - * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p> - * @before $.metadata.setType("elem", "script") - * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" - * @desc Reads metadata from a nested script element - * - * @param String type The encoding type - * @param String name The name of the attribute to be used to get metadata (optional) - * @cat Plugins/Metadata - * @descr Sets the type of encoding to be used when loading metadata for the first time - * @type undefined - * @see metadata() - */ - -(function($) { - -$.extend({ - metadata : { - defaults : { - type: 'class', - name: 'metadata', - cre: /({.*})/, - single: 'metadata' - }, - setType: function( type, name ){ - this.defaults.type = type; - this.defaults.name = name; - }, - get: function( elem, opts ){ - var settings = $.extend({},this.defaults,opts); - // check for empty string in single property - if ( !settings.single.length ) settings.single = 'metadata'; - - var data = $.data(elem, settings.single); - // returned cached data if it already exists - if ( data ) return data; - - data = "{}"; - - if ( settings.type == "class" ) { - var m = settings.cre.exec( elem.className ); - if ( m ) - data = m[1]; - } else if ( settings.type == "elem" ) { - if( !elem.getElementsByTagName ) - return undefined; - var e = elem.getElementsByTagName(settings.name); - if ( e.length ) - data = $.trim(e[0].innerHTML); - } else if ( elem.getAttribute != undefined ) { - var attr = elem.getAttribute( settings.name ); - if ( attr ) - data = attr; - } - - if ( data.indexOf( '{' ) <0 ) - data = "{" + data + "}"; - - data = eval("(" + data + ")"); - - $.data( elem, settings.single, data ); - return data; - } - } -}); - -/** - * Returns the metadata object for the first member of the jQuery object. - * - * @name metadata - * @descr Returns element's metadata object - * @param Object opts An object contianing settings to override the defaults - * @type jQuery - * @cat Plugins/Metadata - */ -$.fn.metadata = function( opts ){ - return $.metadata.get( this[0], opts ); -}; - -})(jQuery); \ No newline at end of file diff --git a/themes/blueprint/js/jquery.min.js b/themes/blueprint/js/jquery.min.js deleted file mode 100644 index 628ed9b31604ed868f70c7a593441cfcdced1723..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ -(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bA.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function by(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bt:bu;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function V(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(Q.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(w,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&(C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete -t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var G,H=function(a){var b=f.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+M(h,m),e)}return this}}),f.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".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},filter:function(a){return this.pushStack(V(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object|embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a[0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean -(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z]|^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position:"absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","Bottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bv(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=br.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f.swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cq("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cq("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return d.step(a)}var d=this,e=f.fx;this.startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cu(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/themes/blueprint/js/jquery.tabSlideOut.v2.0.js b/themes/blueprint/js/jquery.tabSlideOut.v2.0.js deleted file mode 100644 index c8b906078d6ff4281d6715cfa80a28cceccd96ae..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.tabSlideOut.v2.0.js +++ /dev/null @@ -1,245 +0,0 @@ -/* - tabSlideOUt v2.0 - - By William Paoli: http://wpaoli.building58.com - - To use you must have an image ready to go as your tab - Make sure to pass in at minimum the path to the image and its dimensions: - - example: - - $('.slide-out-div').tabSlideOut({ - tabHandle: '.handle', //class of the element that will be your tab -doesnt have to be an anchor - pathToTabImage: 'images/contact_tab.gif', //relative path to the image for the tab *required* - imageHeight: '133px', //height of tab image *required* - imageWidth: '44px', //width of tab image *required* - }); - - -*/ - - -(function($){ - $.fn.tabSlideOut = function(callerSettings) { - var settings = $.extend({ - tabHandle: '.handle', - toggleButton: '.tab-opener', - speed: 300, - action: 'click', - tabLocation: 'left', - topPos: '200px', - leftPos: '20px', - fixedPosition: false, - positioning: 'absolute', - pathToTabImage: null, - imageHeight: null, - imageWidth: null, - handleOffset: '0', - onLoadSlideOut: false, - onOpen: function(){}, - onClose: function(){} - }, callerSettings||{}); - - settings.tabHandle = $(settings.tabHandle); - settings.toggleButton = $(settings.toggleButton); - - var obj = this; - if (settings.fixedPosition === true) { - settings.positioning = 'fixed'; - } else { - settings.positioning = 'absolute'; - } - - //ie6 doesn't do well with the fixed option - if (document.all && !window.opera && !window.XMLHttpRequest) { - settings.positioning = 'absolute'; - } - - //set initial tabHandle css - if (settings.pathToTabImage !== null) { - settings.tabHandle.css({ - 'background' : 'url('+settings.pathToTabImage+') no-repeat', - 'width' : settings.imageWidth, - 'height': settings.imageHeight - }); - } - - settings.tabHandle.css({ - 'display': 'block', - 'textIndent' : '-99999px', - 'outline' : 'none', - 'position' : 'absolute' - }); - - obj.css({ - 'line-height' : '1', - 'position' : settings.positioning - }); - - - var properties = { - containerWidth: parseInt(obj.outerWidth(), 10) + 'px', - containerHeight: parseInt(obj.outerHeight(), 10) + 'px', - tabWidth: parseInt(settings.tabHandle.outerWidth(), 10) + 'px', - tabHeight: parseInt(settings.tabHandle.outerHeight(), 10) + 'px' - }; - - //set calculated css - if(settings.tabLocation === 'top' || settings.tabLocation === 'bottom') { - obj.css({'left' : settings.leftPos}); - settings.tabHandle.css({'right' : settings.handleOffset + 'px'}); - } - - if(settings.tabLocation === 'top') { - obj.css({'top' : '-' + properties.containerHeight}); - settings.tabHandle.css({'bottom' : '-' + properties.tabHeight}); - } - - if(settings.tabLocation === 'bottom') { - obj.css({'bottom' : '-' + properties.containerHeight, 'position' : 'fixed'}); - settings.tabHandle.css({'top' : '-' + properties.tabHeight}); - - } - - if(settings.tabLocation === 'left' || settings.tabLocation === 'right') { - obj.css({ - 'height' : properties.containerHeight, - 'top' : settings.topPos - }); - - settings.tabHandle.css({'top' : settings.handleOffset + 'px'}); - } - - if(settings.tabLocation === 'left') { - obj.css({ 'left': '-' + properties.containerWidth}); - settings.tabHandle.css({'right' : '-' + properties.tabWidth}); - } - - if(settings.tabLocation === 'right') { - obj.css({ 'right': '-' + properties.containerWidth}); - settings.tabHandle.css({'left' : '-' + properties.tabWidth}); - - $('html').css('overflow-x', 'hidden'); - } - - //functions for animation events - - settings.tabHandle.click(function(event){ - event.preventDefault(); - }); - settings.toggleButton.click(function(event){ - event.preventDefault(); - }); - - var slideIn = function() { - - if (settings.tabLocation === 'top') { - obj.animate({top:'-' + properties.containerHeight}, settings.speed, settings.onClose()).removeClass('open'); - } else if (settings.tabLocation === 'left') { - obj.animate({left: '-' + properties.containerWidth}, settings.speed, settings.onClose()).removeClass('open'); - } else if (settings.tabLocation === 'right') { - obj.animate({right: '-' + properties.containerWidth}, settings.speed, settings.onClose()).removeClass('open'); - } else if (settings.tabLocation === 'bottom') { - obj.animate({bottom: '-' + properties.containerHeight}, settings.speed, settings.onClose()).removeClass('open'); - } - - }; - - var slideOut = function() { - - if (settings.tabLocation === 'top') { - obj.animate({top:'-3px'}, settings.speed, settings.onOpen()).addClass('open'); - } else if (settings.tabLocation === 'left') { - obj.animate({left:'-3px'}, settings.speed, settings.onOpen()).addClass('open'); - } else if (settings.tabLocation === 'right') { - obj.animate({right:'-3px'}, settings.speed, settings.onOpen()).addClass('open'); - } else if (settings.tabLocation === 'bottom') { - obj.animate({bottom:'-3px'}, settings.speed, settings.onOpen()).addClass('open'); - } - }; - - var clickScreenToClose = function() { - obj.click(function(event){ - event.stopPropagation(); - }); - - settings.toggleButton.click(function(event){ - event.stopPropagation(); - }); - - - $(document).click(function(){ - slideIn(); - }); - }; - - var clickAction = function(){ - settings.tabHandle.click(function(event){ - if (obj.hasClass('open')) { - slideIn(); - } else { - slideOut(); - } - }); - settings.toggleButton.click(function(event){ - if (obj.hasClass('open')) { - slideIn(); - } else { - slideOut(); - } - }); - clickScreenToClose(); - }; - - var hoverAction = function(){ - obj.hover( - function(){ - if (!obj.hasClass('open')) { - slideOut(); - } - }, - - function(){ - if (obj.hasClass('open')) { - setTimeout(slideIn, 1000); - } - }); - - settings.tabHandle.click(function(event){ - if (obj.hasClass('open')) { - slideIn(); - } - }); - - settings.toggleButton.click(function(event){ - if (obj.hasClass('open')) { - slideIn(); - } else { - slideOut(); - } - }); - - clickScreenToClose(); - - }; - - var slideOutOnLoad = function(){ - slideIn(); - setTimeout(slideOut, 500); - }; - - //choose which type of action to bind - if (settings.action === 'click') { - clickAction(); - } - - if (settings.action === 'hover') { - hoverAction(); - } - - if (settings.onLoadSlideOut) { - slideOutOnLoad(); - } - - }; -})(jQuery); diff --git a/themes/blueprint/js/jquery.validate.min.js b/themes/blueprint/js/jquery.validate.min.js deleted file mode 100644 index 6264866fc4d9a8c1de8b9c577e7ecd756f52f059..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jquery.validate.min.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - * jQuery validation plug-in 1.7 - * - * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ - * http://docs.jquery.com/Plugins/Validation - * - * Copyright (c) 2006 - 2008 Jörn Zaefferer - * - * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ - * - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ -(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return;}var validator=$.data(this[0],'validator');if(validator){return validator;}validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true;});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this;});}this.submit(function(event){if(validator.settings.debug)event.preventDefault();function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);}validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove();}return false;}return true;}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}return handle();}else{validator.focusInvalid();return false;}});}return validator;},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=true;var validator=$(this[0].form).validate();this.each(function(){valid&=validator.element(this);});return valid;}},removeAttrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeAttr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,'validator').settings;var staticRules=settings.rules;var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}return data;}});$.extend($.expr[":"],{blank:function(a){return!$.trim(""+a.value);},filled:function(a){return!!$.trim(""+a.value);},unchecked:function(a){return!a.checked;}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length==1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};if(arguments.length>2&¶ms.constructor!=Array){params=$.makeArray(arguments).slice(1);}if(params.constructor!=Array){params=[params];}$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);else if(element.parentNode.name in this.submitted)this.element(element.parentNode);},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var validator=$.data(this[0].form,"validator"),eventType="on"+event.type.replace(/^validate/,"");validator.settings[eventType]&&validator.settings[eventType].call(validator,this[0]);}$(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",delegate).validateDelegate(":radio, :checkbox, select, option","click",delegate);if(this.settings.invalidHandler)$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}this.showErrors();return result;},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0;for(var i in obj)count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin");}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0];}var rules=$(element).rules();var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencyMismatch=true;continue;}dependencyMismatch=false;if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id -+", check the '"+rule.method+"' method",e);throw e;}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true;},customMetaMessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined)return arguments[i];}return undefined;},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method),theregex=/\$?\{(\d+)\}/g;if(typeof message=="function"){message=message.call(this,rule.parameters,element);}else if(theregex.test(message)){message=jQuery.format(message.replace(theregex,'{$1}'),rule.parameters);}this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){var name=this.idOrName(element);return this.errors().filter(function(){return $(this).attr('for')==name;});},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findByName(element.name).filter(':checked').length;}return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();this.formSubmitted=false;}else if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false;}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,"remote")});}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){var rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});return rules;},attributeRules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}return rules;},metadataRules:function(element){if(!$.metadata)return{};var meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){var rules={};var validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}if(keepRule){rules[prop]=val.param!==undefined?val.param:true;}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter;});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}if(rules.messages){delete rules.messages;}return rules;},normalizeRule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!=undefined?message:$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodeName.toLowerCase()){case'select':var val=$(element).val();return val&&val.length>0;case'input':if(this.checkable(element))return this.getLength(value,element)>0;default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";var previous=this.previousValue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=this.settings.messages[element.name].remote;this.settings.messages[element.name].remote=previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){validator.settings.messages[element.name].remote=previous.originalMessage;var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};var message=(previous.message=response||validator.defaultMessage(element,"remote"));errors[element.name]=$.isFunction(message)?message(value):message;validator.showErrors(errors);}previous.valid=valid;validator.stopRequest(element,valid);}},param));return"pending";}else if(this.pending[element.name]){return"pending";}return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param;},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return false;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(var n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)nDigit-=9;}nCheck+=nDigit;bEven=!bEven;}return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param.replace(/,/g,'|'):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){var target=$(param).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(element).valid();});return value==target.val();}}});$.format=$.validator.format;})(jQuery);;(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}return(pendingRequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);};})(jQuery);;(function($){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){this.addEventListener(original,handler,true);},teardown:function(){this.removeEventListener(original,handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};function handler(e){e=$.event.fix(e);e.type=fix;return $.event.handle.call(this,e);}});};$.extend($.fn,{validateDelegate:function(delegate,type,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});}});})(jQuery); \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/jquery.jstree.js b/themes/blueprint/js/jsTree/jquery.jstree.js deleted file mode 100644 index 8d329f39c78a22dedaf660fbc99ccde0ebe529aa..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/jquery.jstree.js +++ /dev/null @@ -1,4571 +0,0 @@ -/* - * jsTree 1.0-rc3 - * http://jstree.com/ - * - * Copyright (c) 2010 Ivan Bozhanov (vakata.com) - * - * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - * $Date: 2011-02-09 01:17:14 +0200 (ÑÑ€, 09 февр 2011) $ - * $Revision: 236 $ - */ - -/*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */ -/*global window : false, clearInterval: false, clearTimeout: false, document: false, setInterval: false, setTimeout: false, jQuery: false, navigator: false, XSLTProcessor: false, DOMParser: false, XMLSerializer: false*/ - -"use strict"; - -// top wrapper to prevent multiple inclusion (is this OK?) -(function () { if(jQuery && jQuery.jstree) { return; } - var is_ie6 = false, is_ie7 = false, is_ff2 = false; - -/* - * jsTree core - */ -(function ($) { - // Common functions not related to jsTree - // decided to move them to a `vakata` "namespace" - $.vakata = {}; - // CSS related functions - $.vakata.css = { - get_css : function(rule_name, delete_flag, sheet) { - rule_name = rule_name.toLowerCase(); - var css_rules = sheet.cssRules || sheet.rules, - j = 0; - do { - if(css_rules.length && j > css_rules.length + 5) { return false; } - if(css_rules[j].selectorText && css_rules[j].selectorText.toLowerCase() == rule_name) { - if(delete_flag === true) { - if(sheet.removeRule) { sheet.removeRule(j); } - if(sheet.deleteRule) { sheet.deleteRule(j); } - return true; - } - else { return css_rules[j]; } - } - } - while (css_rules[++j]); - return false; - }, - add_css : function(rule_name, sheet) { - if($.jstree.css.get_css(rule_name, false, sheet)) { return false; } - if(sheet.insertRule) { sheet.insertRule(rule_name + ' { }', 0); } else { sheet.addRule(rule_name, null, 0); } - return $.vakata.css.get_css(rule_name); - }, - remove_css : function(rule_name, sheet) { - return $.vakata.css.get_css(rule_name, true, sheet); - }, - add_sheet : function(opts) { - var tmp = false, is_new = true; - if(opts.str) { - if(opts.title) { tmp = $("style[id='" + opts.title + "-stylesheet']")[0]; } - if(tmp) { is_new = false; } - else { - tmp = document.createElement("style"); - tmp.setAttribute('type',"text/css"); - if(opts.title) { tmp.setAttribute("id", opts.title + "-stylesheet"); } - } - if(tmp.styleSheet) { - if(is_new) { - document.getElementsByTagName("head")[0].appendChild(tmp); - tmp.styleSheet.cssText = opts.str; - } - else { - tmp.styleSheet.cssText = tmp.styleSheet.cssText + " " + opts.str; - } - } - else { - tmp.appendChild(document.createTextNode(opts.str)); - document.getElementsByTagName("head")[0].appendChild(tmp); - } - return tmp.sheet || tmp.styleSheet; - } - if(opts.url) { - if(document.createStyleSheet) { - try { tmp = document.createStyleSheet(opts.url); } catch (e) { } - } - else { - tmp = document.createElement('link'); - tmp.rel = 'stylesheet'; - tmp.type = 'text/css'; - tmp.media = "all"; - tmp.href = opts.url; - document.getElementsByTagName("head")[0].appendChild(tmp); - return tmp.styleSheet; - } - } - } - }; - - // private variables - var instances = [], // instance array (used by $.jstree.reference/create/focused) - focused_instance = -1, // the index in the instance array of the currently focused instance - plugins = {}, // list of included plugins - prepared_move = {}; // for the move_node function - - // jQuery plugin wrapper (thanks to jquery UI widget function) - $.fn.jstree = function (settings) { - var isMethodCall = (typeof settings == 'string'), // is this a method call like $().jstree("open_node") - args = Array.prototype.slice.call(arguments, 1), - returnValue = this; - - // if a method call execute the method on all selected instances - if(isMethodCall) { - if(settings.substring(0, 1) == '_') { return returnValue; } - this.each(function() { - var instance = instances[$.data(this, "jstree_instance_id")], - methodValue = (instance && $.isFunction(instance[settings])) ? instance[settings].apply(instance, args) : instance; - if(typeof methodValue !== "undefined" && (settings.indexOf("is_") === 0 || (methodValue !== true && methodValue !== false))) { returnValue = methodValue; return false; } - }); - } - else { - this.each(function() { - // extend settings and allow for multiple hashes and $.data - var instance_id = $.data(this, "jstree_instance_id"), - a = [], - b = settings ? $.extend({}, true, settings) : {}, - c = $(this), - s = false, - t = []; - a = a.concat(args); - if(c.data("jstree")) { a.push(c.data("jstree")); } - b = a.length ? $.extend.apply(null, [true, b].concat(a)) : b; - - // if an instance already exists, destroy it first - if(typeof instance_id !== "undefined" && instances[instance_id]) { instances[instance_id].destroy(); } - // push a new empty object to the instances array - instance_id = parseInt(instances.push({}),10) - 1; - // store the jstree instance id to the container element - $.data(this, "jstree_instance_id", instance_id); - // clean up all plugins - b.plugins = $.isArray(b.plugins) ? b.plugins : $.jstree.defaults.plugins.slice(); - b.plugins.unshift("core"); - // only unique plugins - b.plugins = b.plugins.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(","); - - // extend defaults with passed data - s = $.extend(true, {}, $.jstree.defaults, b); - s.plugins = b.plugins; - $.each(plugins, function (i, val) { - if($.inArray(i, s.plugins) === -1) { s[i] = null; delete s[i]; } - else { t.push(i); } - }); - s.plugins = t; - - // push the new object to the instances array (at the same time set the default classes to the container) and init - instances[instance_id] = new $.jstree._instance(instance_id, $(this).addClass("jstree jstree-" + instance_id), s); - // init all activated plugins for this instance - $.each(instances[instance_id]._get_settings().plugins, function (i, val) { instances[instance_id].data[val] = {}; }); - $.each(instances[instance_id]._get_settings().plugins, function (i, val) { if(plugins[val]) { plugins[val].__init.apply(instances[instance_id]); } }); - // initialize the instance - setTimeout(function() { if(instances[instance_id]) { instances[instance_id].init(); } }, 0); - }); - } - // return the jquery selection (or if it was a method call that returned a value - the returned value) - return returnValue; - }; - // object to store exposed functions and objects - $.jstree = { - defaults : { - plugins : [] - }, - _focused : function () { return instances[focused_instance] || null; }, - _reference : function (needle) { - // get by instance id - if(instances[needle]) { return instances[needle]; } - // get by DOM (if still no luck - return null - var o = $(needle); - if(!o.length && typeof needle === "string") { o = $("#" + needle); } - if(!o.length) { return null; } - return instances[o.closest(".jstree").data("jstree_instance_id")] || null; - }, - _instance : function (index, container, settings) { - // for plugins to store data in - this.data = { core : {} }; - this.get_settings = function () { return $.extend(true, {}, settings); }; - this._get_settings = function () { return settings; }; - this.get_index = function () { return index; }; - this.get_container = function () { return container; }; - this.get_container_ul = function () { return container.children("ul:eq(0)"); }; - this._set_settings = function (s) { - settings = $.extend(true, {}, settings, s); - }; - }, - _fn : { }, - plugin : function (pname, pdata) { - pdata = $.extend({}, { - __init : $.noop, - __destroy : $.noop, - _fn : {}, - defaults : false - }, pdata); - plugins[pname] = pdata; - - $.jstree.defaults[pname] = pdata.defaults; - $.each(pdata._fn, function (i, val) { - val.plugin = pname; - val.old = $.jstree._fn[i]; - $.jstree._fn[i] = function () { - var rslt, - func = val, - args = Array.prototype.slice.call(arguments), - evnt = new $.Event("before.jstree"), - rlbk = false; - - if(this.data.core.locked === true && i !== "unlock" && i !== "is_locked") { return; } - - // Check if function belongs to the included plugins of this instance - do { - if(func && func.plugin && $.inArray(func.plugin, this._get_settings().plugins) !== -1) { break; } - func = func.old; - } while(func); - if(!func) { return; } - - // context and function to trigger events, then finally call the function - if(i.indexOf("_") === 0) { - rslt = func.apply(this, args); - } - else { - rslt = this.get_container().triggerHandler(evnt, { "func" : i, "inst" : this, "args" : args, "plugin" : func.plugin }); - if(rslt === false) { return; } - if(typeof rslt !== "undefined") { args = rslt; } - - rslt = func.apply( - $.extend({}, this, { - __callback : function (data) { - this.get_container().triggerHandler( i + '.jstree', { "inst" : this, "args" : args, "rslt" : data, "rlbk" : rlbk }); - }, - __rollback : function () { - rlbk = this.get_rollback(); - return rlbk; - }, - __call_old : function (replace_arguments) { - return func.old.apply(this, (replace_arguments ? Array.prototype.slice.call(arguments, 1) : args ) ); - } - }), args); - } - - // return the result - return rslt; - }; - $.jstree._fn[i].old = val.old; - $.jstree._fn[i].plugin = pname; - }); - }, - rollback : function (rb) { - if(rb) { - if(!$.isArray(rb)) { rb = [ rb ]; } - $.each(rb, function (i, val) { - instances[val.i].set_rollback(val.h, val.d); - }); - } - } - }; - // set the prototype for all instances - $.jstree._fn = $.jstree._instance.prototype = {}; - - // load the css when DOM is ready - $(function() { - // code is copied from jQuery ($.browser is deprecated + there is a bug in IE) - var u = navigator.userAgent.toLowerCase(), - v = (u.match( /.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1], - css_string = '' + - '.jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } ' + - '.jstree li { display:block; min-height:18px; line-height:18px; white-space:nowrap; margin-left:18px; min-width:18px; } ' + - '.jstree-rtl li { margin-left:0; margin-right:18px; } ' + - '.jstree > ul > li { margin-left:0px; } ' + - '.jstree-rtl > ul > li { margin-right:0px; } ' + - '.jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } ' + - '.jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } ' + - '.jstree a:focus { outline: none; } ' + - '.jstree a > ins { height:16px; width:16px; } ' + - '.jstree a > .jstree-icon { margin-right:3px; } ' + - '.jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } ' + - 'li.jstree-open > ul { display:block; } ' + - 'li.jstree-closed > ul { display:none; } '; - // Correct IE 6 (does not support the > CSS selector) - if(/msie/.test(u) && parseInt(v, 10) == 6) { - is_ie6 = true; - - // fix image flicker and lack of caching - try { - document.execCommand("BackgroundImageCache", false, true); - } catch (err) { } - - css_string += '' + - '.jstree li { height:18px; margin-left:0; margin-right:0; } ' + - '.jstree li li { margin-left:18px; } ' + - '.jstree-rtl li li { margin-left:0px; margin-right:18px; } ' + - 'li.jstree-open ul { display:block; } ' + - 'li.jstree-closed ul { display:none !important; } ' + - '.jstree li a { display:inline; border-width:0 !important; padding:0px 2px !important; } ' + - '.jstree li a ins { height:16px; width:16px; margin-right:3px; } ' + - '.jstree-rtl li a ins { margin-right:0px; margin-left:3px; } '; - } - // Correct IE 7 (shifts anchor nodes onhover) - if(/msie/.test(u) && parseInt(v, 10) == 7) { - is_ie7 = true; - css_string += '.jstree li a { border-width:0 !important; padding:0px 2px !important; } '; - } - // correct ff2 lack of display:inline-block - if(!/compatible/.test(u) && /mozilla/.test(u) && parseFloat(v, 10) < 1.9) { - is_ff2 = true; - css_string += '' + - '.jstree ins { display:-moz-inline-box; } ' + - '.jstree li { line-height:12px; } ' + // WHY?? - '.jstree a { display:-moz-inline-box; } ' + - '.jstree .jstree-no-icons .jstree-checkbox { display:-moz-inline-stack !important; } '; - /* this shouldn't be here as it is theme specific */ - } - // the default stylesheet - $.vakata.css.add_sheet({ str : css_string, title : "jstree" }); - }); - - // core functions (open, close, create, update, delete) - $.jstree.plugin("core", { - __init : function () { - this.data.core.locked = false; - this.data.core.to_open = this.get_settings().core.initially_open; - this.data.core.to_load = this.get_settings().core.initially_load; - }, - defaults : { - html_titles : false, - animation : 500, - initially_open : [], - initially_load : [], - open_parents : true, - notify_plugins : true, - rtl : false, - load_open : false, - strings : { - loading : "Loading ...", - new_node : "New node", - multiple_selection : "Multiple selection" - } - }, - _fn : { - init : function () { - this.set_focus(); - if(this._get_settings().core.rtl) { - this.get_container().addClass("jstree-rtl").css("direction", "rtl"); - } - this.get_container().html("<ul><li class='jstree-last jstree-leaf'><ins> </ins><a class='jstree-loading' href='#'><ins class='jstree-icon'> </ins>" + this._get_string("loading") + "</a></li></ul>"); - this.data.core.li_height = this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height() || 18; - - this.get_container() - .delegate("li > ins", "click.jstree", $.proxy(function (event) { - var trgt = $(event.target); - // if(trgt.is("ins") && event.pageY - trgt.offset().top < this.data.core.li_height) { this.toggle_node(trgt); } - this.toggle_node(trgt); - }, this)) - .bind("mousedown.jstree", $.proxy(function () { - this.set_focus(); // This used to be setTimeout(set_focus,0) - why? - }, this)) - .bind("dblclick.jstree", function (event) { - var sel; - if(document.selection && document.selection.empty) { document.selection.empty(); } - else { - if(window.getSelection) { - sel = window.getSelection(); - try { - sel.removeAllRanges(); - sel.collapse(); - } catch (err) { } - } - } - }); - if(this._get_settings().core.notify_plugins) { - this.get_container() - .bind("load_node.jstree", $.proxy(function (e, data) { - var o = this._get_node(data.rslt.obj), - t = this; - if(o === -1) { o = this.get_container_ul(); } - if(!o.length) { return; } - o.find("li").each(function () { - var th = $(this); - if(th.data("jstree")) { - $.each(th.data("jstree"), function (plugin, values) { - if(t.data[plugin] && $.isFunction(t["_" + plugin + "_notify"])) { - t["_" + plugin + "_notify"].call(t, th, values); - } - }); - } - }); - }, this)); - } - if(this._get_settings().core.load_open) { - this.get_container() - .bind("load_node.jstree", $.proxy(function (e, data) { - var o = this._get_node(data.rslt.obj), - t = this; - if(o === -1) { o = this.get_container_ul(); } - if(!o.length) { return; } - o.find("li.jstree-open:not(:has(ul))").each(function () { - t.load_node(this, $.noop, $.noop); - }); - }, this)); - } - this.__callback(); - this.load_node(-1, function () { this.loaded(); this.reload_nodes(); }); - }, - destroy : function () { - var i, - n = this.get_index(), - s = this._get_settings(), - _this = this; - - $.each(s.plugins, function (i, val) { - try { plugins[val].__destroy.apply(_this); } catch(err) { } - }); - this.__callback(); - // set focus to another instance if this one is focused - if(this.is_focused()) { - for(i in instances) { - if(instances.hasOwnProperty(i) && i != n) { - instances[i].set_focus(); - break; - } - } - } - // if no other instance found - if(n === focused_instance) { focused_instance = -1; } - // remove all traces of jstree in the DOM (only the ones set using jstree*) and cleans all events - this.get_container() - .unbind(".jstree") - .undelegate(".jstree") - .removeData("jstree_instance_id") - .find("[class^='jstree']") - .andSelf() - .attr("class", function () { return this.className.replace(/jstree[^ ]*|$/ig,''); }); - $(document) - .unbind(".jstree-" + n) - .undelegate(".jstree-" + n); - // remove the actual data - instances[n] = null; - delete instances[n]; - }, - - _core_notify : function (n, data) { - if(data.opened) { - this.open_node(n, false, true); - } - }, - - lock : function () { - this.data.core.locked = true; - this.get_container().children("ul").addClass("jstree-locked").css("opacity","0.7"); - this.__callback({}); - }, - unlock : function () { - this.data.core.locked = false; - this.get_container().children("ul").removeClass("jstree-locked").css("opacity","1"); - this.__callback({}); - }, - is_locked : function () { return this.data.core.locked; }, - save_opened : function () { - var _this = this; - this.data.core.to_open = []; - this.get_container_ul().find("li.jstree-open").each(function () { - if(this.id) { _this.data.core.to_open.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); } - }); - this.__callback(_this.data.core.to_open); - }, - save_loaded : function () { }, - reload_nodes : function (is_callback) { - var _this = this, - done = true, - current = [], - remaining = []; - if(!is_callback) { - this.data.core.reopen = false; - this.data.core.refreshing = true; - this.data.core.to_open = $.map($.makeArray(this.data.core.to_open), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); }); - this.data.core.to_load = $.map($.makeArray(this.data.core.to_load), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); }); - if(this.data.core.to_open.length) { - this.data.core.to_load = this.data.core.to_load.concat(this.data.core.to_open); - } - } - if(this.data.core.to_load.length) { - $.each(this.data.core.to_load, function (i, val) { - if(val == "#") { return true; } - if($(val).length) { current.push(val); } - else { remaining.push(val); } - }); - if(current.length) { - this.data.core.to_load = remaining; - $.each(current, function (i, val) { - if(!_this._is_loaded(val)) { - _this.load_node(val, function () { _this.reload_nodes(true); }, function () { _this.reload_nodes(true); }); - done = false; - } - }); - } - } - if(this.data.core.to_open.length) { - $.each(this.data.core.to_open, function (i, val) { - _this.open_node(val, false, true); - }); - } - if(done) { - // TODO: find a more elegant approach to syncronizing returning requests - if(this.data.core.reopen) { clearTimeout(this.data.core.reopen); } - this.data.core.reopen = setTimeout(function () { _this.__callback({}, _this); }, 50); - this.data.core.refreshing = false; - this.reopen(); - } - }, - reopen : function () { - var _this = this; - if(this.data.core.to_open.length) { - $.each(this.data.core.to_open, function (i, val) { - _this.open_node(val, false, true); - }); - } - this.__callback({}); - }, - refresh : function (obj) { - var _this = this; - this.save_opened(); - if(!obj) { obj = -1; } - obj = this._get_node(obj); - if(!obj) { obj = -1; } - if(obj !== -1) { obj.children("UL").remove(); } - else { this.get_container_ul().empty(); } - this.load_node(obj, function () { _this.__callback({ "obj" : obj}); _this.reload_nodes(); }); - }, - // Dummy function to fire after the first load (so that there is a jstree.loaded event) - loaded : function () { - this.__callback(); - }, - // deal with focus - set_focus : function () { - if(this.is_focused()) { return; } - var f = $.jstree._focused(); - if(f) { f.unset_focus(); } - - this.get_container().addClass("jstree-focused"); - focused_instance = this.get_index(); - this.__callback(); - }, - is_focused : function () { - return focused_instance == this.get_index(); - }, - unset_focus : function () { - if(this.is_focused()) { - this.get_container().removeClass("jstree-focused"); - focused_instance = -1; - } - this.__callback(); - }, - - // traverse - _get_node : function (obj) { - var $obj = $(obj, this.get_container()); - if($obj.is(".jstree") || obj == -1) { return -1; } - $obj = $obj.closest("li", this.get_container()); - return $obj.length ? $obj : false; - }, - _get_next : function (obj, strict) { - obj = this._get_node(obj); - if(obj === -1) { return this.get_container().find("> ul > li:first-child"); } - if(!obj.length) { return false; } - if(strict) { return (obj.nextAll("li").size() > 0) ? obj.nextAll("li:eq(0)") : false; } - - if(obj.hasClass("jstree-open")) { return obj.find("li:eq(0)"); } - else if(obj.nextAll("li").size() > 0) { return obj.nextAll("li:eq(0)"); } - else { return obj.parentsUntil(".jstree","li").next("li").eq(0); } - }, - _get_prev : function (obj, strict) { - obj = this._get_node(obj); - if(obj === -1) { return this.get_container().find("> ul > li:last-child"); } - if(!obj.length) { return false; } - if(strict) { return (obj.prevAll("li").length > 0) ? obj.prevAll("li:eq(0)") : false; } - - if(obj.prev("li").length) { - obj = obj.prev("li").eq(0); - while(obj.hasClass("jstree-open")) { obj = obj.children("ul:eq(0)").children("li:last"); } - return obj; - } - else { var o = obj.parentsUntil(".jstree","li:eq(0)"); return o.length ? o : false; } - }, - _get_parent : function (obj) { - obj = this._get_node(obj); - if(obj == -1 || !obj.length) { return false; } - var o = obj.parentsUntil(".jstree", "li:eq(0)"); - return o.length ? o : -1; - }, - _get_children : function (obj) { - obj = this._get_node(obj); - if(obj === -1) { return this.get_container().children("ul:eq(0)").children("li"); } - if(!obj.length) { return false; } - return obj.children("ul:eq(0)").children("li"); - }, - get_path : function (obj, id_mode) { - var p = [], - _this = this; - obj = this._get_node(obj); - if(obj === -1 || !obj || !obj.length) { return false; } - obj.parentsUntil(".jstree", "li").each(function () { - p.push( id_mode ? this.id : _this.get_text(this) ); - }); - p.reverse(); - p.push( id_mode ? obj.attr("id") : this.get_text(obj) ); - return p; - }, - - // string functions - _get_string : function (key) { - return this._get_settings().core.strings[key] || key; - }, - - is_open : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-open"); }, - is_closed : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-closed"); }, - is_leaf : function (obj) { obj = this._get_node(obj); return obj && obj !== -1 && obj.hasClass("jstree-leaf"); }, - correct_state : function (obj) { - obj = this._get_node(obj); - if(!obj || obj === -1) { return false; } - obj.removeClass("jstree-closed jstree-open").addClass("jstree-leaf").children("ul").remove(); - this.__callback({ "obj" : obj }); - }, - // open/close - open_node : function (obj, callback, skip_animation) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - if(!obj.hasClass("jstree-closed")) { if(callback) { callback.call(); } return false; } - var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation, - t = this; - if(!this._is_loaded(obj)) { - obj.children("a").addClass("jstree-loading"); - this.load_node(obj, function () { t.open_node(obj, callback, skip_animation); }, callback); - } - else { - if(this._get_settings().core.open_parents) { - obj.parentsUntil(".jstree",".jstree-closed").each(function () { - t.open_node(this, false, true); - }); - } - if(s) { obj.children("ul").css("display","none"); } - obj.removeClass("jstree-closed").addClass("jstree-open").children("a").removeClass("jstree-loading"); - if(s) { obj.children("ul").stop(true, true).slideDown(s, function () { this.style.display = ""; t.after_open(obj); }); } - else { t.after_open(obj); } - this.__callback({ "obj" : obj }); - if(callback) { callback.call(); } - } - }, - after_open : function (obj) { this.__callback({ "obj" : obj }); }, - close_node : function (obj, skip_animation) { - obj = this._get_node(obj); - var s = skip_animation || is_ie6 ? 0 : this._get_settings().core.animation, - t = this; - if(!obj.length || !obj.hasClass("jstree-open")) { return false; } - if(s) { obj.children("ul").attr("style","display:block !important"); } - obj.removeClass("jstree-open").addClass("jstree-closed"); - if(s) { obj.children("ul").stop(true, true).slideUp(s, function () { this.style.display = ""; t.after_close(obj); }); } - else { t.after_close(obj); } - this.__callback({ "obj" : obj }); - }, - after_close : function (obj) { this.__callback({ "obj" : obj }); }, - toggle_node : function (obj) { - obj = this._get_node(obj); - if(obj.hasClass("jstree-closed")) { return this.open_node(obj); } - if(obj.hasClass("jstree-open")) { return this.close_node(obj); } - }, - open_all : function (obj, do_animation, original_obj) { - obj = obj ? this._get_node(obj) : -1; - if(!obj || obj === -1) { obj = this.get_container_ul(); } - if(original_obj) { - obj = obj.find("li.jstree-closed"); - } - else { - original_obj = obj; - if(obj.is(".jstree-closed")) { obj = obj.find("li.jstree-closed").andSelf(); } - else { obj = obj.find("li.jstree-closed"); } - } - var _this = this; - obj.each(function () { - var __this = this; - if(!_this._is_loaded(this)) { _this.open_node(this, function() { _this.open_all(__this, do_animation, original_obj); }, !do_animation); } - else { _this.open_node(this, false, !do_animation); } - }); - // so that callback is fired AFTER all nodes are open - if(original_obj.find('li.jstree-closed').length === 0) { this.__callback({ "obj" : original_obj }); } - }, - close_all : function (obj, do_animation) { - var _this = this; - obj = obj ? this._get_node(obj) : this.get_container(); - if(!obj || obj === -1) { obj = this.get_container_ul(); } - obj.find("li.jstree-open").andSelf().each(function () { _this.close_node(this, !do_animation); }); - this.__callback({ "obj" : obj }); - }, - clean_node : function (obj) { - obj = obj && obj != -1 ? $(obj) : this.get_container_ul(); - obj = obj.is("li") ? obj.find("li").andSelf() : obj.find("li"); - obj.removeClass("jstree-last") - .filter("li:last-child").addClass("jstree-last").end() - .filter(":has(li)") - .not(".jstree-open").removeClass("jstree-leaf").addClass("jstree-closed"); - obj.not(".jstree-open, .jstree-closed").addClass("jstree-leaf").children("ul").remove(); - this.__callback({ "obj" : obj }); - }, - // rollback - get_rollback : function () { - this.__callback(); - return { i : this.get_index(), h : this.get_container().children("ul").clone(true), d : this.data }; - }, - set_rollback : function (html, data) { - this.get_container().empty().append(html); - this.data = data; - this.__callback(); - }, - // Dummy functions to be overwritten by any datastore plugin included - load_node : function (obj, s_call, e_call) { this.__callback({ "obj" : obj }); }, - _is_loaded : function (obj) { return true; }, - - // Basic operations: create - create_node : function (obj, position, js, callback, is_loaded) { - obj = this._get_node(obj); - position = typeof position === "undefined" ? "last" : position; - var d = $("<li />"), - s = this._get_settings().core, - tmp; - - if(obj !== -1 && !obj.length) { return false; } - if(!is_loaded && !this._is_loaded(obj)) { this.load_node(obj, function () { this.create_node(obj, position, js, callback, true); }); return false; } - - this.__rollback(); - - if(typeof js === "string") { js = { "data" : js }; } - if(!js) { js = {}; } - if(js.attr) { d.attr(js.attr); } - if(js.metadata) { d.data(js.metadata); } - if(js.state) { d.addClass("jstree-" + js.state); } - if(!js.data) { js.data = this._get_string("new_node"); } - if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); } - $.each(js.data, function (i, m) { - tmp = $("<a />"); - if($.isFunction(m)) { m = m.call(this, js); } - if(typeof m == "string") { tmp.attr('href','#')[ s.html_titles ? "html" : "text" ](m); } - else { - if(!m.attr) { m.attr = {}; } - if(!m.attr.href) { m.attr.href = '#'; } - tmp.attr(m.attr)[ s.html_titles ? "html" : "text" ](m.title); - if(m.language) { tmp.addClass(m.language); } - } - tmp.prepend("<ins class='jstree-icon'> </ins>"); - if(!m.icon && js.icon) { m.icon = js.icon; } - if(m.icon) { - if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); } - else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); } - } - d.append(tmp); - }); - d.prepend("<ins class='jstree-icon'> </ins>"); - if(obj === -1) { - obj = this.get_container(); - if(position === "before") { position = "first"; } - if(position === "after") { position = "last"; } - } - switch(position) { - case "before": obj.before(d); tmp = this._get_parent(obj); break; - case "after" : obj.after(d); tmp = this._get_parent(obj); break; - case "inside": - case "first" : - if(!obj.children("ul").length) { obj.append("<ul />"); } - obj.children("ul").prepend(d); - tmp = obj; - break; - case "last": - if(!obj.children("ul").length) { obj.append("<ul />"); } - obj.children("ul").append(d); - tmp = obj; - break; - default: - if(!obj.children("ul").length) { obj.append("<ul />"); } - if(!position) { position = 0; } - tmp = obj.children("ul").children("li").eq(position); - if(tmp.length) { tmp.before(d); } - else { obj.children("ul").append(d); } - tmp = obj; - break; - } - if(tmp === -1 || tmp.get(0) === this.get_container().get(0)) { tmp = -1; } - this.clean_node(tmp); - this.__callback({ "obj" : d, "parent" : tmp }); - if(callback) { callback.call(this, d); } - return d; - }, - // Basic operations: rename (deal with text) - get_text : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - var s = this._get_settings().core.html_titles; - obj = obj.children("a:eq(0)"); - if(s) { - obj = obj.clone(); - obj.children("INS").remove(); - return obj.html(); - } - else { - obj = obj.contents().filter(function() { return this.nodeType == 3; })[0]; - return obj.nodeValue; - } - }, - set_text : function (obj, val) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - obj = obj.children("a:eq(0)"); - if(this._get_settings().core.html_titles) { - var tmp = obj.children("INS").clone(); - obj.html(val).prepend(tmp); - this.__callback({ "obj" : obj, "name" : val }); - return true; - } - else { - obj = obj.contents().filter(function() { return this.nodeType == 3; })[0]; - this.__callback({ "obj" : obj, "name" : val }); - return (obj.nodeValue = val); - } - }, - rename_node : function (obj, val) { - obj = this._get_node(obj); - this.__rollback(); - if(obj && obj.length && this.set_text.apply(this, Array.prototype.slice.call(arguments))) { this.__callback({ "obj" : obj, "name" : val }); } - }, - // Basic operations: deleting nodes - delete_node : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - this.__rollback(); - var p = this._get_parent(obj), prev = $([]), t = this; - obj.each(function () { - prev = prev.add(t._get_prev(this)); - }); - obj = obj.detach(); - if(p !== -1 && p.find("> ul > li").length === 0) { - p.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"); - } - this.clean_node(p); - this.__callback({ "obj" : obj, "prev" : prev, "parent" : p }); - return obj; - }, - prepare_move : function (o, r, pos, cb, is_cb) { - var p = {}; - - p.ot = $.jstree._reference(o) || this; - p.o = p.ot._get_node(o); - p.r = r === - 1 ? -1 : this._get_node(r); - p.p = (typeof pos === "undefined" || pos === false) ? "last" : pos; // TODO: move to a setting - if(!is_cb && prepared_move.o && prepared_move.o[0] === p.o[0] && prepared_move.r[0] === p.r[0] && prepared_move.p === p.p) { - this.__callback(prepared_move); - if(cb) { cb.call(this, prepared_move); } - return; - } - p.ot = $.jstree._reference(p.o) || this; - p.rt = $.jstree._reference(p.r) || this; // r === -1 ? p.ot : $.jstree._reference(p.r) || this - if(p.r === -1 || !p.r) { - p.cr = -1; - switch(p.p) { - case "first": - case "before": - case "inside": - p.cp = 0; - break; - case "after": - case "last": - p.cp = p.rt.get_container().find(" > ul > li").length; - break; - default: - p.cp = p.p; - break; - } - } - else { - if(!/^(before|after)$/.test(p.p) && !this._is_loaded(p.r)) { - return this.load_node(p.r, function () { this.prepare_move(o, r, pos, cb, true); }); - } - switch(p.p) { - case "before": - p.cp = p.r.index(); - p.cr = p.rt._get_parent(p.r); - break; - case "after": - p.cp = p.r.index() + 1; - p.cr = p.rt._get_parent(p.r); - break; - case "inside": - case "first": - p.cp = 0; - p.cr = p.r; - break; - case "last": - p.cp = p.r.find(" > ul > li").length; - p.cr = p.r; - break; - default: - p.cp = p.p; - p.cr = p.r; - break; - } - } - p.np = p.cr == -1 ? p.rt.get_container() : p.cr; - p.op = p.ot._get_parent(p.o); - p.cop = p.o.index(); - if(p.op === -1) { p.op = p.ot ? p.ot.get_container() : this.get_container(); } - if(!/^(before|after)$/.test(p.p) && p.op && p.np && p.op[0] === p.np[0] && p.o.index() < p.cp) { p.cp++; } - //if(p.p === "before" && p.op && p.np && p.op[0] === p.np[0] && p.o.index() < p.cp) { p.cp--; } - p.or = p.np.find(" > ul > li:nth-child(" + (p.cp + 1) + ")"); - prepared_move = p; - this.__callback(prepared_move); - if(cb) { cb.call(this, prepared_move); } - }, - check_move : function () { - var obj = prepared_move, ret = true, r = obj.r === -1 ? this.get_container() : obj.r; - if(!obj || !obj.o || obj.or[0] === obj.o[0]) { return false; } - if(obj.op && obj.np && obj.op[0] === obj.np[0] && obj.cp - 1 === obj.o.index()) { return false; } - obj.o.each(function () { - if(r.parentsUntil(".jstree", "li").andSelf().index(this) !== -1) { ret = false; return false; } - }); - return ret; - }, - move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) { - if(!is_prepared) { - return this.prepare_move(obj, ref, position, function (p) { - this.move_node(p, false, false, is_copy, true, skip_check); - }); - } - if(is_copy) { - prepared_move.cy = true; - } - if(!skip_check && !this.check_move()) { return false; } - - this.__rollback(); - var o = false; - if(is_copy) { - o = obj.o.clone(true); - o.find("*[id]").andSelf().each(function () { - if(this.id) { this.id = "copy_" + this.id; } - }); - } - else { o = obj.o; } - - if(obj.or.length) { obj.or.before(o); } - else { - if(!obj.np.children("ul").length) { $("<ul />").appendTo(obj.np); } - obj.np.children("ul:eq(0)").append(o); - } - - try { - obj.ot.clean_node(obj.op); - obj.rt.clean_node(obj.np); - if(!obj.op.find("> ul > li").length) { - obj.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove(); - } - } catch (e) { } - - if(is_copy) { - prepared_move.cy = true; - prepared_move.oc = o; - } - this.__callback(prepared_move); - return prepared_move; - }, - _get_move : function () { return prepared_move; } - } - }); -})(jQuery); -//*/ - -/* - * jsTree ui plugin - * This plugins handles selecting/deselecting/hovering/dehovering nodes - */ -(function ($) { - var scrollbar_width, e1, e2; - $(function() { - if (/msie/.test(navigator.userAgent.toLowerCase())) { - e1 = $('<textarea cols="10" rows="2"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body'); - e2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({ position: 'absolute', top: -1000, left: 0 }).appendTo('body'); - scrollbar_width = e1.width() - e2.width(); - e1.add(e2).remove(); - } - else { - e1 = $('<div />').css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: 0 }) - .prependTo('body').append('<div />').find('div').css({ width: '100%', height: 200 }); - scrollbar_width = 100 - e1.width(); - e1.parent().remove(); - } - }); - $.jstree.plugin("ui", { - __init : function () { - this.data.ui.selected = $(); - this.data.ui.last_selected = false; - this.data.ui.hovered = null; - this.data.ui.to_select = this.get_settings().ui.initially_select; - - this.get_container() - .delegate("a", "click.jstree", $.proxy(function (event) { - event.preventDefault(); - event.currentTarget.blur(); - if(!$(event.currentTarget).hasClass("jstree-loading")) { - this.select_node(event.currentTarget, true, event); - } - }, this)) - .delegate("a", "mouseenter.jstree", $.proxy(function (event) { - if(!$(event.currentTarget).hasClass("jstree-loading")) { - this.hover_node(event.target); - } - }, this)) - .delegate("a", "mouseleave.jstree", $.proxy(function (event) { - if(!$(event.currentTarget).hasClass("jstree-loading")) { - this.dehover_node(event.target); - } - }, this)) - .bind("reopen.jstree", $.proxy(function () { - this.reselect(); - }, this)) - .bind("get_rollback.jstree", $.proxy(function () { - this.dehover_node(); - this.save_selected(); - }, this)) - .bind("set_rollback.jstree", $.proxy(function () { - this.reselect(); - }, this)) - .bind("close_node.jstree", $.proxy(function (event, data) { - var s = this._get_settings().ui, - obj = this._get_node(data.rslt.obj), - clk = (obj && obj.length) ? obj.children("ul").find("a.jstree-clicked") : $(), - _this = this; - if(s.selected_parent_close === false || !clk.length) { return; } - clk.each(function () { - _this.deselect_node(this); - if(s.selected_parent_close === "select_parent") { _this.select_node(obj); } - }); - }, this)) - .bind("delete_node.jstree", $.proxy(function (event, data) { - var s = this._get_settings().ui.select_prev_on_delete, - obj = this._get_node(data.rslt.obj), - clk = (obj && obj.length) ? obj.find("a.jstree-clicked") : [], - _this = this; - clk.each(function () { _this.deselect_node(this); }); - if(s && clk.length) { - data.rslt.prev.each(function () { - if(this.parentNode) { _this.select_node(this); return false; /* if return false is removed all prev nodes will be selected */} - }); - } - }, this)) - .bind("move_node.jstree", $.proxy(function (event, data) { - if(data.rslt.cy) { - data.rslt.oc.find("a.jstree-clicked").removeClass("jstree-clicked"); - } - }, this)); - }, - defaults : { - select_limit : -1, // 0, 1, 2 ... or -1 for unlimited - select_multiple_modifier : "ctrl", // on, or ctrl, shift, alt - select_range_modifier : "shift", - selected_parent_close : "select_parent", // false, "deselect", "select_parent" - selected_parent_open : true, - select_prev_on_delete : true, - disable_selecting_children : false, - initially_select : [] - }, - _fn : { - _get_node : function (obj, allow_multiple) { - if(typeof obj === "undefined" || obj === null) { return allow_multiple ? this.data.ui.selected : this.data.ui.last_selected; } - var $obj = $(obj, this.get_container()); - if($obj.is(".jstree") || obj == -1) { return -1; } - $obj = $obj.closest("li", this.get_container()); - return $obj.length ? $obj : false; - }, - _ui_notify : function (n, data) { - if(data.selected) { - this.select_node(n, false); - } - }, - save_selected : function () { - var _this = this; - this.data.ui.to_select = []; - this.data.ui.selected.each(function () { if(this.id) { _this.data.ui.to_select.push("#" + this.id.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:")); } }); - this.__callback(this.data.ui.to_select); - }, - reselect : function () { - var _this = this, - s = this.data.ui.to_select; - s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); }); - // this.deselect_all(); WHY deselect, breaks plugin state notifier? - $.each(s, function (i, val) { if(val && val !== "#") { _this.select_node(val); } }); - this.data.ui.selected = this.data.ui.selected.filter(function () { return this.parentNode; }); - this.__callback(); - }, - refresh : function (obj) { - this.save_selected(); - return this.__call_old(); - }, - hover_node : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - //if(this.data.ui.hovered && obj.get(0) === this.data.ui.hovered.get(0)) { return; } - if(!obj.hasClass("jstree-hovered")) { this.dehover_node(); } - this.data.ui.hovered = obj.children("a").addClass("jstree-hovered").parent(); - this._fix_scroll(obj); - this.__callback({ "obj" : obj }); - }, - dehover_node : function () { - var obj = this.data.ui.hovered, p; - if(!obj || !obj.length) { return false; } - p = obj.children("a").removeClass("jstree-hovered").parent(); - if(this.data.ui.hovered[0] === p[0]) { this.data.ui.hovered = null; } - this.__callback({ "obj" : obj }); - }, - select_node : function (obj, check, e) { - obj = this._get_node(obj); - if(obj == -1 || !obj || !obj.length) { return false; } - var s = this._get_settings().ui, - is_multiple = (s.select_multiple_modifier == "on" || (s.select_multiple_modifier !== false && e && e[s.select_multiple_modifier + "Key"])), - is_range = (s.select_range_modifier !== false && e && e[s.select_range_modifier + "Key"] && this.data.ui.last_selected && this.data.ui.last_selected[0] !== obj[0] && this.data.ui.last_selected.parent()[0] === obj.parent()[0]), - is_selected = this.is_selected(obj), - proceed = true, - t = this; - if(check) { - if(s.disable_selecting_children && is_multiple && - ( - (obj.parentsUntil(".jstree","li").children("a.jstree-clicked").length) || - (obj.children("ul").find("a.jstree-clicked:eq(0)").length) - ) - ) { - return false; - } - proceed = false; - switch(!0) { - case (is_range): - this.data.ui.last_selected.addClass("jstree-last-selected"); - obj = obj[ obj.index() < this.data.ui.last_selected.index() ? "nextUntil" : "prevUntil" ](".jstree-last-selected").andSelf(); - if(s.select_limit == -1 || obj.length < s.select_limit) { - this.data.ui.last_selected.removeClass("jstree-last-selected"); - this.data.ui.selected.each(function () { - if(this !== t.data.ui.last_selected[0]) { t.deselect_node(this); } - }); - is_selected = false; - proceed = true; - } - else { - proceed = false; - } - break; - case (is_selected && !is_multiple): - this.deselect_all(); - is_selected = false; - proceed = true; - break; - case (!is_selected && !is_multiple): - if(s.select_limit == -1 || s.select_limit > 0) { - this.deselect_all(); - proceed = true; - } - break; - case (is_selected && is_multiple): - this.deselect_node(obj); - break; - case (!is_selected && is_multiple): - if(s.select_limit == -1 || this.data.ui.selected.length + 1 <= s.select_limit) { - proceed = true; - } - break; - } - } - if(proceed && !is_selected) { - if(!is_range) { this.data.ui.last_selected = obj; } - obj.children("a").addClass("jstree-clicked"); - if(s.selected_parent_open) { - obj.parents(".jstree-closed").each(function () { t.open_node(this, false, true); }); - } - this.data.ui.selected = this.data.ui.selected.add(obj); - this._fix_scroll(obj.eq(0)); - this.__callback({ "obj" : obj, "e" : e }); - } - }, - _fix_scroll : function (obj) { - var c = this.get_container()[0], t; - if(c.scrollHeight > c.offsetHeight) { - obj = this._get_node(obj); - if(!obj || obj === -1 || !obj.length || !obj.is(":visible")) { return; } - t = obj.offset().top - this.get_container().offset().top; - if(t < 0) { - c.scrollTop = c.scrollTop + t - 1; - } - if(t + this.data.core.li_height + (c.scrollWidth > c.offsetWidth ? scrollbar_width : 0) > c.offsetHeight) { - c.scrollTop = c.scrollTop + (t - c.offsetHeight + this.data.core.li_height + 1 + (c.scrollWidth > c.offsetWidth ? scrollbar_width : 0)); - } - } - }, - deselect_node : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - if(this.is_selected(obj)) { - obj.children("a").removeClass("jstree-clicked"); - this.data.ui.selected = this.data.ui.selected.not(obj); - if(this.data.ui.last_selected.get(0) === obj.get(0)) { this.data.ui.last_selected = this.data.ui.selected.eq(0); } - this.__callback({ "obj" : obj }); - } - }, - toggle_select : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return false; } - if(this.is_selected(obj)) { this.deselect_node(obj); } - else { this.select_node(obj); } - }, - is_selected : function (obj) { return this.data.ui.selected.index(this._get_node(obj)) >= 0; }, - get_selected : function (context) { - return context ? $(context).find("a.jstree-clicked").parent() : this.data.ui.selected; - }, - deselect_all : function (context) { - var ret = context ? $(context).find("a.jstree-clicked").parent() : this.get_container().find("a.jstree-clicked").parent(); - ret.children("a.jstree-clicked").removeClass("jstree-clicked"); - this.data.ui.selected = $([]); - this.data.ui.last_selected = false; - this.__callback({ "obj" : ret }); - } - } - }); - // include the selection plugin by default - $.jstree.defaults.plugins.push("ui"); -})(jQuery); -//*/ - -/* - * jsTree CRRM plugin - * Handles creating/renaming/removing/moving nodes by user interaction. - */ -(function ($) { - $.jstree.plugin("crrm", { - __init : function () { - this.get_container() - .bind("move_node.jstree", $.proxy(function (e, data) { - if(this._get_settings().crrm.move.open_onmove) { - var t = this; - data.rslt.np.parentsUntil(".jstree").andSelf().filter(".jstree-closed").each(function () { - t.open_node(this, false, true); - }); - } - }, this)); - }, - defaults : { - input_width_limit : 200, - move : { - always_copy : false, // false, true or "multitree" - open_onmove : true, - default_position : "last", - check_move : function (m) { return true; } - } - }, - _fn : { - _show_input : function (obj, callback) { - obj = this._get_node(obj); - var rtl = this._get_settings().core.rtl, - w = this._get_settings().crrm.input_width_limit, - w1 = obj.children("ins").width(), - w2 = obj.find("> a:visible > ins").width() * obj.find("> a:visible > ins").length, - t = this.get_text(obj), - h1 = $("<div />", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo("body"), - h2 = obj.css("position","relative").append( - $("<input />", { - "value" : t, - "class" : "jstree-rename-input", - // "size" : t.length, - "css" : { - "padding" : "0", - "border" : "1px solid silver", - "position" : "absolute", - "left" : (rtl ? "auto" : (w1 + w2 + 4) + "px"), - "right" : (rtl ? (w1 + w2 + 4) + "px" : "auto"), - "top" : "0px", - "height" : (this.data.core.li_height - 2) + "px", - "lineHeight" : (this.data.core.li_height - 2) + "px", - "width" : "150px" // will be set a bit further down - }, - "blur" : $.proxy(function () { - var i = obj.children(".jstree-rename-input"), - v = i.val(); - if(v === "") { v = t; } - h1.remove(); - i.remove(); // rollback purposes - this.set_text(obj,t); // rollback purposes - this.rename_node(obj, v); - callback.call(this, obj, v, t); - obj.css("position",""); - }, this), - "keyup" : function (event) { - var key = event.keyCode || event.which; - if(key == 27) { this.value = t; this.blur(); return; } - else if(key == 13) { this.blur(); return; } - else { - h2.width(Math.min(h1.text("pW" + this.value).width(),w)); - } - }, - "keypress" : function(event) { - var key = event.keyCode || event.which; - if(key == 13) { return false; } - } - }) - ).children(".jstree-rename-input"); - this.set_text(obj, ""); - h1.css({ - fontFamily : h2.css('fontFamily') || '', - fontSize : h2.css('fontSize') || '', - fontWeight : h2.css('fontWeight') || '', - fontStyle : h2.css('fontStyle') || '', - fontStretch : h2.css('fontStretch') || '', - fontVariant : h2.css('fontVariant') || '', - letterSpacing : h2.css('letterSpacing') || '', - wordSpacing : h2.css('wordSpacing') || '' - }); - h2.width(Math.min(h1.text("pW" + h2[0].value).width(),w))[0].select(); - }, - rename : function (obj) { - obj = this._get_node(obj); - this.__rollback(); - var f = this.__callback; - this._show_input(obj, function (obj, new_name, old_name) { - f.call(this, { "obj" : obj, "new_name" : new_name, "old_name" : old_name }); - }); - }, - create : function (obj, position, js, callback, skip_rename) { - var t, _this = this; - obj = this._get_node(obj); - if(!obj) { obj = -1; } - this.__rollback(); - t = this.create_node(obj, position, js, function (t) { - var p = this._get_parent(t), - pos = $(t).index(); - if(callback) { callback.call(this, t); } - if(p.length && p.hasClass("jstree-closed")) { this.open_node(p, false, true); } - if(!skip_rename) { - this._show_input(t, function (obj, new_name, old_name) { - _this.__callback({ "obj" : obj, "name" : new_name, "parent" : p, "position" : pos }); - }); - } - else { _this.__callback({ "obj" : t, "name" : this.get_text(t), "parent" : p, "position" : pos }); } - }); - return t; - }, - remove : function (obj) { - obj = this._get_node(obj, true); - var p = this._get_parent(obj), prev = this._get_prev(obj); - this.__rollback(); - obj = this.delete_node(obj); - if(obj !== false) { this.__callback({ "obj" : obj, "prev" : prev, "parent" : p }); } - }, - check_move : function () { - if(!this.__call_old()) { return false; } - var s = this._get_settings().crrm.move; - if(!s.check_move.call(this, this._get_move())) { return false; } - return true; - }, - move_node : function (obj, ref, position, is_copy, is_prepared, skip_check) { - var s = this._get_settings().crrm.move; - if(!is_prepared) { - if(typeof position === "undefined") { position = s.default_position; } - if(position === "inside" && !s.default_position.match(/^(before|after)$/)) { position = s.default_position; } - return this.__call_old(true, obj, ref, position, is_copy, false, skip_check); - } - // if the move is already prepared - if(s.always_copy === true || (s.always_copy === "multitree" && obj.rt.get_index() !== obj.ot.get_index() )) { - is_copy = true; - } - this.__call_old(true, obj, ref, position, is_copy, true, skip_check); - }, - - cut : function (obj) { - obj = this._get_node(obj, true); - if(!obj || !obj.length) { return false; } - this.data.crrm.cp_nodes = false; - this.data.crrm.ct_nodes = obj; - this.__callback({ "obj" : obj }); - }, - copy : function (obj) { - obj = this._get_node(obj, true); - if(!obj || !obj.length) { return false; } - this.data.crrm.ct_nodes = false; - this.data.crrm.cp_nodes = obj; - this.__callback({ "obj" : obj }); - }, - paste : function (obj) { - obj = this._get_node(obj); - if(!obj || !obj.length) { return false; } - var nodes = this.data.crrm.ct_nodes ? this.data.crrm.ct_nodes : this.data.crrm.cp_nodes; - if(!this.data.crrm.ct_nodes && !this.data.crrm.cp_nodes) { return false; } - if(this.data.crrm.ct_nodes) { this.move_node(this.data.crrm.ct_nodes, obj); this.data.crrm.ct_nodes = false; } - if(this.data.crrm.cp_nodes) { this.move_node(this.data.crrm.cp_nodes, obj, false, true); } - this.__callback({ "obj" : obj, "nodes" : nodes }); - } - } - }); - // include the crr plugin by default - // $.jstree.defaults.plugins.push("crrm"); -})(jQuery); -//*/ - -/* - * jsTree themes plugin - * Handles loading and setting themes, as well as detecting path to themes, etc. - */ -(function ($) { - var themes_loaded = []; - // this variable stores the path to the themes folder - if left as false - it will be autodetected - $.jstree._themes = false; - $.jstree.plugin("themes", { - __init : function () { - this.get_container() - .bind("init.jstree", $.proxy(function () { - var s = this._get_settings().themes; - this.data.themes.dots = s.dots; - this.data.themes.icons = s.icons; - this.set_theme(s.theme, s.url); - }, this)) - .bind("loaded.jstree", $.proxy(function () { - // bound here too, as simple HTML tree's won't honor dots & icons otherwise - if(!this.data.themes.dots) { this.hide_dots(); } - else { this.show_dots(); } - if(!this.data.themes.icons) { this.hide_icons(); } - else { this.show_icons(); } - }, this)); - }, - defaults : { - theme : "default", - url : false, - dots : true, - icons : true - }, - _fn : { - set_theme : function (theme_name, theme_url) { - if(!theme_name) { return false; } - if(!theme_url) { theme_url = $.jstree._themes + theme_name + '/style.css'; } - if($.inArray(theme_url, themes_loaded) == -1) { - $.vakata.css.add_sheet({ "url" : theme_url }); - themes_loaded.push(theme_url); - } - if(this.data.themes.theme != theme_name) { - this.get_container().removeClass('jstree-' + this.data.themes.theme); - this.data.themes.theme = theme_name; - } - this.get_container().addClass('jstree-' + theme_name); - if(!this.data.themes.dots) { this.hide_dots(); } - else { this.show_dots(); } - if(!this.data.themes.icons) { this.hide_icons(); } - else { this.show_icons(); } - this.__callback(); - }, - get_theme : function () { return this.data.themes.theme; }, - - show_dots : function () { this.data.themes.dots = true; this.get_container().children("ul").removeClass("jstree-no-dots"); }, - hide_dots : function () { this.data.themes.dots = false; this.get_container().children("ul").addClass("jstree-no-dots"); }, - toggle_dots : function () { if(this.data.themes.dots) { this.hide_dots(); } else { this.show_dots(); } }, - - show_icons : function () { this.data.themes.icons = true; this.get_container().children("ul").removeClass("jstree-no-icons"); }, - hide_icons : function () { this.data.themes.icons = false; this.get_container().children("ul").addClass("jstree-no-icons"); }, - toggle_icons: function () { if(this.data.themes.icons) { this.hide_icons(); } else { this.show_icons(); } } - } - }); - // autodetect themes path - $(function () { - if($.jstree._themes === false) { - $("script").each(function () { - if(this.src.toString().match(/jquery\.jstree[^\/]*?\.js(\?.*)?$/)) { - $.jstree._themes = this.src.toString().replace(/jquery\.jstree[^\/]*?\.js(\?.*)?$/, "") + 'themes/'; - return false; - } - }); - } - if($.jstree._themes === false) { $.jstree._themes = "themes/"; } - }); - // include the themes plugin by default - $.jstree.defaults.plugins.push("themes"); -})(jQuery); -//*/ - -/* - * jsTree hotkeys plugin - * Enables keyboard navigation for all tree instances - * Depends on the jstree ui & jquery hotkeys plugins - */ -(function ($) { - var bound = []; - function exec(i, event) { - var f = $.jstree._focused(), tmp; - if(f && f.data && f.data.hotkeys && f.data.hotkeys.enabled) { - tmp = f._get_settings().hotkeys[i]; - if(tmp) { return tmp.call(f, event); } - } - } - $.jstree.plugin("hotkeys", { - __init : function () { - if(typeof $.hotkeys === "undefined") { throw "jsTree hotkeys: jQuery hotkeys plugin not included."; } - if(!this.data.ui) { throw "jsTree hotkeys: jsTree UI plugin not included."; } - $.each(this._get_settings().hotkeys, function (i, v) { - if(v !== false && $.inArray(i, bound) == -1) { - $(document).bind("keydown", i, function (event) { return exec(i, event); }); - bound.push(i); - } - }); - this.get_container() - .bind("lock.jstree", $.proxy(function () { - if(this.data.hotkeys.enabled) { this.data.hotkeys.enabled = false; this.data.hotkeys.revert = true; } - }, this)) - .bind("unlock.jstree", $.proxy(function () { - if(this.data.hotkeys.revert) { this.data.hotkeys.enabled = true; } - }, this)); - this.enable_hotkeys(); - }, - defaults : { - "up" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_prev(o)); - return false; - }, - "ctrl+up" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_prev(o)); - return false; - }, - "shift+up" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_prev(o)); - return false; - }, - "down" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_next(o)); - return false; - }, - "ctrl+down" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_next(o)); - return false; - }, - "shift+down" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected || -1; - this.hover_node(this._get_next(o)); - return false; - }, - "left" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o) { - if(o.hasClass("jstree-open")) { this.close_node(o); } - else { this.hover_node(this._get_prev(o)); } - } - return false; - }, - "ctrl+left" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o) { - if(o.hasClass("jstree-open")) { this.close_node(o); } - else { this.hover_node(this._get_prev(o)); } - } - return false; - }, - "shift+left" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o) { - if(o.hasClass("jstree-open")) { this.close_node(o); } - else { this.hover_node(this._get_prev(o)); } - } - return false; - }, - "right" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o && o.length) { - if(o.hasClass("jstree-closed")) { this.open_node(o); } - else { this.hover_node(this._get_next(o)); } - } - return false; - }, - "ctrl+right" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o && o.length) { - if(o.hasClass("jstree-closed")) { this.open_node(o); } - else { this.hover_node(this._get_next(o)); } - } - return false; - }, - "shift+right" : function () { - var o = this.data.ui.hovered || this.data.ui.last_selected; - if(o && o.length) { - if(o.hasClass("jstree-closed")) { this.open_node(o); } - else { this.hover_node(this._get_next(o)); } - } - return false; - }, - "space" : function () { - if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").click(); } - return false; - }, - "ctrl+space" : function (event) { - event.type = "click"; - if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } - return false; - }, - "shift+space" : function (event) { - event.type = "click"; - if(this.data.ui.hovered) { this.data.ui.hovered.children("a:eq(0)").trigger(event); } - return false; - }, - "f2" : function () { this.rename(this.data.ui.hovered || this.data.ui.last_selected); }, - "del" : function () { this.remove(this.data.ui.hovered || this._get_node(null)); } - }, - _fn : { - enable_hotkeys : function () { - this.data.hotkeys.enabled = true; - }, - disable_hotkeys : function () { - this.data.hotkeys.enabled = false; - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree JSON plugin - * The JSON data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions. - */ -(function ($) { - $.jstree.plugin("json_data", { - __init : function() { - var s = this._get_settings().json_data; - if(s.progressive_unload) { - this.get_container().bind("after_close.jstree", function (e, data) { - data.rslt.obj.children("ul").remove(); - }); - } - }, - defaults : { - // `data` can be a function: - // * accepts two arguments - node being loaded and a callback to pass the result to - // * will be executed in the current tree's scope & ajax won't be supported - data : false, - ajax : false, - correct_state : true, - progressive_render : false, - progressive_unload : false - }, - _fn : { - load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_json(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); }, - _is_loaded : function (obj) { - var s = this._get_settings().json_data; - obj = this._get_node(obj); - return obj == -1 || !obj || (!s.ajax && !s.progressive_render && !$.isFunction(s.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").length > 0; - }, - refresh : function (obj) { - obj = this._get_node(obj); - var s = this._get_settings().json_data; - if(obj && obj !== -1 && s.progressive_unload && ($.isFunction(s.data) || !!s.ajax)) { - obj.removeData("jstree_children"); - } - return this.__call_old(); - }, - load_node_json : function (obj, s_call, e_call) { - var s = this.get_settings().json_data, d, - error_func = function () {}, - success_func = function () {}; - obj = this._get_node(obj); - - if(obj && obj !== -1 && (s.progressive_render || s.progressive_unload) && !obj.is(".jstree-open, .jstree-leaf") && obj.children("ul").children("li").length === 0 && obj.data("jstree_children")) { - d = this._parse_json(obj.data("jstree_children"), obj); - if(d) { - obj.append(d); - if(!s.progressive_unload) { obj.removeData("jstree_children"); } - } - this.clean_node(obj); - if(s_call) { s_call.call(this); } - return; - } - - if(obj && obj !== -1) { - if(obj.data("jstree_is_loading")) { return; } - else { obj.data("jstree_is_loading",true); } - } - switch(!0) { - case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied."; - // function option added here for easier model integration (also supporting async - see callback) - case ($.isFunction(s.data)): - s.data.call(this, obj, $.proxy(function (d) { - d = this._parse_json(d, obj); - if(!d) { - if(obj === -1 || !obj) { - if(s.correct_state) { this.get_container().children("ul").empty(); } - } - else { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { this.correct_state(obj); } - } - if(e_call) { e_call.call(this); } - } - else { - if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); } - else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree_is_loading"); } - this.clean_node(obj); - if(s_call) { s_call.call(this); } - } - }, this)); - break; - case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)): - if(!obj || obj == -1) { - d = this._parse_json(s.data, obj); - if(d) { - this.get_container().children("ul").empty().append(d.children()); - this.clean_node(); - } - else { - if(s.correct_state) { this.get_container().children("ul").empty(); } - } - } - if(s_call) { s_call.call(this); } - break; - case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1): - error_func = function (x, t, e) { - var ef = this.get_settings().json_data.ajax.error; - if(ef) { ef.call(this, x, t, e); } - if(obj != -1 && obj.length) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(t === "success" && s.correct_state) { this.correct_state(obj); } - } - else { - if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); } - } - if(e_call) { e_call.call(this); } - }; - success_func = function (d, t, x) { - var sf = this.get_settings().json_data.ajax.success; - if(sf) { d = sf.call(this,d,t,x) || d; } - if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "") || (!$.isArray(d) && !$.isPlainObject(d))) { - return error_func.call(this, x, t, ""); - } - d = this._parse_json(d, obj); - if(d) { - if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); } - else { obj.append(d).children("a.jstree-loading").removeClass("jstree-loading"); obj.removeData("jstree_is_loading"); } - this.clean_node(obj); - if(s_call) { s_call.call(this); } - } - else { - if(obj === -1 || !obj) { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - else { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { - this.correct_state(obj); - if(s_call) { s_call.call(this); } - } - } - } - }; - s.ajax.context = this; - s.ajax.error = error_func; - s.ajax.success = success_func; - if(!s.ajax.dataType) { s.ajax.dataType = "json"; } - if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); } - if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); } - $.ajax(s.ajax); - break; - } - }, - _parse_json : function (js, obj, is_callback) { - var d = false, - p = this._get_settings(), - s = p.json_data, - t = p.core.html_titles, - tmp, i, j, ul1, ul2; - - if(!js) { return d; } - if(s.progressive_unload && obj && obj !== -1) { - obj.data("jstree_children", d); - } - if($.isArray(js)) { - d = $(); - if(!js.length) { return false; } - for(i = 0, j = js.length; i < j; i++) { - tmp = this._parse_json(js[i], obj, true); - if(tmp.length) { d = d.add(tmp); } - } - } - else { - if(typeof js == "string") { js = { data : js }; } - if(!js.data && js.data !== "") { return d; } - d = $("<li />"); - if(js.attr) { d.attr(js.attr); } - if(js.metadata) { d.data(js.metadata); } - if(js.state) { d.addClass("jstree-" + js.state); } - if(!$.isArray(js.data)) { tmp = js.data; js.data = []; js.data.push(tmp); } - $.each(js.data, function (i, m) { - tmp = $("<a />"); - if($.isFunction(m)) { m = m.call(this, js); } - if(typeof m == "string") { tmp.attr('href','#')[ t ? "html" : "text" ](m); } - else { - if(!m.attr) { m.attr = {}; } - if(!m.attr.href) { m.attr.href = '#'; } - tmp.attr(m.attr)[ t ? "html" : "text" ](m.title); - if(m.language) { tmp.addClass(m.language); } - } - tmp.prepend("<ins class='jstree-icon'> </ins>"); - if(!m.icon && js.icon) { m.icon = js.icon; } - if(m.icon) { - if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); } - else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); } - } - d.append(tmp); - }); - d.prepend("<ins class='jstree-icon'> </ins>"); - if(js.children) { - if(s.progressive_render && js.state !== "open") { - d.addClass("jstree-closed").data("jstree_children", js.children); - } - else { - if(s.progressive_unload) { d.data("jstree_children", js.children); } - if($.isArray(js.children) && js.children.length) { - tmp = this._parse_json(js.children, obj, true); - if(tmp.length) { - ul2 = $("<ul />"); - ul2.append(tmp); - d.append(ul2); - } - } - } - } - } - if(!is_callback) { - ul1 = $("<ul />"); - ul1.append(d); - d = ul1; - } - return d; - }, - get_json : function (obj, li_attr, a_attr, is_callback) { - var result = [], - s = this._get_settings(), - _this = this, - tmp1, tmp2, li, a, t, lang; - obj = this._get_node(obj); - if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); } - li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ]; - if(!is_callback && this.data.types) { li_attr.push(s.types.type_attr); } - a_attr = $.isArray(a_attr) ? a_attr : [ ]; - - obj.each(function () { - li = $(this); - tmp1 = { data : [] }; - if(li_attr.length) { tmp1.attr = { }; } - $.each(li_attr, function (i, v) { - tmp2 = li.attr(v); - if(tmp2 && tmp2.length && tmp2.replace(/jstree[^ ]*/ig,'').length) { - tmp1.attr[v] = (" " + tmp2).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""); - } - }); - if(li.hasClass("jstree-open")) { tmp1.state = "open"; } - if(li.hasClass("jstree-closed")) { tmp1.state = "closed"; } - if(li.data()) { tmp1.metadata = li.data(); } - a = li.children("a"); - a.each(function () { - t = $(this); - if( - a_attr.length || - $.inArray("languages", s.plugins) !== -1 || - t.children("ins").get(0).style.backgroundImage.length || - (t.children("ins").get(0).className && t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').length) - ) { - lang = false; - if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) { - $.each(s.languages, function (l, lv) { - if(t.hasClass(lv)) { - lang = lv; - return false; - } - }); - } - tmp2 = { attr : { }, title : _this.get_text(t, lang) }; - $.each(a_attr, function (k, z) { - tmp2.attr[z] = (" " + (t.attr(z) || "")).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""); - }); - if($.inArray("languages", s.plugins) !== -1 && $.isArray(s.languages) && s.languages.length) { - $.each(s.languages, function (k, z) { - if(t.hasClass(z)) { tmp2.language = z; return true; } - }); - } - if(t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) { - tmp2.icon = t.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,""); - } - if(t.children("ins").get(0).style.backgroundImage.length) { - tmp2.icon = t.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")",""); - } - } - else { - tmp2 = _this.get_text(t); - } - if(a.length > 1) { tmp1.data.push(tmp2); } - else { tmp1.data = tmp2; } - }); - li = li.find("> ul > li"); - if(li.length) { tmp1.children = _this.get_json(li, li_attr, a_attr, true); } - result.push(tmp1); - }); - return result; - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree languages plugin - * Adds support for multiple language versions in one tree - * This basically allows for many titles coexisting in one node, but only one of them being visible at any given time - * This is useful for maintaining the same structure in many languages (hence the name of the plugin) - */ -(function ($) { - $.jstree.plugin("languages", { - __init : function () { this._load_css(); }, - defaults : [], - _fn : { - set_lang : function (i) { - var langs = this._get_settings().languages, - st = false, - selector = ".jstree-" + this.get_index() + ' a'; - if(!$.isArray(langs) || langs.length === 0) { return false; } - if($.inArray(i,langs) == -1) { - if(!!langs[i]) { i = langs[i]; } - else { return false; } - } - if(i == this.data.languages.current_language) { return true; } - st = $.vakata.css.get_css(selector + "." + this.data.languages.current_language, false, this.data.languages.language_css); - if(st !== false) { st.style.display = "none"; } - st = $.vakata.css.get_css(selector + "." + i, false, this.data.languages.language_css); - if(st !== false) { st.style.display = ""; } - this.data.languages.current_language = i; - this.__callback(i); - return true; - }, - get_lang : function () { - return this.data.languages.current_language; - }, - _get_string : function (key, lang) { - var langs = this._get_settings().languages, - s = this._get_settings().core.strings; - if($.isArray(langs) && langs.length) { - lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language; - } - if(s[lang] && s[lang][key]) { return s[lang][key]; } - if(s[key]) { return s[key]; } - return key; - }, - get_text : function (obj, lang) { - obj = this._get_node(obj) || this.data.ui.last_selected; - if(!obj.size()) { return false; } - var langs = this._get_settings().languages, - s = this._get_settings().core.html_titles; - if($.isArray(langs) && langs.length) { - lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language; - obj = obj.children("a." + lang); - } - else { obj = obj.children("a:eq(0)"); } - if(s) { - obj = obj.clone(); - obj.children("INS").remove(); - return obj.html(); - } - else { - obj = obj.contents().filter(function() { return this.nodeType == 3; })[0]; - return obj.nodeValue; - } - }, - set_text : function (obj, val, lang) { - obj = this._get_node(obj) || this.data.ui.last_selected; - if(!obj.size()) { return false; } - var langs = this._get_settings().languages, - s = this._get_settings().core.html_titles, - tmp; - if($.isArray(langs) && langs.length) { - lang = (lang && $.inArray(lang,langs) != -1) ? lang : this.data.languages.current_language; - obj = obj.children("a." + lang); - } - else { obj = obj.children("a:eq(0)"); } - if(s) { - tmp = obj.children("INS").clone(); - obj.html(val).prepend(tmp); - this.__callback({ "obj" : obj, "name" : val, "lang" : lang }); - return true; - } - else { - obj = obj.contents().filter(function() { return this.nodeType == 3; })[0]; - this.__callback({ "obj" : obj, "name" : val, "lang" : lang }); - return (obj.nodeValue = val); - } - }, - _load_css : function () { - var langs = this._get_settings().languages, - str = "/* languages css */", - selector = ".jstree-" + this.get_index() + ' a', - ln; - if($.isArray(langs) && langs.length) { - this.data.languages.current_language = langs[0]; - for(ln = 0; ln < langs.length; ln++) { - str += selector + "." + langs[ln] + " {"; - if(langs[ln] != this.data.languages.current_language) { str += " display:none; "; } - str += " } "; - } - this.data.languages.language_css = $.vakata.css.add_sheet({ 'str' : str, 'title' : "jstree-languages" }); - } - }, - create_node : function (obj, position, js, callback) { - var t = this.__call_old(true, obj, position, js, function (t) { - var langs = this._get_settings().languages, - a = t.children("a"), - ln; - if($.isArray(langs) && langs.length) { - for(ln = 0; ln < langs.length; ln++) { - if(!a.is("." + langs[ln])) { - t.append(a.eq(0).clone().removeClass(langs.join(" ")).addClass(langs[ln])); - } - } - a.not("." + langs.join(", .")).remove(); - } - if(callback) { callback.call(this, t); } - }); - return t; - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree cookies plugin - * Stores the currently opened/selected nodes in a cookie and then restores them - * Depends on the jquery.cookie plugin - */ -(function ($) { - $.jstree.plugin("cookies", { - __init : function () { - if(typeof $.cookie === "undefined") { throw "jsTree cookie: jQuery cookie plugin not included."; } - - var s = this._get_settings().cookies, - tmp; - if(!!s.save_loaded) { - tmp = $.cookie(s.save_loaded); - if(tmp && tmp.length) { this.data.core.to_load = tmp.split(","); } - } - if(!!s.save_opened) { - tmp = $.cookie(s.save_opened); - if(tmp && tmp.length) { this.data.core.to_open = tmp.split(","); } - } - if(!!s.save_selected) { - tmp = $.cookie(s.save_selected); - if(tmp && tmp.length && this.data.ui) { this.data.ui.to_select = tmp.split(","); } - } - this.get_container() - .one( ( this.data.ui ? "reselect" : "reopen" ) + ".jstree", $.proxy(function () { - this.get_container() - .bind("open_node.jstree close_node.jstree select_node.jstree deselect_node.jstree", $.proxy(function (e) { - if(this._get_settings().cookies.auto_save) { this.save_cookie((e.handleObj.namespace + e.handleObj.type).replace("jstree","")); } - }, this)); - }, this)); - }, - defaults : { - save_loaded : "jstree_load", - save_opened : "jstree_open", - save_selected : "jstree_select", - auto_save : true, - cookie_options : {} - }, - _fn : { - save_cookie : function (c) { - if(this.data.core.refreshing) { return; } - var s = this._get_settings().cookies; - if(!c) { // if called manually and not by event - if(s.save_loaded) { - this.save_loaded(); - $.cookie(s.save_loaded, this.data.core.to_load.join(","), s.cookie_options); - } - if(s.save_opened) { - this.save_opened(); - $.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options); - } - if(s.save_selected && this.data.ui) { - this.save_selected(); - $.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options); - } - return; - } - switch(c) { - case "open_node": - case "close_node": - if(!!s.save_opened) { - this.save_opened(); - $.cookie(s.save_opened, this.data.core.to_open.join(","), s.cookie_options); - } - if(!!s.save_loaded) { - this.save_loaded(); - $.cookie(s.save_loaded, this.data.core.to_load.join(","), s.cookie_options); - } - break; - case "select_node": - case "deselect_node": - if(!!s.save_selected && this.data.ui) { - this.save_selected(); - $.cookie(s.save_selected, this.data.ui.to_select.join(","), s.cookie_options); - } - break; - } - } - } - }); - // include cookies by default - // $.jstree.defaults.plugins.push("cookies"); -})(jQuery); -//*/ - -/* - * jsTree sort plugin - * Sorts items alphabetically (or using any other function) - */ -(function ($) { - $.jstree.plugin("sort", { - __init : function () { - this.get_container() - .bind("load_node.jstree", $.proxy(function (e, data) { - var obj = this._get_node(data.rslt.obj); - obj = obj === -1 ? this.get_container().children("ul") : obj.children("ul"); - this.sort(obj); - }, this)) - .bind("rename_node.jstree create_node.jstree create.jstree", $.proxy(function (e, data) { - this.sort(data.rslt.obj.parent()); - }, this)) - .bind("move_node.jstree", $.proxy(function (e, data) { - var m = data.rslt.np == -1 ? this.get_container() : data.rslt.np; - this.sort(m.children("ul")); - }, this)); - }, - defaults : function (a, b) { return this.get_text(a) > this.get_text(b) ? 1 : -1; }, - _fn : { - sort : function (obj) { - var s = this._get_settings().sort, - t = this; - obj.append($.makeArray(obj.children("li")).sort($.proxy(s, t))); - obj.find("> li > ul").each(function() { t.sort($(this)); }); - this.clean_node(obj); - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree DND plugin - * Drag and drop plugin for moving/copying nodes - */ -(function ($) { - var o = false, - r = false, - m = false, - ml = false, - sli = false, - sti = false, - dir1 = false, - dir2 = false, - last_pos = false; - $.vakata.dnd = { - is_down : false, - is_drag : false, - helper : false, - scroll_spd : 10, - init_x : 0, - init_y : 0, - threshold : 5, - helper_left : 5, - helper_top : 10, - user_data : {}, - - drag_start : function (e, data, html) { - if($.vakata.dnd.is_drag) { $.vakata.drag_stop({}); } - try { - e.currentTarget.unselectable = "on"; - e.currentTarget.onselectstart = function() { return false; }; - if(e.currentTarget.style) { e.currentTarget.style.MozUserSelect = "none"; } - } catch(err) { } - $.vakata.dnd.init_x = e.pageX; - $.vakata.dnd.init_y = e.pageY; - $.vakata.dnd.user_data = data; - $.vakata.dnd.is_down = true; - $.vakata.dnd.helper = $("<div id='vakata-dragged' />").html(html); //.fadeTo(10,0.25); - $(document).bind("mousemove", $.vakata.dnd.drag); - $(document).bind("mouseup", $.vakata.dnd.drag_stop); - return false; - }, - drag : function (e) { - if(!$.vakata.dnd.is_down) { return; } - if(!$.vakata.dnd.is_drag) { - if(Math.abs(e.pageX - $.vakata.dnd.init_x) > 5 || Math.abs(e.pageY - $.vakata.dnd.init_y) > 5) { - $.vakata.dnd.helper.appendTo("body"); - $.vakata.dnd.is_drag = true; - $(document).triggerHandler("drag_start.vakata", { "event" : e, "data" : $.vakata.dnd.user_data }); - } - else { return; } - } - - // maybe use a scrolling parent element instead of document? - if(e.type === "mousemove") { // thought of adding scroll in order to move the helper, but mouse poisition is n/a - var d = $(document), t = d.scrollTop(), l = d.scrollLeft(); - if(e.pageY - t < 20) { - if(sti && dir1 === "down") { clearInterval(sti); sti = false; } - if(!sti) { dir1 = "up"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() - $.vakata.dnd.scroll_spd); }, 150); } - } - else { - if(sti && dir1 === "up") { clearInterval(sti); sti = false; } - } - if($(window).height() - (e.pageY - t) < 20) { - if(sti && dir1 === "up") { clearInterval(sti); sti = false; } - if(!sti) { dir1 = "down"; sti = setInterval(function () { $(document).scrollTop($(document).scrollTop() + $.vakata.dnd.scroll_spd); }, 150); } - } - else { - if(sti && dir1 === "down") { clearInterval(sti); sti = false; } - } - - if(e.pageX - l < 20) { - if(sli && dir2 === "right") { clearInterval(sli); sli = false; } - if(!sli) { dir2 = "left"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() - $.vakata.dnd.scroll_spd); }, 150); } - } - else { - if(sli && dir2 === "left") { clearInterval(sli); sli = false; } - } - if($(window).width() - (e.pageX - l) < 20) { - if(sli && dir2 === "left") { clearInterval(sli); sli = false; } - if(!sli) { dir2 = "right"; sli = setInterval(function () { $(document).scrollLeft($(document).scrollLeft() + $.vakata.dnd.scroll_spd); }, 150); } - } - else { - if(sli && dir2 === "right") { clearInterval(sli); sli = false; } - } - } - - $.vakata.dnd.helper.css({ left : (e.pageX + $.vakata.dnd.helper_left) + "px", top : (e.pageY + $.vakata.dnd.helper_top) + "px" }); - $(document).triggerHandler("drag.vakata", { "event" : e, "data" : $.vakata.dnd.user_data }); - }, - drag_stop : function (e) { - if(sli) { clearInterval(sli); } - if(sti) { clearInterval(sti); } - $(document).unbind("mousemove", $.vakata.dnd.drag); - $(document).unbind("mouseup", $.vakata.dnd.drag_stop); - $(document).triggerHandler("drag_stop.vakata", { "event" : e, "data" : $.vakata.dnd.user_data }); - $.vakata.dnd.helper.remove(); - $.vakata.dnd.init_x = 0; - $.vakata.dnd.init_y = 0; - $.vakata.dnd.user_data = {}; - $.vakata.dnd.is_down = false; - $.vakata.dnd.is_drag = false; - } - }; - $(function() { - var css_string = '#vakata-dragged { display:block; margin:0 0 0 0; padding:4px 4px 4px 24px; position:absolute; top:-2000px; line-height:16px; z-index:10000; } '; - $.vakata.css.add_sheet({ str : css_string, title : "vakata" }); - }); - - $.jstree.plugin("dnd", { - __init : function () { - this.data.dnd = { - active : false, - after : false, - inside : false, - before : false, - off : false, - prepared : false, - w : 0, - to1 : false, - to2 : false, - cof : false, - cw : false, - ch : false, - i1 : false, - i2 : false, - mto : false - }; - this.get_container() - .bind("mouseenter.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - if(this.data.themes) { - m.attr("class", "jstree-" + this.data.themes.theme); - if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); } - $.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); - } - //if($(e.currentTarget).find("> ul > li").length === 0) { - if(e.currentTarget === e.target && $.vakata.dnd.user_data.obj && $($.vakata.dnd.user_data.obj).length && $($.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0] !== e.target) { // node should not be from the same tree - var tr = $.jstree._reference(e.target), dc; - if(tr.data.dnd.foreign) { - dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true }); - if(dc === true || dc.inside === true || dc.before === true || dc.after === true) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-ok"); - } - } - else { - tr.prepare_move(o, tr.get_container(), "last"); - if(tr.check_move()) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-ok"); - } - } - } - } - }, this)) - .bind("mouseup.jstree", $.proxy(function (e) { - //if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && $(e.currentTarget).find("> ul > li").length === 0) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && e.currentTarget === e.target && $.vakata.dnd.user_data.obj && $($.vakata.dnd.user_data.obj).length && $($.vakata.dnd.user_data.obj).parents(".jstree:eq(0)")[0] !== e.target) { // node should not be from the same tree - var tr = $.jstree._reference(e.currentTarget), dc; - if(tr.data.dnd.foreign) { - dc = tr._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : tr.get_container(), is_root : true }); - if(dc === true || dc.inside === true || dc.before === true || dc.after === true) { - tr._get_settings().dnd.drag_finish.call(this, { "o" : o, "r" : tr.get_container(), is_root : true }); - } - } - else { - tr.move_node(o, tr.get_container(), "last", e[tr._get_settings().dnd.copy_modifier + "Key"]); - } - } - }, this)) - .bind("mouseleave.jstree", $.proxy(function (e) { - if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") { - return false; - } - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); } - if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); } - if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); } - if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); } - if($.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); - } - } - }, this)) - .bind("mousemove.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - var cnt = this.get_container()[0]; - - // Horizontal scroll - if(e.pageX + 24 > this.data.dnd.cof.left + this.data.dnd.cw) { - if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); } - this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft += $.vakata.dnd.scroll_spd; }, cnt), 100); - } - else if(e.pageX - 24 < this.data.dnd.cof.left) { - if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); } - this.data.dnd.i1 = setInterval($.proxy(function () { this.scrollLeft -= $.vakata.dnd.scroll_spd; }, cnt), 100); - } - else { - if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); } - } - - // Vertical scroll - if(e.pageY + 24 > this.data.dnd.cof.top + this.data.dnd.ch) { - if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); } - this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop += $.vakata.dnd.scroll_spd; }, cnt), 100); - } - else if(e.pageY - 24 < this.data.dnd.cof.top) { - if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); } - this.data.dnd.i2 = setInterval($.proxy(function () { this.scrollTop -= $.vakata.dnd.scroll_spd; }, cnt), 100); - } - else { - if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); } - } - - } - }, this)) - .bind("scroll.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && m && ml) { - m.hide(); - ml.hide(); - } - }, this)) - .delegate("a", "mousedown.jstree", $.proxy(function (e) { - if(e.which === 1) { - this.start_drag(e.currentTarget, e); - return false; - } - }, this)) - .delegate("a", "mouseenter.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - this.dnd_enter(e.currentTarget); - } - }, this)) - .delegate("a", "mousemove.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - if(!r || !r.length || r.children("a")[0] !== e.currentTarget) { - this.dnd_enter(e.currentTarget); - } - if(typeof this.data.dnd.off.top === "undefined") { this.data.dnd.off = $(e.target).offset(); } - this.data.dnd.w = (e.pageY - (this.data.dnd.off.top || 0)) % this.data.core.li_height; - if(this.data.dnd.w < 0) { this.data.dnd.w += this.data.core.li_height; } - this.dnd_show(); - } - }, this)) - .delegate("a", "mouseleave.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - if(e.relatedTarget && e.relatedTarget.id && e.relatedTarget.id === "jstree-marker-line") { - return false; - } - if(m) { m.hide(); } - if(ml) { ml.hide(); } - /* - var ec = $(e.currentTarget).closest("li"), - er = $(e.relatedTarget).closest("li"); - if(er[0] !== ec.prev()[0] && er[0] !== ec.next()[0]) { - if(m) { m.hide(); } - if(ml) { ml.hide(); } - } - */ - this.data.dnd.mto = setTimeout( - (function (t) { return function () { t.dnd_leave(e); }; })(this), - 0); - } - }, this)) - .delegate("a", "mouseup.jstree", $.proxy(function (e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree) { - this.dnd_finish(e); - } - }, this)); - - $(document) - .bind("drag_stop.vakata", $.proxy(function () { - if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); } - if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); } - if(this.data.dnd.i1) { clearInterval(this.data.dnd.i1); } - if(this.data.dnd.i2) { clearInterval(this.data.dnd.i2); } - this.data.dnd.after = false; - this.data.dnd.before = false; - this.data.dnd.inside = false; - this.data.dnd.off = false; - this.data.dnd.prepared = false; - this.data.dnd.w = false; - this.data.dnd.to1 = false; - this.data.dnd.to2 = false; - this.data.dnd.i1 = false; - this.data.dnd.i2 = false; - this.data.dnd.active = false; - this.data.dnd.foreign = false; - if(m) { m.css({ "top" : "-2000px" }); } - if(ml) { ml.css({ "top" : "-2000px" }); } - }, this)) - .bind("drag_start.vakata", $.proxy(function (e, data) { - if(data.data.jstree) { - var et = $(data.event.target); - if(et.closest(".jstree").hasClass("jstree-" + this.get_index())) { - this.dnd_enter(et); - } - } - }, this)); - /* - .bind("keydown.jstree-" + this.get_index() + " keyup.jstree-" + this.get_index(), $.proxy(function(e) { - if($.vakata.dnd.is_drag && $.vakata.dnd.user_data.jstree && !this.data.dnd.foreign) { - var h = $.vakata.dnd.helper.children("ins"); - if(e[this._get_settings().dnd.copy_modifier + "Key"] && h.hasClass("jstree-ok")) { - h.parent().html(h.parent().html().replace(/ \(Copy\)$/, "") + " (Copy)"); - } - else { - h.parent().html(h.parent().html().replace(/ \(Copy\)$/, "")); - } - } - }, this)); */ - - - - var s = this._get_settings().dnd; - if(s.drag_target) { - $(document) - .delegate(s.drag_target, "mousedown.jstree-" + this.get_index(), $.proxy(function (e) { - o = e.target; - $.vakata.dnd.drag_start(e, { jstree : true, obj : e.target }, "<ins class='jstree-icon'></ins>" + $(e.target).text() ); - if(this.data.themes) { - if(m) { m.attr("class", "jstree-" + this.data.themes.theme); } - if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); } - $.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); - } - $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); - var cnt = this.get_container(); - this.data.dnd.cof = cnt.offset(); - this.data.dnd.cw = parseInt(cnt.width(),10); - this.data.dnd.ch = parseInt(cnt.height(),10); - this.data.dnd.foreign = true; - e.preventDefault(); - }, this)); - } - if(s.drop_target) { - $(document) - .delegate(s.drop_target, "mouseenter.jstree-" + this.get_index(), $.proxy(function (e) { - if(this.data.dnd.active && this._get_settings().dnd.drop_check.call(this, { "o" : o, "r" : $(e.target), "e" : e })) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-ok"); - } - }, this)) - .delegate(s.drop_target, "mouseleave.jstree-" + this.get_index(), $.proxy(function (e) { - if(this.data.dnd.active) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); - } - }, this)) - .delegate(s.drop_target, "mouseup.jstree-" + this.get_index(), $.proxy(function (e) { - if(this.data.dnd.active && $.vakata.dnd.helper.children("ins").hasClass("jstree-ok")) { - this._get_settings().dnd.drop_finish.call(this, { "o" : o, "r" : $(e.target), "e" : e }); - } - }, this)); - } - }, - defaults : { - copy_modifier : "ctrl", - check_timeout : 100, - open_timeout : 500, - drop_target : ".jstree-drop", - drop_check : function (data) { return true; }, - drop_finish : $.noop, - drag_target : ".jstree-draggable", - drag_finish : $.noop, - drag_check : function (data) { return { after : false, before : false, inside : true }; } - }, - _fn : { - dnd_prepare : function () { - if(!r || !r.length) { return; } - this.data.dnd.off = r.offset(); - if(this._get_settings().core.rtl) { - this.data.dnd.off.right = this.data.dnd.off.left + r.width(); - } - if(this.data.dnd.foreign) { - var a = this._get_settings().dnd.drag_check.call(this, { "o" : o, "r" : r }); - this.data.dnd.after = a.after; - this.data.dnd.before = a.before; - this.data.dnd.inside = a.inside; - this.data.dnd.prepared = true; - return this.dnd_show(); - } - this.prepare_move(o, r, "before"); - this.data.dnd.before = this.check_move(); - this.prepare_move(o, r, "after"); - this.data.dnd.after = this.check_move(); - if(this._is_loaded(r)) { - this.prepare_move(o, r, "inside"); - this.data.dnd.inside = this.check_move(); - } - else { - this.data.dnd.inside = false; - } - this.data.dnd.prepared = true; - return this.dnd_show(); - }, - dnd_show : function () { - if(!this.data.dnd.prepared) { return; } - var o = ["before","inside","after"], - r = false, - rtl = this._get_settings().core.rtl, - pos; - if(this.data.dnd.w < this.data.core.li_height/3) { o = ["before","inside","after"]; } - else if(this.data.dnd.w <= this.data.core.li_height*2/3) { - o = this.data.dnd.w < this.data.core.li_height/2 ? ["inside","before","after"] : ["inside","after","before"]; - } - else { o = ["after","inside","before"]; } - $.each(o, $.proxy(function (i, val) { - if(this.data.dnd[val]) { - $.vakata.dnd.helper.children("ins").attr("class","jstree-ok"); - r = val; - return false; - } - }, this)); - if(r === false) { $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); } - - pos = rtl ? (this.data.dnd.off.right - 18) : (this.data.dnd.off.left + 10); - switch(r) { - case "before": - m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top - 6) + "px" }).show(); - if(ml) { ml.css({ "left" : (pos + 8) + "px", "top" : (this.data.dnd.off.top - 1) + "px" }).show(); } - break; - case "after": - m.css({ "left" : pos + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 6) + "px" }).show(); - if(ml) { ml.css({ "left" : (pos + 8) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height - 1) + "px" }).show(); } - break; - case "inside": - m.css({ "left" : pos + ( rtl ? -4 : 4) + "px", "top" : (this.data.dnd.off.top + this.data.core.li_height/2 - 5) + "px" }).show(); - if(ml) { ml.hide(); } - break; - default: - m.hide(); - if(ml) { ml.hide(); } - break; - } - last_pos = r; - return r; - }, - dnd_open : function () { - this.data.dnd.to2 = false; - this.open_node(r, $.proxy(this.dnd_prepare,this), true); - }, - dnd_finish : function (e) { - if(this.data.dnd.foreign) { - if(this.data.dnd.after || this.data.dnd.before || this.data.dnd.inside) { - this._get_settings().dnd.drag_finish.call(this, { "o" : o, "r" : r, "p" : last_pos }); - } - } - else { - this.dnd_prepare(); - this.move_node(o, r, last_pos, e[this._get_settings().dnd.copy_modifier + "Key"]); - } - o = false; - r = false; - m.hide(); - if(ml) { ml.hide(); } - }, - dnd_enter : function (obj) { - if(this.data.dnd.mto) { - clearTimeout(this.data.dnd.mto); - this.data.dnd.mto = false; - } - var s = this._get_settings().dnd; - this.data.dnd.prepared = false; - r = this._get_node(obj); - if(s.check_timeout) { - // do the calculations after a minimal timeout (users tend to drag quickly to the desired location) - if(this.data.dnd.to1) { clearTimeout(this.data.dnd.to1); } - this.data.dnd.to1 = setTimeout($.proxy(this.dnd_prepare, this), s.check_timeout); - } - else { - this.dnd_prepare(); - } - if(s.open_timeout) { - if(this.data.dnd.to2) { clearTimeout(this.data.dnd.to2); } - if(r && r.length && r.hasClass("jstree-closed")) { - // if the node is closed - open it, then recalculate - this.data.dnd.to2 = setTimeout($.proxy(this.dnd_open, this), s.open_timeout); - } - } - else { - if(r && r.length && r.hasClass("jstree-closed")) { - this.dnd_open(); - } - } - }, - dnd_leave : function (e) { - this.data.dnd.after = false; - this.data.dnd.before = false; - this.data.dnd.inside = false; - $.vakata.dnd.helper.children("ins").attr("class","jstree-invalid"); - m.hide(); - if(ml) { ml.hide(); } - if(r && r[0] === e.target.parentNode) { - if(this.data.dnd.to1) { - clearTimeout(this.data.dnd.to1); - this.data.dnd.to1 = false; - } - if(this.data.dnd.to2) { - clearTimeout(this.data.dnd.to2); - this.data.dnd.to2 = false; - } - } - }, - start_drag : function (obj, e) { - o = this._get_node(obj); - if(this.data.ui && this.is_selected(o)) { o = this._get_node(null, true); } - var dt = o.length > 1 ? this._get_string("multiple_selection") : this.get_text(o), - cnt = this.get_container(); - if(!this._get_settings().core.html_titles) { dt = dt.replace(/</ig,"<").replace(/>/ig,">"); } - $.vakata.dnd.drag_start(e, { jstree : true, obj : o }, "<ins class='jstree-icon'></ins>" + dt ); - if(this.data.themes) { - if(m) { m.attr("class", "jstree-" + this.data.themes.theme); } - if(ml) { ml.attr("class", "jstree-" + this.data.themes.theme); } - $.vakata.dnd.helper.attr("class", "jstree-dnd-helper jstree-" + this.data.themes.theme); - } - this.data.dnd.cof = cnt.offset(); - this.data.dnd.cw = parseInt(cnt.width(),10); - this.data.dnd.ch = parseInt(cnt.height(),10); - this.data.dnd.active = true; - } - } - }); - $(function() { - var css_string = '' + - '#vakata-dragged ins { display:block; text-decoration:none; width:16px; height:16px; margin:0 0 0 0; padding:0; position:absolute; top:4px; left:4px; ' + - ' -moz-border-radius:4px; border-radius:4px; -webkit-border-radius:4px; ' + - '} ' + - '#vakata-dragged .jstree-ok { background:green; } ' + - '#vakata-dragged .jstree-invalid { background:red; } ' + - '#jstree-marker { padding:0; margin:0; font-size:12px; overflow:hidden; height:12px; width:8px; position:absolute; top:-30px; z-index:10001; background-repeat:no-repeat; display:none; background-color:transparent; text-shadow:1px 1px 1px white; color:black; line-height:10px; } ' + - '#jstree-marker-line { padding:0; margin:0; line-height:0%; font-size:1px; overflow:hidden; height:1px; width:100px; position:absolute; top:-30px; z-index:10000; background-repeat:no-repeat; display:none; background-color:#456c43; ' + - ' cursor:pointer; border:1px solid #eeeeee; border-left:0; -moz-box-shadow: 0px 0px 2px #666; -webkit-box-shadow: 0px 0px 2px #666; box-shadow: 0px 0px 2px #666; ' + - ' -moz-border-radius:1px; border-radius:1px; -webkit-border-radius:1px; ' + - '}' + - ''; - $.vakata.css.add_sheet({ str : css_string, title : "jstree" }); - m = $("<div />").attr({ id : "jstree-marker" }).hide().html("»") - .bind("mouseleave mouseenter", function (e) { - m.hide(); - ml.hide(); - e.preventDefault(); - e.stopImmediatePropagation(); - return false; - }) - .appendTo("body"); - ml = $("<div />").attr({ id : "jstree-marker-line" }).hide() - .bind("mouseup", function (e) { - if(r && r.length) { - r.children("a").trigger(e); - e.preventDefault(); - e.stopImmediatePropagation(); - return false; - } - }) - .bind("mouseleave", function (e) { - var rt = $(e.relatedTarget); - if(rt.is(".jstree") || rt.closest(".jstree").length === 0) { - if(r && r.length) { - r.children("a").trigger(e); - m.hide(); - ml.hide(); - e.preventDefault(); - e.stopImmediatePropagation(); - return false; - } - } - }) - .appendTo("body"); - $(document).bind("drag_start.vakata", function (e, data) { - if(data.data.jstree) { m.show(); if(ml) { ml.show(); } } - }); - $(document).bind("drag_stop.vakata", function (e, data) { - if(data.data.jstree) { m.hide(); if(ml) { ml.hide(); } } - }); - }); -})(jQuery); -//*/ - -/* - * jsTree checkbox plugin - * Inserts checkboxes in front of every node - * Depends on the ui plugin - * DOES NOT WORK NICELY WITH MULTITREE DRAG'N'DROP - */ -(function ($) { - $.jstree.plugin("checkbox", { - __init : function () { - this.data.checkbox.noui = this._get_settings().checkbox.override_ui; - if(this.data.ui && this.data.checkbox.noui) { - this.select_node = this.deselect_node = this.deselect_all = $.noop; - this.get_selected = this.get_checked; - } - - this.get_container() - .bind("open_node.jstree create_node.jstree clean_node.jstree refresh.jstree", $.proxy(function (e, data) { - this._prepare_checkboxes(data.rslt.obj); - }, this)) - .bind("loaded.jstree", $.proxy(function (e) { - this._prepare_checkboxes(); - }, this)) - .delegate( (this.data.ui && this.data.checkbox.noui ? "a" : "ins.jstree-checkbox") , "click.jstree", $.proxy(function (e) { - e.preventDefault(); - if(this._get_node(e.target).hasClass("jstree-checked")) { this.uncheck_node(e.target); } - else { this.check_node(e.target); } - if(this.data.ui && this.data.checkbox.noui) { - this.save_selected(); - if(this.data.cookies) { this.save_cookie("select_node"); } - } - else { - e.stopImmediatePropagation(); - return false; - } - }, this)); - }, - defaults : { - override_ui : false, - two_state : false, - real_checkboxes : false, - checked_parent_open : true, - real_checkboxes_names : function (n) { return [ ("check_" + (n[0].id || Math.ceil(Math.random() * 10000))) , 1]; } - }, - __destroy : function () { - this.get_container() - .find("input.jstree-real-checkbox").removeClass("jstree-real-checkbox").end() - .find("ins.jstree-checkbox").remove(); - }, - _fn : { - _checkbox_notify : function (n, data) { - if(data.checked) { - this.check_node(n, false); - } - }, - _prepare_checkboxes : function (obj) { - obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj); - if(obj === false) { return; } // added for removing root nodes - var c, _this = this, t, ts = this._get_settings().checkbox.two_state, rc = this._get_settings().checkbox.real_checkboxes, rcn = this._get_settings().checkbox.real_checkboxes_names; - obj.each(function () { - t = $(this); - c = t.is("li") && (t.hasClass("jstree-checked") || (rc && t.children(":checked").length)) ? "jstree-checked" : "jstree-unchecked"; - t.find("li").andSelf().each(function () { - var $t = $(this), nm; - $t.children("a" + (_this.data.languages ? "" : ":eq(0)") ).not(":has(.jstree-checkbox)").prepend("<ins class='jstree-checkbox'> </ins>").parent().not(".jstree-checked, .jstree-unchecked").addClass( ts ? "jstree-unchecked" : c ); - if(rc) { - if(!$t.children(":checkbox").length) { - nm = rcn.call(_this, $t); - $t.prepend("<input type='checkbox' class='jstree-real-checkbox' id='" + nm[0] + "' name='" + nm[0] + "' value='" + nm[1] + "' />"); - } - else { - $t.children(":checkbox").addClass("jstree-real-checkbox"); - } - } - if(!ts) { - if(c === "jstree-checked" || $t.hasClass("jstree-checked") || $t.children(':checked').length) { - $t.find("li").andSelf().addClass("jstree-checked").children(":checkbox").prop("checked", true); - } - } - else { - if($t.hasClass("jstree-checked") || $t.children(':checked').length) { - $t.addClass("jstree-checked").children(":checkbox").prop("checked", true); - } - } - }); - }); - if(!ts) { - obj.find(".jstree-checked").parent().parent().each(function () { _this._repair_state(this); }); - } - }, - change_state : function (obj, state) { - obj = this._get_node(obj); - var coll = false, rc = this._get_settings().checkbox.real_checkboxes; - if(!obj || obj === -1) { return false; } - state = (state === false || state === true) ? state : obj.hasClass("jstree-checked"); - if(this._get_settings().checkbox.two_state) { - if(state) { - obj.removeClass("jstree-checked").addClass("jstree-unchecked"); - if(rc) { obj.children(":checkbox").prop("checked", false); } - } - else { - obj.removeClass("jstree-unchecked").addClass("jstree-checked"); - if(rc) { obj.children(":checkbox").prop("checked", true); } - } - } - else { - if(state) { - coll = obj.find("li").andSelf(); - if(!coll.filter(".jstree-checked, .jstree-undetermined").length) { return false; } - coll.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"); - if(rc) { coll.children(":checkbox").prop("checked", false); } - } - else { - coll = obj.find("li").andSelf(); - if(!coll.filter(".jstree-unchecked, .jstree-undetermined").length) { return false; } - coll.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"); - if(rc) { coll.children(":checkbox").prop("checked", true); } - if(this.data.ui) { this.data.ui.last_selected = obj; } - this.data.checkbox.last_selected = obj; - } - obj.parentsUntil(".jstree", "li").each(function () { - var $this = $(this); - if(state) { - if($this.children("ul").children("li.jstree-checked, li.jstree-undetermined").length) { - $this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"); - if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").prop("checked", false); } - return false; - } - else { - $this.removeClass("jstree-checked jstree-undetermined").addClass("jstree-unchecked"); - if(rc) { $this.children(":checkbox").prop("checked", false); } - } - } - else { - if($this.children("ul").children("li.jstree-unchecked, li.jstree-undetermined").length) { - $this.parentsUntil(".jstree", "li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"); - if(rc) { $this.parentsUntil(".jstree", "li").andSelf().children(":checkbox").prop("checked", false); } - return false; - } - else { - $this.removeClass("jstree-unchecked jstree-undetermined").addClass("jstree-checked"); - if(rc) { $this.children(":checkbox").prop("checked", true); } - } - } - }); - } - if(this.data.ui && this.data.checkbox.noui) { this.data.ui.selected = this.get_checked(); } - this.__callback(obj); - return true; - }, - check_node : function (obj) { - if(this.change_state(obj, false)) { - obj = this._get_node(obj); - if(this._get_settings().checkbox.checked_parent_open) { - var t = this; - obj.parents(".jstree-closed").each(function () { t.open_node(this, false, true); }); - } - this.__callback({ "obj" : obj }); - } - }, - uncheck_node : function (obj) { - if(this.change_state(obj, true)) { this.__callback({ "obj" : this._get_node(obj) }); } - }, - check_all : function () { - var _this = this, - coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li"); - coll.each(function () { - _this.change_state(this, false); - }); - this.__callback(); - }, - uncheck_all : function () { - var _this = this, - coll = this._get_settings().checkbox.two_state ? this.get_container_ul().find("li") : this.get_container_ul().children("li"); - coll.each(function () { - _this.change_state(this, true); - }); - this.__callback(); - }, - - is_checked : function(obj) { - obj = this._get_node(obj); - return obj.length ? obj.is(".jstree-checked") : false; - }, - get_checked : function (obj, get_all) { - obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj); - return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-checked") : obj.find("> ul > .jstree-checked, .jstree-undetermined > ul > .jstree-checked"); - }, - get_unchecked : function (obj, get_all) { - obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj); - return get_all || this._get_settings().checkbox.two_state ? obj.find(".jstree-unchecked") : obj.find("> ul > .jstree-unchecked, .jstree-undetermined > ul > .jstree-unchecked"); - }, - - show_checkboxes : function () { this.get_container().children("ul").removeClass("jstree-no-checkboxes"); }, - hide_checkboxes : function () { this.get_container().children("ul").addClass("jstree-no-checkboxes"); }, - - _repair_state : function (obj) { - obj = this._get_node(obj); - if(!obj.length) { return; } - if(this._get_settings().checkbox.two_state) { - obj.find('li').andSelf().not('.jstree-checked').removeClass('jstree-undetermined').addClass('jstree-unchecked').children(':checkbox').prop('checked', true); - return; - } - var rc = this._get_settings().checkbox.real_checkboxes, - a = obj.find("> ul > .jstree-checked").length, - b = obj.find("> ul > .jstree-undetermined").length, - c = obj.find("> ul > li").length; - if(c === 0) { if(obj.hasClass("jstree-undetermined")) { this.change_state(obj, false); } } - else if(a === 0 && b === 0) { this.change_state(obj, true); } - else if(a === c) { this.change_state(obj, false); } - else { - obj.parentsUntil(".jstree","li").andSelf().removeClass("jstree-checked jstree-unchecked").addClass("jstree-undetermined"); - if(rc) { obj.parentsUntil(".jstree", "li").andSelf().children(":checkbox").prop("checked", false); } - } - }, - reselect : function () { - if(this.data.ui && this.data.checkbox.noui) { - var _this = this, - s = this.data.ui.to_select; - s = $.map($.makeArray(s), function (n) { return "#" + n.toString().replace(/^#/,"").replace(/\\\//g,"/").replace(/\//g,"\\\/").replace(/\\\./g,".").replace(/\./g,"\\.").replace(/\:/g,"\\:"); }); - this.deselect_all(); - $.each(s, function (i, val) { _this.check_node(val); }); - this.__callback(); - } - else { - this.__call_old(); - } - }, - save_loaded : function () { - var _this = this; - this.data.core.to_load = []; - this.get_container_ul().find("li.jstree-closed.jstree-undetermined").each(function () { - if(this.id) { _this.data.core.to_load.push("#" + this.id); } - }); - } - } - }); - $(function() { - var css_string = '.jstree .jstree-real-checkbox { display:none; } '; - $.vakata.css.add_sheet({ str : css_string, title : "jstree" }); - }); -})(jQuery); -//*/ - -/* - * jsTree XML plugin - * The XML data store. Datastores are build by overriding the `load_node` and `_is_loaded` functions. - */ -(function ($) { - - /* Edited Out LOS 03/04/12 - See http://code.google.com/p/jstree/issues/detail?id=907 - $.vakata.xslt = function (xml, xsl, callback) { - var rs = "", xm, xs, processor, support; - // TODO: IE9 no XSLTProcessor, no document.recalc - if(document.recalc) { - xm = document.createElement('xml'); - xs = document.createElement('xml'); - xm.innerHTML = xml; - xs.innerHTML = xsl; - $("body").append(xm).append(xs); - setTimeout( (function (xm, xs, callback) { - return function () { - callback.call(null, xm.transformNode(xs.XMLDocument)); - setTimeout( (function (xm, xs) { return function () { $(xm).remove(); $(xs).remove(); }; })(xm, xs), 200); - }; - })(xm, xs, callback), 100); - return true; - } - */ - // Added LOS 03/04/12 - $.vakata.xslt = function (xml, xsl, callback) { - var rs = "", xm, xs, processor, support; - if(window.ActiveXObject || "ActiveXObject" in window) { - var xslt = new ActiveXObject("Msxml2.XSLTemplate"); - var xmlDoc = new ActiveXObject("Msxml2.DOMDocument"); - var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument"); - xmlDoc.loadXML(xml); - xslDoc.loadXML(xsl); - xslt.stylesheet = xslDoc; - var xslProc = xslt.createProcessor(); - xslProc.input = xmlDoc; - xslProc.transform(); - callback.call(null, xslProc.output); - - return true; - } - if(typeof window.DOMParser !== "undefined" && typeof window.XMLHttpRequest !== "undefined" && typeof window.XSLTProcessor === "undefined") { - xml = new DOMParser().parseFromString(xml, "text/xml"); - xsl = new DOMParser().parseFromString(xsl, "text/xml"); - // alert(xml.transformNode()); - // callback.call(null, new XMLSerializer().serializeToString(rs)); - - } - if(typeof window.DOMParser !== "undefined" && typeof window.XMLHttpRequest !== "undefined" && typeof window.XSLTProcessor !== "undefined") { - processor = new XSLTProcessor(); - support = $.isFunction(processor.transformDocument) ? (typeof window.XMLSerializer !== "undefined") : true; - if(!support) { return false; } - xml = new DOMParser().parseFromString(xml, "text/xml"); - xsl = new DOMParser().parseFromString(xsl, "text/xml"); - if($.isFunction(processor.transformDocument)) { - rs = document.implementation.createDocument("", "", null); - processor.transformDocument(xml, xsl, rs, null); - callback.call(null, new XMLSerializer().serializeToString(rs)); - return true; - } - else { - processor.importStylesheet(xsl); - rs = processor.transformToFragment(xml, document); - callback.call(null, $("<div />").append(rs).html()); - return true; - } - } - return false; - }; - var xsl = { - 'nest' : '<' + '?xml version="1.0" encoding="utf-8" ?>' + - '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + - '<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/html" />' + - '<xsl:template match="/">' + - ' <xsl:call-template name="nodes">' + - ' <xsl:with-param name="node" select="/root" />' + - ' </xsl:call-template>' + - '</xsl:template>' + - '<xsl:template name="nodes">' + - ' <xsl:param name="node" />' + - ' <ul>' + - ' <xsl:for-each select="$node/item">' + - ' <xsl:variable name="children" select="count(./item) > 0" />' + - ' <li>' + - ' <xsl:attribute name="class">' + - ' <xsl:if test="position() = last()">jstree-last </xsl:if>' + - ' <xsl:choose>' + - ' <xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + - ' <xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + - ' <xsl:otherwise>jstree-leaf </xsl:otherwise>' + - ' </xsl:choose>' + - ' <xsl:value-of select="@class" />' + - ' </xsl:attribute>' + - ' <xsl:for-each select="@*">' + - ' <xsl:if test="name() != \'class\' and name() != \'state\' and name() != \'hasChildren\'">' + - ' <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + - ' </xsl:if>' + - ' </xsl:for-each>' + - ' <ins class="jstree-icon"><xsl:text> </xsl:text></ins>' + - ' <xsl:for-each select="content/name">' + - ' <a>' + - ' <xsl:attribute name="href">' + - ' <xsl:choose>' + - ' <xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + - ' <xsl:otherwise>#</xsl:otherwise>' + - ' </xsl:choose>' + - ' </xsl:attribute>' + - ' <xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + - ' <xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + - ' <xsl:for-each select="@*">' + - ' <xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + - ' <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + - ' </xsl:if>' + - ' </xsl:for-each>' + - ' <ins>' + - ' <xsl:attribute name="class">jstree-icon ' + - ' <xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + - ' </xsl:attribute>' + - ' <xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + - ' <xsl:text> </xsl:text>' + - ' </ins>' + - ' <xsl:copy-of select="./child::node()" />' + - ' </a>' + - ' </xsl:for-each>' + - ' <xsl:if test="$children or @hasChildren"><xsl:call-template name="nodes"><xsl:with-param name="node" select="current()" /></xsl:call-template></xsl:if>' + - ' </li>' + - ' </xsl:for-each>' + - ' </ul>' + - '</xsl:template>' + - '</xsl:stylesheet>', - - 'flat' : '<' + '?xml version="1.0" encoding="utf-8" ?>' + - '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >' + - '<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" standalone="no" indent="no" media-type="text/xml" />' + - '<xsl:template match="/">' + - ' <ul>' + - ' <xsl:for-each select="//item[not(@parent_id) or @parent_id=0 or not(@parent_id = //item/@id)]">' + /* the last `or` may be removed */ - ' <xsl:call-template name="nodes">' + - ' <xsl:with-param name="node" select="." />' + - ' <xsl:with-param name="is_last" select="number(position() = last())" />' + - ' </xsl:call-template>' + - ' </xsl:for-each>' + - ' </ul>' + - '</xsl:template>' + - '<xsl:template name="nodes">' + - ' <xsl:param name="node" />' + - ' <xsl:param name="is_last" />' + - ' <xsl:variable name="children" select="count(//item[@parent_id=$node/attribute::id]) > 0" />' + - ' <li>' + - ' <xsl:attribute name="class">' + - ' <xsl:if test="$is_last = true()">jstree-last </xsl:if>' + - ' <xsl:choose>' + - ' <xsl:when test="@state = \'open\'">jstree-open </xsl:when>' + - ' <xsl:when test="$children or @hasChildren or @state = \'closed\'">jstree-closed </xsl:when>' + - ' <xsl:otherwise>jstree-leaf </xsl:otherwise>' + - ' </xsl:choose>' + - ' <xsl:value-of select="@class" />' + - ' </xsl:attribute>' + - ' <xsl:for-each select="@*">' + - ' <xsl:if test="name() != \'parent_id\' and name() != \'hasChildren\' and name() != \'class\' and name() != \'state\'">' + - ' <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + - ' </xsl:if>' + - ' </xsl:for-each>' + - ' <ins class="jstree-icon"><xsl:text> </xsl:text></ins>' + - ' <xsl:for-each select="content/name">' + - ' <a>' + - ' <xsl:attribute name="href">' + - ' <xsl:choose>' + - ' <xsl:when test="@href"><xsl:value-of select="@href" /></xsl:when>' + - ' <xsl:otherwise>#</xsl:otherwise>' + - ' </xsl:choose>' + - ' </xsl:attribute>' + - ' <xsl:attribute name="class"><xsl:value-of select="@lang" /> <xsl:value-of select="@class" /></xsl:attribute>' + - ' <xsl:attribute name="style"><xsl:value-of select="@style" /></xsl:attribute>' + - ' <xsl:for-each select="@*">' + - ' <xsl:if test="name() != \'style\' and name() != \'class\' and name() != \'href\'">' + - ' <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>' + - ' </xsl:if>' + - ' </xsl:for-each>' + - ' <ins>' + - ' <xsl:attribute name="class">jstree-icon ' + - ' <xsl:if test="string-length(attribute::icon) > 0 and not(contains(@icon,\'/\'))"><xsl:value-of select="@icon" /></xsl:if>' + - ' </xsl:attribute>' + - ' <xsl:if test="string-length(attribute::icon) > 0 and contains(@icon,\'/\')"><xsl:attribute name="style">background:url(<xsl:value-of select="@icon" />) center center no-repeat;</xsl:attribute></xsl:if>' + - ' <xsl:text> </xsl:text>' + - ' </ins>' + - ' <xsl:copy-of select="./child::node()" />' + - ' </a>' + - ' </xsl:for-each>' + - ' <xsl:if test="$children">' + - ' <ul>' + - ' <xsl:for-each select="//item[@parent_id=$node/attribute::id]">' + - ' <xsl:call-template name="nodes">' + - ' <xsl:with-param name="node" select="." />' + - ' <xsl:with-param name="is_last" select="number(position() = last())" />' + - ' </xsl:call-template>' + - ' </xsl:for-each>' + - ' </ul>' + - ' </xsl:if>' + - ' </li>' + - '</xsl:template>' + - '</xsl:stylesheet>' - }, - escape_xml = function(string) { - return string - .toString() - .replace(/&/g, '&') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); - }; - $.jstree.plugin("xml_data", { - defaults : { - data : false, - ajax : false, - xsl : "flat", - clean_node : false, - correct_state : true, - get_skip_empty : false, - get_include_preamble : true - }, - _fn : { - load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_xml(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); }, - _is_loaded : function (obj) { - var s = this._get_settings().xml_data; - obj = this._get_node(obj); - return obj == -1 || !obj || (!s.ajax && !$.isFunction(s.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0; - }, - load_node_xml : function (obj, s_call, e_call) { - var s = this.get_settings().xml_data, - error_func = function () {}, - success_func = function () {}; - - obj = this._get_node(obj); - if(obj && obj !== -1) { - if(obj.data("jstree_is_loading")) { return; } - else { obj.data("jstree_is_loading",true); } - } - switch(!0) { - case (!s.data && !s.ajax): throw "Neither data nor ajax settings supplied."; - case ($.isFunction(s.data)): - s.data.call(this, obj, $.proxy(function (d) { - this.parse_xml(d, $.proxy(function (d) { - if(d) { - d = d.replace(/ ?xmlns="[^"]*"/ig, ""); - if(d.length > 10) { - d = $(d); - if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); } - else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree_is_loading"); } - if(s.clean_node) { this.clean_node(obj); } - if(s_call) { s_call.call(this); } - } - else { - if(obj && obj !== -1) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { - this.correct_state(obj); - if(s_call) { s_call.call(this); } - } - } - else { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - } - } - }, this)); - }, this)); - break; - case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)): - if(!obj || obj == -1) { - this.parse_xml(s.data, $.proxy(function (d) { - if(d) { - d = d.replace(/ ?xmlns="[^"]*"/ig, ""); - if(d.length > 10) { - d = $(d); - this.get_container().children("ul").empty().append(d.children()); - if(s.clean_node) { this.clean_node(obj); } - if(s_call) { s_call.call(this); } - } - } - else { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - }, this)); - } - break; - case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1): - error_func = function (x, t, e) { - var ef = this.get_settings().xml_data.ajax.error; - if(ef) { ef.call(this, x, t, e); } - if(obj !== -1 && obj.length) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(t === "success" && s.correct_state) { this.correct_state(obj); } - } - else { - if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); } - } - if(e_call) { e_call.call(this); } - }; - success_func = function (d, t, x) { - d = x.responseText; - var sf = this.get_settings().xml_data.ajax.success; - if(sf) { d = sf.call(this,d,t,x) || d; } - if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) { - return error_func.call(this, x, t, ""); - } - this.parse_xml(d, $.proxy(function (d) { - if(d) { - d = d.replace(/ ?xmlns="[^"]*"/ig, ""); - if(d.length > 10) { - d = $(d); - if(obj === -1 || !obj) { this.get_container().children("ul").empty().append(d.children()); } - else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d); obj.removeData("jstree_is_loading"); } - if(s.clean_node) { this.clean_node(obj); } - if(s_call) { s_call.call(this); } - } - else { - if(obj && obj !== -1) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { - this.correct_state(obj); - if(s_call) { s_call.call(this); } - } - } - else { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - } - } - }, this)); - }; - s.ajax.context = this; - s.ajax.error = error_func; - s.ajax.success = success_func; - if(!s.ajax.dataType) { s.ajax.dataType = "xml"; } - if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); } - if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); } - $.ajax(s.ajax); - break; - } - }, - parse_xml : function (xml, callback) { - var s = this._get_settings().xml_data; - $.vakata.xslt(xml, xsl[s.xsl], callback); - }, - get_xml : function (tp, obj, li_attr, a_attr, is_callback) { - var result = "", - s = this._get_settings(), - _this = this, - tmp1, tmp2, li, a, lang; - if(!tp) { tp = "flat"; } - if(!is_callback) { is_callback = 0; } - obj = this._get_node(obj); - if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); } - li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ]; - if(!is_callback && this.data.types && $.inArray(s.types.type_attr, li_attr) === -1) { li_attr.push(s.types.type_attr); } - - a_attr = $.isArray(a_attr) ? a_attr : [ ]; - - if(!is_callback) { - if(s.xml_data.get_include_preamble) { - result += '<' + '?xml version="1.0" encoding="UTF-8"?' + '>'; - } - result += "<root>"; - } - obj.each(function () { - result += "<item"; - li = $(this); - $.each(li_attr, function (i, v) { - var t = li.attr(v); - if(!s.xml_data.get_skip_empty || typeof t !== "undefined") { - result += " " + v + "=\"" + escape_xml((" " + (t || "")).replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + "\""; - } - }); - if(li.hasClass("jstree-open")) { result += " state=\"open\""; } - if(li.hasClass("jstree-closed")) { result += " state=\"closed\""; } - if(tp === "flat") { result += " parent_id=\"" + escape_xml(is_callback) + "\""; } - result += ">"; - result += "<content>"; - a = li.children("a"); - a.each(function () { - tmp1 = $(this); - lang = false; - result += "<name"; - if($.inArray("languages", s.plugins) !== -1) { - $.each(s.languages, function (k, z) { - if(tmp1.hasClass(z)) { result += " lang=\"" + escape_xml(z) + "\""; lang = z; return false; } - }); - } - if(a_attr.length) { - $.each(a_attr, function (k, z) { - var t = tmp1.attr(z); - if(!s.xml_data.get_skip_empty || typeof t !== "undefined") { - result += " " + z + "=\"" + escape_xml((" " + t || "").replace(/ jstree[^ ]*/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + "\""; - } - }); - } - if(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/^\s+$/ig,"").length) { - result += ' icon="' + escape_xml(tmp1.children("ins").get(0).className.replace(/jstree[^ ]*|$/ig,'').replace(/\s+$/ig," ").replace(/^ /,"").replace(/ $/,"")) + '"'; - } - if(tmp1.children("ins").get(0).style.backgroundImage.length) { - result += ' icon="' + escape_xml(tmp1.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")","").replace(/'/ig,"").replace(/"/ig,"")) + '"'; - } - result += ">"; - result += "<![CDATA[" + _this.get_text(tmp1, lang) + "]]>"; - result += "</name>"; - }); - result += "</content>"; - tmp2 = li[0].id || true; - li = li.find("> ul > li"); - if(li.length) { tmp2 = _this.get_xml(tp, li, li_attr, a_attr, tmp2); } - else { tmp2 = ""; } - if(tp == "nest") { result += tmp2; } - result += "</item>"; - if(tp == "flat") { result += tmp2; } - }); - if(!is_callback) { result += "</root>"; } - return result; - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree search plugin - * Enables both sync and async search on the tree - * DOES NOT WORK WITH JSON PROGRESSIVE RENDER - */ -(function ($) { - $.expr[':'].jstree_contains = function(a,i,m){ - return (a.textContent || a.innerText || "").toLowerCase().indexOf(m[3].toLowerCase())>=0; - }; - $.expr[':'].jstree_title_contains = function(a,i,m) { - return (a.getAttribute("title") || "").toLowerCase().indexOf(m[3].toLowerCase())>=0; - }; - $.jstree.plugin("search", { - __init : function () { - this.data.search.str = ""; - this.data.search.result = $(); - if(this._get_settings().search.show_only_matches) { - this.get_container() - .bind("search.jstree", function (e, data) { - $(this).children("ul").find("li").hide().removeClass("jstree-last"); - data.rslt.nodes.parentsUntil(".jstree").andSelf().show() - .filter("ul").each(function () { $(this).children("li:visible").eq(-1).addClass("jstree-last"); }); - }) - .bind("clear_search.jstree", function () { - $(this).children("ul").find("li").css("display","").end().end().jstree("clean_node", -1); - }); - } - }, - defaults : { - ajax : false, - search_method : "jstree_contains", // for case insensitive - jstree_contains - show_only_matches : false - }, - _fn : { - search : function (str, skip_async) { - if($.trim(str) === "") { this.clear_search(); return; } - var s = this.get_settings().search, - t = this, - error_func = function () { }, - success_func = function () { }; - this.data.search.str = str; - - if(!skip_async && s.ajax !== false && this.get_container_ul().find("li.jstree-closed:not(:has(ul)):eq(0)").length > 0) { - this.search.supress_callback = true; - error_func = function () { }; - success_func = function (d, t, x) { - var sf = this.get_settings().search.ajax.success; - if(sf) { d = sf.call(this,d,t,x) || d; } - this.data.search.to_open = d; - this._search_open(); - }; - s.ajax.context = this; - s.ajax.error = error_func; - s.ajax.success = success_func; - if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, str); } - if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, str); } - if(!s.ajax.data) { s.ajax.data = { "search_string" : str }; } - if(!s.ajax.dataType || /^json/.exec(s.ajax.dataType)) { s.ajax.dataType = "json"; } - $.ajax(s.ajax); - return; - } - if(this.data.search.result.length) { this.clear_search(); } - this.data.search.result = this.get_container().find("a" + (this.data.languages ? "." + this.get_lang() : "" ) + ":" + (s.search_method) + "(" + this.data.search.str + ")"); - this.data.search.result.addClass("jstree-search").parent().parents(".jstree-closed").each(function () { - t.open_node(this, false, true); - }); - this.__callback({ nodes : this.data.search.result, str : str }); - }, - clear_search : function (str) { - this.data.search.result.removeClass("jstree-search"); - this.__callback(this.data.search.result); - this.data.search.result = $(); - }, - _search_open : function (is_callback) { - var _this = this, - done = true, - current = [], - remaining = []; - if(this.data.search.to_open.length) { - $.each(this.data.search.to_open, function (i, val) { - if(val == "#") { return true; } - if($(val).length && $(val).is(".jstree-closed")) { current.push(val); } - else { remaining.push(val); } - }); - if(current.length) { - this.data.search.to_open = remaining; - $.each(current, function (i, val) { - _this.open_node(val, function () { _this._search_open(true); }); - }); - done = false; - } - } - if(done) { this.search(this.data.search.str, true); } - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree contextmenu plugin - */ -(function ($) { - $.vakata.context = { - hide_on_mouseleave : false, - - cnt : $("<div id='vakata-contextmenu' />"), - vis : false, - tgt : false, - par : false, - func : false, - data : false, - rtl : false, - show : function (s, t, x, y, d, p, rtl) { - $.vakata.context.rtl = !!rtl; - var html = $.vakata.context.parse(s), h, w; - if(!html) { return; } - $.vakata.context.vis = true; - $.vakata.context.tgt = t; - $.vakata.context.par = p || t || null; - $.vakata.context.data = d || null; - $.vakata.context.cnt - .html(html) - .css({ "visibility" : "hidden", "display" : "block", "left" : 0, "top" : 0 }); - - if($.vakata.context.hide_on_mouseleave) { - $.vakata.context.cnt - .one("mouseleave", function(e) { $.vakata.context.hide(); }); - } - - h = $.vakata.context.cnt.height(); - w = $.vakata.context.cnt.width(); - if(x + w > $(document).width()) { - x = $(document).width() - (w + 5); - $.vakata.context.cnt.find("li > ul").addClass("right"); - } - if(y + h > $(document).height()) { - y = y - (h + t[0].offsetHeight); - $.vakata.context.cnt.find("li > ul").addClass("bottom"); - } - - $.vakata.context.cnt - .css({ "left" : x, "top" : y }) - .find("li:has(ul)") - .bind("mouseenter", function (e) { - var w = $(document).width(), - h = $(document).height(), - ul = $(this).children("ul").show(); - if(w !== $(document).width()) { ul.toggleClass("right"); } - if(h !== $(document).height()) { ul.toggleClass("bottom"); } - }) - .bind("mouseleave", function (e) { - $(this).children("ul").hide(); - }) - .end() - .css({ "visibility" : "visible" }) - .show(); - $(document).triggerHandler("context_show.vakata"); - }, - hide : function () { - $.vakata.context.vis = false; - $.vakata.context.cnt.attr("class","").css({ "visibility" : "hidden" }); - $(document).triggerHandler("context_hide.vakata"); - }, - parse : function (s, is_callback) { - if(!s) { return false; } - var str = "", - tmp = false, - was_sep = true; - if(!is_callback) { $.vakata.context.func = {}; } - str += "<ul>"; - $.each(s, function (i, val) { - if(!val) { return true; } - $.vakata.context.func[i] = val.action; - if(!was_sep && val.separator_before) { - str += "<li class='vakata-separator vakata-separator-before'></li>"; - } - was_sep = false; - str += "<li class='" + (val._class || "") + (val._disabled ? " jstree-contextmenu-disabled " : "") + "'><ins "; - if(val.icon && val.icon.indexOf("/") === -1) { str += " class='" + val.icon + "' "; } - if(val.icon && val.icon.indexOf("/") !== -1) { str += " style='background:url(" + val.icon + ") center center no-repeat;' "; } - str += "> </ins><a href='#' rel='" + i + "'>"; - if(val.submenu) { - str += "<span style='float:" + ($.vakata.context.rtl ? "left" : "right") + ";'>»</span>"; - } - str += val.label + "</a>"; - if(val.submenu) { - tmp = $.vakata.context.parse(val.submenu, true); - if(tmp) { str += tmp; } - } - str += "</li>"; - if(val.separator_after) { - str += "<li class='vakata-separator vakata-separator-after'></li>"; - was_sep = true; - } - }); - str = str.replace(/<li class\='vakata-separator vakata-separator-after'\><\/li\>$/,""); - str += "</ul>"; - $(document).triggerHandler("context_parse.vakata"); - return str.length > 10 ? str : false; - }, - exec : function (i) { - if($.isFunction($.vakata.context.func[i])) { - // if is string - eval and call it! - $.vakata.context.func[i].call($.vakata.context.data, $.vakata.context.par); - return true; - } - else { return false; } - } - }; - $(function () { - var css_string = '' + - '#vakata-contextmenu { display:block; visibility:hidden; left:0; top:-200px; position:absolute; margin:0; padding:0; min-width:180px; background:#ebebeb; border:1px solid silver; z-index:10000; *width:180px; } ' + - '#vakata-contextmenu ul { min-width:180px; *width:180px; } ' + - '#vakata-contextmenu ul, #vakata-contextmenu li { margin:0; padding:0; list-style-type:none; display:block; } ' + - '#vakata-contextmenu li { line-height:20px; min-height:20px; position:relative; padding:0px; } ' + - '#vakata-contextmenu li a { padding:1px 6px; line-height:17px; display:block; text-decoration:none; margin:1px 1px 0 1px; } ' + - '#vakata-contextmenu li ins { float:left; width:16px; height:16px; text-decoration:none; margin-right:2px; } ' + - '#vakata-contextmenu li a:hover, #vakata-contextmenu li.vakata-hover > a { background:gray; color:white; } ' + - '#vakata-contextmenu li ul { display:none; position:absolute; top:-2px; left:100%; background:#ebebeb; border:1px solid gray; } ' + - '#vakata-contextmenu .right { right:100%; left:auto; } ' + - '#vakata-contextmenu .bottom { bottom:-1px; top:auto; } ' + - '#vakata-contextmenu li.vakata-separator { min-height:0; height:1px; line-height:1px; font-size:1px; overflow:hidden; margin:0 2px; background:silver; /* border-top:1px solid #fefefe; */ padding:0; } '; - $.vakata.css.add_sheet({ str : css_string, title : "vakata" }); - $.vakata.context.cnt - .delegate("a","click", function (e) { e.preventDefault(); }) - .delegate("a","mouseup", function (e) { - if(!$(this).parent().hasClass("jstree-contextmenu-disabled") && $.vakata.context.exec($(this).attr("rel"))) { - $.vakata.context.hide(); - } - else { $(this).blur(); } - }) - .delegate("a","mouseover", function () { - $.vakata.context.cnt.find(".vakata-hover").removeClass("vakata-hover"); - }) - .appendTo("body"); - $(document).bind("mousedown", function (e) { if($.vakata.context.vis && !$.contains($.vakata.context.cnt[0], e.target)) { $.vakata.context.hide(); } }); - if(typeof $.hotkeys !== "undefined") { - $(document) - .bind("keydown", "up", function (e) { - if($.vakata.context.vis) { - var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").prevAll("li:not(.vakata-separator)").first(); - if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").last(); } - o.addClass("vakata-hover"); - e.stopImmediatePropagation(); - e.preventDefault(); - } - }) - .bind("keydown", "down", function (e) { - if($.vakata.context.vis) { - var o = $.vakata.context.cnt.find("ul:visible").last().children(".vakata-hover").removeClass("vakata-hover").nextAll("li:not(.vakata-separator)").first(); - if(!o.length) { o = $.vakata.context.cnt.find("ul:visible").last().children("li:not(.vakata-separator)").first(); } - o.addClass("vakata-hover"); - e.stopImmediatePropagation(); - e.preventDefault(); - } - }) - .bind("keydown", "right", function (e) { - if($.vakata.context.vis) { - $.vakata.context.cnt.find(".vakata-hover").children("ul").show().children("li:not(.vakata-separator)").removeClass("vakata-hover").first().addClass("vakata-hover"); - e.stopImmediatePropagation(); - e.preventDefault(); - } - }) - .bind("keydown", "left", function (e) { - if($.vakata.context.vis) { - $.vakata.context.cnt.find(".vakata-hover").children("ul").hide().children(".vakata-separator").removeClass("vakata-hover"); - e.stopImmediatePropagation(); - e.preventDefault(); - } - }) - .bind("keydown", "esc", function (e) { - $.vakata.context.hide(); - e.preventDefault(); - }) - .bind("keydown", "space", function (e) { - $.vakata.context.cnt.find(".vakata-hover").last().children("a").click(); - e.preventDefault(); - }); - } - }); - - $.jstree.plugin("contextmenu", { - __init : function () { - this.get_container() - .delegate("a", "contextmenu.jstree", $.proxy(function (e) { - e.preventDefault(); - if(!$(e.currentTarget).hasClass("jstree-loading")) { - this.show_contextmenu(e.currentTarget, e.pageX, e.pageY); - } - }, this)) - .delegate("a", "click.jstree", $.proxy(function (e) { - if(this.data.contextmenu) { - $.vakata.context.hide(); - } - }, this)) - .bind("destroy.jstree", $.proxy(function () { - // TODO: move this to descruct method - if(this.data.contextmenu) { - $.vakata.context.hide(); - } - }, this)); - $(document).bind("context_hide.vakata", $.proxy(function () { this.data.contextmenu = false; }, this)); - }, - defaults : { - select_node : false, // requires UI plugin - show_at_node : true, - items : { // Could be a function that should return an object like this one - "create" : { - "separator_before" : false, - "separator_after" : true, - "label" : "Create", - "action" : function (obj) { this.create(obj); } - }, - "rename" : { - "separator_before" : false, - "separator_after" : false, - "label" : "Rename", - "action" : function (obj) { this.rename(obj); } - }, - "remove" : { - "separator_before" : false, - "icon" : false, - "separator_after" : false, - "label" : "Delete", - "action" : function (obj) { if(this.is_selected(obj)) { this.remove(); } else { this.remove(obj); } } - }, - "ccp" : { - "separator_before" : true, - "icon" : false, - "separator_after" : false, - "label" : "Edit", - "action" : false, - "submenu" : { - "cut" : { - "separator_before" : false, - "separator_after" : false, - "label" : "Cut", - "action" : function (obj) { this.cut(obj); } - }, - "copy" : { - "separator_before" : false, - "icon" : false, - "separator_after" : false, - "label" : "Copy", - "action" : function (obj) { this.copy(obj); } - }, - "paste" : { - "separator_before" : false, - "icon" : false, - "separator_after" : false, - "label" : "Paste", - "action" : function (obj) { this.paste(obj); } - } - } - } - } - }, - _fn : { - show_contextmenu : function (obj, x, y) { - obj = this._get_node(obj); - var s = this.get_settings().contextmenu, - a = obj.children("a:visible:eq(0)"), - o = false, - i = false; - if(s.select_node && this.data.ui && !this.is_selected(obj)) { - this.deselect_all(); - this.select_node(obj, true); - } - if(s.show_at_node || typeof x === "undefined" || typeof y === "undefined") { - o = a.offset(); - x = o.left; - y = o.top + this.data.core.li_height; - } - i = obj.data("jstree") && obj.data("jstree").contextmenu ? obj.data("jstree").contextmenu : s.items; - if($.isFunction(i)) { i = i.call(this, obj); } - this.data.contextmenu = true; - $.vakata.context.show(i, a, x, y, this, obj, this._get_settings().core.rtl); - if(this.data.themes) { $.vakata.context.cnt.attr("class", "jstree-" + this.data.themes.theme + "-context"); } - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree types plugin - * Adds support types of nodes - * You can set an attribute on each li node, that represents its type. - * According to the type setting the node may get custom icon/validation rules - */ -(function ($) { - $.jstree.plugin("types", { - __init : function () { - var s = this._get_settings().types; - this.data.types.attach_to = []; - this.get_container() - .bind("init.jstree", $.proxy(function () { - var types = s.types, - attr = s.type_attr, - icons_css = "", - _this = this; - - $.each(types, function (i, tp) { - $.each(tp, function (k, v) { - if(!/^(max_depth|max_children|icon|valid_children)$/.test(k)) { _this.data.types.attach_to.push(k); } - }); - if(!tp.icon) { return true; } - if( tp.icon.image || tp.icon.position) { - if(i == "default") { icons_css += '.jstree-' + _this.get_index() + ' a > .jstree-icon { '; } - else { icons_css += '.jstree-' + _this.get_index() + ' li[' + attr + '="' + i + '"] > a > .jstree-icon { '; } - if(tp.icon.image) { icons_css += ' background-image:url(' + tp.icon.image + '); '; } - if(tp.icon.position){ icons_css += ' background-position:' + tp.icon.position + '; '; } - else { icons_css += ' background-position:0 0; '; } - icons_css += '} '; - } - }); - if(icons_css !== "") { $.vakata.css.add_sheet({ 'str' : icons_css, title : "jstree-types" }); } - }, this)) - .bind("before.jstree", $.proxy(function (e, data) { - var s, t, - o = this._get_settings().types.use_data ? this._get_node(data.args[0]) : false, - d = o && o !== -1 && o.length ? o.data("jstree") : false; - if(d && d.types && d.types[data.func] === false) { e.stopImmediatePropagation(); return false; } - if($.inArray(data.func, this.data.types.attach_to) !== -1) { - if(!data.args[0] || (!data.args[0].tagName && !data.args[0].jquery)) { return; } - s = this._get_settings().types.types; - t = this._get_type(data.args[0]); - if( - ( - (s[t] && typeof s[t][data.func] !== "undefined") || - (s["default"] && typeof s["default"][data.func] !== "undefined") - ) && this._check(data.func, data.args[0]) === false - ) { - e.stopImmediatePropagation(); - return false; - } - } - }, this)); - if(is_ie6) { - this.get_container() - .bind("load_node.jstree set_type.jstree", $.proxy(function (e, data) { - var r = data && data.rslt && data.rslt.obj && data.rslt.obj !== -1 ? this._get_node(data.rslt.obj).parent() : this.get_container_ul(), - c = false, - s = this._get_settings().types; - $.each(s.types, function (i, tp) { - if(tp.icon && (tp.icon.image || tp.icon.position)) { - c = i === "default" ? r.find("li > a > .jstree-icon") : r.find("li[" + s.type_attr + "='" + i + "'] > a > .jstree-icon"); - if(tp.icon.image) { c.css("backgroundImage","url(" + tp.icon.image + ")"); } - c.css("backgroundPosition", tp.icon.position || "0 0"); - } - }); - }, this)); - } - }, - defaults : { - // defines maximum number of root nodes (-1 means unlimited, -2 means disable max_children checking) - max_children : -1, - // defines the maximum depth of the tree (-1 means unlimited, -2 means disable max_depth checking) - max_depth : -1, - // defines valid node types for the root nodes - valid_children : "all", - - // whether to use $.data - use_data : false, - // where is the type stores (the rel attribute of the LI element) - type_attr : "rel", - // a list of types - types : { - // the default type - "default" : { - "max_children" : -1, - "max_depth" : -1, - "valid_children": "all" - - // Bound functions - you can bind any other function here (using boolean or function) - //"select_node" : true - } - } - }, - _fn : { - _types_notify : function (n, data) { - if(data.type && this._get_settings().types.use_data) { - this.set_type(data.type, n); - } - }, - _get_type : function (obj) { - obj = this._get_node(obj); - return (!obj || !obj.length) ? false : obj.attr(this._get_settings().types.type_attr) || "default"; - }, - set_type : function (str, obj) { - obj = this._get_node(obj); - var ret = (!obj.length || !str) ? false : obj.attr(this._get_settings().types.type_attr, str); - if(ret) { this.__callback({ obj : obj, type : str}); } - return ret; - }, - _check : function (rule, obj, opts) { - obj = this._get_node(obj); - var v = false, t = this._get_type(obj), d = 0, _this = this, s = this._get_settings().types, data = false; - if(obj === -1) { - if(!!s[rule]) { v = s[rule]; } - else { return; } - } - else { - if(t === false) { return; } - data = s.use_data ? obj.data("jstree") : false; - if(data && data.types && typeof data.types[rule] !== "undefined") { v = data.types[rule]; } - else if(!!s.types[t] && typeof s.types[t][rule] !== "undefined") { v = s.types[t][rule]; } - else if(!!s.types["default"] && typeof s.types["default"][rule] !== "undefined") { v = s.types["default"][rule]; } - } - if($.isFunction(v)) { v = v.call(this, obj); } - if(rule === "max_depth" && obj !== -1 && opts !== false && s.max_depth !== -2 && v !== 0) { - // also include the node itself - otherwise if root node it is not checked - obj.children("a:eq(0)").parentsUntil(".jstree","li").each(function (i) { - // check if current depth already exceeds global tree depth - if(s.max_depth !== -1 && s.max_depth - (i + 1) <= 0) { v = 0; return false; } - d = (i === 0) ? v : _this._check(rule, this, false); - // check if current node max depth is already matched or exceeded - if(d !== -1 && d - (i + 1) <= 0) { v = 0; return false; } - // otherwise - set the max depth to the current value minus current depth - if(d >= 0 && (d - (i + 1) < v || v < 0) ) { v = d - (i + 1); } - // if the global tree depth exists and it minus the nodes calculated so far is less than `v` or `v` is unlimited - if(s.max_depth >= 0 && (s.max_depth - (i + 1) < v || v < 0) ) { v = s.max_depth - (i + 1); } - }); - } - return v; - }, - check_move : function () { - if(!this.__call_old()) { return false; } - var m = this._get_move(), - s = m.rt._get_settings().types, - mc = m.rt._check("max_children", m.cr), - md = m.rt._check("max_depth", m.cr), - vc = m.rt._check("valid_children", m.cr), - ch = 0, d = 1, t; - - if(vc === "none") { return false; } - if($.isArray(vc) && m.ot && m.ot._get_type) { - m.o.each(function () { - if($.inArray(m.ot._get_type(this), vc) === -1) { d = false; return false; } - }); - if(d === false) { return false; } - } - if(s.max_children !== -2 && mc !== -1) { - ch = m.cr === -1 ? this.get_container().find("> ul > li").not(m.o).length : m.cr.find("> ul > li").not(m.o).length; - if(ch + m.o.length > mc) { return false; } - } - if(s.max_depth !== -2 && md !== -1) { - d = 0; - if(md === 0) { return false; } - if(typeof m.o.d === "undefined") { - // TODO: deal with progressive rendering and async when checking max_depth (how to know the depth of the moved node) - t = m.o; - while(t.length > 0) { - t = t.find("> ul > li"); - d ++; - } - m.o.d = d; - } - if(md - m.o.d < 0) { return false; } - } - return true; - }, - create_node : function (obj, position, js, callback, is_loaded, skip_check) { - if(!skip_check && (is_loaded || this._is_loaded(obj))) { - var p = (typeof position == "string" && position.match(/^before|after$/i) && obj !== -1) ? this._get_parent(obj) : this._get_node(obj), - s = this._get_settings().types, - mc = this._check("max_children", p), - md = this._check("max_depth", p), - vc = this._check("valid_children", p), - ch; - if(typeof js === "string") { js = { data : js }; } - if(!js) { js = {}; } - if(vc === "none") { return false; } - if($.isArray(vc)) { - if(!js.attr || !js.attr[s.type_attr]) { - if(!js.attr) { js.attr = {}; } - js.attr[s.type_attr] = vc[0]; - } - else { - if($.inArray(js.attr[s.type_attr], vc) === -1) { return false; } - } - } - if(s.max_children !== -2 && mc !== -1) { - ch = p === -1 ? this.get_container().find("> ul > li").length : p.find("> ul > li").length; - if(ch + 1 > mc) { return false; } - } - if(s.max_depth !== -2 && md !== -1 && (md - 1) < 0) { return false; } - } - return this.__call_old(true, obj, position, js, callback, is_loaded, skip_check); - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree HTML plugin - * The HTML data store. Datastores are build by replacing the `load_node` and `_is_loaded` functions. - */ -(function ($) { - $.jstree.plugin("html_data", { - __init : function () { - // this used to use html() and clean the whitespace, but this way any attached data was lost - this.data.html_data.original_container_html = this.get_container().find(" > ul > li").clone(true); - // remove white space from LI node - otherwise nodes appear a bit to the right - this.data.html_data.original_container_html.find("li").andSelf().contents().filter(function() { return this.nodeType == 3; }).remove(); - }, - defaults : { - data : false, - ajax : false, - correct_state : true - }, - _fn : { - load_node : function (obj, s_call, e_call) { var _this = this; this.load_node_html(obj, function () { _this.__callback({ "obj" : _this._get_node(obj) }); s_call.call(this); }, e_call); }, - _is_loaded : function (obj) { - obj = this._get_node(obj); - return obj == -1 || !obj || (!this._get_settings().html_data.ajax && !$.isFunction(this._get_settings().html_data.data)) || obj.is(".jstree-open, .jstree-leaf") || obj.children("ul").children("li").size() > 0; - }, - load_node_html : function (obj, s_call, e_call) { - var d, - s = this.get_settings().html_data, - error_func = function () {}, - success_func = function () {}; - obj = this._get_node(obj); - if(obj && obj !== -1) { - if(obj.data("jstree_is_loading")) { return; } - else { obj.data("jstree_is_loading",true); } - } - switch(!0) { - case ($.isFunction(s.data)): - s.data.call(this, obj, $.proxy(function (d) { - if(d && d !== "" && d.toString && d.toString().replace(/^[\s\n]+$/,"") !== "") { - d = $(d); - if(!d.is("ul")) { d = $("<ul />").append(d); } - if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); } - else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); } - this.clean_node(obj); - if(s_call) { s_call.call(this); } - } - else { - if(obj && obj !== -1) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { - this.correct_state(obj); - if(s_call) { s_call.call(this); } - } - } - else { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - } - }, this)); - break; - case (!s.data && !s.ajax): - if(!obj || obj == -1) { - this.get_container() - .children("ul").empty() - .append(this.data.html_data.original_container_html) - .find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end() - .filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); - this.clean_node(); - } - if(s_call) { s_call.call(this); } - break; - case (!!s.data && !s.ajax) || (!!s.data && !!s.ajax && (!obj || obj === -1)): - if(!obj || obj == -1) { - d = $(s.data); - if(!d.is("ul")) { d = $("<ul />").append(d); } - this.get_container() - .children("ul").empty().append(d.children()) - .find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end() - .filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); - this.clean_node(); - } - if(s_call) { s_call.call(this); } - break; - case (!s.data && !!s.ajax) || (!!s.data && !!s.ajax && obj && obj !== -1): - obj = this._get_node(obj); - error_func = function (x, t, e) { - var ef = this.get_settings().html_data.ajax.error; - if(ef) { ef.call(this, x, t, e); } - if(obj != -1 && obj.length) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(t === "success" && s.correct_state) { this.correct_state(obj); } - } - else { - if(t === "success" && s.correct_state) { this.get_container().children("ul").empty(); } - } - if(e_call) { e_call.call(this); } - }; - success_func = function (d, t, x) { - var sf = this.get_settings().html_data.ajax.success; - if(sf) { d = sf.call(this,d,t,x) || d; } - if(d === "" || (d && d.toString && d.toString().replace(/^[\s\n]+$/,"") === "")) { - return error_func.call(this, x, t, ""); - } - if(d) { - d = $(d); - if(!d.is("ul")) { d = $("<ul />").append(d); } - if(obj == -1 || !obj) { this.get_container().children("ul").empty().append(d.children()).find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); } - else { obj.children("a.jstree-loading").removeClass("jstree-loading"); obj.append(d).children("ul").find("li, a").filter(function () { return !this.firstChild || !this.firstChild.tagName || this.firstChild.tagName !== "INS"; }).prepend("<ins class='jstree-icon'> </ins>").end().filter("a").children("ins:first-child").not(".jstree-icon").addClass("jstree-icon"); obj.removeData("jstree_is_loading"); } - this.clean_node(obj); - if(s_call) { s_call.call(this); } - } - else { - if(obj && obj !== -1) { - obj.children("a.jstree-loading").removeClass("jstree-loading"); - obj.removeData("jstree_is_loading"); - if(s.correct_state) { - this.correct_state(obj); - if(s_call) { s_call.call(this); } - } - } - else { - if(s.correct_state) { - this.get_container().children("ul").empty(); - if(s_call) { s_call.call(this); } - } - } - } - }; - s.ajax.context = this; - s.ajax.error = error_func; - s.ajax.success = success_func; - if(!s.ajax.dataType) { s.ajax.dataType = "html"; } - if($.isFunction(s.ajax.url)) { s.ajax.url = s.ajax.url.call(this, obj); } - if($.isFunction(s.ajax.data)) { s.ajax.data = s.ajax.data.call(this, obj); } - $.ajax(s.ajax); - break; - } - } - } - }); - // include the HTML data plugin by default - $.jstree.defaults.plugins.push("html_data"); -})(jQuery); -//*/ - -/* - * jsTree themeroller plugin - * Adds support for jQuery UI themes. Include this at the end of your plugins list, also make sure "themes" is not included. - */ -(function ($) { - $.jstree.plugin("themeroller", { - __init : function () { - var s = this._get_settings().themeroller; - this.get_container() - .addClass("ui-widget-content") - .addClass("jstree-themeroller") - .delegate("a","mouseenter.jstree", function (e) { - if(!$(e.currentTarget).hasClass("jstree-loading")) { - $(this).addClass(s.item_h); - } - }) - .delegate("a","mouseleave.jstree", function () { - $(this).removeClass(s.item_h); - }) - .bind("init.jstree", $.proxy(function (e, data) { - data.inst.get_container().find("> ul > li > .jstree-loading > ins").addClass("ui-icon-refresh"); - this._themeroller(data.inst.get_container().find("> ul > li")); - }, this)) - .bind("open_node.jstree create_node.jstree", $.proxy(function (e, data) { - this._themeroller(data.rslt.obj); - }, this)) - .bind("loaded.jstree refresh.jstree", $.proxy(function (e) { - this._themeroller(); - }, this)) - .bind("close_node.jstree", $.proxy(function (e, data) { - this._themeroller(data.rslt.obj); - }, this)) - .bind("delete_node.jstree", $.proxy(function (e, data) { - this._themeroller(data.rslt.parent); - }, this)) - .bind("correct_state.jstree", $.proxy(function (e, data) { - data.rslt.obj - .children("ins.jstree-icon").removeClass(s.opened + " " + s.closed + " ui-icon").end() - .find("> a > ins.ui-icon") - .filter(function() { - return this.className.toString() - .replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"") - .indexOf("ui-icon-") === -1; - }).removeClass(s.item_open + " " + s.item_clsd).addClass(s.item_leaf || "jstree-no-icon"); - }, this)) - .bind("select_node.jstree", $.proxy(function (e, data) { - data.rslt.obj.children("a").addClass(s.item_a); - }, this)) - .bind("deselect_node.jstree deselect_all.jstree", $.proxy(function (e, data) { - this.get_container() - .find("a." + s.item_a).removeClass(s.item_a).end() - .find("a.jstree-clicked").addClass(s.item_a); - }, this)) - .bind("dehover_node.jstree", $.proxy(function (e, data) { - data.rslt.obj.children("a").removeClass(s.item_h); - }, this)) - .bind("hover_node.jstree", $.proxy(function (e, data) { - this.get_container() - .find("a." + s.item_h).not(data.rslt.obj).removeClass(s.item_h); - data.rslt.obj.children("a").addClass(s.item_h); - }, this)) - .bind("move_node.jstree", $.proxy(function (e, data) { - this._themeroller(data.rslt.o); - this._themeroller(data.rslt.op); - }, this)); - }, - __destroy : function () { - var s = this._get_settings().themeroller, - c = [ "ui-icon" ]; - $.each(s, function (i, v) { - v = v.split(" "); - if(v.length) { c = c.concat(v); } - }); - this.get_container() - .removeClass("ui-widget-content") - .find("." + c.join(", .")).removeClass(c.join(" ")); - }, - _fn : { - _themeroller : function (obj) { - var s = this._get_settings().themeroller; - obj = !obj || obj == -1 ? this.get_container_ul() : this._get_node(obj).parent(); - obj - .find("li.jstree-closed") - .children("ins.jstree-icon").removeClass(s.opened).addClass("ui-icon " + s.closed).end() - .children("a").addClass(s.item) - .children("ins.jstree-icon").addClass("ui-icon") - .filter(function() { - return this.className.toString() - .replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"") - .indexOf("ui-icon-") === -1; - }).removeClass(s.item_leaf + " " + s.item_open).addClass(s.item_clsd || "jstree-no-icon") - .end() - .end() - .end() - .end() - .find("li.jstree-open") - .children("ins.jstree-icon").removeClass(s.closed).addClass("ui-icon " + s.opened).end() - .children("a").addClass(s.item) - .children("ins.jstree-icon").addClass("ui-icon") - .filter(function() { - return this.className.toString() - .replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"") - .indexOf("ui-icon-") === -1; - }).removeClass(s.item_leaf + " " + s.item_clsd).addClass(s.item_open || "jstree-no-icon") - .end() - .end() - .end() - .end() - .find("li.jstree-leaf") - .children("ins.jstree-icon").removeClass(s.closed + " ui-icon " + s.opened).end() - .children("a").addClass(s.item) - .children("ins.jstree-icon").addClass("ui-icon") - .filter(function() { - return this.className.toString() - .replace(s.item_clsd,"").replace(s.item_open,"").replace(s.item_leaf,"") - .indexOf("ui-icon-") === -1; - }).removeClass(s.item_clsd + " " + s.item_open).addClass(s.item_leaf || "jstree-no-icon"); - } - }, - defaults : { - "opened" : "ui-icon-triangle-1-se", - "closed" : "ui-icon-triangle-1-e", - "item" : "ui-state-default", - "item_h" : "ui-state-hover", - "item_a" : "ui-state-active", - "item_open" : "ui-icon-folder-open", - "item_clsd" : "ui-icon-folder-collapsed", - "item_leaf" : "ui-icon-document" - } - }); - $(function() { - var css_string = '' + - '.jstree-themeroller .ui-icon { overflow:visible; } ' + - '.jstree-themeroller a { padding:0 2px; } ' + - '.jstree-themeroller .jstree-no-icon { display:none; }'; - $.vakata.css.add_sheet({ str : css_string, title : "jstree" }); - }); -})(jQuery); -//*/ - -/* - * jsTree unique plugin - * Forces different names amongst siblings (still a bit experimental) - * NOTE: does not check language versions (it will not be possible to have nodes with the same title, even in different languages) - */ -(function ($) { - $.jstree.plugin("unique", { - __init : function () { - this.get_container() - .bind("before.jstree", $.proxy(function (e, data) { - var nms = [], res = true, p, t; - if(data.func == "move_node") { - // obj, ref, position, is_copy, is_prepared, skip_check - if(data.args[4] === true) { - if(data.args[0].o && data.args[0].o.length) { - data.args[0].o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); }); - res = this._check_unique(nms, data.args[0].np.find("> ul > li").not(data.args[0].o), "move_node"); - } - } - } - if(data.func == "create_node") { - // obj, position, js, callback, is_loaded - if(data.args[4] || this._is_loaded(data.args[0])) { - p = this._get_node(data.args[0]); - if(data.args[1] && (data.args[1] === "before" || data.args[1] === "after")) { - p = this._get_parent(data.args[0]); - if(!p || p === -1) { p = this.get_container(); } - } - if(typeof data.args[2] === "string") { nms.push(data.args[2]); } - else if(!data.args[2] || !data.args[2].data) { nms.push(this._get_string("new_node")); } - else { nms.push(data.args[2].data); } - res = this._check_unique(nms, p.find("> ul > li"), "create_node"); - } - } - if(data.func == "rename_node") { - // obj, val - nms.push(data.args[1]); - t = this._get_node(data.args[0]); - p = this._get_parent(t); - if(!p || p === -1) { p = this.get_container(); } - res = this._check_unique(nms, p.find("> ul > li").not(t), "rename_node"); - } - if(!res) { - e.stopPropagation(); - return false; - } - }, this)); - }, - defaults : { - error_callback : $.noop - }, - _fn : { - _check_unique : function (nms, p, func) { - var cnms = []; - p.children("a").each(function () { cnms.push($(this).text().replace(/^\s+/g,"")); }); - if(!cnms.length || !nms.length) { return true; } - cnms = cnms.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(","); - if((cnms.length + nms.length) != cnms.concat(nms).sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",").length) { - this._get_settings().unique.error_callback.call(null, nms, p, func); - return false; - } - return true; - }, - check_move : function () { - if(!this.__call_old()) { return false; } - var p = this._get_move(), nms = []; - if(p.o && p.o.length) { - p.o.children("a").each(function () { nms.push($(this).text().replace(/^\s+/g,"")); }); - return this._check_unique(nms, p.np.find("> ul > li").not(p.o), "check_move"); - } - return true; - } - } - }); -})(jQuery); -//*/ - -/* - * jsTree wholerow plugin - * Makes select and hover work on the entire width of the node - * MAY BE HEAVY IN LARGE DOM - */ -(function ($) { - $.jstree.plugin("wholerow", { - __init : function () { - if(!this.data.ui) { throw "jsTree wholerow: jsTree UI plugin not included."; } - this.data.wholerow.html = false; - this.data.wholerow.to = false; - this.get_container() - .bind("init.jstree", $.proxy(function (e, data) { - this._get_settings().core.animation = 0; - }, this)) - .bind("open_node.jstree create_node.jstree clean_node.jstree loaded.jstree", $.proxy(function (e, data) { - this._prepare_wholerow_span( data && data.rslt && data.rslt.obj ? data.rslt.obj : -1 ); - }, this)) - .bind("search.jstree clear_search.jstree reopen.jstree after_open.jstree after_close.jstree create_node.jstree delete_node.jstree clean_node.jstree", $.proxy(function (e, data) { - if(this.data.to) { clearTimeout(this.data.to); } - this.data.to = setTimeout( (function (t, o) { return function() { t._prepare_wholerow_ul(o); }; })(this, data && data.rslt && data.rslt.obj ? data.rslt.obj : -1), 0); - }, this)) - .bind("deselect_all.jstree", $.proxy(function (e, data) { - this.get_container().find(" > .jstree-wholerow .jstree-clicked").removeClass("jstree-clicked " + (this.data.themeroller ? this._get_settings().themeroller.item_a : "" )); - }, this)) - .bind("select_node.jstree deselect_node.jstree ", $.proxy(function (e, data) { - data.rslt.obj.each(function () { - var ref = data.inst.get_container().find(" > .jstree-wholerow li:visible:eq(" + ( parseInt((($(this).offset().top - data.inst.get_container().offset().top + data.inst.get_container()[0].scrollTop) / data.inst.data.core.li_height),10)) + ")"); - // ref.children("a")[e.type === "select_node" ? "addClass" : "removeClass"]("jstree-clicked"); - ref.children("a").attr("class",data.rslt.obj.children("a").attr("class")); - }); - }, this)) - .bind("hover_node.jstree dehover_node.jstree", $.proxy(function (e, data) { - this.get_container().find(" > .jstree-wholerow .jstree-hovered").removeClass("jstree-hovered " + (this.data.themeroller ? this._get_settings().themeroller.item_h : "" )); - if(e.type === "hover_node") { - var ref = this.get_container().find(" > .jstree-wholerow li:visible:eq(" + ( parseInt(((data.rslt.obj.offset().top - this.get_container().offset().top + this.get_container()[0].scrollTop) / this.data.core.li_height),10)) + ")"); - // ref.children("a").addClass("jstree-hovered"); - ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class")); - } - }, this)) - .delegate(".jstree-wholerow-span, ins.jstree-icon, li", "click.jstree", function (e) { - var n = $(e.currentTarget); - if(e.target.tagName === "A" || (e.target.tagName === "INS" && n.closest("li").is(".jstree-open, .jstree-closed"))) { return; } - n.closest("li").children("a:visible:eq(0)").click(); - e.stopImmediatePropagation(); - }) - .delegate("li", "mouseover.jstree", $.proxy(function (e) { - e.stopImmediatePropagation(); - if($(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length) { return false; } - this.hover_node(e.currentTarget); - return false; - }, this)) - .delegate("li", "mouseleave.jstree", $.proxy(function (e) { - if($(e.currentTarget).children("a").hasClass("jstree-hovered").length) { return; } - this.dehover_node(e.currentTarget); - }, this)); - if(is_ie7 || is_ie6) { - $.vakata.css.add_sheet({ str : ".jstree-" + this.get_index() + " { position:relative; } ", title : "jstree" }); - } - }, - defaults : { - }, - __destroy : function () { - this.get_container().children(".jstree-wholerow").remove(); - this.get_container().find(".jstree-wholerow-span").remove(); - }, - _fn : { - _prepare_wholerow_span : function (obj) { - obj = !obj || obj == -1 ? this.get_container().find("> ul > li") : this._get_node(obj); - if(obj === false) { return; } // added for removing root nodes - obj.each(function () { - $(this).find("li").andSelf().each(function () { - var $t = $(this); - if($t.children(".jstree-wholerow-span").length) { return true; } - $t.prepend("<span class='jstree-wholerow-span' style='width:" + ($t.parentsUntil(".jstree","li").length * 18) + "px;'> </span>"); - }); - }); - }, - _prepare_wholerow_ul : function () { - var o = this.get_container().children("ul").eq(0), h = o.html(); - o.addClass("jstree-wholerow-real"); - if(this.data.wholerow.last_html !== h) { - this.data.wholerow.last_html = h; - this.get_container().children(".jstree-wholerow").remove(); - this.get_container().append( - o.clone().removeClass("jstree-wholerow-real") - .wrapAll("<div class='jstree-wholerow' />").parent() - .width(o.parent()[0].scrollWidth) - .css("top", (o.height() + ( is_ie7 ? 5 : 0)) * -1 ) - .find("li[id]").each(function () { this.removeAttribute("id"); }).end() - ); - } - } - } - }); - $(function() { - var css_string = '' + - '.jstree .jstree-wholerow-real { position:relative; z-index:1; } ' + - '.jstree .jstree-wholerow-real li { cursor:pointer; } ' + - '.jstree .jstree-wholerow-real a { border-left-color:transparent !important; border-right-color:transparent !important; } ' + - '.jstree .jstree-wholerow { position:relative; z-index:0; height:0; } ' + - '.jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { width:100%; } ' + - '.jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li, .jstree .jstree-wholerow a { margin:0 !important; padding:0 !important; } ' + - '.jstree .jstree-wholerow, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow li { background:transparent !important; }' + - '.jstree .jstree-wholerow ins, .jstree .jstree-wholerow span, .jstree .jstree-wholerow input { display:none !important; }' + - '.jstree .jstree-wholerow a, .jstree .jstree-wholerow a:hover { text-indent:-9999px; !important; width:100%; padding:0 !important; border-right-width:0px !important; border-left-width:0px !important; } ' + - '.jstree .jstree-wholerow-span { position:absolute; left:0; margin:0px; padding:0; height:18px; border-width:0; padding:0; z-index:0; }'; - if(is_ff2) { - css_string += '' + - '.jstree .jstree-wholerow a { display:block; height:18px; margin:0; padding:0; border:0; } ' + - '.jstree .jstree-wholerow-real a { border-color:transparent !important; } '; - } - if(is_ie7 || is_ie6) { - css_string += '' + - '.jstree .jstree-wholerow, .jstree .jstree-wholerow li, .jstree .jstree-wholerow ul, .jstree .jstree-wholerow a { margin:0; padding:0; line-height:18px; } ' + - '.jstree .jstree-wholerow a { display:block; height:18px; line-height:18px; overflow:hidden; } '; - } - $.vakata.css.add_sheet({ str : css_string, title : "jstree" }); - }); -})(jQuery); -//*/ - -/* -* jsTree model plugin -* This plugin gets jstree to use a class model to retrieve data, creating great dynamism -*/ -(function ($) { - var nodeInterface = ["getChildren","getChildrenCount","getAttr","getName","getProps"], - validateInterface = function(obj, inter) { - var valid = true; - obj = obj || {}; - inter = [].concat(inter); - $.each(inter, function (i, v) { - if(!$.isFunction(obj[v])) { valid = false; return false; } - }); - return valid; - }; - $.jstree.plugin("model", { - __init : function () { - if(!this.data.json_data) { throw "jsTree model: jsTree json_data plugin not included."; } - this._get_settings().json_data.data = function (n, b) { - var obj = (n == -1) ? this._get_settings().model.object : n.data("jstree_model"); - if(!validateInterface(obj, nodeInterface)) { return b.call(null, false); } - if(this._get_settings().model.async) { - obj.getChildren($.proxy(function (data) { - this.model_done(data, b); - }, this)); - } - else { - this.model_done(obj.getChildren(), b); - } - }; - }, - defaults : { - object : false, - id_prefix : false, - async : false - }, - _fn : { - model_done : function (data, callback) { - var ret = [], - s = this._get_settings(), - _this = this; - - if(!$.isArray(data)) { data = [data]; } - $.each(data, function (i, nd) { - var r = nd.getProps() || {}; - r.attr = nd.getAttr() || {}; - if(nd.getChildrenCount()) { r.state = "closed"; } - r.data = nd.getName(); - if(!$.isArray(r.data)) { r.data = [r.data]; } - if(_this.data.types && $.isFunction(nd.getType)) { - r.attr[s.types.type_attr] = nd.getType(); - } - if(r.attr.id && s.model.id_prefix) { r.attr.id = s.model.id_prefix + r.attr.id; } - if(!r.metadata) { r.metadata = { }; } - r.metadata.jstree_model = nd; - ret.push(r); - }); - callback.call(null, ret); - } - } - }); -})(jQuery); -//*/ - -})(); diff --git a/themes/blueprint/js/jsTree/themes/apple/bg.jpg b/themes/blueprint/js/jsTree/themes/apple/bg.jpg deleted file mode 100644 index 3aad05d8fadd75f8d9e02866f695b486f0b46343..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/apple/bg.jpg and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/apple/d.png b/themes/blueprint/js/jsTree/themes/apple/d.png deleted file mode 100644 index 2463ba6df91e1668434abdd623bbca914a4fcbe6..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/apple/d.png and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/apple/dot_for_ie.gif b/themes/blueprint/js/jsTree/themes/apple/dot_for_ie.gif deleted file mode 100644 index c0cc5fda7cfb9539720de442a3caca9c9a3fc4cb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/apple/dot_for_ie.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/apple/style.css b/themes/blueprint/js/jsTree/themes/apple/style.css deleted file mode 100644 index d0c4163cef03d32f83e09831203faa805ab23151..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/themes/apple/style.css +++ /dev/null @@ -1,61 +0,0 @@ -/* - * jsTree apple theme 1.0 - * Supported features: dots/no-dots, icons/no-icons, focused, loading - * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search - */ - -.jstree-apple > ul { background:url("bg.jpg") left top repeat; } -.jstree-apple li, -.jstree-apple ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } -.jstree-apple li { background-position:-90px 0; background-repeat:repeat-y; } -.jstree-apple li.jstree-last { background:transparent; } -.jstree-apple .jstree-open > ins { background-position:-72px 0; } -.jstree-apple .jstree-closed > ins { background-position:-54px 0; } -.jstree-apple .jstree-leaf > ins { background-position:-36px 0; } - -.jstree-apple a { border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; text-shadow:1px 1px 1px white; } -.jstree-apple .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 3px 0 1px; text-shadow:1px 1px 1px silver; } -.jstree-apple .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 3px 0 1px; } -.jstree-apple a .jstree-icon { background-position:-56px -20px; } -.jstree-apple a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; } - -.jstree-apple.jstree-focused { background:white; } - -.jstree-apple .jstree-no-dots li, -.jstree-apple .jstree-no-dots .jstree-leaf > ins { background:transparent; } -.jstree-apple .jstree-no-dots .jstree-open > ins { background-position:-18px 0; } -.jstree-apple .jstree-no-dots .jstree-closed > ins { background-position:0 0; } - -.jstree-apple .jstree-no-icons a .jstree-icon { display:none; } - -.jstree-apple .jstree-search { font-style:italic; } - -.jstree-apple .jstree-no-icons .jstree-checkbox { display:inline-block; } -.jstree-apple .jstree-no-checkboxes .jstree-checkbox { display:none !important; } -.jstree-apple .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; } -.jstree-apple .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; } -.jstree-apple .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; } -.jstree-apple .jstree-checked > a > .checkbox:hover { background-position:-38px -37px; } -.jstree-apple .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; } -.jstree-apple .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; } - -#vakata-dragged.jstree-apple ins { background:transparent !important; } -#vakata-dragged.jstree-apple .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; } -#vakata-dragged.jstree-apple .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; } -#jstree-marker.jstree-apple { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; } - -.jstree-apple a.jstree-search { color:aqua; } -.jstree-apple .jstree-locked a { color:silver; cursor:default; } - -#vakata-contextmenu.jstree-apple-context, -#vakata-contextmenu.jstree-apple-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; } -#vakata-contextmenu.jstree-apple-context li { } -#vakata-contextmenu.jstree-apple-context a { color:black; } -#vakata-contextmenu.jstree-apple-context a:hover, -#vakata-contextmenu.jstree-apple-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } -#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a, -#vakata-contextmenu.jstree-apple-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; } -#vakata-contextmenu.jstree-apple-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; } -#vakata-contextmenu.jstree-apple-context li ul { margin-left:-4px; } - -/* TODO: IE6 support - the `>` selectors */ \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/themes/apple/throbber.gif b/themes/blueprint/js/jsTree/themes/apple/throbber.gif deleted file mode 100644 index 5b33f7e54f4e55b6b8774d86d96895db9af044b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/apple/throbber.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/classic/d.gif b/themes/blueprint/js/jsTree/themes/classic/d.gif deleted file mode 100644 index 6eb0004ce3544f9973ddbd5a2c450fc0e1a354b1..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/classic/d.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/classic/d.png b/themes/blueprint/js/jsTree/themes/classic/d.png deleted file mode 100644 index 275daeca2d6ae2ba9cf59bd23a194d13a35a825d..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/classic/d.png and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/classic/dot_for_ie.gif b/themes/blueprint/js/jsTree/themes/classic/dot_for_ie.gif deleted file mode 100644 index c0cc5fda7cfb9539720de442a3caca9c9a3fc4cb..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/classic/dot_for_ie.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/classic/style.css b/themes/blueprint/js/jsTree/themes/classic/style.css deleted file mode 100644 index 0351b4cef5df2714a30a28cc7c101771e1819826..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/themes/classic/style.css +++ /dev/null @@ -1,77 +0,0 @@ -/* - * jsTree classic theme 1.0 - * Supported features: dots/no-dots, icons/no-icons, focused, loading - * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search - */ - -.jstree-classic li, -.jstree-classic ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } -.jstree-classic li { background-position:-90px 0; background-repeat:repeat-y; } -.jstree-classic li.jstree-last { background:transparent; } -.jstree-classic .jstree-open > ins { background-position:-72px 0; } -.jstree-classic .jstree-closed > ins { background-position:-54px 0; } -.jstree-classic .jstree-leaf > ins { background-position:-36px 0; } - -.jstree-classic .jstree-hovered { background:#e7f4f9; border:1px solid #e7f4f9; padding:0 2px 0 1px; } -.jstree-classic .jstree-clicked { background:navy; border:1px solid navy; padding:0 2px 0 1px; color:white; } -.jstree-classic a .jstree-icon { background-position:-56px -19px; } -.jstree-classic .jstree-open > a .jstree-icon { background-position:-56px -36px; } -.jstree-classic a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; } - -.jstree-classic.jstree-focused { background:white; } - -.jstree-classic .jstree-no-dots li, -.jstree-classic .jstree-no-dots .jstree-leaf > ins { background:transparent; } -.jstree-classic .jstree-no-dots .jstree-open > ins { background-position:-18px 0; } -.jstree-classic .jstree-no-dots .jstree-closed > ins { background-position:0 0; } - -.jstree-classic .jstree-no-icons a .jstree-icon { display:none; } - -.jstree-classic .jstree-search { font-style:italic; } - -.jstree-classic .jstree-no-icons .jstree-checkbox { display:inline-block; } -.jstree-classic .jstree-no-checkboxes .jstree-checkbox { display:none !important; } -.jstree-classic .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; } -.jstree-classic .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; } -.jstree-classic .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; } -.jstree-classic .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; } -.jstree-classic .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; } -.jstree-classic .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; } - -#vakata-dragged.jstree-classic ins { background:transparent !important; } -#vakata-dragged.jstree-classic .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; } -#vakata-dragged.jstree-classic .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; } -#jstree-marker.jstree-classic { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; } - -.jstree-classic a.jstree-search { color:aqua; } -.jstree-classic .jstree-locked a { color:silver; cursor:default; } - -#vakata-contextmenu.jstree-classic-context, -#vakata-contextmenu.jstree-classic-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; } -#vakata-contextmenu.jstree-classic-context li { } -#vakata-contextmenu.jstree-classic-context a { color:black; } -#vakata-contextmenu.jstree-classic-context a:hover, -#vakata-contextmenu.jstree-classic-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } -#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a, -#vakata-contextmenu.jstree-classic-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; } -#vakata-contextmenu.jstree-classic-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; } -#vakata-contextmenu.jstree-classic-context li ul { margin-left:-4px; } - -/* IE6 BEGIN */ -.jstree-classic li, -.jstree-classic ins, -#vakata-dragged.jstree-classic .jstree-invalid, -#vakata-dragged.jstree-classic .jstree-ok, -#jstree-marker.jstree-classic { _background-image:url("d.gif"); } -.jstree-classic .jstree-open ins { _background-position:-72px 0; } -.jstree-classic .jstree-closed ins { _background-position:-54px 0; } -.jstree-classic .jstree-leaf ins { _background-position:-36px 0; } -.jstree-classic .jstree-open a ins.jstree-icon { _background-position:-56px -36px; } -.jstree-classic .jstree-closed a ins.jstree-icon { _background-position:-56px -19px; } -.jstree-classic .jstree-leaf a ins.jstree-icon { _background-position:-56px -19px; } -#vakata-contextmenu.jstree-classic-context ins { _display:none; } -#vakata-contextmenu.jstree-classic-context li { _zoom:1; } -.jstree-classic .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; } -.jstree-classic .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; } -.jstree-classic .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; } -/* IE6 END */ \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/themes/classic/throbber.gif b/themes/blueprint/js/jsTree/themes/classic/throbber.gif deleted file mode 100644 index 5b33f7e54f4e55b6b8774d86d96895db9af044b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/classic/throbber.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default-rtl/d.gif b/themes/blueprint/js/jsTree/themes/default-rtl/d.gif deleted file mode 100644 index d85aba049b5c45649fcbb889a3765c39f3a3678a..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default-rtl/d.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default-rtl/d.png b/themes/blueprint/js/jsTree/themes/default-rtl/d.png deleted file mode 100644 index 5179cf64e4adc0a09bf0d0e321cf5665d722f5a3..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default-rtl/d.png and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default-rtl/dots.gif b/themes/blueprint/js/jsTree/themes/default-rtl/dots.gif deleted file mode 100644 index 00433648c0769d3b473e6c972e6314f16e5a29f6..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default-rtl/dots.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default-rtl/style.css b/themes/blueprint/js/jsTree/themes/default-rtl/style.css deleted file mode 100644 index 1343cf343e06db0c9f89e2ece0f986b0a0698843..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/themes/default-rtl/style.css +++ /dev/null @@ -1,84 +0,0 @@ -/* - * jsTree default-rtl theme 1.0 - * Supported features: dots/no-dots, icons/no-icons, focused, loading - * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search - */ - -.jstree-default-rtl li, -.jstree-default-rtl ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } -.jstree-default-rtl li { background-position:-90px 0; background-repeat:repeat-y; } -.jstree-default-rtl li.jstree-last { background:transparent; } -.jstree-default-rtl .jstree-open > ins { background-position:-72px 0; } -.jstree-default-rtl .jstree-closed > ins { background-position:-54px 0; } -.jstree-default-rtl .jstree-leaf > ins { background-position:-36px 0; } - -.jstree-default-rtl .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; } -.jstree-default-rtl .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; } -.jstree-default-rtl a .jstree-icon { background-position:-56px -19px; } -.jstree-default-rtl a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; } - -.jstree-default-rtl.jstree-focused { background:#ffffee; } - -.jstree-default-rtl .jstree-no-dots li, -.jstree-default-rtl .jstree-no-dots .jstree-leaf > ins { background:transparent; } -.jstree-default-rtl .jstree-no-dots .jstree-open > ins { background-position:-18px 0; } -.jstree-default-rtl .jstree-no-dots .jstree-closed > ins { background-position:0 0; } - -.jstree-default-rtl .jstree-no-icons a .jstree-icon { display:none; } - -.jstree-default-rtl .jstree-search { font-style:italic; } - -.jstree-default-rtl .jstree-no-icons .jstree-checkbox { display:inline-block; } -.jstree-default-rtl .jstree-no-checkboxes .jstree-checkbox { display:none !important; } -.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; } -.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; } -.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; } -.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; } -.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; } -.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; } - -#vakata-dragged.jstree-default-rtl ins { background:transparent !important; } -#vakata-dragged.jstree-default-rtl .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; } -#vakata-dragged.jstree-default-rtl .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; } -#jstree-marker.jstree-default-rtl { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; } - -.jstree-default-rtl a.jstree-search { color:aqua; } -.jstree-default-rtl .jstree-locked a { color:silver; cursor:default; } - -#vakata-contextmenu.jstree-default-rtl-context, -#vakata-contextmenu.jstree-default-rtl-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; } -#vakata-contextmenu.jstree-default-rtl-context li { } -#vakata-contextmenu.jstree-default-rtl-context a { color:black; } -#vakata-contextmenu.jstree-default-rtl-context a:hover, -#vakata-contextmenu.jstree-default-rtl-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } -#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a, -#vakata-contextmenu.jstree-default-rtl-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; } -#vakata-contextmenu.jstree-default-rtl-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; } -#vakata-contextmenu.jstree-default-rtl-context li ul { margin-left:-4px; } - -/* IE6 BEGIN */ -.jstree-default-rtl li, -.jstree-default-rtl ins, -#vakata-dragged.jstree-default-rtl .jstree-invalid, -#vakata-dragged.jstree-default-rtl .jstree-ok, -#jstree-marker.jstree-default-rtl { _background-image:url("d.gif"); } -.jstree-default-rtl .jstree-open ins { _background-position:-72px 0; } -.jstree-default-rtl .jstree-closed ins { _background-position:-54px 0; } -.jstree-default-rtl .jstree-leaf ins { _background-position:-36px 0; } -.jstree-default-rtl a ins.jstree-icon { _background-position:-56px -19px; } -#vakata-contextmenu.jstree-default-rtl-context ins { _display:none; } -#vakata-contextmenu.jstree-default-rtl-context li { _zoom:1; } -.jstree-default-rtl .jstree-undetermined a .jstree-checkbox { _background-position:-18px -19px; } -.jstree-default-rtl .jstree-checked a .jstree-checkbox { _background-position:-36px -19px; } -.jstree-default-rtl .jstree-unchecked a .jstree-checkbox { _background-position:0px -19px; } -/* IE6 END */ - -/* RTL part */ -.jstree-default-rtl .jstree-hovered, .jstree-default-rtl .jstree-clicked { padding:0 1px 0 2px; } -.jstree-default-rtl li { background-image:url("dots.gif"); background-position: 100% 0px; } -.jstree-default-rtl .jstree-checked > a > .jstree-checkbox { background-position:-36px -19px; margin-left:2px; } -.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox { background-position:0px -19px; margin-left:2px; } -.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox { background-position:-18px -19px; margin-left:2px; } -.jstree-default-rtl .jstree-checked > a > .jstree-checkbox:hover { background-position:-36px -37px; } -.jstree-default-rtl .jstree-unchecked > a > .jstree-checkbox:hover { background-position:0px -37px; } -.jstree-default-rtl .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-18px -37px; } \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/themes/default-rtl/throbber.gif b/themes/blueprint/js/jsTree/themes/default-rtl/throbber.gif deleted file mode 100644 index 5b33f7e54f4e55b6b8774d86d96895db9af044b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default-rtl/throbber.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default/d.gif b/themes/blueprint/js/jsTree/themes/default/d.gif deleted file mode 100644 index 0e958d38716d93d4050a993398dec77490f836c7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default/d.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default/d.png b/themes/blueprint/js/jsTree/themes/default/d.png deleted file mode 100644 index 8540175a04b0cd303e3966d1727f30ee9b8a7254..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default/d.png and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/default/style.css b/themes/blueprint/js/jsTree/themes/default/style.css deleted file mode 100644 index 7ef6a04308050b5ed3fc10b3c102a71f716f1084..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/themes/default/style.css +++ /dev/null @@ -1,74 +0,0 @@ -/* - * jsTree default theme 1.0 - * Supported features: dots/no-dots, icons/no-icons, focused, loading - * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search - */ - -.jstree-default li, -.jstree-default ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } -.jstree-default li { background-position:-90px 0; background-repeat:repeat-y; } -.jstree-default li.jstree-last { background:transparent; } -.jstree-default .jstree-open > ins { background-position:-72px 0; } -.jstree-default .jstree-closed > ins { background-position:-54px 0; } -.jstree-default .jstree-leaf > ins { background-position:-36px 0; } - -.jstree-default .jstree-hovered { background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px; } -.jstree-default .jstree-clicked { background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px; } -.jstree-default a .jstree-icon { background-position:-56px -19px; } -.jstree-default a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; } - -.jstree-default.jstree-focused { background:#ffffee; } - -.jstree-default .jstree-no-dots li, -.jstree-default .jstree-no-dots .jstree-leaf > ins { background:transparent; } -.jstree-default .jstree-no-dots .jstree-open > ins { background-position:-18px 0; } -.jstree-default .jstree-no-dots .jstree-closed > ins { background-position:0 0; } - -.jstree-default .jstree-no-icons a .jstree-icon { display:none; } - -.jstree-default .jstree-search { font-style:italic; } - -.jstree-default .jstree-no-icons .jstree-checkbox { display:inline-block; } -.jstree-default .jstree-no-checkboxes .jstree-checkbox { display:none !important; } -.jstree-default .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; } -.jstree-default .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; } -.jstree-default .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; } -.jstree-default .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; } -.jstree-default .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; } -.jstree-default .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; } - -#vakata-dragged.jstree-default ins { background:transparent !important; } -#vakata-dragged.jstree-default .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; } -#vakata-dragged.jstree-default .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; } -#jstree-marker.jstree-default { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; } - -.jstree-default a.jstree-search { color:aqua; } -.jstree-default .jstree-locked a { color:silver; cursor:default; } - -#vakata-contextmenu.jstree-default-context, -#vakata-contextmenu.jstree-default-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; } -#vakata-contextmenu.jstree-default-context li { } -#vakata-contextmenu.jstree-default-context a { color:black; } -#vakata-contextmenu.jstree-default-context a:hover, -#vakata-contextmenu.jstree-default-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:black; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } -#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a, -#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; } -#vakata-contextmenu.jstree-default-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; } -#vakata-contextmenu.jstree-default-context li ul { margin-left:-4px; } - -/* IE6 BEGIN */ -.jstree-default li, -.jstree-default ins, -#vakata-dragged.jstree-default .jstree-invalid, -#vakata-dragged.jstree-default .jstree-ok, -#jstree-marker.jstree-default { _background-image:url("d.gif"); } -.jstree-default .jstree-open ins { _background-position:-72px 0; } -.jstree-default .jstree-closed ins { _background-position:-54px 0; } -.jstree-default .jstree-leaf ins { _background-position:-36px 0; } -.jstree-default a ins.jstree-icon { _background-position:-56px -19px; } -#vakata-contextmenu.jstree-default-context ins { _display:none; } -#vakata-contextmenu.jstree-default-context li { _zoom:1; } -.jstree-default .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; } -.jstree-default .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; } -.jstree-default .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; } -/* IE6 END */ \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/themes/default/throbber.gif b/themes/blueprint/js/jsTree/themes/default/throbber.gif deleted file mode 100644 index 5b33f7e54f4e55b6b8774d86d96895db9af044b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/default/throbber.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/vufind/d.gif b/themes/blueprint/js/jsTree/themes/vufind/d.gif deleted file mode 100644 index 0e958d38716d93d4050a993398dec77490f836c7..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/vufind/d.gif and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/vufind/d.png b/themes/blueprint/js/jsTree/themes/vufind/d.png deleted file mode 100644 index e59444b954a4e8a9d6d5cf0ad76e552256a0dee4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/vufind/d.png and /dev/null differ diff --git a/themes/blueprint/js/jsTree/themes/vufind/style.css b/themes/blueprint/js/jsTree/themes/vufind/style.css deleted file mode 100644 index 3bb655495054fd4b30d37a0f332630dc75937752..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/jsTree/themes/vufind/style.css +++ /dev/null @@ -1,79 +0,0 @@ -/* - * jsTree vufind theme 1.0 - * Supported features: dots/no-dots, icons/no-icons, focused, loading - * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search - */ - -/*to make long titles wrap*/ -.jstree a { white-space:normal !important; height: auto; padding:1px 2px; } -.jstree li > ins { vertical-align:top; } - -.jstree-default li, -.jstree-default ins { background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } -.jstree-default li { background-position:-90px 0; background-repeat:repeat-y; } -.jstree-default li.jstree-last { background:transparent; } -.jstree-default .jstree-open > ins { background-position:-72px 0; } -.jstree-default .jstree-closed > ins { background-position:-54px 0; } -.jstree-default .jstree-leaf > ins { background-position:-36px 0; } - -.jstree-default .jstree-hovered { background:#C7E1B7; border:1px solid #90DAA9; padding:0 2px 0 1px; } -.jstree-default .jstree-clicked { background:#B1E195; border:1px solid #90DAA9; padding:0 2px 0 1px; } -.jstree-default a .jstree-icon { background-position:-56px -19px; } -.jstree-default a.jstree-loading .jstree-icon { background:url("throbber.gif") center center no-repeat !important; } - -.jstree-default.jstree-focused { background:#FFF; } - -.jstree-default .jstree-no-dots li, -.jstree-default .jstree-no-dots .jstree-leaf > ins { background:transparent; } -.jstree-default .jstree-no-dots .jstree-open > ins { background-position:-18px 0; } -.jstree-default .jstree-no-dots .jstree-closed > ins { background-position:0 0; } - -.jstree-default .jstree-no-icons a .jstree-icon { display:none; } - -.jstree-default .jstree-search { font-style:italic; } - -.jstree-default .jstree-no-icons .jstree-checkbox { display:inline-block; } -.jstree-default .jstree-no-checkboxes .jstree-checkbox { display:none !important; } -.jstree-default .jstree-checked > a > .jstree-checkbox { background-position:-38px -19px; } -.jstree-default .jstree-unchecked > a > .jstree-checkbox { background-position:-2px -19px; } -.jstree-default .jstree-undetermined > a > .jstree-checkbox { background-position:-20px -19px; } -.jstree-default .jstree-checked > a > .jstree-checkbox:hover { background-position:-38px -37px; } -.jstree-default .jstree-unchecked > a > .jstree-checkbox:hover { background-position:-2px -37px; } -.jstree-default .jstree-undetermined > a > .jstree-checkbox:hover { background-position:-20px -37px; } - -#vakata-dragged.jstree-default ins { background:transparent !important; } -#vakata-dragged.jstree-default .jstree-ok { background:url("d.png") -2px -53px no-repeat !important; } -#vakata-dragged.jstree-default .jstree-invalid { background:url("d.png") -18px -53px no-repeat !important; } -#jstree-marker.jstree-default { background:url("d.png") -41px -57px no-repeat !important; text-indent:-100px; } - -.jstree-default a.jstree-search { color:#9B4F42; } -.jstree-default .jstree-locked a { color:silver; cursor:default; } - -#vakata-contextmenu.jstree-default-context, -#vakata-contextmenu.jstree-default-context li ul { background:#f0f0f0; border:1px solid #979797; -moz-box-shadow: 1px 1px 2px #999; -webkit-box-shadow: 1px 1px 2px #999; box-shadow: 1px 1px 2px #999; } -#vakata-contextmenu.jstree-default-context li { } -#vakata-contextmenu.jstree-default-context a { color:#222222; } -#vakata-contextmenu.jstree-default-context a:hover, -#vakata-contextmenu.jstree-default-context .vakata-hover > a { padding:0 5px; background:#e8eff7; border:1px solid #aecff7; color:#222222; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } -#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a, -#vakata-contextmenu.jstree-default-context li.jstree-contextmenu-disabled a:hover { color:silver; background:transparent; border:0; padding:1px 4px; } -#vakata-contextmenu.jstree-default-context li.vakata-separator { background:white; border-top:1px solid #e0e0e0; margin:0; } -#vakata-contextmenu.jstree-default-context li ul { margin-left:-4px; } - - -/* IE6 BEGIN */ -.jstree-default li, -.jstree-default ins, -#vakata-dragged.jstree-default .jstree-invalid, -#vakata-dragged.jstree-default .jstree-ok, -#jstree-marker.jstree-default { _background-image:url("d.gif"); } -.jstree-default .jstree-open ins { _background-position:-72px 0; } -.jstree-default .jstree-closed ins { _background-position:-54px 0; } -.jstree-default .jstree-leaf ins { _background-position:-36px 0; } -.jstree-default a ins.jstree-icon { _background-position:-56px -19px; } -#vakata-contextmenu.jstree-default-context ins { _display:none; } -#vakata-contextmenu.jstree-default-context li { _zoom:1; } -.jstree-default .jstree-undetermined a .jstree-checkbox { _background-position:-20px -19px; } -.jstree-default .jstree-checked a .jstree-checkbox { _background-position:-38px -19px; } -.jstree-default .jstree-unchecked a .jstree-checkbox { _background-position:-2px -19px; } -/* IE6 END */ \ No newline at end of file diff --git a/themes/blueprint/js/jsTree/themes/vufind/throbber.gif b/themes/blueprint/js/jsTree/themes/vufind/throbber.gif deleted file mode 100644 index 5b33f7e54f4e55b6b8774d86d96895db9af044b4..0000000000000000000000000000000000000000 Binary files a/themes/blueprint/js/jsTree/themes/vufind/throbber.gif and /dev/null differ diff --git a/themes/blueprint/js/keep_alive.js b/themes/blueprint/js/keep_alive.js deleted file mode 100644 index 5556008d6762ef7d2ebe940bba359c7196057d1d..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/keep_alive.js +++ /dev/null @@ -1,7 +0,0 @@ -/*global path, keepAliveInterval */ - -$(document).ready(function() { - window.setInterval(function() { - $.getJSON(path + '/AJAX/JSON', {method: 'keepAlive'}); - }, keepAliveInterval * 1000); -}); diff --git a/themes/blueprint/js/libphonenumber.js b/themes/blueprint/js/libphonenumber.js deleted file mode 100644 index 03a224cf371223c592b4c6d5281e6d7908a6ab80..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/libphonenumber.js +++ /dev/null @@ -1,486 +0,0 @@ -(function(){var l,n=this; -function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"== -b&&"undefined"==typeof a.call)return"object";return b}function p(a,b){function c(){}c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ia=function(a,c,e){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};var ea=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function q(a,b){return a<b?-1:a>b?1:0};function fa(a,b){a.sort(b||ga)}function ga(a,b){return a>b?1:a<b?-1:0};var s;a:{var ha=n.navigator;if(ha){var ia=ha.userAgent;if(ia){s=ia;break a}}s=""};function ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};var ka=-1!=s.indexOf("Opera")||-1!=s.indexOf("OPR"),t=-1!=s.indexOf("Trident")||-1!=s.indexOf("MSIE"),u=-1!=s.indexOf("Gecko")&&-1==s.toLowerCase().indexOf("webkit")&&!(-1!=s.indexOf("Trident")||-1!=s.indexOf("MSIE")),la=-1!=s.toLowerCase().indexOf("webkit");function ma(){var a=n.document;return a?a.documentMode:void 0} -var na=function(){var a="",b;if(ka&&n.opera)return a=n.opera.version,"function"==da(a)?a():a;u?b=/rv\:([^\);]+)(\)|;)/:t?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:la&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(s))?a[1]:"");return t&&(b=ma(),b>parseFloat(a))?String(b):a}(),oa={}; -function pa(a){if(!oa[a]){for(var b=0,c=ea(String(na)).split("."),d=ea(String(a)).split("."),f=Math.max(c.length,d.length),e=0;0==b&&e<f;e++){var g=c[e]||"",h=d[e]||"",k=RegExp("(\\d*)(\\D*)","g"),m=RegExp("(\\d*)(\\D*)","g");do{var r=k.exec(g)||["","",""],C=m.exec(h)||["","",""];if(0==r[0].length&&0==C[0].length)break;b=q(0==r[1].length?0:parseInt(r[1],10),0==C[1].length?0:parseInt(C[1],10))||q(0==r[2].length,0==C[2].length)||q(r[2],C[2])}while(0==b)}oa[a]=0<=b}} -var qa=n.document,ra=qa&&t?ma()||("CSS1Compat"==qa.compatMode?parseInt(na,10):5):void 0;var v;if(!(v=!u&&!t)){var w;if(w=t)w=t&&9<=ra;v=w}v||u&&pa("1.9.1");t&&pa("9");function sa(a,b,c){this.d=b;this.s=c.name;this.o=!!c.p;this.g=c.a;this.t=c.type;this.q=!1;switch(this.g){case ta:case ua:case va:case wa:case xa:case ya:case za:this.q=!0}this.j=c.defaultValue}var za=1,ya=2,ta=3,ua=4,va=6,wa=16,xa=18;sa.prototype.getName=function(){return this.s};function Aa(a,b,c){this.w=a;this.s=b.name||null;this.f={};for(a=0;a<c.length;a++)b=c[a],this.f[b.d]=b}Aa.prototype.getName=function(){return this.s};function Ba(a){a=ja(a.f);fa(a,function(a,c){return a.d-c.d});return a};function x(){this.b={};this.f=this.i().f;this.c=this.r=null}l=x.prototype;l.i=function(){var a=this.constructor,b;if(!(b=a.u)){var c;b=a.aa;var d=[],f=b[0];for(c in b)0!=c&&d.push(new sa(0,c,b[c]));c=new Aa(a,f,d);b=a.u=c}return b};l.has=function(a){return null!=this.b[a.d]};l.get=function(a,b){return y(this,a.d,b)};l.set=function(a,b){z(this,a.d,b)};l.add=function(a,b){Ca(this,a.d,b)};l.clear=function(a){Da(this,a.d)}; -function Ia(a,b){for(var c=Ba(a.i()),d=0;d<c.length;d++){var f=c[d],e=f.d;if(null!=b.b[e]){a.c&&delete a.c[f.d];var g=11==f.g||10==f.g;if(f.o)for(var f=A(b,e)||[],h=0;h<f.length;h++)Ca(a,e,g?f[h].clone():f[h]);else f=A(b,e),g?(g=A(a,e))?Ia(g,f):z(a,e,f.clone()):z(a,e,f)}}}l.clone=function(){var a=new this.constructor;a!=this&&(a.b={},a.c&&(a.c={}),Ia(a,this));return a}; -function A(a,b){var c=a.b[b];if(null==c)return null;if(a.r){if(!(b in a.c)){var d=a.r,f=a.f[b];if(null!=c)if(f.o){for(var e=[],g=0;g<c.length;g++)e[g]=d.n(f,c[g]);c=e}else c=d.n(f,c);return a.c[b]=c}return a.c[b]}return c}function y(a,b,c){var d=A(a,b);return a.f[b].o?d[c||0]:d}function B(a,b){var c;if(null!=a.b[b])c=y(a,b,void 0);else a:{c=a.f[b];if(void 0===c.j){var d=c.t;if(d===Boolean)c.j=!1;else if(d===Number)c.j=0;else if(d===String)c.j=c.q?"0":"";else{c=new d;break a}}c=c.j}return c} -function z(a,b,c){a.b[b]=c;a.c&&(a.c[b]=c)}function Ca(a,b,c){a.b[b]||(a.b[b]=[]);a.b[b].push(c);a.c&&delete a.c[b]}function Da(a,b){delete a.b[b];a.c&&delete a.c[b]}function D(a,b){a.aa=b;a.i=function(){return a.u||(new a).i()}};function E(){}E.prototype.k=function(a){new a.w;throw Error("Unimplemented");};E.prototype.n=function(a,b){if(11==a.g||10==a.g)return b instanceof x?b:this.k(a.t.i(),b);if(14==a.g||!a.q)return b;var c=a.t;if(c===String){if("number"==typeof b)return String(b)}else if(c===Number&&"string"==typeof b&&("Infinity"===b||"-Infinity"===b||"NaN"===b||/^-?[0-9]+$/.test(b)))return Number(b);return b};function F(a,b){null!=a&&this.append.apply(this,arguments)}l=F.prototype;l.e="";l.set=function(a){this.e=""+a};l.append=function(a,b,c){this.e+=a;if(null!=b)for(var d=1;d<arguments.length;d++)this.e+=arguments[d];return this};l.clear=function(){this.e=""};l.toString=function(){return this.e};/* - - Protocol Buffer 2 Copyright 2008 Google Inc. - All other code copyright its respective owners. - Copyright (C) 2010 The Libphonenumber Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -function G(){x.apply(this)}p(G,x);function H(){x.apply(this)}p(H,x);function I(){x.apply(this)}p(I,x);I.prototype.h=function(){return B(this,10)};I.prototype.l=function(a){z(this,10,a)};function J(){x.apply(this)}p(J,x);J.prototype.getMetadata=function(a){return y(this,1,a)}; -D(G,{0:{name:"NumberFormat",m:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,a:9,type:String},2:{name:"format",required:!0,a:9,type:String},3:{name:"leading_digits_pattern",p:!0,a:9,type:String},4:{name:"national_prefix_formatting_rule",a:9,type:String},6:{name:"national_prefix_optional_when_formatting",a:8,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",a:9,type:String}}); -D(H,{0:{name:"PhoneNumberDesc",m:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",a:9,type:String},3:{name:"possible_number_pattern",a:9,type:String},6:{name:"example_number",a:9,type:String}}); -D(I,{0:{name:"PhoneMetadata",m:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",required:!0,a:11,type:H},2:{name:"fixed_line",required:!0,a:11,type:H},3:{name:"mobile",required:!0,a:11,type:H},4:{name:"toll_free",required:!0,a:11,type:H},5:{name:"premium_rate",required:!0,a:11,type:H},6:{name:"shared_cost",required:!0,a:11,type:H},7:{name:"personal_number",required:!0,a:11,type:H},8:{name:"voip",required:!0,a:11,type:H},21:{name:"pager",required:!0,a:11,type:H},25:{name:"uan",required:!0, -a:11,type:H},27:{name:"emergency",required:!0,a:11,type:H},28:{name:"voicemail",required:!0,a:11,type:H},24:{name:"no_international_dialling",required:!0,a:11,type:H},9:{name:"id",required:!0,a:9,type:String},10:{name:"country_code",required:!0,a:5,type:Number},11:{name:"international_prefix",required:!0,a:9,type:String},17:{name:"preferred_international_prefix",a:9,type:String},12:{name:"national_prefix",a:9,type:String},13:{name:"preferred_extn_prefix",a:9,type:String},15:{name:"national_prefix_for_parsing", -a:9,type:String},16:{name:"national_prefix_transform_rule",a:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",a:8,defaultValue:!1,type:Boolean},19:{name:"number_format",p:!0,a:11,type:G},20:{name:"intl_number_format",p:!0,a:11,type:G},22:{name:"main_country_for_code",a:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",a:9,type:String},26:{name:"leading_zero_possible",a:8,defaultValue:!1,type:Boolean}}); -D(J,{0:{name:"PhoneMetadataCollection",m:"i18n.phonenumbers.PhoneMetadataCollection"},1:{name:"metadata",p:!0,a:11,type:I}});/* - - Protocol Buffer 2 Copyright 2008 Google Inc. - All other code copyright its respective owners. - Copyright (C) 2010 The Libphonenumber Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -function K(){x.apply(this)}p(K,x);K.prototype.h=function(){return B(this,1)};K.prototype.l=function(a){z(this,1,a)};K.prototype.getExtension=function(){return y(this,3)}; -D(K,{0:{name:"PhoneNumber",m:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,a:5,type:Number},2:{name:"national_number",required:!0,a:4,type:Number},3:{name:"extension",a:9,type:String},4:{name:"italian_leading_zero",a:8,type:Boolean},8:{name:"number_of_leading_zeros",a:5,defaultValue:1,type:Number},5:{name:"raw_input",a:9,type:String},6:{name:"country_code_source",a:14,defaultValue:1,type:{ha:1,ga:5,fa:10,ea:20}},7:{name:"preferred_domestic_carrier_code",a:9,type:String}});function L(){}p(L,E);L.prototype.k=function(a,b){var c=new a.w;c.r=this;c.b=b;c.c={};return c};function M(){}p(M,L);M.prototype.da=!1;M.prototype.n=function(a,b){return 8==a.g?!!b:E.prototype.n.apply(this,arguments)};M.prototype.k=function(a,b){var c=b;if(this.da){var c=[],d;for(d in b)c[parseInt(d,10)+1]=b[d]}return M.ca.k.call(this,a,c)};/* - - Copyright (C) 2010 The Libphonenumber Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -var N={1:"US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"], -86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"], -253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],379:["VA"],380:["UA"],381:["RS"],382:["ME"],385:["HR"], -386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"], -691:["FM"],692:["MH"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},O={AC:[,[,,"[2-7]\\d{3,5}","\\d{4,6}"],[, -,"(?:[267]\\d|3[0-5]|4[4-69])\\d{2}","\\d{4}",,,"6889"],[,,"5\\d{5}","\\d{6}",,,"501234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AC",247,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AD:[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"],[,,"[78]\\d{5}","\\d{6}",,,"712345"],[,,"[346]\\d{5}","\\d{6}",,,"312345"],[,,"180[02]\\d{4}","\\d{8}",,,"18001234"],[,,"9\\d{5}","\\d{6}",,,"912345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AD",376,"00",,,,,,, -,[[,"(\\d{3})(\\d{3})","$1 $2",["[346-9]"],"","",0],[,"(180[02])(\\d{4})","$1 $2",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AE:[,[,,"[2-79]\\d{7,8}|800\\d{2,9}","\\d{5,12}"],[,,"[2-4679][2-8]\\d{6}","\\d{7,8}",,,"22345678"],[,,"5[0256]\\d{7}","\\d{9}",,,"501234567"],[,,"400\\d{6}|800\\d{2,9}","\\d{5,12}",,,"800123456"],[,,"900[02]\\d{5}","\\d{9}",,,"900234567"],[,,"700[05]\\d{5}","\\d{9}",,,"700012345"],[,,"NA","NA"],[,,"NA","NA"],"AE",971,"00","0",,,"0",,,,[[, -"([2-4679])(\\d{3})(\\d{4})","$1 $2 $3",["[2-4679][2-8]"],"0$1","",0],[,"(5[0256])(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1","",0],[,"([479]00)(\\d)(\\d{5})","$1 $2 $3",["[479]0"],"$1","",0],[,"([68]00)(\\d{2,9})","$1 $2",["60|8"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"600[25]\\d{5}","\\d{9}",,,"600212345"],,,[,,"NA","NA"]],AF:[,[,,"[2-7]\\d{8}","\\d{7,9}"],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}","\\d{7,9}",,,"234567890"],[,,"7(?:[05-9]\\d{7}|29\\d{6})","\\d{9}",,,"701234567"],[,,"NA", -"NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AF",93,"00","0",,,"0",,,,[[,"([2-7]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-6]|7[013-9]"],"0$1","",0],[,"(729)(\\d{3})(\\d{3})","$1 $2 $3",["729"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AG:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}","\\d{7}(?:\\d{3})?",,,"2684601234"],[,,"268(?:464|7(?:2[0-9]|64|7[0-689]|8[02-68]))\\d{4}","\\d{10}",,,"2684641234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}", -"\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"26848[01]\\d{4}","\\d{10}",,,"2684801234"],"AG",1,"011","1",,,"1",,,,,,[,,"26840[69]\\d{4}","\\d{10}",,,"2684061234"],,"268",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AI:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"2644(?:6[12]|9[78])\\d{4}","\\d{7}(?:\\d{3})?",,,"2644612345"],[,,"264(?:235|476|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}","\\d{10}",,, -"2642351234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"AI",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"264",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AL:[,[,,"[2-57]\\d{7}|6\\d{8}|8\\d{5,7}|9\\d{5}","\\d{5,9}"],[,,"(?:2(?:[168][1-9]|[247]\\d|9[1-7])|3(?:1[1-3]|[2-6]\\d|[79][1-8]|8[1-9])|4\\d{2}|5(?:1[1-4]|[2-578]\\d|6[1-5]|9[1-7])|8(?:[19][1-5]|[2-6]\\d|[78][1-7]))\\d{5}", -"\\d{5,8}",,,"22345678"],[,,"6[6-9]\\d{7}","\\d{9}",,,"661234567"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"900\\d{3}","\\d{6}",,,"900123"],[,,"808\\d{3}","\\d{6}",,,"808123"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"AL",355,"00","0",,,"0",,,,[[,"(4)(\\d{3})(\\d{4})","$1 $2 $3",["4[0-6]"],"0$1","",0],[,"(6[6-9])(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"],"0$1","",0],[,"(\\d{3})(\\d{3,5})","$1 $2",["[235][16-9]|8[016-9]|[79]"], -"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AM:[,[,,"[1-9]\\d{7}","\\d{5,8}"],[,,"(?:1[01]\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2|47\\d)\\d{5}","\\d{5,8}",,,"10123456"],[,,"(?:4[139]|55|77|9[1-9])\\d{6}","\\d{8}",,,"77123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[016]\\d{5}","\\d{8}",,,"90012345"],[,,"80[1-4]\\d{5}","\\d{8}",,,"80112345"],[,,"NA","NA"],[,,"60[2-6]\\d{5}","\\d{8}",,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})", -"$1 $2",["1|47"],"(0$1)","",0],[,"(\\d{2})(\\d{6})","$1 $2",["4[139]|[5-7]|9[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{5})","$1 $2",["[23]"],"(0$1)","",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8|90"],"0 $1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AO:[,[,,"[29]\\d{8}","\\d{9}"],[,,"2\\d(?:[26-9]\\d|\\d[26-9])\\d{5}","\\d{9}",,,"222123456"],[,,"9[1-49]\\d{7}","\\d{9}",,,"923123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AO",244,"00",,,,,,,, -[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AR:[,[,,"11\\d{8}|[2368]\\d{9}|9\\d{10}","\\d{6,11}"],[,,"11\\d{8}|(?:2(?:2(?:[013]\\d|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[067]\\d)|4(?:7[3-8]|9\\d)|6(?:[01346]\\d|2[24-6]|5[15-8])|80\\d|9(?:[0124789]\\d|3[1-6]|5[234]|6[2-46]))|3(?:3(?:2[79]|6\\d|8[2578])|4(?:[78]\\d|0[0124-9]|[1-35]\\d|4[24-7]|6[02-9]|9[123678])|5(?:[138]\\d|2[1245]|4[1-9]|6[2-4]|7[1-6])|6[24]\\d|7(?:[0469]\\d|1[1568]|2[013-9]|3[145]|5[14-8]|7[2-57]|8[0-24-9])|8(?:[013578]\\d|2[15-7]|4[13-6]|6[1-357-9]|9[124]))|670\\d)\\d{6}", -"\\d{6,10}",,,"1123456789"],[,,"675\\d{7}|9(?:11[2-9]\\d{7}|(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578]))[2-9]\\d{6}|\\d{4}[2-9]\\d{5})","\\d{6,11}",,,"91123456789"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"60[04579]\\d{7}","\\d{10}",,,"6001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AR",54,"00","0",,,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[124-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:1[1568]|2[15]|3[145]|4[13]|5[14-8]|[069]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?", -"9$1",,,[[,"([68]\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1","",0],[,"(\\d{2})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(\\d{4})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(9)(11)(\\d{4})(\\d{4})","$2 15-$3-$4",["911"],"0$1","",0],[,"(9)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9(?:2[234689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578]))","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9(?:[179]|4[13479]|8[014-9]))|3(?:36|4[12358]|5(?:[18]|3[014-689])|6[24]|7[069]|8(?:[01]|3[013469]|5[0-39]|7[0-2459]|8[0-49])))"], -"0$1","",0],[,"(9)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9[23]"],"0$1","",0],[,"(11)(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578])","2(?:2[013]|3[067]|49|6[01346]|80|9(?:[179]|4[13479]|8[014-9]))|3(?:36|4[12358]|5(?:[18]|3[0-689])|6[24]|7[069]|8(?:[01]|3[013469]|5[0-39]|7[0-2459]|8[0-49]))"],"0$1","",1],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["[23]"],"0$1","",1], -[,"(\\d{3})","$1",["1[012]|911"],"$1","",0]],[[,"([68]\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1","",0],[,"(9)(11)(\\d{4})(\\d{4})","$1 $2 $3-$4",["911"]],[,"(9)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9(?:2[234689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578]))","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9(?:[179]|4[13479]|8[014-9]))|3(?:36|4[12358]|5(?:[18]|3[014-689])|6[24]|7[069]|8(?:[01]|3[013469]|5[0-39]|7[0-2459]|8[0-49])))"]],[, -"(9)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3-$4",["9[23]"]],[,"(11)(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578])","2(?:2[013]|3[067]|49|6[01346]|80|9(?:[179]|4[13479]|8[014-9]))|3(?:36|4[12358]|5(?:[18]|3[0-689])|6[24]|7[069]|8(?:[01]|3[013469]|5[0-39]|7[0-2459]|8[0-49]))"],"0$1","",1],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["[23]"],"0$1","",1]],[,,"NA","NA"],,,[,,"810\\d{7}", -"\\d{10}",,,"8101234567"],[,,"810\\d{7}","\\d{10}",,,"8101234567"],,,[,,"NA","NA"]],AS:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}","\\d{7}(?:\\d{3})?",,,"6846221234"],[,,"684(?:25[2468]|7(?:3[13]|70))\\d{4}","\\d{10}",,,"6847331234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"AS",1,"011","1",,,"1",,,, -,,[,,"NA","NA"],,"684",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AT:[,[,,"[1-9]\\d{3,12}","\\d{3,13}"],[,,"1\\d{3,12}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-8]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|63|7[1368]|8[2457])|5(?:12|2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[1-35-8]|5[468]|62)|7(?:2[1-8]|3[25]|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{3,10}","\\d{3,13}",,,"1234567890"],[,,"6(?:44|5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}","\\d{7,13}", -,,"644123456"],[,,"80[02]\\d{6,10}","\\d{9,13}",,,"800123456"],[,,"(?:711|9(?:0[01]|3[019]))\\d{6,10}","\\d{9,13}",,,"900123456"],[,,"8(?:10|2[018])\\d{6,10}","\\d{9,13}",,,"810123456"],[,,"NA","NA"],[,,"780\\d{6,10}","\\d{9,13}",,,"780123456"],"AT",43,"00","0",,,"0",,,,[[,"(1)(\\d{3,12})","$1 $2",["1"],"0$1","",0],[,"(5\\d)(\\d{3,5})","$1 $2",["5[079]"],"0$1","",0],[,"(5\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["5[079]"],"0$1","",0],[,"(5\\d)(\\d{4})(\\d{4,7})","$1 $2 $3",["5[079]"],"0$1","",0],[,"(\\d{3})(\\d{3,10})", -"$1 $2",["316|46|51|732|6(?:44|5[0-3579]|[6-9])|7(?:1|[28]0)|[89]"],"0$1","",0],[,"(\\d{4})(\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-35-9]|5[468])|7(?:2[1-8]|35|4[1-8]|[5-79])"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"5(?:(?:0[1-9]|17)\\d{2,10}|[79]\\d{3,11})|720\\d{6,10}","\\d{5,13}",,,"50123"],,,[,,"NA","NA"]],AU:[,[,,"[1-578]\\d{5,9}","\\d{6,10}"],[,,"[237]\\d{8}|8(?:[68]\\d{3}|7[0-69]\\d{2}|9(?:[02-9]\\d{2}|1(?:[0-57-9]\\d|6[0135-9])))\\d{4}","\\d{8,9}",, -,"212345678"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[17-9]|9[017-9])\\d{6}","\\d{9}",,,"412345678"],[,,"180(?:0\\d{3}|2)\\d{3}","\\d{7,10}",,,"1800123456"],[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"13(?:00\\d{2})?\\d{4}","\\d{6,10}",,,"1300123456"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"AU",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,[[,"([2378])(\\d{4})(\\d{4})","$1 $2 $3", -["[2378]"],"(0$1)","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[45]|14"],"0$1","",0],[,"(16)(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1","",0],[,"(1[389]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[38]0|90)","1(?:[38]00|90)"],"$1","",0],[,"(180)(2\\d{3})","$1 $2",["180","1802"],"$1","",0],[,"(19\\d)(\\d{3})","$1 $2",["19[13]"],"$1","",0],[,"(19\\d{2})(\\d{4})","$1 $2",["19[67]"],"$1","",0],[,"(13)(\\d{2})(\\d{2})","$1 $2 $3",["13[1-9]"],"$1","",0]],,[,,"16\\d{3,7}","\\d{5,9}",,,"1612345"],1,,[,, -"1(?:3(?:\\d{4}|00\\d{6})|80(?:0\\d{6}|2\\d{3}))","\\d{6,10}",,,"1300123456"],[,,"NA","NA"],,,[,,"NA","NA"]],AW:[,[,,"[25-9]\\d{6}","\\d{7}"],[,,"5(?:2\\d|8[1-9])\\d{4}","\\d{7}",,,"5212345"],[,,"(?:5(?:6\\d|9[2-478])|6(?:[039]0|22|4[01]|6[0-2])|7[34]\\d|9(?:6[45]|9[4-8]))\\d{4}","\\d{7}",,,"5601234"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"900\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"28\\d{5}|501\\d{4}","\\d{7}",,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2", -,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AX:[,[,,"[135]\\d{5,9}|[27]\\d{4,9}|4\\d{5,10}|6\\d{7,8}|8\\d{6,9}","\\d{5,12}"],[,,"18[1-8]\\d{3,9}","\\d{6,12}",,,"1812345678"],[,,"4\\d{5,10}|50\\d{4,8}","\\d{6,11}",,,"412345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"[67]00\\d{5,6}","\\d{8,9}",,,"600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AX",358,"00|99[049]","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"[13]00\\d{3,7}|2(?:0(?:0\\d{3,7}|2[023]\\d{1,6}|9[89]\\d{1,6}))|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})", -"\\d{5,10}",,,"100123"],[,,"[13]0\\d{4,8}|2(?:0(?:[016-8]\\d{3,7}|[2-59]\\d{2,7})|9\\d{4,8})|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"10112345"],,,[,,"NA","NA"]],AZ:[,[,,"[1-9]\\d{8}","\\d{7,9}"],[,,"(?:1[28]\\d|2(?:02|1[24]|2[2-4]|33|[45]2|6[23])|365)\\d{6}","\\d{7,9}",,,"123123456"],[,,"(?:4[04]|5[015]|60|7[07])\\d{7}","\\d{9}",,,"401234567"],[,,"88\\d{7}","\\d{9}",,,"881234567"],[,,"900200\\d{3}","\\d{9}",,,"900200123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA", -"NA"],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["(?:1[28]|2(?:[45]2|[0-36])|365)"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BA:[,[,,"[3-9]\\d{7,8}","\\d{6,9}"],[,,"(?:[35]\\d|49)\\d{6}","\\d{6,8}",,,"30123456"],[,,"6(?:03|44|71|[1-356])\\d{6}","\\d{8,9}",,,"61123456"],[,,"8[08]\\d{6}", -"\\d{8}",,,"80123456"],[,,"9[0246]\\d{6}","\\d{8}",,,"90123456"],[,,"8[12]\\d{6}","\\d{8}",,,"82123456"],[,,"NA","NA"],[,,"NA","NA"],"BA",387,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6[047]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"70[23]\\d{5}","\\d{8}",,,"70223456"],,,[,,"NA","NA"]],BB:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"], -[,,"246[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2462345678"],[,,"246(?:(?:2[346]|45|82)\\d|25[0-4])\\d{4}","\\d{10}",,,"2462501234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BB",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"246",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BD:[,[,,"[2-79]\\d{5,9}|1\\d{9}|8[0-7]\\d{4,8}","\\d{6,10}"],[,,"2(?:7(?:1[0-267]|2[0-289]|3[0-29]|[46][01]|5[1-3]|7[017]|91)|8(?:0[125]|[139][1-6]|2[0157-9]|6[1-35]|7[1-5]|8[1-8])|9(?:0[0-2]|1[1-4]|2[568]|3[3-6]|5[5-7]|6[0167]|7[15]|8[016-8]))\\d{4}|3(?:12?[5-7]\\d{2}|0(?:2(?:[025-79]\\d|[348]\\d{1,2})|3(?:[2-4]\\d|[56]\\d?))|2(?:1\\d{2}|2(?:[12]\\d|[35]\\d{1,2}|4\\d?))|3(?:1\\d{2}|2(?:[2356]\\d|4\\d{1,2}))|4(?:1\\d{2}|2(?:2\\d{1,2}|[47]|5\\d{2}))|5(?:1\\d{2}|29)|[67]1\\d{2}|8(?:1\\d{2}|2(?:2\\d{2}|3|4\\d)))\\d{3}|4(?:0(?:2(?:[09]\\d|7)|33\\d{2})|1\\d{3}|2(?:1\\d{2}|2(?:[25]\\d?|[348]\\d|[67]\\d{1,2}))|3(?:1\\d{2}(?:\\d{2})?|2(?:[045]\\d|[236-9]\\d{1,2})|32\\d{2})|4(?:[18]\\d{2}|2(?:[2-46]\\d{2}|3)|5[25]\\d{2})|5(?:1\\d{2}|2(?:3\\d|5))|6(?:[18]\\d{2}|2(?:3(?:\\d{2})?|[46]\\d{1,2}|5\\d{2}|7\\d)|5(?:3\\d?|4\\d|[57]\\d{1,2}|6\\d{2}|8))|71\\d{2}|8(?:[18]\\d{2}|23\\d{2}|54\\d{2})|9(?:[18]\\d{2}|2[2-5]\\d{2}|53\\d{1,2}))\\d{3}|5(?:02[03489]\\d{2}|1\\d{2}|2(?:1\\d{2}|2(?:2(?:\\d{2})?|[457]\\d{2}))|3(?:1\\d{2}|2(?:[37](?:\\d{2})?|[569]\\d{2}))|4(?:1\\d{2}|2[46]\\d{2})|5(?:1\\d{2}|26\\d{1,2})|6(?:[18]\\d{2}|2|53\\d{2})|7(?:1|24)\\d{2}|8(?:1|26)\\d{2}|91\\d{2})\\d{3}|6(?:0(?:1\\d{2}|2(?:3\\d{2}|4\\d{1,2}))|2(?:2[2-5]\\d{2}|5(?:[3-5]\\d{2}|7)|8\\d{2})|3(?:1|2[3478])\\d{2}|4(?:1|2[34])\\d{2}|5(?:1|2[47])\\d{2}|6(?:[18]\\d{2}|6(?:2(?:2\\d|[34]\\d{2})|5(?:[24]\\d{2}|3\\d|5\\d{1,2})))|72[2-5]\\d{2}|8(?:1\\d{2}|2[2-5]\\d{2})|9(?:1\\d{2}|2[2-6]\\d{2}))\\d{3}|7(?:(?:02|[3-589]1|6[12]|72[24])\\d{2}|21\\d{3}|32)\\d{3}|8(?:(?:4[12]|[5-7]2|1\\d?)|(?:0|3[12]|[5-7]1|217)\\d)\\d{4}|9(?:[35]1|(?:[024]2|81)\\d|(?:1|[24]1)\\d{2})\\d{3}", -"\\d{6,9}",,,"27111234"],[,,"(?:1[13-9]\\d|(?:3[78]|44)[02-9]|6(?:44|6[02-9]))\\d{7}","\\d{10}",,,"1812345678"],[,,"80[03]\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"96(?:0[49]|1[0-4]|6[69])\\d{6}","\\d{10}",,,"9604123456"],"BD",880,"00[12]?","0",,,"0",,"00",,[[,"(2)(\\d{7})","$1-$2",["2"],"0$1","",0],[,"(\\d{2})(\\d{4,6})","$1-$2",["[3-79]1"],"0$1","",0],[,"(\\d{4})(\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"], -"0$1","",0],[,"(\\d{3})(\\d{3,7})","$1-$2",["[3-79][2-9]|8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BE:[,[,,"[1-9]\\d{7,8}","\\d{8,9}"],[,,"(?:1[0-69]|[49][23]|5\\d|6[013-57-9]|71|8[0-79])[1-9]\\d{5}|[23][2-8]\\d{6}","\\d{8}",,,"12345678"],[,,"4(?:[679]\\d|8[03-9])\\d{6}","\\d{9}",,,"470123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"(?:70[2-7]|90\\d)\\d{5}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BE",32,"00","0",,,"0",,,,[[,"(4[6-9]\\d)(\\d{2})(\\d{2})(\\d{2})", -"$1 $2 $3 $4",["4[6-9]"],"0$1","",0],[,"([2-49])(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[23]|[49][23]"],"0$1","",0],[,"([15-8]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"],"0$1","",0],[,"([89]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"78\\d{6}","\\d{8}",,,"78123456"],,,[,,"NA","NA"]],BF:[,[,,"[24-7]\\d{7}","\\d{8}"],[,,"(?:20(?:49|5[23]|9[016-9])|40(?:4[569]|5[4-6]|7[0179])|50(?:[34]\\d|50))\\d{4}","\\d{8}", -,,"20491234"],[,,"6(?:[0-689]\\d|7[0-5])\\d{5}|7\\d{7}","\\d{8}",,,"70123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BG:[,[,,"[23567]\\d{5,7}|[489]\\d{6,8}","\\d{5,9}"],[,,"2(?:[0-8]\\d{5,6}|9\\d{4,6})|(?:[36]\\d|5[1-9]|8[1-6]|9[1-7])\\d{5,6}|(?:4(?:[124-7]\\d|3[1-6])|7(?:0[1-9]|[1-9]\\d))\\d{4,5}","\\d{5,8}",,,"2123456"], -[,,"(?:8[7-9]|98)\\d{7}|4(?:3[0789]|8\\d)\\d{5}","\\d{8,9}",,,"48123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"700\\d{5}","\\d{5,9}",,,"70012345"],[,,"NA","NA"],"BG",359,"00","0",,,"0",,,,[[,"(2)(\\d{5})","$1 $2",["29"],"0$1","",0],[,"(2)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{3})(\\d{4})","$1 $2",["43[124-7]|70[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{3})", -"$1 $2 $3",["[78]00"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BH:[,[,,"[136-9]\\d{7}","\\d{8}"],[,,"(?:1(?:3[13-6]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|88)|9[69][69])|7(?:7\\d{2}|178))\\d{4}","\\d{8}",,,"17001234"],[,,"(?:3(?:[1-4679]\\d|5[0135]|8[0-48])\\d|6(?:3(?:00|33|6[16])|6(?:[69]\\d|3[03-9])))\\d{4}", -"\\d{8}",,,"36001234"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"(?:87|9[014578])\\d{6}","\\d{8}",,,"90123456"],[,,"84\\d{6}","\\d{8}",,,"84123456"],[,,"NA","NA"],[,,"NA","NA"],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BI:[,[,,"[27]\\d{7}","\\d{8}"],[,,"22(?:2[0-7]|[3-5]0)\\d{4}","\\d{8}",,,"22201234"],[,,"(?:29|7[14-9])\\d{6}","\\d{8}",,,"79561234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"], -"BI",257,"00",,,,,,,,[[,"([27]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BJ:[,[,,"[2689]\\d{7}|7\\d{3}","\\d{4,8}"],[,,"2(?:02|1[037]|2[45]|3[68])\\d{5}","\\d{8}",,,"20211234"],[,,"(?:6[146-8]|9[03-9])\\d{6}","\\d{8}",,,"90011234"],[,,"7[3-5]\\d{2}","\\d{4}",,,"7312"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"857[58]\\d{4}","\\d{8}",,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",, -"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"81\\d{6}","\\d{8}",,,"81123456"],,,[,,"NA","NA"]],BL:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:2[7-9]|5[12]|87)\\d{4}","\\d{9}",,,"590271234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BL",590,"00","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BM:[,[,,"[4589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"441(?:2(?:02|23|61|[3479]\\d)|[46]\\d{2}|5(?:4\\d|60|89)|824)\\d{4}", -"\\d{7}(?:\\d{3})?",,,"4412345678"],[,,"441(?:[37]\\d|5[0-39])\\d{5}","\\d{10}",,,"4413701234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BM",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"441",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BN:[,[,,"[2-578]\\d{6}","\\d{7}"],[,,"2(?:[013-9]\\d|2[0-7])\\d{4}|[3-5]\\d{6}","\\d{7}",,,"2345678"],[,,"22[89]\\d{4}|[78]\\d{6}", -"\\d{7}",,,"7123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BN",673,"00",,,,,,,,[[,"([2-578]\\d{2})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BO:[,[,,"[23467]\\d{7}","\\d{7,8}"],[,,"(?:2(?:2\\d{2}|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d{2}|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:2\\d|3[234]|4[248]|5[24]|6[2-6]|7\\d))|4(?:4\\d{2}|6(?:11|[24689]\\d|72)))\\d{4}","\\d{7,8}",,,"22123456"], -[,,"[67]\\d{7}","\\d{8}",,,"71234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BO",591,"00(1\\d)?","0",,,"0(1\\d)?",,,,[[,"([234])(\\d{7})","$1 $2",["[234]"],"","0$CC $1",0],[,"([67]\\d{7})","$1",["[67]"],"","0$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BQ:[,[,,"[347]\\d{6}","\\d{7}"],[,,"(?:318[023]|416[023]|7(?:1[578]|50)\\d)\\d{3}","\\d{7}",,,"7151234"],[,,"(?:318[14-68]|416[15-9]|7(?:0[01]|7[07]|[89]\\d)\\d)\\d{3}","\\d{7}",,,"3181234"], -[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BQ",599,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BR:[,[,,"[1-46-9]\\d{7,10}|5\\d{8,9}","\\d{8,11}"],[,,"1[1-9][2-5]\\d{7}|(?:[4689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}","\\d{8,11}",,,"1123456789"],[,,"1[1-9](?:7|9\\d)\\d{7}|(?:2[12478]|9[1-9])9?[6-9]\\d{7}|(?:3[1-578]|[468][1-9]|5[13-5]|7[13-579])[6-9]\\d{7}","\\d{10,11}",,,"11961234567"],[,,"800\\d{6,7}","\\d{8,11}",,,"800123456"], -[,,"[359]00\\d{6,7}","\\d{8,11}",,,"300123456"],[,,"[34]00\\d{5}","\\d{8}",,,"40041234"],[,,"NA","NA"],[,,"NA","NA"],"BR",55,"00(?:1[45]|2[135]|31|4[13])","0",,,"0(?:(1[245]|2[135]|31|4[13])(\\d{10,11}))?","$2",,,[[,"(\\d{4})(\\d{4})","$1-$2",["[2-9](?:[1-9]|0[1-9])"],"$1","",0],[,"(\\d{5})(\\d{4})","$1-$2",["9(?:[1-9]|0[1-9])"],"$1","",0],[,"(\\d{3,5})","$1",["1[125689]"],"$1","",0],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["(?:1[1-9]|2[12478]|9[1-9])9"],"($1)","0 $CC ($1)",0],[,"(\\d{2})(\\d{4})(\\d{4})", -"$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)",0],[,"([34]00\\d)(\\d{4})","$1-$2",["[34]00"],"","",0],[,"([3589]00)(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1","",0]],[[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["(?:1[1-9]|2[12478]|9[1-9])9"],"($1)","0 $CC ($1)",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)",0],[,"([34]00\\d)(\\d{4})","$1-$2",["[34]00"],"","",0],[,"([3589]00)(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1","",0]],[,,"NA","NA"],,,[,,"[34]00\\d{5}", -"\\d{8}",,,"40041234"],[,,"NA","NA"],,,[,,"NA","NA"]],BS:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[3467]|8[0-4]|9[2-467])|461|502|6(?:0[12]|12|7[67]|8[78]|9[89])|702)\\d{4}","\\d{7}(?:\\d{3})?",,,"2423456789"],[,,"242(?:3(?:5[79]|[79]5)|4(?:[2-4][1-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-9]|65|77)|6[34]6|727)\\d{4}","\\d{10}",,,"2423591234"],[,,"242300\\d{4}|8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}", -,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BS",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"242",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BT:[,[,,"[1-8]\\d{6,7}","\\d{6,8}"],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}","\\d{6,7}",,,"2345678"],[,,"[17]7\\d{6}","\\d{8}",,,"17123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BT",975,"00",,,,,,,,[[,"([17]7)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4", -["1|77"],"","",0],[,"([2-8])(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BW:[,[,,"[2-79]\\d{6,7}","\\d{7,8}"],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0235-9]|55|6\\d|7[01]|9[0-57])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[0389]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}","\\d{7}",,,"2401234"],[,,"7(?:[1-356]\\d|4[0-7]|7[014-7])\\d{5}","\\d{8}",,,"71123456"],[,,"NA","NA"],[,,"90\\d{5}","\\d{7}",,,"9012345"],[,,"NA", -"NA"],[,,"NA","NA"],[,,"79[12][01]\\d{4}","\\d{8}",,,"79101234"],"BW",267,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-6]"],"","",0],[,"(7\\d)(\\d{3})(\\d{3})","$1 $2 $3",["7"],"","",0],[,"(90)(\\d{5})","$1 $2",["9"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BY:[,[,,"[1-4]\\d{8}|[89]\\d{9,10}","\\d{7,11}"],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d{2})|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}", -"\\d{7,9}",,,"152450911"],[,,"(?:2(?:5[5679]|9[1-9])|33\\d|44\\d)\\d{6}","\\d{9}",,,"294911911"],[,,"8(?:0[13]|20\\d)\\d{7}","\\d{10,11}",,,"8011234567"],[,,"(?:810|902)\\d{7}","\\d{10}",,,"9021234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BY",375,"810","8",,,"8?0?",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])", -"1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1","",0],[,"(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1","",0],[,"(8\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["82"],"8 $1","",0]],,[,,"NA","NA"],,,[,,"8(?:[013]|[12]0)\\d{8}|902\\d{7}","\\d{10,11}",,,"82012345678"], -[,,"NA","NA"],,,[,,"NA","NA"]],BZ:[,[,,"[2-8]\\d{6}|0\\d{10}","\\d{7}(?:\\d{4})?"],[,,"[234578][02]\\d{5}","\\d{7}",,,"2221234"],[,,"6[0-367]\\d{5}","\\d{7}",,,"6221234"],[,,"0800\\d{7}","\\d{11}",,,"08001234123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"],"","",0],[,"(0)(800)(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CA:[,[,,"[2-9]\\d{9}|3\\d{6}","\\d{7}(?:\\d{3})?"], -[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|79|8[17])|6(?:0[04]|13|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|73)|90[25])[2-9]\\d{6}|310\\d{4}","\\d{7}(?:\\d{3})?",,,"2042345678"],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|79|8[17])|6(?:0[04]|13|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|73)|90[25])[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2042345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}|310\\d{4}","\\d{7}(?:\\d{3})?",,,"8002123456"], -[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"CA",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CC:[,[,,"[1458]\\d{5,9}","\\d{6,10}"],[,,"89162\\d{4}","\\d{8,9}",,,"891621234"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[17-9]|9[017-9])\\d{6}","\\d{9}",,,"412345678"],[,,"1(?:80(?:0\\d{2})?|3(?:00\\d{2})?)\\d{4}","\\d{6,10}",,,"1800123456"], -[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"CC",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CD:[,[,,"[2-6]\\d{6}|[18]\\d{6,8}|9\\d{8}","\\d{7,9}"],[,,"1(?:2\\d{7}|\\d{6})|[2-6]\\d{6}","\\d{7,9}",,,"1234567"],[,,"8(?:[0-2459]\\d{2}|8)\\d{5}|9[7-9]\\d{7}","\\d{7,9}",,,"991234567"],[,,"NA","NA"],[,,"NA","NA"],[, -,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CD",243,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["12"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8[0-2459]|9"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1","",0],[,"(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CF:[,[,,"[278]\\d{7}","\\d{8}"],[,,"2[12]\\d{6}","\\d{8}",,,"21612345"],[,,"7[0257]\\d{6}","\\d{8}",,,"70012345"],[,,"NA","NA"],[, -,"8776\\d{4}","\\d{8}",,,"87761234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CG:[,[,,"[028]\\d{8}","\\d{9}"],[,,"222[1-589]\\d{5}","\\d{9}",,,"222123456"],[,,"0[14-6]\\d{7}","\\d{9}",,,"061234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CG",242,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3", -["[02]"],"","",0],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CH:[,[,,"[2-9]\\d{8}|860\\d{9}","\\d{9}(?:\\d{3})?"],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}","\\d{9}",,,"212345678"],[,,"7[5-9]\\d{7}","\\d{9}",,,"781234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"90[016]\\d{6}","\\d{9}",,,"900123456"],[,,"84[0248]\\d{6}","\\d{9}",,,"840123456"],[,,"878\\d{6}","\\d{9}",,,"878123456"],[,,"NA","NA"],"CH",41,"00", -"0",,,"0",,,,[[,"([2-9]\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["860"],"0$1","",0]],,[,,"74[0248]\\d{6}","\\d{9}",,,"740123456"],,,[,,"NA","NA"],[,,"5[18]\\d{7}","\\d{9}",,,"581234567"],,,[,,"860\\d{9}","\\d{12}",,,"860123456789"]],CI:[,[,,"[02-7]\\d{7}","\\d{8}"],[,,"(?:2(?:0[023]|1[02357]|[23][045]|4[03-5])|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}", -"\\d{8}",,,"21234567"],[,,"(?:0[1-9]|4[0-24-9]|5[4-9]|6[015-79]|7[57])\\d{6}","\\d{8}",,,"01234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CI",225,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CK:[,[,,"[2-57]\\d{4}","\\d{5}"],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}","\\d{5}",,,"21234"],[,,"(?:5[0-68]|7\\d)\\d{3}","\\d{5}",,,"71234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"NA","NA"],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CL:[,[,,"(?:[2-9]|600|123)\\d{7,8}","\\d{7,11}"],[,,"2(?:2\\d{7}|1962\\d{4})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,"221234567"],[,,"9[4-9]\\d{7}","\\d{8,9}",,,"961234567"],[,,"800\\d{6}|1230\\d{7}","\\d{9,11}",,,"800123456"],[,,"NA","NA"],[,,"600\\d{7,8}","\\d{10,11}",,,"6001234567"],[,,"NA","NA"],[,,"44\\d{7}","\\d{9}",,,"441234567"], -"CL",56,"(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0","0",,,"0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))",,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["22"],"($1)","$CC ($1)",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)","$CC ($1)",0],[,"(9)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(44)(\\d{3})(\\d{4})","$1 $2 $3",["44"],"0$1","",0],[,"([68]00)(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"],"$1","",0],[,"(600)(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"], -"$1","",0],[,"(1230)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"$1","",0],[,"(\\d{5})(\\d{4})","$1 $2",["219"],"($1)","$CC ($1)",0],[,"(\\d{4,5})","$1",["[1-9]"],"$1","",0]],[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["22"],"($1)","$CC ($1)",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)","$CC ($1)",0],[,"(9)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(44)(\\d{3})(\\d{4})","$1 $2 $3",["44"],"0$1","",0],[,"([68]00)(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"],"$1","",0],[,"(600)(\\d{3})(\\d{2})(\\d{3})", -"$1 $2 $3 $4",["60"],"$1","",0],[,"(1230)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"$1","",0],[,"(\\d{5})(\\d{4})","$1 $2",["219"],"($1)","$CC ($1)",0]],[,,"NA","NA"],,,[,,"600\\d{7,8}","\\d{10,11}",,,"6001234567"],[,,"NA","NA"],,,[,,"NA","NA"]],CM:[,[,,"[2357-9]\\d{7}","\\d{8}"],[,,"(?:22|33)\\d{6}","\\d{8}",,,"22123456"],[,,"[579]\\d{7}","\\d{8}",,,"71234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"88\\d{6}","\\d{8}",,,"88012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CM",237,"00",,,,,,,,[[,"([2357-9]\\d)(\\d{2})(\\d{2})(\\d{2})", -"$1 $2 $3 $4",["[23579]|88"],"","",0],[,"(800)(\\d{2})(\\d{3})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CN:[,[,,"[1-7]\\d{6,11}|8[0-357-9]\\d{6,9}|9\\d{7,9}","\\d{4,12}"],[,,"21(?:100\\d{2}|95\\d{3,4}|\\d{8,10})|(?:10|2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:71|98))(?:100\\d{2}|95\\d{3,4}|\\d{8})|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[3-9]|5[2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[1-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100\\d{2}|95\\d{3,4}|\\d{7})|80(?:29|6[03578]|7[018]|81)\\d{4}", -"\\d{4,12}",,,"1012345678"],[,,"1(?:[38]\\d|4[57]|5[0-35-9]|7[06-8])\\d{8}","\\d{11}",,,"13123456789"],[,,"(?:10)?800\\d{7}","\\d{10,12}",,,"8001234567"],[,,"16[08]\\d{5}","\\d{8}",,,"16812345"],[,,"400\\d{7}|(?:10|2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[4789]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[3678]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}", -"\\d{7,10}",,,"4001234567"],[,,"NA","NA"],[,,"NA","NA"],"CN",86,"(1[1279]\\d{3})?00","0",,,"(1[1279]\\d{3})|0",,"00",,[[,"(80\\d{2})(\\d{4})","$1 $2",["80[2678]"],"0$1","$CC $1",1],[,"([48]00)(\\d{3})(\\d{4})","$1 $2 $3",["[48]00"],"","",0],[,"(\\d{5,6})","$1",["100|95"],"","",0],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2\\d)[19]","(?:10|2\\d)(?:10|9[56])","(?:10|2\\d)(?:100|9[56])"],"0$1","$CC $1",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["[3-9]","[3-9]\\d{2}[19]","[3-9]\\d{2}(?:10|9[56])"],"0$1","$CC $1", -0],[,"(\\d{3,4})(\\d{4})","$1 $2",["[2-9]"],"","",0],[,"(21)(\\d{4})(\\d{4,6})","$1 $2 $3",["21"],"0$1","$CC $1",1],[,"([12]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:[1-9]|0[1-9]))|2[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:71|98)"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"], -"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-578]"],"","$CC $1",0],[,"(10800)(\\d{3})(\\d{4})","$1 $2 $3",["108","1080","10800"],"","",0]],[[,"(80\\d{2})(\\d{4})","$1 $2",["80[2678]"],"0$1","$CC $1",1],[,"([48]00)(\\d{3})(\\d{4})","$1 $2 $3",["[48]00"],"","",0],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2\\d)[19]","(?:10|2\\d)(?:10|9[56])","(?:10|2\\d)(?:100|9[56])"],"0$1","$CC $1",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["[3-9]","[3-9]\\d{2}[19]","[3-9]\\d{2}(?:10|9[56])"],"0$1","$CC $1", -0],[,"(21)(\\d{4})(\\d{4,6})","$1 $2 $3",["21"],"0$1","$CC $1",1],[,"([12]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:[1-9]|0[1-9]))|2[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:71|98)"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[1-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"], -"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-578]"],"","$CC $1",0],[,"(10800)(\\d{3})(\\d{4})","$1 $2 $3",["108","1080","10800"],"","",0]],[,,"NA","NA"],,,[,,"(?:4|(?:10)?8)00\\d{7}","\\d{10,12}",,,"4001234567"],[,,"NA","NA"],,,[,,"NA","NA"]],CO:[,[,,"(?:[13]\\d{0,3}|[24-8])\\d{7}","\\d{7,11}"],[,,"[124-8][2-9]\\d{6}","\\d{8}",,,"12345678"],[,,"3(?:0[0-5]|1\\d|2[0-2]|5[01])\\d{7}","\\d{10}",,,"3211234567"],[,,"1800\\d{7}","\\d{11}",,,"18001234567"],[,,"19(?:0[01]|4[78])\\d{7}", -"\\d{11}",,,"19001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:44|56))?",,,,[[,"(\\d)(\\d{7})","$1 $2",["1(?:8[2-9]|9[0-3]|[2-7])|[24-8]","1(?:8[2-9]|9(?:09|[1-3])|[2-7])|[24-8]"],"($1)","0$CC $1",0],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"","0$CC $1",0],[,"(1)(\\d{3})(\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1","",0]],[[,"(\\d)(\\d{7})","$1 $2",["1(?:8[2-9]|9[0-3]|[2-7])|[24-8]","1(?:8[2-9]|9(?:09|[1-3])|[2-7])|[24-8]"], -"($1)","0$CC $1",0],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"","0$CC $1",0],[,"(1)(\\d{3})(\\d{7})","$1 $2 $3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CR:[,[,,"[24-9]\\d{7,9}","\\d{8,10}"],[,,"2[24-7]\\d{6}","\\d{8}",,,"22123456"],[,,"5(?:0[01]|7[0-3])\\d{5}|6(?:[0-2]\\d|30)\\d{5}|7[0-3]\\d{6}|8[3-9]\\d{6}","\\d{8}",,,"83123456"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"90[059]\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"210[0-6]\\d{4}|4(?:0(?:0[01]\\d{4}|10[0-3]\\d{3}|2(?:00\\d{3}|900\\d{2})|3[01]\\d{4}|40\\d{4}|5\\d{5}|60\\d{4}|70[01]\\d{3}|8[0-2]\\d{4})|1[01]\\d{5}|20[0-3]\\d{4}|400\\d{4}|70[0-2]\\d{4})|5100\\d{4}","\\d{8}",,,"40001234"],"CR",506,"00",,,,"(19(?:0[012468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[24-7]|8[3-9]"],"","$CC $1",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]0"],"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CU:[,[,,"[2-57]\\d{5,7}", -"\\d{4,8}"],[,,"2[1-4]\\d{5,6}|3(?:1\\d{6}|[23]\\d{4,6})|4(?:[125]\\d{5,6}|[36]\\d{6}|[78]\\d{4,6})|7\\d{6,7}","\\d{4,8}",,,"71234567"],[,,"5\\d{7}","\\d{8}",,,"51234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CU",53,"119","0",,,"0",,,,[[,"(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)","",0],[,"(\\d{2})(\\d{4,6})","$1 $2",["[2-4]"],"(0$1)","",0],[,"(\\d)(\\d{7})","$1 $2",["5"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CV:[,[,,"[259]\\d{6}", -"\\d{7}"],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}","\\d{7}",,,"2211234"],[,,"(?:9\\d|59)\\d{5}","\\d{7}",,,"9911234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CW:[,[,,"[169]\\d{6,7}","\\d{7,8}"],[,,"9(?:[48]\\d{2}|50\\d|7(?:2[0-24]|[34]\\d|6[35-7]|77|8[7-9]))\\d{4}","\\d{7,8}",,,"94151234"],[,,"9(?:5(?:[1246]\\d|3[01])|6(?:[16-9]\\d|3[01]))\\d{4}", -"\\d{7,8}",,,"95181234"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:10|69)\\d{5}","\\d{7}",,,"1011234"],[,,"NA","NA"],[,,"NA","NA"],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[13-7]"],"","",0],[,"(9)(\\d{3})(\\d{4})","$1 $2 $3",["9"],"","",0]],,[,,"955\\d{5}","\\d{7,8}",,,"95581234"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CX:[,[,,"[1458]\\d{5,9}","\\d{6,10}"],[,,"89164\\d{4}","\\d{8,9}",,,"891641234"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[17-9]|9[017-9])\\d{6}", -"\\d{9}",,,"412345678"],[,,"1(?:80(?:0\\d{2})?|3(?:00\\d{2})?)\\d{4}","\\d{6,10}",,,"1800123456"],[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"CX",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CY:[,[,,"[257-9]\\d{7}","\\d{8}"],[,,"2[2-6]\\d{6}","\\d{8}",,,"22345678"],[,,"9[5-79]\\d{6}","\\d{8}",,,"96123456"],[,, -"800\\d{5}","\\d{8}",,,"80001234"],[,,"90[09]\\d{5}","\\d{8}",,,"90012345"],[,,"80[1-9]\\d{5}","\\d{8}",,,"80112345"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"(?:50|77)\\d{6}","\\d{8}",,,"77123456"],,,[,,"NA","NA"]],CZ:[,[,,"[2-8]\\d{8}|9\\d{8,11}","\\d{9,12}"],[,,"2\\d{8}|(?:3[1257-9]|4[16-9]|5[13-9])\\d{7}","\\d{9,12}",,,"212345678"],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}","\\d{9,12}", -,,"601123456"],[,,"800\\d{6}","\\d{9,12}",,,"800123456"],[,,"9(?:0[05689]|76)\\d{6}","\\d{9,12}",,,"900123456"],[,,"8[134]\\d{7}","\\d{9,12}",,,"811234567"],[,,"70[01]\\d{6}","\\d{9,12}",,,"700123456"],[,,"9[17]0\\d{6}","\\d{9,12}",,,"910123456"],"CZ",420,"00",,,,,,,,[[,"([2-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"],"","",0],[,"(96\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["96"],"","",0],[,"(9\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9[36]"],"","",0]],,[,,"NA","NA"],,,[,,"NA", -"NA"],[,,"9(?:5\\d|7[234])\\d{6}","\\d{9,12}",,,"972123456"],,,[,,"9(?:3\\d{9}|6\\d{7,10})","\\d{9,12}",,,"93123456789"]],DE:[,[,,"[1-35-9]\\d{3,14}|4(?:[0-8]\\d{4,12}|9(?:[0-37]\\d|4(?:[1-35-8]|4\\d?)|5\\d{1,2}|6[1-8]\\d?)\\d{2,8})","\\d{2,15}"],[,,"[246]\\d{5,13}|3(?:0\\d{3,13}|2\\d{9}|[3-9]\\d{4,13})|5(?:0[2-8]|[1256]\\d|[38][0-8]|4\\d{0,2}|[79][0-7])\\d{3,11}|7(?:0[2-8]|[1-9]\\d)\\d{3,10}|8(?:0[2-9]|[1-9]\\d)\\d{3,10}|9(?:0[6-9]\\d{3,10}|1\\d{4,12}|[2-9]\\d{4,11})","\\d{2,15}",,,"30123456"],[, -,"1(?:5[0-2579]\\d{8}|6[023]\\d{7,8}|7(?:[0-57-9]\\d?|6\\d)\\d{7})","\\d{10,11}",,,"15123456789"],[,,"800\\d{7,12}","\\d{10,15}",,,"8001234567890"],[,,"137[7-9]\\d{6}|900(?:[135]\\d{6}|9\\d{7})","\\d{10,11}",,,"9001234567"],[,,"1(?:3(?:7[1-6]\\d{6}|8\\d{4})|80\\d{5,11})","\\d{7,14}",,,"18012345"],[,,"700\\d{8}","\\d{11}",,,"70012345678"],[,,"NA","NA"],"DE",49,"00","0",,,"0",,,,[[,"(1\\d{2})(\\d{7,8})","$1 $2",["1[67]"],"0$1","",0],[,"(1\\d{3})(\\d{7})","$1 $2",["15"],"0$1","",0],[,"(\\d{2})(\\d{3,11})", -"$1 $2",["3[02]|40|[68]9"],"0$1","",0],[,"(\\d{3})(\\d{3,11})","$1 $2",["2(?:\\d1|0[2389]|1[24]|28|34)|3(?:[3-9][15]|40)|[4-8][1-9]1|9(?:06|[1-9]1)"],"0$1","",0],[,"(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|[7-9](?:\\d[1-9]|[1-9]\\d)|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])","[24-6]|[7-9](?:\\d[1-9]|[1-9]\\d)|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|4[1246]|6[1-4]|7[1346]|8[13568]|9[1246])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))"], -"0$1","",0],[,"(3\\d{4})(\\d{1,10})","$1 $2",["3"],"0$1","",0],[,"(800)(\\d{7,12})","$1 $2",["800"],"0$1","",0],[,"(177)(99)(\\d{7,8})","$1 $2 $3",["177","1779","17799"],"0$1","",0],[,"(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["(?:18|90)0|137","1(?:37|80)|900[1359]"],"0$1","",0],[,"(1\\d{2})(\\d{5,11})","$1 $2",["181"],"0$1","",0],[,"(18\\d{3})(\\d{6})","$1 $2",["185","1850","18500"],"0$1","",0],[,"(18\\d{2})(\\d{7})","$1 $2",["18[68]"],"0$1","",0],[,"(18\\d)(\\d{8})","$1 $2",["18[2-579]"],"0$1","",0], -[,"(700)(\\d{4})(\\d{4})","$1 $2 $3",["700"],"0$1","",0],[,"(138)(\\d{4})","$1 $2",["138"],"0$1","",0]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})","\\d{4,14}",,,"16412345"],,,[,,"NA","NA"],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})","\\d{8,14}",,,"18500123456"],,,[,,"17799\\d{7,8}","\\d{12,13}",,,"177991234567"]],DJ:[,[,,"[27]\\d{7}","\\d{8}"],[,,"2(?:1[2-5]|7[45])\\d{5}","\\d{8}",,,"21360003"],[,,"77[6-8]\\d{5}","\\d{8}",,,"77831001"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"DJ",253, -"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DK:[,[,,"[2-9]\\d{7}","\\d{8}"],[,,"(?:[2-7]\\d|8[126-9]|9[1-36-9])\\d{6}","\\d{8}",,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-36-9])\\d{6}","\\d{8}",,,"20123456"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]], -,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DM:[,[,,"[57-9]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4]|70[1-3])\\d{4}","\\d{7}(?:\\d{3})?",,,"7674201234"],[,,"767(?:2(?:[234689]5|7[5-7])|31[5-7]|61[2-7])\\d{4}","\\d{10}",,,"7672251234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"DM",1,"011", -"1",,,"1",,,,,,[,,"NA","NA"],,"767",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DO:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"8(?:[04]9[2-9]\\d{6}|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d{2}|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9]))\\d{4})","\\d{7}(?:\\d{3})?", -,,"8092345678"],[,,"8[024]9[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"8092345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"DO",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"8[024]9",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DZ:[,[,,"(?:[1-4]|[5-9]\\d)\\d{7}","\\d{8,9}"],[,,"(?:1\\d|2[014-79]|3[0-8]|4[0135689])\\d{6}|9619\\d{5}","\\d{8,9}",,,"12345678"], -[,,"(?:5[4-6]|7[7-9])\\d{7}|6(?:[569]\\d|7[0-4])\\d{6}","\\d{9}",,,"551234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"80[3-689]1\\d{5}","\\d{9}",,,"808123456"],[,,"80[12]1\\d{5}","\\d{9}",,,"801123456"],[,,"NA","NA"],[,,"98[23]\\d{6}","\\d{9}",,,"983123456"],"DZ",213,"00","0",,,"0",,,,[[,"([1-4]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1","",0],[,"([5-8]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1","",0],[,"(9\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1", -"",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EC:[,[,,"1\\d{9,10}|[2-8]\\d{7}|9\\d{8}","\\d{7,11}"],[,,"[2-7][2-7]\\d{6}","\\d{7,8}",,,"22123456"],[,,"9(?:39|[45][89]|[67][7-9]|[89]\\d)\\d{6}","\\d{9}",,,"991234567"],[,,"1800\\d{6,7}","\\d{10,11}",,,"18001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"[2-7]890\\d{4}","\\d{8}",,,"28901234"],"EC",593,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{4})", -"$1 $2 $3",["9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{3,4})","$1 $2 $3",["1"],"$1","",0]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[247]|[356][2-8]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{3,4})","$1 $2 $3",["1"],"$1","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EE:[,[,,"1\\d{3,4}|[3-9]\\d{6,7}|800\\d{6,7}","\\d{4,10}"],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}","\\d{7}",,,"3212345"],[,,"(?:5\\d|8[1-5])\\d{6}|5(?:[02]\\d{2}|1(?:[0-8]\\d|95)|5[0-478]\\d|64[0-4]|65[1-589])\\d{3}", -"\\d{7,8}",,,"51234567"],[,,"800(?:0\\d{3}|1\\d|[2-9])\\d{3}","\\d{7,10}",,,"80012345"],[,,"(?:40\\d{2}|900)\\d{4}","\\d{7,8}",,,"9001234"],[,,"NA","NA"],[,,"70[0-2]\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"EE",372,"00",,,,,,,,[[,"([3-79]\\d{2})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"],"","",0],[,"(70)(\\d{2})(\\d{4})","$1 $2 $3",["70"],"","",0],[,"(8000)(\\d{3})(\\d{3})","$1 $2 $3",["800","8000"], -"","",0],[,"([458]\\d{3})(\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"],"","",0]],,[,,"NA","NA"],,,[,,"1\\d{3,4}|800[2-9]\\d{3}","\\d{4,7}",,,"8002123"],[,,"1(?:2[01245]|3[0-6]|4[1-489]|5[0-59]|6[1-46-9]|7[0-27-9]|8[189]|9[012])\\d{1,2}","\\d{4,5}",,,"12123"],,,[,,"NA","NA"]],EG:[,[,,"1\\d{4,9}|[2456]\\d{8}|3\\d{7}|[89]\\d{8,9}","\\d{5,10}"],[,,"(?:1(?:3[23]\\d|5(?:[23]|9\\d))|2[2-4]\\d{2}|3\\d{2}|4(?:0[2-5]|[578][23]|64)\\d|5(?:0[2-7]|[57][23])\\d|6[24-689]3\\d|8(?:2[2-57]|4[26]|6[237]|8[2-4])\\d|9(?:2[27]|3[24]|52|6[2356]|7[2-4])\\d)\\d{5}|1[69]\\d{3}", -"\\d{5,9}",,,"234567890"],[,,"1(?:0[0-269]|1[0-245]|2[0-278])\\d{7}","\\d{10}",,,"1001234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"EG",20,"00","0",,,"0",,,,[[,"(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1[012]|[89]00"],"0$1","",0],[,"(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|[89][2-9]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EH:[, -[,,"[5689]\\d{8}","\\d{9}"],[,,"528[89]\\d{5}","\\d{9}",,,"528812345"],[,,"6(?:0[0-8]|[12-7]\\d|8[01]|9[2457-9])\\d{6}","\\d{9}",,,"650123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89\\d{7}","\\d{9}",,,"891234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"EH",212,"00","0",,,"0",,,,,,[,,"NA","NA"],,"528[89]",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ER:[,[,,"[178]\\d{6}","\\d{6,7}"],[,,"1(?:1[12568]|20|40|55|6[146])\\d{4}|8\\d{6}","\\d{6,7}",,,"8370362"],[,,"17[1-3]\\d{4}|7\\d{6}","\\d{7}", -,,"7123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ES:[,[,,"[5-9]\\d{8}","\\d{9}"],[,,"8(?:[13]0|[28][0-8]|[47][1-9]|5[01346-9]|6[0457-9])\\d{6}|9(?:[1238][0-8]\\d{6}|4[1-9]\\d{6}|5\\d{7}|6(?:[0-8]\\d{6}|9(?:0(?:[0-57-9]\\d{4}|6(?:0[0-8]|1[1-9]|[2-9]\\d)\\d{2})|[1-9]\\d{5}))|7(?:[124-9]\\d{2}|3(?:[0-8]\\d|9[1-9]))\\d{4})","\\d{9}", -,,"810123456"],[,,"(?:6\\d{6}|7[1-4]\\d{5}|9(?:6906(?:09|10)|7390\\d{2}))\\d{2}","\\d{9}",,,"612345678"],[,,"[89]00\\d{6}","\\d{9}",,,"800123456"],[,,"80[367]\\d{6}","\\d{9}",,,"803123456"],[,,"90[12]\\d{6}","\\d{9}",,,"901123456"],[,,"70\\d{7}","\\d{9}",,,"701234567"],[,,"NA","NA"],"ES",34,"00",,,,,,,,[[,"([5-9]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"51\\d{7}","\\d{9}",,,"511234567"],,,[,,"NA","NA"]],ET:[,[,,"[1-59]\\d{8}","\\d{7,9}"], -[,,"(?:11(?:1(?:1[124]|2[2-57]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[57]|44|5[0-4])|6(?:18|2[69]|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|22[0-6]|33[0134689]|44[04]|55[0-6]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:11[1-9]|22[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}", -"\\d{7,9}",,,"111112345"],[,,"9(?:[1-3]\\d|5[89])\\d{6}","\\d{9}",,,"911234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ET",251,"00","0",,,"0",,,,[[,"([1-59]\\d)(\\d{3})(\\d{4})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FI:[,[,,"1\\d{4,11}|[2-9]\\d{4,10}","\\d{5,12}"],[,,"1(?:[3569][1-8]\\d{3,9}|[47]\\d{5,10})|2[1-8]\\d{3,9}|3(?:[1-8]\\d{3,9}|9\\d{4,8})|[5689][1-8]\\d{3,9}","\\d{5,12}",,,"1312345678"],[,,"4\\d{5,10}|50\\d{4,8}", -"\\d{6,11}",,,"412345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"[67]00\\d{5,6}","\\d{8,9}",,,"600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FI",358,"00|99[049]","0",,,"0",,,,[[,"(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]00|[6-8]0)"],"0$1","",0],[,"(\\d{2})(\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1","",0],[,"(\\d)(\\d{4,11})","$1 $2",["[25689][1-8]|3"],"0$1","",0]],,[,,"NA","NA"],1,,[,,"[13]00\\d{3,7}|2(?:0(?:0\\d{3,7}|2[023]\\d{1,6}|9[89]\\d{1,6}))|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})", -"\\d{5,10}",,,"100123"],[,,"[13]0\\d{4,8}|2(?:0(?:[016-8]\\d{3,7}|[2-59]\\d{2,7})|9\\d{4,8})|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"10112345"],,,[,,"NA","NA"]],FJ:[,[,,"[36-9]\\d{6}|0\\d{10}","\\d{7}(?:\\d{4})?"],[,,"(?:3[0-5]|6[25-7]|8[58])\\d{5}","\\d{7}",,,"3212345"],[,,"(?:7[0-8]|8[034679]|9\\d)\\d{5}","\\d{7}",,,"7012345"],[,,"0800\\d{7}","\\d{11}",,,"08001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FJ",679,"0(?:0|52)",,,,,,"00", -,[[,"(\\d{3})(\\d{4})","$1 $2",["[36-9]"],"","",0],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],FK:[,[,,"[2-7]\\d{4}","\\d{5}"],[,,"[2-47]\\d{4}","\\d{5}",,,"31234"],[,,"[56]\\d{4}","\\d{5}",,,"51234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FK",500,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FM:[,[,,"[39]\\d{6}","\\d{7}"],[,,"3[2357]0[1-9]\\d{3}|9[2-6]\\d{5}","\\d{7}", -,,"3201234"],[,,"3[2357]0[1-9]\\d{3}|9[2-7]\\d{5}","\\d{7}",,,"3501234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FO:[,[,,"[2-9]\\d{5}","\\d{6}"],[,,"(?:20|[3-4]\\d|8[19])\\d{4}","\\d{6}",,,"201234"],[,,"(?:2[1-9]|5\\d|7[1-79])\\d{4}","\\d{6}",,,"211234"],[,,"80[257-9]\\d{3}","\\d{6}",,,"802123"],[,,"90(?:[1345][15-7]|2[125-7]|99)\\d{2}","\\d{6}", -,,"901123"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:6[0-36]|88)\\d{4}","\\d{6}",,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",,"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FR:[,[,,"[1-9]\\d{8}","\\d{9}"],[,,"[1-5]\\d{8}","\\d{9}",,,"123456789"],[,,"6\\d{8}|7[5-9]\\d{7}","\\d{9}",,,"612345678"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89[1-37-9]\\d{6}","\\d{9}",,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}",,,"810123456"],[,,"NA", -"NA"],[,,"9\\d{8}","\\d{9}",,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"([1-79])(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1","",0],[,"(1\\d{2})(\\d{3})","$1 $2",["11"],"$1","",0],[,"(8\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1","",0]],[[,"([1-79])(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1","",0],[,"(8\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GA:[,[, -,"0?\\d{7}","\\d{7,8}"],[,,"01\\d{6}","\\d{8}",,,"01441234"],[,,"0?[2-7]\\d{6}","\\d{7,8}",,,"06031234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GA",241,"00",,,,,,,,[[,"(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],GB:[,[,,"\\d{7,10}","\\d{4,10}"],[,,"2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[012])\\d{7}|1(?:(?:1(?:3[0-48]|[46][0-4]|5[012789]|7[0-49]|8[01349])|21[0-7]|31[0-8]|[459]1\\d|61[0-46-9]))\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-4789]|7[013-9]|9\\d)|3(?:0\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1235679]|9[24578])|4(?:0[03-9]|[28][02-5789]|[37]\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1235-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\d|7[0-35-9]|8[0-468]|9[0-5789])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\d|3[023678]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-5789]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-5789]|4[2-9]|5[0-579]|6[234789]|7[0124578]|8\\d|9[2-57]))\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-4789]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[015789]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\d)|276\\d|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[567]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}|176888[234678]\\d{2}|16977[23]\\d{3}", -"\\d{4,10}",,,"1212345678"],[,,"7(?:[1-4]\\d\\d|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[04-9]\\d|1[02-9]|2[0-35-9]|3[0-689]))\\d{6}","\\d{10}",,,"7400123456"],[,,"80(?:0(?:1111|\\d{6,7})|8\\d{7})|500\\d{6}","\\d{7}(?:\\d{2,3})?",,,"8001234567"],[,,"(?:87[123]|9(?:[01]\\d|8[2349]))\\d{7}","\\d{10}",,,"9012345678"],[,,"8(?:4(?:5464\\d|[2-5]\\d{7})|70\\d{7})","\\d{7}(?:\\d{3})?",,,"8431234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}", -"\\d{10}",,,"5612345678"],"GB",44,"00","0"," x",,"0",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2|5[56]|7(?:0|6[013-9])","2|5[56]|7(?:0|6(?:[013-9]|2[0-35-9]))"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:1|\\d1)|3|9[018]"],"0$1","",0],[,"(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:387|5(?:24|39)|697|768|946)","1(?:3873|5(?:242|39[456])|697[347]|768[347]|9467)"],"0$1","",0],[,"(1\\d{3})(\\d{5,6})","$1 $2",["1"],"0$1","",0],[,"(7\\d{3})(\\d{6})","$1 $2",["7(?:[1-5789]|62)", -"7(?:[1-5789]|624)"],"0$1","",0],[,"(800)(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1","",0],[,"(845)(46)(4\\d)","$1 $2 $3",["845","8454","84546","845464"],"0$1","",0],[,"(8\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"],"0$1","",0],[,"(80\\d)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","",0],[,"([58]00)(\\d{6})","$1 $2",["[58]00"],"0$1","",0]],,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],1,,[,,"NA","NA"],[,,"(?:3[0347]|55)\\d{8}", -"\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],GD:[,[,,"[4589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|68|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}","\\d{7}(?:\\d{3})?",,,"4732691234"],[,,"473(?:4(?:0[2-79]|1[04-9]|20|58)|5(?:2[01]|3[3-8])|901)\\d{4}","\\d{10}",,,"4734031234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}", -,,"5002345678"],[,,"NA","NA"],"GD",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"473",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GE:[,[,,"[34578]\\d{8}","\\d{6,9}"],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}","\\d{6,9}",,,"322123456"],[,,"5(?:14|5[01578]|68|7[0147-9]|9[0-35-9])\\d{6}","\\d{9}",,,"555123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"706\\d{6}","\\d{9}",,,"706123456"],"GE",995,"00","0",,,"0",,,,[[, -"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"$1","",0]],,[,,"NA","NA"],,,[,,"706\\d{6}","\\d{9}",,,"706123456"],[,,"NA","NA"],,,[,,"NA","NA"]],GF:[,[,,"[56]\\d{8}","\\d{9}"],[,,"594(?:10|2[012457-9]|3[0-57-9]|4[3-9]|5[7-9]|6[0-3]|9[014])\\d{4}","\\d{9}",,,"594101234"],[,,"694(?:[04][0-7]|1[0-5]|3[018]|[29]\\d)\\d{4}","\\d{9}",,,"694201234"],[,,"NA","NA"],[, -,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GG:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1481\\d{6}","\\d{6,10}",,,"1481456789"],[,,"7(?:781|839|911)\\d{6}","\\d{10}",,,"7781123456"],[,,"80(?:0(?:1111|\\d{6,7})|8\\d{7})|500\\d{6}","\\d{7}(?:\\d{2,3})?",,,"8001234567"],[,,"(?:87[123]|9(?:[01]\\d|8[0-3]))\\d{7}","\\d{10}",,,"9012345678"], -[,,"8(?:4(?:5464\\d|[2-5]\\d{7})|70\\d{7})","\\d{7}(?:\\d{3})?",,,"8431234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"GG",44,"00","0"," x",,"0",,,,,,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],,,[,,"NA","NA"],[,,"(?:3[0347]|55)\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],GH:[,[,,"[235]\\d{8}|8\\d{7}","\\d{7,9}"],[,,"3(?:0[237]\\d|[167](?:2[0-6]|7\\d)|2(?:2[0-5]|7\\d)|3(?:2[0-3]|7\\d)|4(?:2[013-9]|3[01]|7\\d)|5(?:2[0-7]|7\\d)|8(?:2[0-2]|7\\d)|9(?:20|7\\d))\\d{5}", -"\\d{7,9}",,,"302345678"],[,,"(?:2[034678]\\d|5(?:[047]\\d|54))\\d{6}","\\d{9}",,,"231234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GH",233,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1","",0],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],,,[,,"NA","NA"]],GI:[,[,,"[2568]\\d{7}","\\d{8}"],[,,"2(?:00\\d|1(?:6[24-7]|9\\d)|2(?:00|2[2457]))\\d{4}", -"\\d{8}",,,"20012345"],[,,"(?:5[46-8]|62)\\d{6}","\\d{8}",,,"57123456"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"8[1-689]\\d{6}","\\d{8}",,,"88123456"],[,,"87\\d{6}","\\d{8}",,,"87123456"],[,,"NA","NA"],[,,"NA","NA"],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GL:[,[,,"[1-689]\\d{5}","\\d{6}"],[,,"(?:19|3[1-6]|6[14689]|8[14-79]|9\\d)\\d{4}","\\d{6}",,,"321000"],[,,"[245][2-9]\\d{4}","\\d{6}",,,"221234"],[,,"80\\d{4}", -"\\d{6}",,,"801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"3[89]\\d{4}","\\d{6}",,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GM:[,[,,"[2-9]\\d{6}","\\d{7}"],[,,"(?:4(?:[23]\\d{2}|4(?:1[024679]|[6-9]\\d))|5(?:54[0-7]|6(?:[67]\\d)|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}","\\d{7}",,,"5661234"],[,,"(?:2[0-6]|[3679]\\d)\\d{5}","\\d{7}",,,"3012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"], -[,,"NA","NA"],[,,"NA","NA"],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GN:[,[,,"[367]\\d{7,8}","\\d{8,9}"],[,,"30(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])\\d{4}","\\d{8}",,,"30241234"],[,,"6[02356]\\d{7}","\\d{9}",,,"601123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"722\\d{6}","\\d{9}",,,"722123456"],"GN",224,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"],"","",0], -[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GP:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:0[13468]|1[012]|2[0-68]|3[28]|4[0-8]|5[579]|6[0189]|70|8[0-689]|9\\d)\\d{4}","\\d{9}",,,"590201234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GP",590,"00","0",,,"0",,,,[[,"([56]90)(\\d{2})(\\d{4})","$1 $2-$3",,"0$1","",0]],,[,,"NA","NA"],1, -,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GQ:[,[,,"[23589]\\d{8}","\\d{9}"],[,,"3(?:3(?:3\\d[7-9]|[0-24-9]\\d[46])|5\\d{2}[7-9])\\d{4}","\\d{9}",,,"333091234"],[,,"(?:222|551)\\d{6}","\\d{9}",,,"222123456"],[,,"80\\d[1-9]\\d{5}","\\d{9}",,,"800123456"],[,,"90\\d[1-9]\\d{5}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"],"","",0],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"], -[,,"NA","NA"],,,[,,"NA","NA"]],GR:[,[,,"[26-9]\\d{9}","\\d{10}"],[,,"2(?:1\\d{2}|2(?:2[1-46-9]|3[1-8]|4[1-7]|5[1-4]|6[1-8]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|3[1245]|4[1-7]|5[13-9]|[269][1-6]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}","\\d{10}",,,"2123456789"],[,,"69\\d{8}","\\d{10}",,,"6912345678"], -[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"90[19]\\d{7}","\\d{10}",,,"9091234567"],[,,"8(?:0[16]|12|25)\\d{7}","\\d{10}",,,"8011234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"NA","NA"],"GR",30,"00",,,,,,,,[[,"([27]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["21|7"],"","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2[2-9]1|[689]"],"","",0],[,"(2\\d{3})(\\d{6})","$1 $2",["2[2-9][02-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GT:[,[,,"[2-7]\\d{7}|1[89]\\d{9}","\\d{8}(?:\\d{3})?"], -[,,"[267][2-9]\\d{6}","\\d{8}",,,"22456789"],[,,"[345]\\d{7}","\\d{8}",,,"51234567"],[,,"18[01]\\d{8}","\\d{11}",,,"18001112222"],[,,"19\\d{9}","\\d{11}",,,"19001112222"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"],"","",0],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GU:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:56|7[1-9]|8[236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[5-9])|7(?:[079]7|2[0167]|3[45]|8[789])|8(?:[2-5789]8|6[48])|9(?:2[29]|6[79]|7[179]|8[789]|9[78]))\\d{4}", -"\\d{7}(?:\\d{3})?",,,"6713001234"],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:56|7[1-9]|8[236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[5-9])|7(?:[079]7|2[0167]|3[45]|8[789])|8(?:[2-5789]8|6[48])|9(?:2[29]|6[79]|7[179]|8[789]|9[78]))\\d{4}","\\d{7}(?:\\d{3})?",,,"6713001234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"GU",1,"011", -"1",,,"1",,,1,,,[,,"NA","NA"],,"671",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GW:[,[,,"[3-79]\\d{6}","\\d{7}"],[,,"3(?:2[0125]|3[1245]|4[12]|5[1-4]|70|9[1-467])\\d{4}","\\d{7}",,,"3201234"],[,,"(?:[5-7]\\d|9[012])\\d{5}","\\d{7}",,,"5012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"40\\d{5}","\\d{7}",,,"4012345"],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GY:[,[,,"[2-4679]\\d{6}","\\d{7}"],[,, -"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}","\\d{7}",,,"2201234"],[,,"6\\d{6}","\\d{7}",,,"6091234"],[,,"(?:289|862)\\d{4}","\\d{7}",,,"2891234"],[,,"9008\\d{3}","\\d{7}",,,"9008123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HK:[,[,,"[235-7]\\d{7}|8\\d{7,8}|9\\d{4,10}","\\d{5,11}"],[,,"(?:[23]\\d|5[78])\\d{6}", -"\\d{8}",,,"21234567"],[,,"(?:5[1-69]\\d|6\\d{2}|9(?:0[1-9]|[1-8]\\d))\\d{5}","\\d{8}",,,"51234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})","\\d{5,11}",,,"90012345678"],[,,"NA","NA"],[,,"8[1-3]\\d{6}","\\d{8}",,,"81123456"],[,,"NA","NA"],"HK",852,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[235-7]|[89](?:0[1-9]|[1-9])"],"","",0],[,"(800)(\\d{3})(\\d{3})","$1 $2 $3",["800"],"","",0],[,"(900)(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["900"],"","",0],[,"(900)(\\d{2,5})", -"$1 $2",["900"],"","",0]],,[,,"7\\d{7}","\\d{8}",,,"71234567"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HN:[,[,,"[237-9]\\d{7}","\\d{8}"],[,,"2(?:2(?:0[019]|1[1-36]|[23]\\d|4[056]|5[57]|7[01389]|8[0146-9]|9[012])|4(?:2[3-59]|3[13-689]|4[0-68]|5[1-35])|5(?:4[3-5]|5\\d|6[56]|74)|6(?:[056]\\d|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[34])|8(?:79|8[0-35789]|9[1-57-9]))\\d{4}","\\d{8}",,,"22123456"],[,,"[37-9]\\d{7}","\\d{8}",,,"91234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"NA","NA"],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HR:[,[,,"[1-7]\\d{5,8}|[89]\\d{6,11}","\\d{6,12}"],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6}","\\d{6,8}",,,"12345678"],[,,"9[1257-9]\\d{6,10}","\\d{8,12}",,,"912345678"],[,,"80[01]\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"6(?:[09]\\d{7}|[145]\\d{4,7})","\\d{6,9}",,,"611234"],[,,"NA","NA"],[,,"7[45]\\d{4,7}","\\d{6,9}",,,"741234567"],[,,"NA","NA"], -"HR",385,"00","0",,,"0",,,,[[,"(1)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1","",0],[,"(6[09])(\\d{4})(\\d{3})","$1 $2 $3",["6[09]"],"0$1","",0],[,"(62)(\\d{3})(\\d{3,4})","$1 $2 $3",["62"],"0$1","",0],[,"([2-5]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-5]"],"0$1","",0],[,"(9\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1","",0],[,"(9\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(9\\d)(\\d{3,4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[145]|7"], -"0$1","",0],[,"(\\d{2})(\\d{3,4})(\\d{3})","$1 $2 $3",["6[145]|7"],"0$1","",0],[,"(80[01])(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1","",0],[,"(80[01])(\\d{3,4})(\\d{3})","$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"62\\d{6,7}","\\d{8,9}",,,"62123456"],,,[,,"NA","NA"]],HT:[,[,,"[2-489]\\d{7}","\\d{8}"],[,,"2(?:[24]\\d|5[1-5]|94)\\d{5}","\\d{8}",,,"22453300"],[,,"(?:3[1-9]|4\\d)\\d{6}","\\d{8}",,,"34101234"],[,,"8\\d{7}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"98[89]\\d{5}","\\d{8}",,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HU:[,[,,"[1-9]\\d{7,8}","\\d{6,9}"],[,,"(?:1\\d|2(?:1\\d|[2-9])|3[2-7]|4[24-9]|5[2-79]|6[23689]|7(?:1\\d|[2-9])|8[2-57-9]|9[2-69])\\d{6}","\\d{6,9}",,,"12345678"],[,,"(?:[27]0|3[01])\\d{7}","\\d{9}",,,"201234567"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"9[01]\\d{6}","\\d{8}",,,"90123456"],[,,"40\\d{6}","\\d{8}",,,"40123456"], -[,,"NA","NA"],[,,"NA","NA"],"HU",36,"00","06",,,"06",,,,[[,"(1)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"($1)","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"($1)","",0]],,[,,"NA","NA"],,,[,,"[48]0\\d{6}","\\d{8}",,,"80123456"],[,,"NA","NA"],,,[,,"NA","NA"]],ID:[,[,,"[1-9]\\d{6,10}","\\d{5,11}"],[,,"2(?:1(?:14\\d{3}|[0-8]\\d{6,7}|500\\d{3}|9\\d{6})|[24]\\d{7,8})|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|2[1-578]|3[1-68]|4[1-3]|5[1-8]|6[1-3568]|7[0-46]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[1246-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:19?|[25]\\d|3[1-469]|4[1-6])|7(?:1[1-46-9]|2[14-9]|[36]\\d|4[1-8]|5[1-9]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}", -"\\d{5,10}",,,"612345678"],[,,"(?:2(?:1(?:3[145]|4[01]|5[1-469]|60|8[0359]|9\\d)|2(?:88|9[1256])|3[1-4]9|4(?:36|91)|5(?:1[349]|[2-4]9)|6[0-7]9|7(?:[1-36]9|4[39])|8[1-5]9|9[1-48]9)|3(?:19[1-3]|2[12]9|3[13]9|4(?:1[69]|39)|5[14]9|6(?:1[69]|2[89])|709)|4[13]19|5(?:1(?:19|8[39])|4[129]9|6[12]9)|6(?:19[12]|2(?:[23]9|77))|7(?:1[13]9|2[15]9|419|5(?:1[89]|29)|6[15]9|7[178]9))\\d{5,6}|8[1-35-9]\\d{7,9}","\\d{9,11}",,,"812345678"],[,,"177\\d{6,8}|800\\d{5,7}","\\d{8,11}",,,"8001234567"],[,,"809\\d{7}","\\d{10}", -,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ID",62,"0(?:0[1789]|10(?:00|1[67]))","0",,,"0",,,,[[,"(\\d{2})(\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)","",0],[,"(\\d{3})(\\d{5,7})","$1 $2",["[4579]|2[035-9]|[36][02-9]"],"(0$1)","",0],[,"(8\\d{2})(\\d{3,4})(\\d{3,4})","$1-$2-$3",["8[1-35-9]"],"0$1","",0],[,"(177)(\\d{6,8})","$1 $2",["1"],"0$1","",0],[,"(800)(\\d{5,7})","$1 $2",["800"],"0$1","",0],[,"(80\\d)(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80[79]"],"0$1","",0]],,[,,"NA","NA"],,, -[,,"8071\\d{6}","\\d{10}",,,"8071123456"],[,,"8071\\d{6}","\\d{10}",,,"8071123456"],,,[,,"NA","NA"]],IE:[,[,,"[124-9]\\d{6,9}","\\d{5,10}"],[,,"1\\d{7,8}|2(?:1\\d{6,7}|3\\d{7}|[24-9]\\d{5})|4(?:0[24]\\d{5}|[1-469]\\d{7}|5\\d{6}|7\\d{5}|8[0-46-9]\\d{7})|5(?:0[45]\\d{5}|1\\d{6}|[23679]\\d{7}|8\\d{5})|6(?:1\\d{6}|[237-9]\\d{5}|[4-6]\\d{7})|7[14]\\d{7}|9(?:1\\d{6}|[04]\\d{7}|[35-9]\\d{5})","\\d{5,10}",,,"2212345"],[,,"8(?:22\\d{6}|[35-9]\\d{7})","\\d{9}",,,"850123456"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"], -[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}","\\d{10}",,,"1520123456"],[,,"18[59]0\\d{6}","\\d{10}",,,"1850123456"],[,,"700\\d{6}","\\d{9}",,,"700123456"],[,,"76\\d{7}","\\d{9}",,,"761234567"],"IE",353,"00","0",,,"0",,,,[[,"(1)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)","",0],[,"(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)","",0],[,"(\\d{3})(\\d{5})","$1 $2",["40[24]|50[45]"],"(0$1)","",0],[,"(48)(\\d{4})(\\d{4})","$1 $2 $3",["48"],"(0$1)","",0],[,"(818)(\\d{3})(\\d{3})","$1 $2 $3", -["81"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"],"(0$1)","",0],[,"([78]\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1","",0],[,"(700)(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1","",0],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:8[059]|5)","1(?:8[059]0|5)"],"$1","",0]],,[,,"NA","NA"],,,[,,"18[59]0\\d{6}","\\d{10}",,,"1850123456"],[,,"818\\d{6}","\\d{9}",,,"818123456"],,,[,,"8[35-9]\\d{8}","\\d{10}",,,"8501234567"]],IL:[,[,,"[17]\\d{6,9}|[2-589]\\d{3}(?:\\d{3,6})?|6\\d{3}", -"\\d{4,10}"],[,,"[2-489]\\d{7}","\\d{7,8}",,,"21234567"],[,,"5(?:[02347-9]\\d{2}|5(?:01|2[23]|3[34]|4[45]|5[5689]|6[67]|7[78]|8[89]|9[7-9])|6[2-9]\\d)\\d{5}","\\d{9}",,,"501234567"],[,,"1(?:80[019]\\d{3}|255)\\d{3}","\\d{7,10}",,,"1800123456"],[,,"1(?:212|(?:9(?:0[01]|19)|200)\\d{2})\\d{4}","\\d{8,10}",,,"1919123456"],[,,"1700\\d{6}","\\d{10}",,,"1700123456"],[,,"NA","NA"],[,,"7(?:2[23]\\d|3[237]\\d|47\\d|6(?:5\\d|8[068])|7\\d{2}|8(?:33|55|77|81))\\d{5}","\\d{9}",,,"771234567"],"IL",972,"0(?:0|1[2-9])", -"0",,,"0",,,,[[,"([2-489])(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1","",0],[,"([57]\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1","",0],[,"(1)([7-9]\\d{2})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"],"$1","",0],[,"(1255)(\\d{3})","$1-$2",["125"],"$1","",0],[,"(1200)(\\d{3})(\\d{3})","$1-$2-$3",["120"],"$1","",0],[,"(1212)(\\d{2})(\\d{2})","$1-$2-$3",["121"],"$1","",0],[,"(1599)(\\d{6})","$1-$2",["15"],"$1","",0],[,"(\\d{4})","*$1",["[2-689]"],"$1","",0]],,[,,"NA","NA"],,,[,,"1700\\d{6}|[2-689]\\d{3}", -"\\d{4,10}",,,"1700123456"],[,,"[2-689]\\d{3}|1599\\d{6}","\\d{4}(?:\\d{6})?",,,"1599123456"],,,[,,"NA","NA"]],IM:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1624\\d{6}","\\d{6,10}",,,"1624456789"],[,,"7[569]24\\d{6}","\\d{10}",,,"7924123456"],[,,"808162\\d{4}","\\d{10}",,,"8081624567"],[,,"(?:872299|90[0167]624)\\d{4}","\\d{10}",,,"9016247890"],[,,"8(?:4(?:40[49]06|5624\\d)|70624\\d)\\d{3}","\\d{10}",,,"8456247890"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"IM", -44,"00","0"," x",,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"3(?:08162\\d|3\\d{5}|4(?:40[49]06|5624\\d)|7(?:0624\\d|2299\\d))\\d{3}|55\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],IN:[,[,,"1\\d{7,12}|[2-9]\\d{9,10}","\\d{6,13}"],[,,"(?:11|2[02]|33|4[04]|79)[2-7]\\d{7}|80[2-467]\\d{7}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[126-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:[136][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[13-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1-5]|4[25-8]|5[125689]|6[235-7]|7[157-9]|8[2-467])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|[57][2-689]|6[24-578]|8[1-6])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d|7(?:(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|9\\d)\\d|8(?:2[0-6]|[013-8]\\d)))[2-7]\\d{5}", -"\\d{6,10}",,,"1123456789"],[,,"(?:7(?:0(?:2[2-9]|[3-8]\\d|9[0-4])|2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]\\d|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]\\d|2[03-9]|5[017-9]|9[7-9])|6(?:0[0127]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[6-9]\\d)|7(?:0[2-9]|[1-79]\\d|8[1-9])|8(?:[0-7]\\d|9[013-9]))|8(?:0(?:[01589]\\d|6[67])|1(?:[02-589]\\d|1[0135-9]|7[0-79])|2(?:[236-9]\\d|5[1-9])|3(?:[0357-9]\\d|4[1-9])|[45]\\d{2}|6[02457-9]\\d|7[1-69]\\d|8(?:[0-26-9]\\d|44|5[2-9])|9(?:[035-9]\\d|2[2-9]|4[0-8]))|9\\d{3})\\d{6}", -"\\d{10}",,,"9123456789"],[,,"1(?:600\\d{6}|80(?:0\\d{4,8}|3\\d{9}))","\\d{8,13}",,,"1800123456"],[,,"186[12]\\d{9}","\\d{13}",,,"1861123456789"],[,,"1860\\d{7}","\\d{11}",,,"18603451234"],[,,"NA","NA"],[,,"NA","NA"],"IN",91,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{5})","$1 $2",["7(?:0[2-9]|2[0579]|3[057-9]|4[0-389]|6[0-35-9]|[57]|8[0-79])|8(?:0[015689]|1[0-57-9]|2[2356-9]|3[0-57-9]|[45]|6[02457-9]|7[1-69]|8[0124-9]|9[02-9])|9","7(?:0(?:2[2-9]|[3-8]|9[0-4])|2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]|2[03-9]|5[017-9]|9[7-9])|6(?:0[0-27]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[6-9])|7(?:0[2-9]|[1-79]|8[1-9])|8(?:[0-7]|9[013-9]))|8(?:0(?:[01589]|6[67])|1(?:[02-589]|1[0135-9]|7[0-79])|2(?:[236-9]|5[1-9])|3(?:[0357-9]|4[1-9])|[45]|6[02457-9]|7[1-69]|8(?:[0-26-9]|44|5[2-9])|9(?:[035-9]|2[2-9]|4[0-8]))|9"], -"0$1","",1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79|80[2-46]"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[569][14]|7[1257]|8[1346]|[68][1-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[126-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:[136][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3", -["7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)","7(?:12|2[14]|3[134]|4[47]|5(?:1|5[2-6])|[67]1|88)"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"],"0$1","",1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"],"0$1","",1],[,"(1600)(\\d{2})(\\d{4})","$1 $2 $3",["160","1600"],"$1","",1],[,"(1800)(\\d{4,5})","$1 $2",["180","1800"],"$1","",1],[,"(18[06]0)(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],"$1","",1],[,"(140)(\\d{3})(\\d{4})", -"$1 $2 $3",["140"],"$1","",1],[,"(\\d{4})(\\d{3})(\\d{4})(\\d{2})","$1 $2 $3 $4",["18[06]","18(?:03|6[12])"],"$1","",1]],,[,,"NA","NA"],,,[,,"1(?:600\\d{6}|8(?:0(?:0\\d{4,8}|3\\d{9})|6(?:0\\d{7}|[12]\\d{9})))","\\d{8,13}",,,"1800123456"],[,,"140\\d{7}","\\d{10}",,,"1409305260"],,,[,,"NA","NA"]],IO:[,[,,"3\\d{6}","\\d{7}"],[,,"37\\d{5}","\\d{7}",,,"3709100"],[,,"38\\d{5}","\\d{7}",,,"3801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})", -"$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],IQ:[,[,,"[1-7]\\d{7,9}","\\d{6,10}"],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}","\\d{6,9}",,,"12345678"],[,,"7[3-9]\\d{8}","\\d{10}",,,"7912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"IQ",964,"00","0",,,"0",,,,[[,"(1)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1","",0],[,"([2-6]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1","",0],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3", -["7"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],IR:[,[,,"[14-8]\\d{6,9}|[23]\\d{4,9}|9(?:[0-4]\\d{8}|9\\d{2,8})","\\d{4,10}"],[,,"1(?:[13-589][12]|[27][1-4])\\d{7}|2(?:1\\d{3,8}|3[12]\\d{7}|4(?:1\\d{4,7}|2\\d{7})|53\\d{7}|6\\d{8}|7[34]\\d{7}|[89][12]\\d{7})|3(?:1[2-5]\\d{7}|2[1-4]\\d{7}|3(?:[125]\\d{7}|4\\d{6,7})|4(?:1\\d{6,7}[24-9]\\d{7})|5(?:1\\d{4,7}|[23]\\d{7})|[6-9][12]\\d{7})|4(?:[135-9][12]\\d{7}|2[1-467]\\d{7}|4(?:1\\d{4,7}|[2-4]\\d{7}))|5(?:1[2-5]\\d{7}|2[89]\\d{7}|3[1-5]\\d{7}|4(?:1\\d{4,7}|[2-8]\\d{7})|[5-7][12]\\d{7}|8[1245]\\d{7})|6(?:1(?:1\\d{6,7}|2\\d{7})|[347-9][12]\\d{7}|5(?:1\\d{7}|2\\d{6,7})|6[1-6]\\d{7})|7(?:1[2-5]|2[1289]|[3589][12]|4[1-4]|6[1-6]|7[1-3])\\d{7}|8(?:[145][12]|3[124578]|6[2-6]|7[1245])\\d{7}", -"\\d{5,10}",,,"2123456789"],[,,"9(?:0[12]|[1-3]\\d)\\d{7}","\\d{10}",,,"9123456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:[2-6]0\\d|993)\\d{7}","\\d{10}",,,"9932123456"],"IR",98,"00","0",,,"0",,,,[[,"(21)(\\d{3,5})","$1 $2",["21"],"0$1","",0],[,"(2[15])(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1|5[0-47-9])"],"0$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[156]|31|51|71|86"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]|2[02-47-9]"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2,3})", -"$1 $2 $3",["[13-9]|2[02-47-9]"],"0$1","",0],[,"(\\d{3})(\\d{3})","$1 $2",["[13-9]|2[02-47-9]"],"0$1","",0]],,[,,"943\\d{7}","\\d{10}",,,"9432123456"],,,[,,"NA","NA"],[,,"9990\\d{0,6}","\\d{4,10}",,,"9990123456"],,,[,,"NA","NA"]],IS:[,[,,"[4-9]\\d{6}|38\\d{7}","\\d{7,9}"],[,,"(?:4(?:1[0-24-6]|2[0-7]|[37][0-8]|4[0-245]|5[0-3568]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[013-7]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|87[23])\\d{4}","\\d{7}",,,"4101234"],[,,"38[589]\\d{6}|(?:6(?:1[1-8]|3[089]|4[0167]|5[019]|[67][0-69]|9\\d)|7(?:5[057]|7\\d|8[0-36-8])|8(?:2[0-5]|3[0-4]|[469]\\d|5[1-9]))\\d{4}", -"\\d{7,9}",,,"6111234"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"90\\d{5}","\\d{7}",,,"9011234"],[,,"NA","NA"],[,,"NA","NA"],[,,"49\\d{5}","\\d{7}",,,"4921234"],"IS",354,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"],"","",0],[,"(3\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["3"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"(?:6(?:2[0-8]|49|8\\d)|87[0189]|95[48])\\d{4}","\\d{7}",,,"6201234"]],IT:[,[,,"[01589]\\d{5,10}|3(?:[12457-9]\\d{8}|[36]\\d{7,9})","\\d{6,11}"],[,,"0(?:[26]\\d{4,9}|(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7})", -"\\d{6,11}",,,"0212345678"],[,,"3(?:[12457-9]\\d{8}|6\\d{7,8}|3\\d{7,9})","\\d{9,11}",,,"3123456789"],[,,"80(?:0\\d{6}|3\\d{3})","\\d{6,9}",,,"800123456"],[,,"0878\\d{5}|1(?:44|6[346])\\d{6}|89(?:2\\d{3}|4(?:[0-4]\\d{2}|[5-9]\\d{4})|5(?:[0-4]\\d{2}|[5-9]\\d{6})|9\\d{6})","\\d{6,10}",,,"899123456"],[,,"84(?:[08]\\d{6}|[17]\\d{3})","\\d{6,9}",,,"848123456"],[,,"1(?:78\\d|99)\\d{6}","\\d{9,10}",,,"1781234567"],[,,"55\\d{8}","\\d{10}",,,"5512345678"],"IT",39,"00",,,,,,,,[[,"(\\d{2})(\\d{3,4})(\\d{4})", -"$1 $2 $3",["0[26]|55"],"","",0],[,"(0[26])(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"],"","",0],[,"(0[26])(\\d{4,6})","$1 $2",["0[26]"],"","",0],[,"(0\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"],"","",0],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"],"","",0],[,"(0\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"],"","",0],[,"(0\\d{3})(\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})", -"$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"],"","",0],[,"(\\d{4})(\\d{4})","$1 $2",["894","894[5-9]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3"],"","",0]],,[,,"NA","NA"],,,[,,"848\\d{6}","\\d{9}",,,"848123456"],[,,"NA","NA"],1,,[,,"NA","NA"]],JE:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1534\\d{6}","\\d{6,10}",,,"1534456789"],[,,"7(?:509|7(?:00|97)|829|937)\\d{6}","\\d{10}",,,"7797123456"],[,,"80(?:07(?:35|81)|8901)\\d{4}","\\d{10}",,,"8007354567"],[,,"(?:871206|90(?:066[59]|1810|71(?:07|55)))\\d{4}", -"\\d{10}",,,"9018105678"],[,,"8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\d{4}","\\d{10}",,,"8447034567"],[,,"701511\\d{4}","\\d{10}",,,"7015115678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"JE",44,"00","0"," x",,"0",,,,,,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],,,[,,"NA","NA"],[,,"3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\d{4}|55\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],JM:[,[,, -"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"876(?:5(?:0[12]|1[0-468]|2[35]|63)|6(?:0[1-3579]|1[027-9]|[23]\\d|40|5[06]|6[2-589]|7[05]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468]))\\d{4}","\\d{7}(?:\\d{3})?",,,"8765123456"],[,,"876(?:2[1789]\\d|[348]\\d{2}|5(?:08|27|6[0-24-9]|[3-578]\\d)|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579]))\\d{4}","\\d{10}",,,"8762101234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}", -"\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"JM",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"876",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],JO:[,[,,"[235-9]\\d{7,8}","\\d{7,9}"],[,,"(?:2(?:6(?:2[0-35-9]|3[0-57-8]|4[24-7]|5[0-24-8]|[6-8][02]|9[0-2])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-2]|[57][02]|60)|53(?:0[0-2]|[13][02]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2[50]0|300|4(?:0[0125]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[17-8]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[02-39]))|87(?:[02]0|7[08]|9[09]))\\d{4}", -"\\d{7,8}",,,"62001234"],[,,"7(?:55|7[25-9]|8[05-9]|9[015-9])\\d{6}","\\d{9}",,,"790123456"],[,,"80\\d{6}","\\d{8}",,,"80012345"],[,,"900\\d{5}","\\d{8}",,,"90012345"],[,,"85\\d{6}","\\d{8}",,,"85012345"],[,,"70\\d{7}","\\d{9}",,,"700123456"],[,,"NA","NA"],"JO",962,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)","",0],[,"(7)(\\d{4})(\\d{4})","$1 $2 $3",["7[457-9]"],"0$1","",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["70|8[0158]|9"],"0$1","",0]],,[,,"74(?:66|77)\\d{5}","\\d{9}", -,,"746612345"],,,[,,"NA","NA"],[,,"8(?:10|8\\d)\\d{5}","\\d{8}",,,"88101234"],,,[,,"NA","NA"]],JP:[,[,,"[1-9]\\d{8,9}|00(?:[36]\\d{7,14}|7\\d{5,7}|8\\d{7})","\\d{8,17}"],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|2[2-9]\\d|[36][1-9]\\d|4(?:6[02-8]|[2-578]\\d|9[2-59])|5(?:6[1-9]|7[2-8]|[2-589]\\d)|7(?:3[4-9]|4[02-9]|[25-9]\\d)|8(?:3[2-9]|4[5-9]|5[1-9]|8[03-9]|[2679]\\d)|9(?:[679][1-9]|[2-58]\\d))\\d{6}","\\d{9}",,,"312345678"],[,,"[7-9]0[1-9]\\d{7}","\\d{10}",,,"7012345678"], -[,,"120\\d{6}|800\\d{7}|00(?:37\\d{6,13}|66\\d{6,13}|777(?:[01]\\d{2}|5\\d{3}|8\\d{4})|882[1245]\\d{4})","\\d{8,17}",,,"120123456"],[,,"990\\d{6}","\\d{9}",,,"990123456"],[,,"NA","NA"],[,,"60\\d{7}","\\d{9}",,,"601234567"],[,,"50[1-9]\\d{7}","\\d{10}",,,"5012345678"],"JP",81,"010","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1","",0],[,"(\\d{4})(\\d{4})","$1-$2",["0077"],"$1","",0],[,"(\\d{4})(\\d{2})(\\d{3,4})", -"$1-$2-$3",["0077"],"$1","",0],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["0088"],"$1","",0],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"],"0$1","",0],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|5(?:76|97)|499|746|8(?:3[89]|63|47|51)|9(?:49|80|9[16])", -"1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:76|97)9|499[2468]|7468|8(?:3(?:8[78]|96)|636|477|51[24])|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:769|979[2-69])|499[2468]|7468|8(?:3(?:8[78]|96[2457-9])|636[2-57-9]|477|51[24])|9(?:496|802|9(?:1[23]|69))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:7[2-6]|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|[4-7]))", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6[56]))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6(?:5[25]|60)))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"], -"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5(?:[2-589]|39)|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93(?:31|4))"], -"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["2(?:9[14-79]|74|[34]7|[56]9)|82|993"],"0$1","",0],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[2479][1-9]"],"0$1","",0]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"],"0$1","",0],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|5(?:76|97)|499|746|8(?:3[89]|63|47|51)|9(?:49|80|9[16])", -"1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:76|97)9|499[2468]|7468|8(?:3(?:8[78]|96)|636|477|51[24])|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:769|979[2-69])|499[2468]|7468|8(?:3(?:8[78]|96[2457-9])|636[2-57-9]|477|51[24])|9(?:496|802|9(?:1[23]|69))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:7[2-6]|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|[4-7]))", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6[56]))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))", -"1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6(?:5[25]|60)))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"], -"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5(?:[2-589]|39)|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93(?:31|4))"], -"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["2(?:9[14-79]|74|[34]7|[56]9)|82|993"],"0$1","",0],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[2479][1-9]"],"0$1","",0]],[,,"20\\d{8}","\\d{10}",,,"2012345678"],,,[,,"00(?:37\\d{6,13}|66\\d{6,13}|777(?:[01]\\d{2}|5\\d{3}|8\\d{4})|882[1245]\\d{4})","\\d{8,17}",,,"00777012"],[,,"570\\d{6}","\\d{9}",,,"570123456"],1,,[,,"NA","NA"]],KE:[,[,,"20\\d{6,7}|[4-9]\\d{6,9}","\\d{7,10}"], -[,,"20\\d{6,7}|4(?:[0136]\\d{7}|[245]\\d{5,7})|5(?:[08]\\d{7}|[1-79]\\d{5,7})|6(?:[01457-9]\\d{5,7}|[26]\\d{7})","\\d{7,9}",,,"202012345"],[,,"7(?:[0-36]\\d|5[0-6]|7[0-5]|8[0-25-9])\\d{6}","\\d{9}",,,"712123456"],[,,"800[24-8]\\d{5,6}","\\d{9,10}",,,"800223456"],[,,"900[02-9]\\d{5}","\\d{9}",,,"900223456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KE",254,"000","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1","",0],[,"(\\d{3})(\\d{6,7})","$1 $2",["7"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})", -"$1 $2 $3",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KG:[,[,,"[235-8]\\d{8,9}","\\d{5,10}"],[,,"(?:3(?:1(?:[256]\\d|3[1-9]|47)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}","\\d{5,10}",,,"312123456"],[,,"(?:20[0-35]|5[124-7]\\d|7[07]\\d)\\d{6}","\\d{9}",,,"700123456"],[,,"800\\d{6,7}","\\d{9,10}",,,"800123456"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"NA","NA"],[,,"NA","NA"],"KG",996,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[25-7]|31[25]"],"0$1","",0],[,"(\\d{4})(\\d{5})","$1 $2",["3(?:1[36]|[2-9])"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d)(\\d{3})","$1 $2 $3 $4",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KH:[,[,,"[1-9]\\d{7,9}","\\d{6,10}"],[,,"(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:[237-9]|4[56]|5\\d|6\\d?)\\d{5}|23(?:4[234]|8\\d{2})\\d{4}","\\d{6,9}",,,"23756789"],[,,"(?:1(?:[013-9]|2\\d?)|3[18]\\d|6[016-9]|7(?:[07-9]|6\\d)|8(?:[013-79]|8\\d)|9(?:6\\d|7\\d?|[0-589]))\\d{6}", -"\\d{8,9}",,,"91234567"],[,,"1800(?:1\\d|2[019])\\d{4}","\\d{10}",,,"1800123456"],[,,"1900(?:1\\d|2[09])\\d{4}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["1\\d[1-9]|[2-9]"],"0$1","",0],[,"(1[89]00)(\\d{3})(\\d{3})","$1 $2 $3",["1[89]0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KI:[,[,,"[2458]\\d{4}|3\\d{4,7}|7\\d{7}","\\d{5,8}"],[,,"(?:[24]\\d|3[1-9]|50|8[0-5])\\d{3}", -"\\d{5}",,,"31234"],[,,"7(?:[24]\\d|3[1-9]|8[0-5])\\d{5}","\\d{8}",,,"72012345"],[,,"NA","NA"],[,,"3001\\d{4}","\\d{5,8}",,,"30010000"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KI",686,"00",,,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KM:[,[,,"[379]\\d{6}","\\d{7}"],[,,"7(?:6[0-37-9]|7[0-57-9])\\d{4}","\\d{7}",,,"7712345"],[,,"3[234]\\d{5}","\\d{7}",,,"3212345"],[,,"NA","NA"],[,,"(?:39[01]|9[01]0)\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"], -"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KN:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70))\\d{4}","\\d{7}(?:\\d{3})?",,,"8692361234"],[,,"869(?:5(?:5[6-8]|6[5-7])|66\\d|76[02-6])\\d{4}","\\d{10}",,,"8697652917"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}", -"\\d{10}",,,"5002345678"],[,,"NA","NA"],"KN",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"869",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KP:[,[,,"1\\d{9}|[28]\\d{7}","\\d{6,8}|\\d{10}"],[,,"2\\d{7}|85\\d{6}","\\d{6,8}",,,"21234567"],[,,"19[123]\\d{7}","\\d{10}",,,"1921234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KP",850,"00|99","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1","",0],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})", -"$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"2(?:[0-24-9]\\d{2}|3(?:[0-79]\\d|8[02-9]))\\d{4}","\\d{8}",,,"23821234"],[,,"NA","NA"],,,[,,"NA","NA"]],KR:[,[,,"[1-7]\\d{3,9}|8\\d{8}","\\d{4,10}"],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])(?:1\\d{2,3}|[1-9]\\d{6,7})","\\d{4,10}",,,"22123456"],[,,"1[0-26-9]\\d{7,8}","\\d{9,10}",,,"1023456789"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"60[2-9]\\d{6}","\\d{9}",,,"602345678"],[,,"NA","NA"],[,,"50\\d{8}","\\d{10}",,,"5012345678"],[,,"70\\d{8}","\\d{10}",,,"7012345678"], -"KR",82,"00(?:[124-68]|[37]\\d{2})","0",,,"0(8[1-46-8]|85\\d{2})?",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["1(?:0|1[19]|[69]9|5[458])|[57]0","1(?:0|1[19]|[69]9|5(?:44|59|8))|[57]0"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["1(?:[169][2-8]|[78]|5[1-4])|[68]0|[3-6][1-9][1-9]","1(?:[169][2-8]|[78]|5(?:[1-3]|4[56]))|[68]0|[3-6][1-9][1-9]"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d)(\\d{4})","$1-$2-$3",["131","1312"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["131", -"131[13-9]"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["13[2-9]"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3-$4",["30"],"0$1","0$CC-$1",0],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2[1-9]"],"0$1","0$CC-$1",0],[,"(\\d)(\\d{3,4})","$1-$2",["21[0-46-9]"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{3,4})","$1-$2",["[3-6][1-9]1","[3-6][1-9]1(?:[0-46-9])"],"0$1","0$CC-$1",0],[,"(\\d{4})(\\d{4})","$1-$2",["1(?:5[46-9]|6[04678])","1(?:5(?:44|66|77|88|99)|6(?:00|44|6[16]|70|88))"], -"$1","0$CC-$1",0]],,[,,"15\\d{7,8}","\\d{9,10}",,,"1523456789"],,,[,,"NA","NA"],[,,"1(?:5(?:44|66|77|88|99)|6(?:00|44|6[16]|70|88))\\d{4}","\\d{8}",,,"15441234"],,,[,,"NA","NA"]],KW:[,[,,"[12569]\\d{6,7}","\\d{7,8}"],[,,"(?:18\\d|2(?:[23]\\d{2}|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7])))\\d{4}","\\d{7,8}",,,"22345678"],[,,"(?:5(?:[05]\\d|1[0-6])|6(?:0[034679]|5[015-9]|6\\d|7[067]|9[0369])|9(?:0[09]|4[049]|55|6[069]|[79]\\d|8[089]))\\d{5}","\\d{8}",,,"50012345"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[1269]"],"","",0],[,"(5[015]\\d)(\\d{5})","$1 $2",["5"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KY:[,[,,"[3589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"345(?:2(?:22|44)|444|6(?:23|38|40)|7(?:4[35-79]|6[6-9]|77)|8(?:00|1[45]|25|[48]8)|9(?:14|4[035-9]))\\d{4}","\\d{7}(?:\\d{3})?",,,"3452221234"],[,,"345(?:32[1-9]|5(?:1[67]|2[5-7]|4[6-8]|76)|9(?:1[67]|2[3-9]|3[689]))\\d{4}", -"\\d{10}",,,"3453231234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}|345976\\d{4}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"KY",1,"011","1",,,"1",,,,,,[,,"345849\\d{4}","\\d{10}",,,"3458491234"],,"345",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KZ:[,[,,"(?:33\\d|7\\d{2}|80[09])\\d{7}","\\d{10}"],[,,"33622\\d{5}|7(?:1(?:0(?:[23]\\d|4[023]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[1-79]|4[0-35-9]|59)|4(?:2\\d|3[013-79]|4[0-8]|5[1-79])|5(?:2\\d|3[1-8]|4[1-7]|59)|6(?:[234]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[234]\\d|5[139])|4(?:2\\d|3[1235-9]|59)|5(?:[23]\\d|4[01246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[237]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}", -"\\d{10}",,,"7123456789"],[,,"7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\d{7}","\\d{10}",,,"7710009998"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"809\\d{7}","\\d{10}",,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"751\\d{7}","\\d{10}",,,"7511234567"],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,"NA","NA"],,,[,,"751\\d{7}","\\d{10}",,,"7511234567"],[,,"NA","NA"],,,[,,"NA","NA"]],LA:[,[,,"[2-8]\\d{7,9}","\\d{6,10}"],[,,"(?:2[13]|3(?:0\\d|[14])|[5-7][14]|41|8[1468])\\d{6}","\\d{6,9}",,,"21212862"],[,,"20(?:2[2389]|5[4-689]|7[6-8]|9[57-9])\\d{6}", -"\\d{10}",,,"2023123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LA",856,"00","0",,,"0",,,,[[,"(20)(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["20"],"0$1","",0],[,"([2-8]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1","",0],[,"(30)(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LB:[,[,,"[13-9]\\d{6,7}","\\d{7,8}"],[,,"(?:[14-6]\\d{2}|7(?:[2-579]\\d|62|8[0-7])|[89][2-9]\\d)\\d{4}","\\d{7}", -,,"1123456"],[,,"(?:3\\d|7(?:[019]\\d|6[013-9]|8[89]))\\d{5}","\\d{7,8}",,,"71123456"],[,,"NA","NA"],[,,"9[01]\\d{6}","\\d{8}",,,"90123456"],[,,"8[01]\\d{6}","\\d{8}",,,"80123456"],[,,"NA","NA"],[,,"NA","NA"],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-6]|7(?:[2-579]|62|8[0-7])|[89][2-9]"],"0$1","",0],[,"([7-9]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[89][01]|7(?:[019]|6[013-9]|8[89])"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LC:[,[,,"[5789]\\d{9}", -"\\d{7}(?:\\d{3})?"],[,,"758(?:4(?:30|5[0-9]|6[2-9]|8[0-2])|57[0-2]|638)\\d{4}","\\d{7}(?:\\d{3})?",,,"7584305678"],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2[0-8]))\\d{4}","\\d{10}",,,"7582845678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"LC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"758",[,,"NA","NA"],[,,"NA","NA"], -,,[,,"NA","NA"]],LI:[,[,,"6\\d{8}|[23789]\\d{6}","\\d{7,9}"],[,,"(?:2(?:01|1[27]|3\\d|6[02-578]|96)|3(?:7[0135-7]|8[048]|9[0269]))\\d{4}","\\d{7}",,,"2345678"],[,,"6(?:51[01]|6(?:[01][0-4]|2[016-9]|88)|710)\\d{5}|7(?:36|4[25]|56|[7-9]\\d)\\d{4}","\\d{7,9}",,,"661234567"],[,,"80(?:0(?:2[238]|79)|9\\d{2})\\d{2}","\\d{7}",,,"8002222"],[,,"90(?:0(?:2[278]|79)|1(?:23|3[012])|6(?:4\\d|6[0126]))\\d{2}","\\d{7}",,,"9002222"],[,,"NA","NA"],[,,"701\\d{4}","\\d{7}",,,"7011234"],[,,"NA","NA"],"LI",423,"00","0", -,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[23]|7[3-57-9]|87"],"","",0],[,"(6\\d)(\\d{3})(\\d{3})","$1 $2 $3",["6"],"","",0],[,"(6[567]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["6[567]"],"","",0],[,"(69)(7\\d{2})(\\d{4})","$1 $2 $3",["697"],"","",0],[,"([7-9]0\\d)(\\d{2})(\\d{2})","$1 $2 $3",["[7-9]0"],"","",0],[,"([89]0\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]0"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"87(?:0[128]|7[0-4])\\d{3}","\\d{7}",,,"8770123"],,,[,,"697(?:[35]6|4[25]|[7-9]\\d)\\d{4}", -"\\d{9}",,,"697361234"]],LK:[,[,,"[1-9]\\d{8}","\\d{7,9}"],[,,"(?:[189]1|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}","\\d{7,9}",,,"112345678"],[,,"7[125-8]\\d{7}","\\d{9}",,,"712345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LK",94,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{1})(\\d{6})","$1 $2 $3",["[1-689]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LR:[,[,,"2\\d{7}|[37-9]\\d{8}|[45]\\d{6}", -"\\d{7,9}"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"(?:330\\d|4[67]|5\\d|77\\d{2}|88\\d{2}|994\\d)\\d{5}","\\d{7,9}",,,"770123456"],[,,"NA","NA"],[,,"90[03]\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"332(?:0[02]|5\\d)\\d{4}","\\d{9}",,,"332001234"],"LR",231,"00","0",,,"0",,,,[[,"(2\\d)(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1","",0],[,"([79]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[79]"],"0$1","",0],[,"([4-6])(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})", -"$1 $2 $3",["[38]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LS:[,[,,"[2568]\\d{7}","\\d{8}"],[,,"2\\d{7}","\\d{8}",,,"22123456"],[,,"[56]\\d{7}","\\d{8}",,,"50123456"],[,,"800[256]\\d{4}","\\d{8}",,,"80021234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LT:[,[,,"[3-9]\\d{7}","\\d{8}"],[,,"(?:3[1478]|4[124-6]|52)\\d{6}","\\d{8}", -,,"31234567"],[,,"6\\d{7}","\\d{8}",,,"61234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}","\\d{8}",,,"90012345"],[,,"808\\d{5}","\\d{8}",,,"80812345"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"LT",370,"00","8",,,"[08]",,,,[[,"([34]\\d)(\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"],"(8-$1)","",1],[,"([3-6]\\d{2})(\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"],"(8-$1)","",1],[,"([7-9]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1","",1],[,"(5)(2\\d{2})(\\d{4})", -"$1 $2 $3",["52[0-79]"],"(8-$1)","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"70[67]\\d{5}","\\d{8}",,,"70712345"],,,[,,"NA","NA"]],LU:[,[,,"[24-9]\\d{3,10}|3(?:[0-46-9]\\d{2,9}|5[013-9]\\d{1,8})","\\d{4,11}"],[,,"(?:2(?:2\\d{1,2}|3[2-9]|[67]\\d|4[1-8]\\d?|5[1-5]\\d?|9[0-24-9]\\d?)|3(?:[059][05-9]|[13]\\d|[26][015-9]|4[0-26-9]|7[0-389]|8[08])\\d?|4\\d{2,3}|5(?:[01458]\\d|[27][0-69]|3[0-3]|[69][0-7])\\d?|7(?:1[019]|2[05-9]|3[05]|[45][07-9]|[679][089]|8[06-9])\\d?|8(?:0[2-9]|1[0-36-9]|3[3-9]|[469]9|[58][7-9]|7[89])\\d?|9(?:0[89]|2[0-49]|37|49|5[0-27-9]|7[7-9]|9[0-478])\\d?)\\d{1,7}", -"\\d{4,11}",,,"27123456"],[,,"6(?:[269][18]|71)\\d{6}","\\d{9}",,,"628123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[01]\\d{5}","\\d{8}",,,"90012345"],[,,"801\\d{5}","\\d{8}",,,"80112345"],[,,"70\\d{6}","\\d{8}",,,"70123456"],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})","\\d{4,10}",,,"20201234"],"LU",352,"00",,,,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\d)",,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:[1-9]|0[2-9])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:[1-9]|0[2-9])"], -"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|[89](?:[1-9]|0[2-9])"],"","$CC $1",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3", -["[89]0[01]|70"],"","$CC $1",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LV:[,[,,"[2689]\\d{7}","\\d{8}"],[,,"6[3-8]\\d{6}","\\d{8}",,,"63123456"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"81\\d{6}","\\d{8}",,,"81123456"],[,,"NA","NA"],[,,"NA","NA"],"LV",371,"00",,,,,,,,[[,"([2689]\\d)(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,, -"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LY:[,[,,"[25679]\\d{8}","\\d{7,9}"],[,,"(?:2[1345]|5[1347]|6[123479]|71)\\d{7}","\\d{7,9}",,,"212345678"],[,,"9[1-6]\\d{7}","\\d{9}",,,"912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LY",218,"00","0",,,"0",,,,[[,"([25679]\\d)(\\d{7})","$1-$2",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MA:[,[,,"[5689]\\d{8}","\\d{9}"],[,,"5(?:2(?:(?:[015-7]\\d|2[2-9]|3[2-57]|4[2-8]|8[235-7])\\d|9(?:0\\d|[89]0))|3(?:(?:[0-4]\\d|[57][2-9]|6[235-8]|9[3-9])\\d|8(?:0\\d|[89]0)))\\d{4}", -"\\d{9}",,,"520123456"],[,,"6(?:0[0-8]|[12-7]\\d|8[01]|9[2457-9])\\d{6}","\\d{9}",,,"650123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89\\d{7}","\\d{9}",,,"891234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MA",212,"00","0",,,"0",,,,[[,"([56]\\d{2})(\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|6"],"0$1","",0],[,"([58]\\d{3})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9])|892","5(?:2(?:[2-48]|90)|3(?:[5-79]|80))|892"],"0$1","",0],[,"(5\\d{4})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"],"0$1","", -0],[,"(8[09])(\\d{7})","$1-$2",["8(?:0|9[013-9])"],"0$1","",0]],,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MC:[,[,,"[4689]\\d{7,8}","\\d{8,9}"],[,,"870\\d{5}|9[2-47-9]\\d{6}","\\d{8}",,,"99123456"],[,,"6\\d{8}|4(?:4\\d|5[2-9])\\d{5}","\\d{8,9}",,,"612345678"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MC",377,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3", -["4"],"0$1","",0],[,"(6)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["8"],"$1","",0]],,[,,"NA","NA"],,,[,,"8\\d{7}","\\d{8}"],[,,"NA","NA"],,,[,,"NA","NA"]],MD:[,[,,"[235-9]\\d{7}","\\d{8}"],[,,"(?:2(?:1[0569]|2\\d|3[015-7]|4[1-46-9]|5[0-24689]|6[2-589]|7[1-37]|9[1347-9])|5(?:33|5[257]))\\d{5}","\\d{8}",,,"22212345"],[,,"(?:562\\d|6(?:[089]\\d{2}|1[01]\\d|21\\d|50\\d|7(?:[1-6]\\d|7[0-4]))|7(?:6[07]|7[457-9]|[89]\\d)\\d)\\d{4}","\\d{8}", -,,"65012345"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[056]\\d{5}","\\d{8}",,,"90012345"],[,,"808\\d{5}","\\d{8}",,,"80812345"],[,,"NA","NA"],[,,"3[08]\\d{6}","\\d{8}",,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1","",0],[,"([25-7]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["2[13-79]|[5-7]"],"0$1","",0],[,"([89]\\d{2})(\\d{5})","$1 $2",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"8(?:03|14)\\d{5}","\\d{8}",,,"80312345"],,,[,,"NA","NA"]],ME:[, -[,,"[2-9]\\d{7,8}","\\d{6,9}"],[,,"(?:20[2-8]|3(?:0[2-7]|1[35-7]|2[3567]|3[4-7])|4(?:0[237]|1[27])|5(?:0[47]|1[27]|2[378]))\\d{5}","\\d{6,8}",,,"30234567"],[,,"6(?:32\\d|[89]\\d{2}|7(?:[0-8]\\d|9(?:[3-9]|[0-2]\\d)))\\d{4}","\\d{8,9}",,,"67622901"],[,,"800[28]\\d{4}","\\d{8}",,,"80080002"],[,,"(?:88\\d|9(?:4[13-8]|5[16-8]))\\d{5}","\\d{8}",,,"94515151"],[,,"NA","NA"],[,,"NA","NA"],[,,"78[1-9]\\d{5}","\\d{8}",,,"78108780"],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]|6[3789]", -"[2-57-9]|6(?:[389]|7(?:[0-8]|9[3-9]))"],"0$1","",0],[,"(67)(9)(\\d{3})(\\d{3})","$1 $2 $3 $4",["679","679[0-2]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"77\\d{6}","\\d{8}",,,"77273012"],,,[,,"NA","NA"]],MF:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:[02][79]|13|5[0-268]|[78]7)\\d{4}","\\d{9}",,,"590271234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MF",590,"00","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[, -,"NA","NA"],,,[,,"NA","NA"]],MG:[,[,,"[23]\\d{8}","\\d{7,9}"],[,,"20(?:2\\d{2}|4[47]\\d|5[3467]\\d|6[279]\\d|7(?:2[29]|[35]\\d)|8[268]\\d|9[245]\\d)\\d{4}","\\d{7,9}",,,"202123456"],[,,"3[2-49]\\d{7}","\\d{9}",,,"321234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"22\\d{7}","\\d{9}",,,"221234567"],"MG",261,"00","0",,,"0",,,,[[,"([23]\\d)(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MH:[,[,,"[2-6]\\d{6}","\\d{7}"], -[,,"(?:247|528|625)\\d{4}","\\d{7}",,,"2471234"],[,,"(?:235|329|45[56]|545)\\d{4}","\\d{7}",,,"2351234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"635\\d{4}","\\d{7}",,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MK:[,[,,"[2-578]\\d{7}","\\d{8}"],[,,"(?:2(?:[23]\\d|5[124578]|6[01])|3(?:1[3-6]|[23][2-6]|4[2356])|4(?:[23][2-6]|4[3-6]|5[256]|6[25-8]|7[24-6]|8[4-6]))\\d{5}","\\d{6,8}",, -,"22212345"],[,,"7(?:[0-25-8]\\d{2}|32\\d|421)\\d{4}","\\d{8}",,,"72345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"5[02-9]\\d{6}","\\d{8}",,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}","\\d{8}",,,"80123456"],[,,"NA","NA"],[,,"NA","NA"],"MK",389,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"([347]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1","",0],[,"([58]\\d{2})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"], -,,[,,"NA","NA"]],ML:[,[,,"[246-9]\\d{7}","\\d{8}"],[,,"(?:2(?:0(?:2[0-589]|7\\d)|1(?:2[5-7]|[3-689]\\d|7[2-4689]))|44[239]\\d)\\d{4}","\\d{8}",,,"20212345"],[,,"[67]\\d{7}|9[0-25-9]\\d{6}","\\d{8}",,,"65012345"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ML",223,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[246-9]"],"","",0],[,"(\\d{4})","$1",["67|74"],"","",0]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[246-9]"], -"","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MM:[,[,,"[14578]\\d{5,7}|[26]\\d{5,8}|9(?:2\\d{0,2}|[58]|3\\d|4\\d{1,2}|6\\d?|[79]\\d{0,2})\\d{6}","\\d{5,10}"],[,,"1(?:2\\d{1,2}|[3-5]\\d|6\\d?|[89][0-6]\\d)\\d{4}|2(?:[236-9]\\d{4}|4(?:0\\d{5}|\\d{4})|5(?:1\\d{3,6}|[02-9]\\d{3,5}))|4(?:2[245-8]|[346][2-6]|5[3-5])\\d{4}|5(?:2(?:20?|[3-8])|3[2-68]|4(?:21?|[4-8])|5[23]|6[2-4]|7[2-8]|8[24-7]|9[2-7])\\d{4}|6(?:0[23]|1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7(?:[2367]|4\\d|5\\d?|8[145]\\d)|8[245]|9[24])\\d{4}|7(?:[04][24-8]|[15][2-7]|22|3[2-4])\\d{4}|8(?:1(?:2\\d?|[3-689])|2[2-8]|3[24]|4[24-7]|5[245]|6[23])\\d{4}", -"\\d{5,9}",,,"1234567"],[,,"17[01]\\d{4}|9(?:2(?:[0-4]|5\\d{2})|3[136]\\d|4(?:0[0-4]\\d|[1379]\\d|[24][0-589]\\d|5\\d{2}|88)|5[0-6]|61?\\d|7(?:3\\d|9\\d{2})|8\\d|9(?:1\\d|7\\d{2}|[089]))\\d{5}","\\d{7,10}",,,"92123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"1333\\d{4}","\\d{8}",,,"13331234"],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["1|2[45]"],"0$1","",0],[,"(2)(\\d{4})(\\d{4})","$1 $2 $3",["251"],"0$1","",0],[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"], -"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["67|81"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{3,4})","$1 $2 $3",["[4-8]"],"0$1","",0],[,"(9)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[13789])"],"0$1","",0],[,"(9)(4\\d{4})(\\d{4})","$1 $2 $3",["94[0245]"],"0$1","",0],[,"(9)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["925"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MN:[,[,,"[12]\\d{7,9}|[57-9]\\d{7}","\\d{6,10}"],[,,"[12](?:1\\d|2(?:[1-3]\\d?|7\\d)|3[2-8]\\d{1,2}|4[2-68]\\d{1,2}|5[1-4689]\\d{1,2})\\d{5}|5[0568]\\d{6}", -"\\d{6,10}",,,"50123456"],[,,"(?:8[689]|9[013-9])\\d{6}","\\d{8}",,,"88123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"7[05-8]\\d{6}","\\d{8}",,,"75123456"],"MN",976,"001","0",,,"0",,,,[[,"([12]\\d)(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1","",0],[,"([12]2\\d)(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1","",0],[,"([12]\\d{3})(\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\d)2"],"0$1","",0],[,"(\\d{4})(\\d{4})","$1 $2",["[57-9]"],"$1","",0],[,"([12]\\d{4})(\\d{4,5})","$1 $2", -["[12](?:27|[3-5])","[12](?:27|[3-5]\\d)[4-9]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MO:[,[,,"[268]\\d{7}","\\d{8}"],[,,"(?:28[2-57-9]|8[2-57-9]\\d)\\d{5}","\\d{8}",,,"28212345"],[,,"6[236]\\d{6}","\\d{8}",,,"66123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MO",853,"00",,,,,,,,[[,"([268]\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MP:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"], -[,,"670(?:2(?:3[3-7]|56|8[5-8])|32[1238]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[589]|8[3-9]8|989)\\d{4}","\\d{7}(?:\\d{3})?",,,"6702345678"],[,,"670(?:2(?:3[3-7]|56|8[5-8])|32[1238]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[589]|8[3-9]8|989)\\d{4}","\\d{7}(?:\\d{3})?",,,"6702345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"MP", -1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"670",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MQ:[,[,,"[56]\\d{8}","\\d{9}"],[,,"596(?:0[2-5]|[12]0|3[05-9]|4[024-8]|[5-7]\\d|89|9[4-8])\\d{4}","\\d{9}",,,"596301234"],[,,"696(?:[0-479]\\d|5[01]|8[0-689])\\d{4}","\\d{9}",,,"696201234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]], -MR:[,[,,"[2-48]\\d{7}","\\d{8}"],[,,"25[08]\\d{5}|35\\d{6}|45[1-7]\\d{5}","\\d{8}",,,"35123456"],[,,"(?:2(?:2\\d|70)|3(?:3\\d|6[1-36]|7[1-3])|4(?:[49]\\d|6[0457-9]|7[4-9]|8[01346-8]))\\d{5}","\\d{8}",,,"22123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MR",222,"00",,,,,,,,[[,"([2-48]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MS:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"], -[,,"664491\\d{4}","\\d{7}(?:\\d{3})?",,,"6644912345"],[,,"66449[2-6]\\d{4}","\\d{10}",,,"6644923456"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"MS",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"664",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MT:[,[,,"[2357-9]\\d{7}","\\d{8}"],[,,"2(?:0(?:1[0-6]|3[1-4]|[69]\\d)|[1-357]\\d{2})\\d{4}","\\d{8}",,,"21001234"], -[,,"(?:7(?:210|[79]\\d{2})|9(?:2(?:1[01]|31)|696|8(?:1[1-3]|89|97)|9\\d{2}))\\d{4}","\\d{8}",,,"96961234"],[,,"800[3467]\\d{4}","\\d{8}",,,"80071234"],[,,"5(?:0(?:0(?:37|43)|6\\d{2}|70\\d|9[0168])|[12]\\d0[1-5])\\d{3}","\\d{8}",,,"50037123"],[,,"NA","NA"],[,,"NA","NA"],[,,"3550\\d{4}","\\d{8}",,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"7117\\d{4}","\\d{8}",,,"71171234"],,,[,,"NA","NA"],[,,"501\\d{5}","\\d{8}",,,"50112345"],,,[,,"NA","NA"]],MU:[,[,,"[2-9]\\d{6,7}", -"\\d{7,8}"],[,,"(?:2(?:[03478]\\d|1[0-7]|6[1-69])|4(?:[013568]\\d|2[4-7])|5(?:44\\d|471)|6\\d{2}|8(?:14|3[129]))\\d{4}","\\d{7,8}",,,"2012345"],[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[256]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,"52512345"],[,,"80[012]\\d{4}","\\d{7}",,,"8001234"],[,,"30\\d{5}","\\d{7}",,,"3012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"3(?:20|9\\d)\\d{4}","\\d{7}",,,"3201234"],"MU",230,"0(?:0|[2-7]0|33)",,,,,,"020",,[[,"([2-46-9]\\d{2})(\\d{4})","$1 $2",["[2-46-9]"], -"","",0],[,"(5\\d{3})(\\d{4})","$1 $2",["5"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MV:[,[,,"[3467]\\d{6}|9(?:00\\d{7}|\\d{6})","\\d{7,10}"],[,,"(?:3(?:0[01]|3[0-59])|6(?:[567][02468]|8[024689]|90))\\d{4}","\\d{7}",,,"6701234"],[,,"(?:46[46]|7[3-9]\\d|9[16-9]\\d)\\d{4}","\\d{7}",,,"7712345"],[,,"NA","NA"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9(?:[1-9]|0[1-9])"], -"","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["900"],"","",0]],,[,,"781\\d{4}","\\d{7}",,,"7812345"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MW:[,[,,"(?:1(?:\\d{2})?|[2789]\\d{2})\\d{6}","\\d{7,9}"],[,,"(?:1[2-9]|21\\d{2})\\d{5}","\\d{7,9}",,,"1234567"],[,,"(?:111|77\\d|88\\d|99\\d)\\d{6}","\\d{9}",,,"991234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MW",265,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1"],"0$1","",0],[,"(2\\d{2})(\\d{3})(\\d{3})", -"$1 $2 $3",["2"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1789]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MX:[,[,,"[1-9]\\d{9,10}","\\d{7,11}"],[,,"(?:33|55|81)\\d{8}|(?:2(?:2[2-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-6][1-9]|[37][1-8]|8[1-35-9]|9[2-689])|5(?:88|9[1-79])|6(?:1[2-68]|[234][1-9]|5[1-3689]|6[12457-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2[1-8]|5[13-9]|8[1-69]|9[17])|8(?:2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7}", -"\\d{7,10}",,,"2221234567"],[,,"1(?:(?:33|55|81)\\d{8}|(?:2(?:2[2-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-6][1-9]|[37][1-8]|8[1-35-9]|9[2-689])|5(?:88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[12457-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2[1-8]|5[13-9]|8[1-69]|9[17])|8(?:2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7})","\\d{11}",,,"12221234567"],[,,"800\\d{7}", -"\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MX",52,"0[09]","01",,,"0[12]|04[45](\\d{10})","1$1",,,[[,"([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81"],"01 $1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[12457-9]|5[89]|8[02-9]|9[0-35-9]"],"01 $1","",1],[,"(1)([358]\\d)(\\d{4})(\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1","",1],[,"(1)(\\d{3})(\\d{3})(\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[12457-9]|5[89]|8[2-9]|9[1-35-9])"], -"$1","",1]],[[,"([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81"],"01 $1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[12457-9]|5[89]|8[02-9]|9[0-35-9]"],"01 $1","",1],[,"(1)([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3 $4",["1(?:33|55|81)"]],[,"(1)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1(?:[2467]|3[12457-9]|5[89]|8[2-9]|9[1-35-9])"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],MY:[,[,,"[13-9]\\d{7,9}","\\d{6,10}"],[,,"(?:3[2-9]\\d|[4-9][2-9])\\d{6}","\\d{6,9}",,,"323456789"], -[,,"1(?:1[1-3]\\d{2}|[02-4679][2-9]\\d|59\\d{2}|8(?:1[23]|[2-9]\\d))\\d{5}","\\d{9,10}",,,"123456789"],[,,"1[378]00\\d{6}","\\d{10}",,,"1300123456"],[,,"1600\\d{6}","\\d{10}",,,"1600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"154\\d{7}","\\d{10}",,,"1541234567"],"MY",60,"00","0",,,"0",,,,[[,"([4-79])(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1","",0],[,"(3)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1","",0],[,"([18]\\d)(\\d{3})(\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1","",0],[,"(1)([36-8]00)(\\d{2})(\\d{4})", -"$1-$2-$3-$4",["1[36-8]0"],"","",0],[,"(11)(\\d{4})(\\d{4})","$1-$2 $3",["11"],"0$1","",0],[,"(15[49])(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MZ:[,[,,"[28]\\d{7,8}","\\d{8,9}"],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}","\\d{8}",,,"21123456"],[,,"8[23467]\\d{7}","\\d{9}",,,"821234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MZ",258,"00",,,,,,,,[[,"([28]\\d)(\\d{3})(\\d{3,4})", -"$1 $2 $3",["2|8[2-7]"],"","",0],[,"(80\\d)(\\d{3})(\\d{3})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NA:[,[,,"[68]\\d{7,8}","\\d{8,9}"],[,,"6(?:1(?:17|2(?:[0189]\\d|[2-6]|7\\d?)|3(?:[01378]|2\\d)|4[01]|69|7[014])|2(?:17|5(?:[0-36-8]|4\\d?)|69|70)|3(?:17|2(?:[0237]\\d?|[14-689])|34|6[29]|7[01]|81)|4(?:17|2(?:[012]|7?)|4(?:[06]|1\\d)|5(?:[01357]|[25]\\d?)|69|7[01])|5(?:17|2(?:[0459]|[23678]\\d?)|69|7[01])|6(?:17|2(?:5|6\\d?)|38|42|69|7[01])|7(?:17|2(?:[569]|[234]\\d?)|3(?:0\\d?|[13])|69|7[01]))\\d{4}", -"\\d{8,9}",,,"61221234"],[,,"(?:60|8[125])\\d{7}","\\d{9}",,,"811234567"],[,,"NA","NA"],[,,"8701\\d{5}","\\d{9}",,,"870123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"8(?:3\\d{2}|86)\\d{5}","\\d{8,9}",,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(8\\d)(\\d{3})(\\d{4})","$1 $2 $3",["8[1235]"],"0$1","",0],[,"(6\\d)(\\d{2,3})(\\d{4})","$1 $2 $3",["6"],"0$1","",0],[,"(88)(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1","",0],[,"(870)(\\d{3})(\\d{3})","$1 $2 $3",["870"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[, -,"NA","NA"],,,[,,"NA","NA"]],NC:[,[,,"[2-57-9]\\d{5}","\\d{6}"],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}","\\d{6}",,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}","\\d{6}",,,"751234"],[,,"NA","NA"],[,,"36\\d{4}","\\d{6}",,,"366711"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NC",687,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NE:[,[,,"[0289]\\d{7}","\\d{8}"],[,,"2(?:0(?:20|3[1-7]|4[134]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}", -"\\d{8}",,,"20201234"],[,,"(?:89|9\\d)\\d{6}","\\d{8}",,,"93123456"],[,,"08\\d{6}","\\d{8}",,,"08123456"],[,,"09\\d{6}","\\d{8}",,,"09123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NE",227,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[289]|09"],"","",0],[,"(08)(\\d{3})(\\d{3})","$1 $2 $3",["08"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],NF:[,[,,"[13]\\d{5}","\\d{5,6}"],[,,"(?:1(?:06|17|28|39)|3[012]\\d)\\d{3}","\\d{5,6}",,,"106609"],[,,"38\\d{4}", -"\\d{5,6}",,,"381234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NF",672,"00",,,,,,,,[[,"(\\d{2})(\\d{4})","$1 $2",["1"],"","",0],[,"(\\d)(\\d{5})","$1 $2",["3"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NG:[,[,,"[1-6]\\d{5,8}|9\\d{5,9}|[78]\\d{5,13}","\\d{5,14}"],[,,"[12]\\d{6,7}|9(?:0[3-9]|[1-9]\\d)\\d{5}|(?:3\\d|4[023568]|5[02368]|6[02-469]|7[4-69]|8[2-9])\\d{6}|(?:4[47]|5[14579]|6[1578]|7[0-357])\\d{5,6}|(?:78|41)\\d{5}","\\d{5,9}",,, -"12345678"],[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70(?:[13-9]\\d|2[1-9])|8(?:0[2-9]|1\\d)\\d|90[239]\\d)\\d{6}","\\d{8,10}",,,"8021234567"], -[,,"800\\d{7,11}","\\d{10,14}",,,"80017591759"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NG",234,"009","0",,,"0",,,,[[,"([129])(\\d{3})(\\d{3,4})","$1 $2 $3",["[129]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:[1-79]|0[1-9])|8[2-9]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[239]"],"0$1","",0],[,"([78]00)(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]00"],"0$1","",0],[,"([78]00)(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]00"],"0$1","",0],[,"(78)(\\d{2})(\\d{3})", -"$1 $2 $3",["78"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"700\\d{7,11}","\\d{10,14}",,,"7001234567"],,,[,,"NA","NA"]],NI:[,[,,"[12578]\\d{7}","\\d{8}"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"5(?:5[0-7]\\d{5}|[78]\\d{6})|7[5-8]\\d{6}|8\\d{7}","\\d{8}",,,"81234567"],[,,"1800\\d{4}","\\d{8}",,,"18001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NL:[,[,, -"1\\d{4,8}|[2-7]\\d{8}|[89]\\d{6,9}","\\d{5,10}"],[,,"(?:1[0135-8]|2[02-69]|3[0-68]|4[0135-9]|[57]\\d|8[478])\\d{7}","\\d{9}",,,"101234567"],[,,"6[1-58]\\d{7}","\\d{9}",,,"612345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234"],[,,"90[069]\\d{4,7}","\\d{7,10}",,,"9061234"],[,,"NA","NA"],[,,"NA","NA"],[,,"85\\d{7}","\\d{9}",,,"851234567"],"NL",31,"00","0",,,"0",,,,[[,"([1-578]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"],"0$1","",0],[,"([1-5]\\d{2})(\\d{3})(\\d{3})", -"$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1","",0],[,"(6)(\\d{8})","$1 $2",["6[0-57-9]"],"0$1","",0],[,"(66)(\\d{7})","$1 $2",["66"],"0$1","",0],[,"(14)(\\d{3,4})","$1 $2",["14"],"$1","",0],[,"([89]0\\d)(\\d{4,7})","$1 $2",["80|9"],"0$1","",0]],,[,,"66\\d{7}","\\d{9}",,,"662345678"],,,[,,"14\\d{3,4}","\\d{5,6}"],[,,"140(?:1(?:[035]|[16-8]\\d)|2(?:[0346]|[259]\\d)|3(?:[03568]|[124]\\d)|4(?:[0356]|[17-9]\\d)|5(?:[0358]|[124679]\\d)|7\\d|8[458])","\\d{5,6}",,,"14020"],,,[,,"NA","NA"]], -NO:[,[,,"0\\d{4}|[2-9]\\d{7}","\\d{5}(?:\\d{3})?"],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}","\\d{8}",,,"21234567"],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}","\\d{8}",,,"40612345"],[,,"80[01]\\d{5}","\\d{8}",,,"80012345"],[,,"82[09]\\d{5}","\\d{8}",,,"82012345"],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}","\\d{8}",,,"81021234"],[,,"880\\d{5}","\\d{8}",,,"88012345"],[,,"85[0-5]\\d{5}","\\d{8}",,,"85012345"],"NO",47,"00",,,,,,,,[[,"([489]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[489]"],"","",0],[,"([235-7]\\d)(\\d{2})(\\d{2})(\\d{2})", -"$1 $2 $3 $4",["[235-7]"],"","",0]],,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"0\\d{4}|81(?:0(?:0[7-9]|1\\d)|5\\d{2})\\d{3}","\\d{5}(?:\\d{3})?",,,"01234"],1,,[,,"81[23]\\d{5}","\\d{8}",,,"81212345"]],NP:[,[,,"[1-8]\\d{7}|9(?:[1-69]\\d{6}|7[2-6]\\d{5,7}|8\\d{8})","\\d{6,10}"],[,,"(?:1[0124-6]|2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-79])\\d{6}","\\d{6,8}",,,"14567890"],[,,"9(?:7[45]|8[01456])\\d{7}","\\d{10}",,,"9841234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"], -[,,"NA","NA"],"NP",977,"00","0",,,"0",,,,[[,"(1)(\\d{7})","$1-$2",["1[2-6]"],"0$1","",0],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"],"0$1","",0],[,"(9\\d{2})(\\d{7})","$1-$2",["9(?:7[45]|8)"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NR:[,[,,"[458]\\d{6}","\\d{7}"],[,,"(?:444|888)\\d{4}","\\d{7}",,,"4441234"],[,,"55[5-9]\\d{4}","\\d{7}",,,"5551234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})", -"$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NU:[,[,,"[1-5]\\d{3}","\\d{4}"],[,,"[34]\\d{3}","\\d{4}",,,"4002"],[,,"[125]\\d{3}","\\d{4}",,,"1234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NU",683,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NZ:[,[,,"6[235-9]\\d{6}|[2-57-9]\\d{7,10}","\\d{7,11}"],[,,"(?:3[2-79]|[49][2-689]|6[235-9]|7[2-5789])\\d{6}|24099\\d{3}","\\d{7,8}",,,"32345678"],[,,"2(?:[028]\\d{7,8}|1(?:[03]\\d{5,7}|[12457]\\d{5,6}|[689]\\d{5})|[79]\\d{7})", -"\\d{8,10}",,,"211234567"],[,,"508\\d{6,7}|80\\d{6,8}","\\d{8,10}",,,"800123456"],[,,"90\\d{7,9}","\\d{9,11}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"([34679])(\\d{3})(\\d{4})","$1-$2 $3",["[3467]|9[1-9]"],"0$1","",0],[,"(24099)(\\d{3})","$1 $2",["240","2409","24099"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["21"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|86"],"0$1","",0],[,"(2\\d)(\\d{3,4})(\\d{4})", -"$1 $2 $3",["2[028]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"],"0$1","",0]],,[,,"[28]6\\d{6,7}","\\d{8,9}",,,"26123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],OM:[,[,,"(?:2[2-6]|5|9[1-9])\\d{6}|800\\d{5,6}","\\d{7,9}"],[,,"2[2-6]\\d{6}","\\d{8}",,,"23123456"],[,,"9[1-9]\\d{6}","\\d{8}",,,"92123456"],[,,"8007\\d{4,5}|500\\d{4}","\\d{7,9}",,,"80071234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"OM",968,"00",,,,,,,,[[,"(2\\d)(\\d{6})","$1 $2", -["2"],"","",0],[,"(9\\d{3})(\\d{4})","$1 $2",["9"],"","",0],[,"([58]00)(\\d{4,6})","$1 $2",["[58]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PA:[,[,,"[1-9]\\d{6,7}","\\d{7,8}"],[,,"(?:1(?:0[02-579]|19|2[37]|3[03]|4[479]|57|65|7[016-8]|8[58]|9[1349])|2(?:[0235679]\\d|1[0-7]|4[04-9]|8[028])|3(?:[09]\\d|1[14-7]|2[0-3]|3[03]|4[0457]|5[56]|6[068]|7[06-8]|8[089])|4(?:3[013-69]|4\\d|7[0-689])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-267]|3[06]|[49]0|5[06-9]|7[0-24-7]|8[89])|8(?:[34]\\d|5[0-4]|8[02])|9(?:0[6-8]|1[016-8]|2[036-8]|3[3679]|40|5[0489]|6[06-9]|7[046-9]|8[36-8]|9[1-9]))\\d{4}", -"\\d{7}",,,"2001234"],[,,"(?:1[16]1|21[89]|8(?:1[01]|7[23]))\\d{4}|6(?:[024-9]\\d|1[0-5]|3[0-24-9])\\d{5}","\\d{7,8}",,,"60012345"],[,,"80[09]\\d{4}","\\d{7}",,,"8001234"],[,,"(?:779|8(?:2[235]|55|60|7[578]|86|95)|9(?:0[0-2]|81))\\d{4}","\\d{7}",,,"8601234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PA",507,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"],"","",0],[,"(\\d{4})(\\d{4})","$1-$2",["6"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PE:[,[,,"[14-9]\\d{7,8}", -"\\d{6,9}"],[,,"(?:1\\d|4[1-4]|5[1-46]|6[1-7]|7[2-46]|8[2-4])\\d{6}","\\d{6,8}",,,"11234567"],[,,"9\\d{8}","\\d{9}",,,"912345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"805\\d{5}","\\d{8}",,,"80512345"],[,,"801\\d{5}","\\d{8}",,,"80112345"],[,,"80[24]\\d{5}","\\d{8}",,,"80212345"],[,,"NA","NA"],"PE",51,"19(?:1[124]|77|90)00","0"," Anexo ",,"0",,,,[[,"(1)(\\d{7})","$1 $2",["1"],"(0$1)","",0],[,"([4-8]\\d)(\\d{6})","$1 $2",["[4-7]|8[2-4]"],"(0$1)","",0],[,"(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)", -"",0],[,"(9\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PF:[,[,,"4\\d{5,7}|8\\d{7}","\\d{6}(?:\\d{2})?"],[,,"4(?:[09][45689]\\d|4)\\d{4}","\\d{6}(?:\\d{2})?",,,"40412345"],[,,"8[79]\\d{6}","\\d{8}",,,"87123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PF",689,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"],"","",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"],"", -"",0]],,[,,"NA","NA"],,,[,,"44\\d{4}","\\d{6}",,,"441234"],[,,"NA","NA"],,,[,,"NA","NA"]],PG:[,[,,"[1-9]\\d{6,7}","\\d{7,8}"],[,,"(?:3[0-2]\\d|4[25]\\d|5[34]\\d|64[1-9]|77(?:[0-24]\\d|30)|85[02-46-9]|9[78]\\d)\\d{4}","\\d{7}",,,"3123456"],[,,"(?:20150|68\\d{2}|7(?:[0-369]\\d|75)\\d{2})\\d{3}","\\d{7,8}",,,"6812345"],[,,"180\\d{4}","\\d{7}",,,"1801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"275\\d{4}","\\d{7}",,,"2751234"],"PG",675,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[13-689]|27"], -"","",0],[,"(\\d{4})(\\d{4})","$1 $2",["20|7"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PH:[,[,,"2\\d{5,7}|[3-9]\\d{7,9}|1800\\d{7,9}","\\d{5,13}"],[,,"2\\d{5}(?:\\d{2})?|(?:3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578]|8[2-8])\\d{7}|88(?:22\\d{6}|42\\d{4})","\\d{5,10}",,,"21234567"],[,,"(?:81[37]|9(?:0[5-9]|1[024-9]|2[0-35-9]|3[02-9]|4[236-9]|7[34-79]|89|9[4-9]))\\d{7}","\\d{10}",,,"9051234567"],[,,"1800\\d{7,9}","\\d{11,13}",,,"180012345678"],[,,"NA","NA"],[,,"NA","NA"], -[,,"NA","NA"],[,,"NA","NA"],"PH",63,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"(0$1)","",0],[,"(2)(\\d{5})","$1 $2",["2"],"(0$1)","",0],[,"(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)","",0],[,"(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)","",0],[,"([3-8]\\d)(\\d{3})(\\d{4})", -"$1 $2 $3",["[3-8]"],"(0$1)","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["81|9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"","",0],[,"(1800)(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PK:[,[,,"1\\d{8}|[2-8]\\d{5,11}|9(?:[013-9]\\d{4,9}|2\\d(?:111\\d{6}|\\d{3,7}))","\\d{6,12}"],[,,"(?:21|42)[2-9]\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}|58[126]\\d{7}", -"\\d{6,10}",,,"2123456789"],[,,"3(?:0\\d|[12][0-5]|3[1-7]|4[0-7]|55|64)\\d{7}","\\d{10}",,,"3012345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"900\\d{5}","\\d{8}",,,"90012345"],[,,"NA","NA"],[,,"122\\d{6}","\\d{9}",,,"122044444"],[,,"NA","NA"],"PK",92,"00","0",,,"0",,,,[[,"(\\d{2})(111)(\\d{3})(\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"],"(0$1)", -"",0],[,"(\\d{3})(111)(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d111"],"(0$1)","",0],[,"(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)","",0],[,"(\\d{3})(\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d[2-9]"],"(0$1)","",0],[,"(3\\d{2})(\\d{7})","$1 $2", -["3"],"0$1","",0],[,"([15]\\d{3})(\\d{5,6})","$1 $2",["58[12]|1"],"(0$1)","",0],[,"(586\\d{2})(\\d{5})","$1 $2",["586"],"(0$1)","",0],[,"([89]00)(\\d{3})(\\d{2})","$1 $2 $3",["[89]00"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:[1-8]|0[468])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}","\\d{11,12}",,,"21111825888"],,,[,,"NA","NA"]],PL:[,[,,"[12]\\d{6,8}|[3-57-9]\\d{8}|6\\d{5,8}", -"\\d{6,9}"],[,,"(?:1[2-8]|2[2-59]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])\\d{7}|[12]2\\d{5}","\\d{6,9}",,,"123456789"],[,,"(?:5[0137]|6[069]|7[2389]|88)\\d{7}","\\d{9}",,,"512345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"70\\d{7}","\\d{9}",,,"701234567"],[,,"801\\d{6}","\\d{9}",,,"801234567"],[,,"NA","NA"],[,,"39\\d{7}","\\d{9}",,,"391234567"],"PL",48,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[124]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"], -"","",0],[,"(\\d{2})(\\d{1})(\\d{4})","$1 $2 $3",["[12]2"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["39|5[0137]|6[0469]|7[02389]|8[08]"],"","",0],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"],"","",0],[,"(\\d{3})(\\d{3})","$1 $2",["64"],"","",0]],,[,,"64\\d{4,7}","\\d{6,9}",,,"641234567"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PM:[,[,,"[45]\\d{5}","\\d{6}"],[,,"41\\d{4}","\\d{6}",,,"411234"],[,,"55\\d{4}","\\d{6}",,,"551234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"], -[,,"NA","NA"],"PM",508,"00","0",,,"0",,,,[[,"([45]\\d)(\\d{2})(\\d{2})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PR:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"(?:787|939)[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"7872345678"],[,,"(?:787|939)[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"7872345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}", -,,"5002345678"],[,,"NA","NA"],"PR",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"787|939",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PS:[,[,,"[24589]\\d{7,8}|1(?:[78]\\d{8}|[49]\\d{2,3})","\\d{4,10}"],[,,"(?:22[234789]|42[45]|82[01458]|92[369])\\d{5}","\\d{7,8}",,,"22234567"],[,,"5[69]\\d{7}","\\d{9}",,,"599123456"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"],[,,"1(?:4|9\\d)\\d{2}","\\d{4,5}",,,"19123"],[,,"1700\\d{6}","\\d{10}",,,"1700123456"],[,,"NA","NA"],[,,"NA","NA"],"PS",970,"00","0",,,"0",,,,[[, -"([2489])(2\\d{2})(\\d{4})","$1 $2 $3",["[2489]"],"0$1","",0],[,"(5[69]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1","",0],[,"(1[78]00)(\\d{3})(\\d{3})","$1 $2 $3",["1[78]"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PT:[,[,,"[2-46-9]\\d{8}","\\d{9}"],[,,"2(?:[12]\\d|[35][1-689]|4[1-59]|6[1-35689]|7[1-9]|8[1-69]|9[1256])\\d{6}","\\d{9}",,,"212345678"],[,,"9(?:[136]\\d{2}|2[0-79]\\d|480)\\d{5}","\\d{9}",,,"912345678"],[,,"80[02]\\d{6}","\\d{9}",,,"800123456"],[,,"76(?:0[1-57]|1[2-47]|2[237])\\d{5}", -"\\d{9}",,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}","\\d{9}",,,"808123456"],[,,"884[128]\\d{5}","\\d{9}",,,"884123456"],[,,"30\\d{7}","\\d{9}",,,"301234567"],"PT",351,"00",,,,,,,,[[,"(2\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"],"","",0],[,"([2-46-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"70(?:7\\d|8[17])\\d{5}","\\d{9}",,,"707123456"],,,[,,"NA","NA"]],PW:[,[,,"[2-8]\\d{6}","\\d{7}"],[,,"2552255|(?:277|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76))\\d{4}", -"\\d{7}",,,"2771234"],[,,"(?:6[234689]0|77[45789])\\d{4}","\\d{7}",,,"6201234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PY:[,[,,"5[0-5]\\d{4,7}|[2-46-9]\\d{5,8}","\\d{5,9}"],[,,"(?:[26]1|3[289]|4[124678]|7[123]|8[1236])\\d{5,7}|(?:2(?:2[4568]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51)|4(?:18|2[45]|3[12]|5[13]|64|71|9[1-47])|5(?:[1-4]\\d|5[0234])|6(?:3[1-3]|44|7[1-4678])|7(?:17|4[0-4]|6[1-578]|75|8[0-8])|858)\\d{5,6}", -"\\d{5,9}",,,"212345678"],[,,"9(?:6[12]|[78][1-6]|9[1-5])\\d{6}","\\d{9}",,,"961456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"8700[0-4]\\d{4}","\\d{9}",,,"870012345"],"PY",595,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["(?:[26]1|3[289]|4[124678]|7[123]|8[1236])"],"($1)","",0],[,"(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1","",0],[,"(\\d{3})(\\d{6})","$1 $2",["9[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8700"],"","",0],[,"(\\d{3})(\\d{4,6})","$1 $2", -["[2-8][1-9]"],"($1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"[2-9]0\\d{4,7}","\\d{6,9}",,,"201234567"],,,[,,"NA","NA"]],QA:[,[,,"[2-8]\\d{6,7}","\\d{7,8}"],[,,"4[04]\\d{6}","\\d{7,8}",,,"44123456"],[,,"[3567]\\d{7}","\\d{7,8}",,,"33123456"],[,,"800\\d{4}","\\d{7,8}",,,"8001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"QA",974,"00",,,,,,,,[[,"([28]\\d{2})(\\d{4})","$1 $2",["[28]"],"","",0],[,"([3-7]\\d{3})(\\d{4})","$1 $2",["[3-7]"],"","",0]],,[,,"2(?:[12]\\d|61)\\d{4}","\\d{7}", -,,"2123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],RE:[,[,,"[268]\\d{8}","\\d{9}"],[,,"262\\d{6}","\\d{9}",,,"262161234"],[,,"6(?:9[23]|47)\\d{6}","\\d{9}",,,"692123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89[1-37-9]\\d{6}","\\d{9}",,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}",,,"810123456"],[,,"NA","NA"],[,,"NA","NA"],"RE",262,"00","0",,,"0",,,,[[,"([268]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],1,"262|6[49]|8",[,,"NA","NA"],[,,"NA", -"NA"],,,[,,"NA","NA"]],RO:[,[,,"2\\d{5,8}|[37-9]\\d{8}","\\d{6,9}"],[,,"2(?:1(?:\\d{7}|9\\d{3})|[3-6](?:\\d{7}|\\d9\\d{2}))|3[13-6]\\d{7}","\\d{6,9}",,,"211234567"],[,,"7(?:000|[1-8]\\d{2}|99\\d)\\d{5}","\\d{9}",,,"712345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"90[036]\\d{6}","\\d{9}",,,"900123456"],[,,"801\\d{6}","\\d{9}",,,"801123456"],[,,"802\\d{6}","\\d{9}",,,"802123456"],[,,"NA","NA"],"RO",40,"00","0"," int ",,"0",,,,[[,"([237]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1","",0],[, -"(21)(\\d{4})","$1 $2",["21"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"],"0$1","",0],[,"(2\\d{2})(\\d{3})","$1 $2",["2[3-6]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"37\\d{7}","\\d{9}",,,"372123456"],,,[,,"NA","NA"]],RS:[,[,,"[126-9]\\d{4,11}|3(?:[0-79]\\d{3,10}|8[2-9]\\d{2,9})","\\d{5,12}"],[,,"(?:1(?:[02-9][2-9]|1[1-9])\\d|2(?:[0-24-7][2-9]\\d|[389](?:0[2-9]|[2-9]\\d))|3(?:[0-8][2-9]\\d|9(?:[2-9]\\d|0[2-9])))\\d{3,8}","\\d{5,12}",,,"10234567"],[,,"6(?:[0-689]|7\\d)\\d{6,7}", -"\\d{8,10}",,,"601234567"],[,,"800\\d{3,9}","\\d{6,12}",,,"80012345"],[,,"(?:90[0169]|78\\d)\\d{3,7}","\\d{6,12}",,,"90012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RS",381,"00","0",,,"0",,,,[[,"([23]\\d{2})(\\d{4,9})","$1 $2",["(?:2[389]|39)0"],"0$1","",0],[,"([1-3]\\d)(\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"],"0$1","",0],[,"(6\\d)(\\d{6,8})","$1 $2",["6"],"0$1","",0],[,"([89]\\d{2})(\\d{3,9})","$1 $2",["[89]"],"0$1","",0],[,"(7[26])(\\d{4,9})","$1 $2",["7[26]"], -"0$1","",0],[,"(7[08]\\d)(\\d{4,9})","$1 $2",["7[08]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"7[06]\\d{4,10}","\\d{6,12}",,,"700123456"],,,[,,"NA","NA"]],RU:[,[,,"[3489]\\d{9}","\\d{10}"],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-7]|7[1-37-9]))\\d{7}","\\d{10}",,,"3011234567"],[,,"9\\d{9}","\\d{10}",,,"9123456789"],[,,"80[04]\\d{7}","\\d{10}",,,"8001234567"],[,,"80[39]\\d{7}","\\d{10}", -,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[1-79]"],"$1","",1],[,"([3489]\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[34689]"],"8 ($1)","",1],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)","",1]],[[,"([3489]\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[34689]"],"8 ($1)","",1],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)","",1]],[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA", -"NA"]],RW:[,[,,"[027-9]\\d{7,8}","\\d{8,9}"],[,,"2[258]\\d{7}|06\\d{6}","\\d{8,9}",,,"250123456"],[,,"7[238]\\d{7}","\\d{9}",,,"720123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RW",250,"00","0",,,"0",,,,[[,"(2\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"$1","",0],[,"([7-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1","",0],[,"(0\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA", -"NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],SA:[,[,,"1\\d{7,8}|(?:[2-467]|92)\\d{7}|5\\d{8}|8\\d{9}","\\d{7,10}"],[,,"11\\d{7}|1?(?:2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}","\\d{7,9}",,,"112345678"],[,,"(?:5(?:[013-689]\\d|7[0-26-8])|811\\d)\\d{6}","\\d{9,10}",,,"512345678"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"92[05]\\d{6}","\\d{9}",,,"920012345"],[,,"NA","NA"],[,,"NA","NA"],"SA",966,"00","0",,,"0",,,,[[,"([1-467])(\\d{3})(\\d{4})","$1 $2 $3",["[1-467]"],"0$1","",0],[,"(1\\d)(\\d{3})(\\d{4})", -"$1 $2 $3",["1[1-467]"],"0$1","",0],[,"(5\\d)(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1","",0],[,"(92\\d{2})(\\d{5})","$1 $2",["92"],"$1","",0],[,"(800)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"$1","",0],[,"(811)(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SB:[,[,,"[1-9]\\d{4,6}","\\d{5,7}"],[,,"(?:1[4-79]|[23]\\d|4[01]|5[03]|6[0-37])\\d{3}","\\d{5}",,,"40123"],[,,"48\\d{3}|7(?:[0146-8]\\d|5[025-9]|9[0124])\\d{4}|8[4-8]\\d{5}|9(?:[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8])\\d{4}", -"\\d{5,7}",,,"7421234"],[,,"1[38]\\d{3}","\\d{5}",,,"18123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"5[12]\\d{3}","\\d{5}",,,"51123"],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["[7-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SC:[,[,,"[24689]\\d{5,6}","\\d{6,7}"],[,,"4[2-46]\\d{5}","\\d{7}",,,"4217123"],[,,"2[5-8]\\d{5}","\\d{7}",,,"2510123"],[,,"8000\\d{2}","\\d{6}",,,"800000"],[,,"98\\d{4}","\\d{6}",,,"981234"],[,,"NA","NA"],[,,"NA","NA"],[,,"64\\d{5}", -"\\d{7}",,,"6412345"],"SC",248,"0[0-2]",,,,,,"00",,[[,"(\\d{3})(\\d{3})","$1 $2",["[89]"],"","",0],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SD:[,[,,"[19]\\d{8}","\\d{9}"],[,,"1(?:[125]\\d|8[3567])\\d{6}","\\d{9}",,,"121231234"],[,,"9[012569]\\d{7}","\\d{9}",,,"911231234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",,"0$1","",0]], -,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SE:[,[,,"[1-9]\\d{5,9}","\\d{5,10}"],[,,"1(?:0[1-8]\\d{6}|[136]\\d{5,7}|(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)\\d{5,6})|2(?:[136]\\d{5,7}|(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])\\d{5,6})|3(?:[356]\\d{5,7}|(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])\\d{5,6})|4(?:0[1-9]\\d{4,6}|[246]\\d{5,7}|(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])\\d{5,6})|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])\\d{5,6}|6(?:0[1-9]\\d{4,6}|3\\d{5,7}|(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])\\d{5,6})|8[1-9]\\d{5,7}|9(?:0[1-9]\\d{4,6}|(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8])\\d{5,6})", -"\\d{5,9}",,,"8123456"],[,,"7[0236]\\d{7}","\\d{9}",,,"701234567"],[,,"20(?:0(?:0\\d{2}|[1-9](?:0\\d{1,4}|[1-9]\\d{4}))|1(?:0\\d{4}|[1-9]\\d{4,5})|[2-9]\\d{5})","\\d{6,9}",,,"20123456"],[,,"9(?:00|39|44)(?:1(?:[0-26]\\d{5}|[3-57-9]\\d{2})|2(?:[0-2]\\d{5}|[3-9]\\d{2})|3(?:[0139]\\d{5}|[24-8]\\d{2})|4(?:[045]\\d{5}|[1-36-9]\\d{2})|5(?:5\\d{5}|[0-46-9]\\d{2})|6(?:[679]\\d{5}|[0-58]\\d{2})|7(?:[078]\\d{5}|[1-69]\\d{2})|8(?:[578]\\d{5}|[0-469]\\d{2}))","\\d{7}(?:\\d{3})?",,,"9001234567"],[,,"77(?:0(?:0\\d{2}|[1-9](?:0\\d|[1-9]\\d{4}))|[1-6][1-9]\\d{5})", -"\\d{6}(?:\\d{3})?",,,"771234567"],[,,"75[1-8]\\d{6}","\\d{9}",,,"751234567"],[,,"NA","NA"],"SE",46,"00","0",,,"0",,,,[[,"(8)(\\d{2,3})(\\d{2,3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1","",0],[,"([1-69]\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],"0$1","",0],[,"([1-69]\\d)(\\d{3})(\\d{2})","$1-$2 $3",["1[13689]|2[136]|3[1356]|4[0246]|54|6[03]|90"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"], -"0$1","",0],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"],"0$1","",0],[,"(7\\d)(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["7"],"0$1","",0],[,"(77)(\\d{2})(\\d{2})","$1-$2$3",["7"],"0$1","",0],[,"(20)(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1","",0],[,"(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9[034]"],"0$1","",0],[,"(9[034]\\d)(\\d{4})","$1-$2",["9[034]"],"0$1","",0]],[[,"(8)(\\d{2,3})(\\d{2,3})(\\d{2})", -"$1 $2 $3 $4",["8"]],[,"([1-69]\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"]],[,"([1-69]\\d)(\\d{3})(\\d{2})","$1 $2 $3",["1[13689]|2[136]|3[1356]|4[0246]|54|6[03]|90"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"]],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1 $2 $3",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"]],[,"(7\\d)(\\d{3})(\\d{2})(\\d{2})", -"$1 $2 $3 $4",["7"]],[,"(77)(\\d{2})(\\d{2})","$1 $2 $3",["7"]],[,"(20)(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9[034]"]],[,"(9[034]\\d)(\\d{4})","$1 $2",["9[034]"]]],[,,"74[02-9]\\d{6}","\\d{9}",,,"740123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SG:[,[,,"[36]\\d{7}|[17-9]\\d{7,10}","\\d{8,11}"],[,,"6[1-9]\\d{6}","\\d{8}",,,"61234567"],[,,"(?:8[1-7]|9[0-8])\\d{6}","\\d{8}",,,"81234567"],[,,"1?800\\d{7}","\\d{10,11}",,,"18001234567"], -[,,"1900\\d{7}","\\d{11}",,,"19001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"3[12]\\d{6}","\\d{8}",,,"31234567"],"SG",65,"0[0-3]\\d",,,,,,,,[[,"([3689]\\d{3})(\\d{4})","$1 $2",["[369]|8[1-9]"],"","",0],[,"(1[89]00)(\\d{3})(\\d{4})","$1 $2 $3",["1[89]"],"","",0],[,"(7000)(\\d{4})(\\d{3})","$1 $2 $3",["70"],"","",0],[,"(800)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"7000\\d{7}","\\d{11}",,,"70001234567"],,,[,,"NA","NA"]],SH:[,[,,"[2-79]\\d{3,4}","\\d{4,5}"],[,,"2(?:[0-57-9]\\d|6[4-9])\\d{2}|(?:[2-46]\\d|7[01])\\d{2}", -"\\d{4,5}",,,"2158"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:[59]\\d|7[2-9])\\d{2}","\\d{4,5}",,,"5012"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SH",290,"00",,,,,,,,,,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SI:[,[,,"[1-7]\\d{6,7}|[89]\\d{4,7}","\\d{5,8}"],[,,"(?:1\\d|[25][2-8]|3[4-8]|4[24-8]|7[3-8])\\d{6}","\\d{7,8}",,,"11234567"],[,,"(?:[37][01]|4[0139]|51|6[48])\\d{6}","\\d{8}",,,"31234567"],[,,"80\\d{4,6}","\\d{6,8}",,,"80123456"],[,,"90\\d{4,6}|89[1-3]\\d{2,5}","\\d{5,8}", -,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:59|8[1-3])\\d{6}","\\d{8}",,,"59012345"],"SI",386,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[12]|3[4-8]|4[24-8]|5[2-8]|7[3-8]"],"(0$1)","",0],[,"([3-7]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1","",0],[,"([89][09])(\\d{3,6})","$1 $2",["[89][09]"],"0$1","",0],[,"([58]\\d{2})(\\d{5})","$1 $2",["59|8[1-3]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SJ:[,[,,"0\\d{4}|[4789]\\d{7}", -"\\d{5}(?:\\d{3})?"],[,,"79\\d{6}","\\d{8}",,,"79123456"],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}","\\d{8}",,,"41234567"],[,,"80[01]\\d{5}","\\d{8}",,,"80012345"],[,,"82[09]\\d{5}","\\d{8}",,,"82012345"],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}","\\d{8}",,,"81021234"],[,,"880\\d{5}","\\d{8}",,,"88012345"],[,,"85[0-5]\\d{5}","\\d{8}",,,"85012345"],"SJ",47,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"0\\d{4}|81(?:0(?:0[7-9]|1\\d)|5\\d{2})\\d{3}","\\d{5}(?:\\d{3})?",,,"01234"],1,,[,,"81[23]\\d{5}","\\d{8}",,,"81212345"]], -SK:[,[,,"[2-689]\\d{8}","\\d{9}"],[,,"[2-5]\\d{8}","\\d{9}",,,"212345678"],[,,"9(?:0[1-8]|1[0-24-9]|4[0489])\\d{6}","\\d{9}",,,"912123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"9(?:[78]\\d{7}|00\\d{6})","\\d{9}",,,"900123456"],[,,"8[5-9]\\d{7}","\\d{9}",,,"850123456"],[,,"NA","NA"],[,,"6(?:5[0-4]|9[0-6])\\d{6}","\\d{9}",,,"690123456"],"SK",421,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1","",0],[,"([3-5]\\d)(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1", -"",0],[,"([689]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"(?:8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}","\\d{9}",,,"800123456"],[,,"96\\d{7}","\\d{9}",,,"961234567"],,,[,,"NA","NA"]],SL:[,[,,"[2-578]\\d{7}","\\d{6,8}"],[,,"[235]2[2-4][2-9]\\d{4}","\\d{6,8}",,,"22221234"],[,,"(?:2[15]|3[034]|4[04]|5[05]|7[6-9]|88)\\d{6}","\\d{6,8}",,,"25123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})", -"$1 $2",,"(0$1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SM:[,[,,"[05-7]\\d{7,9}","\\d{6,10}"],[,,"0549(?:8[0157-9]|9\\d)\\d{4}","\\d{6,10}",,,"0549886377"],[,,"6[16]\\d{6}","\\d{8}",,,"66661212"],[,,"NA","NA"],[,,"7[178]\\d{6}","\\d{8}",,,"71123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"5[158]\\d{6}","\\d{8}",,,"58001110"],"SM",378,"00",,,,"(?:0549)?([89]\\d{5})","0549$1",,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"],"","",0],[,"(0549)(\\d{6})","$1 $2",["0"], -"","",0],[,"(\\d{6})","0549 $1",["[89]"],"","",0]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"],"","",0],[,"(0549)(\\d{6})","($1) $2",["0"]],[,"(\\d{6})","(0549) $1",["[89]"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],SN:[,[,,"[3789]\\d{8}","\\d{9}"],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611|90[1-5])\\d{5}","\\d{9}",,,"301012345"],[,,"7(?:[067]\\d|21|8[0-26]|90)\\d{6}","\\d{9}",,,"701234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"88[4689]\\d{6}", -"\\d{9}",,,"884123456"],[,,"81[02468]\\d{6}","\\d{9}",,,"810123456"],[,,"NA","NA"],[,,"3392\\d{5}|93330\\d{4}","\\d{9}",,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"],"","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SO:[,[,,"[1-79]\\d{6,8}","\\d{7,9}"],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|59)\\d{5}","\\d{7}",,,"4012345"],[,,"(?:15\\d|2(?:4\\d|8)|6[137-9]?\\d{2}|7[1-9]\\d|907\\d)\\d{5}", -"\\d{7,9}",,,"71123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SO",252,"00","0",,,"0",,,,[[,"(\\d)(\\d{6})","$1 $2",["2[0-79]|[13-5]"],"","",0],[,"(\\d)(\\d{7})","$1 $2",["24|[67]"],"","",0],[,"(\\d{2})(\\d{5,7})","$1 $2",["15|28|6[1378]"],"","",0],[,"(69\\d)(\\d{6})","$1 $2",["69"],"","",0],[,"(90\\d)(\\d{3})(\\d{3})","$1 $2 $3",["90"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SR:[,[,,"[2-8]\\d{5,6}","\\d{6,7}"],[,,"(?:2[1-3]|3[0-7]|4\\d|5[2-58]|68\\d)\\d{4}", -"\\d{6,7}",,,"211234"],[,,"(?:7[124-7]|8[1-9])\\d{5}","\\d{7}",,,"7412345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"5(?:6\\d{4}|90[0-4]\\d{3})","\\d{6,7}",,,"561234"],"SR",597,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-4]|5[2-58]"],"","",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"],"","",0],[,"(\\d{3})(\\d{4})","$1-$2",["59|[6-8]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SS:[,[,,"[19]\\d{8}","\\d{9}"],[,,"18\\d{7}","\\d{9}",,,"181234567"], -[,,"(?:12|9[1257])\\d{7}","\\d{9}",,,"977123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ST:[,[,,"[29]\\d{6}","\\d{7}"],[,,"22\\d{5}","\\d{7}",,,"2221234"],[,,"9[89]\\d{5}","\\d{7}",,,"9812345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]], -,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SV:[,[,,"[267]\\d{7}|[89]\\d{6}(?:\\d{4})?","\\d{7,8}|\\d{11}"],[,,"2[1-6]\\d{6}","\\d{8}",,,"21234567"],[,,"[67]\\d{7}","\\d{8}",,,"70123456"],[,,"800\\d{4}(?:\\d{4})?","\\d{7}(?:\\d{4})?",,,"8001234"],[,,"900\\d{4}(?:\\d{4})?","\\d{7}(?:\\d{4})?",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SV",503,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[267]"],"","",0],[,"(\\d{3})(\\d{4})","$1 $2",["[89]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})", -"$1 $2 $3",["[89]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SX:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}","\\d{7}(?:\\d{3})?",,,"7215425678"],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}","\\d{10}",,,"7215205678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"SX",1,"011", -"1",,,"1",,,,,,[,,"NA","NA"],,"721",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SY:[,[,,"[1-59]\\d{7,8}","\\d{6,9}"],[,,"(?:1(?:1\\d?|4\\d|[2356])|2(?:1\\d?|[235])|3(?:[13]\\d|4)|4[13]|5[1-3])\\d{6}","\\d{6,9}",,,"112345678"],[,,"9(?:22|[35][0-8]|4\\d|6[024-9]|88|9[0-489])\\d{6}","\\d{9}",,,"944567890"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1","",1],[,"(9\\d{2})(\\d{3})(\\d{3})","$1 $2 $3", -["9"],"0$1","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SZ:[,[,,"[027]\\d{7}","\\d{8}"],[,,"2(?:2(?:0[07]|[13]7|2[57])|3(?:0[34]|[1278]3|3[23]|[46][34])|(?:40[4-69]|67)|5(?:0[5-7]|1[6-9]|[23][78]|48|5[01]))\\d{4}","\\d{8}",,,"22171234"],[,,"7[6-8]\\d{6}","\\d{8}",,,"76123456"],[,,"0800\\d{4}","\\d{8}",,,"08001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[027]"],"","",0]],,[,,"NA","NA"],,,[,,"0800\\d{4}", -"\\d{8}",,,"08001234"],[,,"NA","NA"],1,,[,,"NA","NA"]],TA:[,[,,"8\\d{3}","\\d{4}"],[,,"8\\d{3}","\\d{4}",,,"8999"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TA",290,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TC:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"649(?:712|9(?:4\\d|50))\\d{4}","\\d{7}(?:\\d{3})?",,,"6497121234"],[,,"649(?:2(?:3[129]|4[1-7])|3(?:3[1-389]|4[1-7])|4[34][1-3])\\d{4}","\\d{10}",,,"6492311234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}", -"\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"64971[01]\\d{4}","\\d{10}",,,"6497101234"],"TC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"649",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TD:[,[,,"[2679]\\d{7}","\\d{8}"],[,,"22(?:[3789]0|5[0-5]|6[89])\\d{4}","\\d{8}",,,"22501234"],[,,"(?:6[02368]\\d|77\\d|9(?:5[0-4]|9\\d))\\d{5}","\\d{8}",,,"63012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,, -"NA","NA"],[,,"NA","NA"],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TG:[,[,,"[29]\\d{7}","\\d{8}"],[,,"2(?:2[2-7]|3[23]|44|55|66|77)\\d{5}","\\d{8}",,,"22212345"],[,,"9[0-289]\\d{6}","\\d{8}",,,"90112345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"], -[,,"NA","NA"],,,[,,"NA","NA"]],TH:[,[,,"[2-9]\\d{7,8}|1\\d{3}(?:\\d{6})?","\\d{4}|\\d{8,10}"],[,,"(?:2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}","\\d{8}",,,"21234567"],[,,"(?:61|[89]\\d)\\d{7}","\\d{9}",,,"812345678"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"],[,,"1900\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"6[08]\\d{7}","\\d{9}",,,"601234567"],"TH",66,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"([3-9]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[3-9]"], -"0$1","",0],[,"(1[89]00)(\\d{3})(\\d{3})","$1 $2 $3",["1"],"$1","",0]],,[,,"NA","NA"],,,[,,"1\\d{3}","\\d{4}",,,"1100"],[,,"1\\d{3}","\\d{4}",,,"1100"],,,[,,"NA","NA"]],TJ:[,[,,"[3-59]\\d{8}","\\d{3,9}"],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}","\\d{3,9}",,,"372123456"],[,,"(?:50[125]|9[0-35-9]\\d)\\d{6}","\\d{9}",,,"917123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TJ",992,"810","8",,,"8",,"8~10",,[[,"([349]\\d{2})(\\d{2})(\\d{4})","$1 $2 $3", -["[34]7|91[78]"],"(8) $1","",1],[,"([459]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[48]|5|9(?:1[59]|[0235-9])"],"(8) $1","",1],[,"(331700)(\\d)(\\d{2})","$1 $2 $3",["331","3317","33170","331700"],"(8) $1","",1],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"],"(8) $1","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TK:[,[,,"[2-9]\\d{3}","\\d{4}"],[,,"[2-4]\\d{3}","\\d{4}",,,"3010"],[,,"[5-9]\\d{3}","\\d{4}",,,"5190"],[,,"NA","NA"],[,,"NA","NA"],[,, -"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TK",690,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TL:[,[,,"[2-489]\\d{6}|7\\d{6,7}","\\d{7,8}"],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}","\\d{7}",,,"2112345"],[,,"7[3-8]\\d{6}","\\d{8}",,,"77212345"],[,,"80\\d{5}","\\d{7}",,,"8012345"],[,,"90\\d{5}","\\d{7}",,,"9012345"],[,,"NA","NA"],[,,"70\\d{5}","\\d{7}",,,"7012345"],[,,"NA","NA"],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]"],"","",0],[,"(\\d{4})(\\d{4})","$1 $2", -["7"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TM:[,[,,"[1-6]\\d{7}","\\d{8}"],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}","\\d{8}",,,"12345678"],[,,"6[2-8]\\d{6}","\\d{8}",,,"66123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)","",0],[,"(\\d{2})(\\d{6})","$1 $2",["6"], -"8 $1","",0],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["13|[2-5]"],"(8 $1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TN:[,[,,"[2-57-9]\\d{7}","\\d{8}"],[,,"3[012]\\d{6}|7\\d{7}|81200\\d{3}","\\d{8}",,,"71234567"],[,,"(?:[259]\\d|4[0-24])\\d{6}","\\d{8}",,,"20123456"],[,,"8010\\d{4}","\\d{8}",,,"80101234"],[,,"88\\d{6}","\\d{8}",,,"88123456"],[,,"8[12]10\\d{4}","\\d{8}",,,"81101234"],[,,"NA","NA"],[,,"NA","NA"],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3", -,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TO:[,[,,"[02-8]\\d{4,6}","\\d{5,7}"],[,,"(?:2\\d|3[1-8]|4[1-4]|[56]0|7[0149]|8[05])\\d{3}","\\d{5}",,,"20123"],[,,"(?:7[578]|8[7-9])\\d{5}","\\d{7}",,,"7715123"],[,,"0800\\d{3}","\\d{7}",,,"0800222"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TO",676,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"],"","",0],[,"(\\d{3})(\\d{4})","$1 $2",["7[5-9]|8[7-9]"],"","",0],[,"(\\d{4})(\\d{3})","$1 $2",["0"], -"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],TR:[,[,,"[2-589]\\d{9}|444\\d{4}","\\d{7,10}"],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}","\\d{10}",,,"2123456789"],[,,"5(?:0[1-7]|22|[34]\\d|5[1-59]|9[246])\\d{7}","\\d{10}",,,"5012345678"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TR",90,"00","0",,, -"0",,,,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[589]"],"0$1","",1],[,"(444)(\\d{1})(\\d{3})","$1 $2 $3",["444"],"","",0]],,[,,"512\\d{7}","\\d{10}",,,"5123456789"],,,[,,"444\\d{4}","\\d{7}",,,"4441444"],[,,"444\\d{4}|850\\d{7}","\\d{7,10}",,,"4441444"],,,[,,"NA","NA"]],TT:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"868(?:2(?:01|2[1-5])|6(?:0[79]|1[02-9]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}","\\d{7}(?:\\d{3})?", -,,"8682211234"],[,,"868(?:2(?:[89]\\d)|3(?:0[1-9]|1[02-9]|[2-9]\\d)|4[6-9]\\d|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}","\\d{10}",,,"8682911234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"TT",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"868",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TV:[,[,,"[29]\\d{4,5}","\\d{5,6}"],[,,"2[02-9]\\d{3}", -"\\d{5}",,,"20123"],[,,"90\\d{4}","\\d{6}",,,"901234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TV",688,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TW:[,[,,"[2-689]\\d{7,8}|7\\d{7,9}","\\d{8,10}"],[,,"[2-8]\\d{7,8}","\\d{8,9}",,,"21234567"],[,,"9\\d{8}","\\d{9}",,,"912345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],"TW",886,"0(?:0[25679]|19)", -"0","#",,"0",,,,[[,"([2-8])(\\d{3,4})(\\d{4})","$1 $2 $3",["[2-6]|[78][1-9]"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["80|9"],"0$1","",0],[,"(70)(\\d{4})(\\d{4})","$1 $2 $3",["70"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TZ:[,[,,"\\d{9}","\\d{7,9}"],[,,"2[2-8]\\d{7}","\\d{7,9}",,,"222345678"],[,,"(?:6[158]|7[1-9])\\d{7}","\\d{9}",,,"612345678"],[,,"80[08]\\d{6}","\\d{9}",,,"800123456"],[,,"90\\d{7}","\\d{9}",,,"900123456"],[,,"8(?:40|6[01])\\d{6}", -"\\d{9}",,,"840123456"],[,,"NA","NA"],[,,"41\\d{7}","\\d{9}",,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"([24]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1","",0],[,"([67]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1","",0],[,"([89]\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UA:[,[,,"[3-689]\\d{8}","\\d{5,9}"],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}","\\d{5,9}",,,"311234567"],[,,"(?:39|50|6[36-8]|9[1-9])\\d{7}", -"\\d{9}",,,"391234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"89\\d{7}","\\d{9}",,,"891234567"],"UA",380,"00","0",,,"0",,"0~0",,[[,"([3-689]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|6[37]|7[37])|6[36-8]|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|9[1-9]"],"0$1","",0],[,"([3-689]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["3[1-8]2|4[13678]2|5(?:[12457]2|6[24])|6(?:[49]2|[12][29]|5[24])|8[0-8]|90", -"3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[49]2|[12][29]|5[24])|8[0-8]|90"],"0$1","",0],[,"([3-6]\\d{3})(\\d{5})","$1 $2",["3(?:5[013-9]|[1-46-8])|4(?:[137][013-9]|6|[45][6-9]|8[4-6])|5(?:[1245][013-9]|6[0135-9]|3|7[4-6])|6(?:[49][013-9]|5[0135-9]|[12][13-8])","3(?:5[013-9]|[1-46-8](?:22|[013-9]))|4(?:[137][013-9]|6(?:[013-9]|22)|[45][6-9]|8[4-6])|5(?:[1245][013-9]|6(?:3[02389]|[015689])|3|7[4-6])|6(?:[49][013-9]|5[0135-9]|[12][13-8])"],"0$1","",0]],,[,,"NA","NA"],, -,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UG:[,[,,"\\d{9}","\\d{5,9}"],[,,"20(?:[0147]\\d{2}|2(?:40|[5-9]\\d)|3[23]\\d|5[0-4]\\d|6[03]\\d|8[0-2]\\d)\\d{4}|[34]\\d{8}","\\d{5,9}",,,"312345678"],[,,"2030\\d{5}|7(?:0[0-7]|[15789]\\d|2[03]|30|[46][0-4])\\d{6}","\\d{9}",,,"712345678"],[,,"800[123]\\d{5}","\\d{9}",,,"800123456"],[,,"90[123]\\d{6}","\\d{9}",,,"901123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\d{3})(\\d{6})","$1 $2",["[7-9]|20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])"], -"0$1","",0],[,"(\\d{2})(\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"],"0$1","",0],[,"(2024)(\\d{5})","$1 $2",["2024"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],US:[,[,,"[2-9]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[4589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[014679]|4[67]|5[12]|6[014]|8[56])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|69|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-37]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[036]|3[016]|4[16]|5[017]|6[0-279]|78|8[12])|7(?:0[1-46-8]|1[02-9]|2[0457]|3[1247]|4[07]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-25]|4[3578]|5[06-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[01678]|4[0179]|5[12469]|7[0-3589]|8[0459]))[2-9]\\d{6}", -"\\d{7}(?:\\d{3})?",,,"2015555555"],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[4589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[014679]|4[67]|5[12]|6[014]|8[56])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|69|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-37]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[036]|3[016]|4[16]|5[017]|6[0-279]|78|8[12])|7(?:0[1-46-8]|1[02-9]|2[0457]|3[1247]|4[07]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-25]|4[3578]|5[06-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[01678]|4[0179]|5[12469]|7[0-3589]|8[0459]))[2-9]\\d{6}", -"\\d{7}(?:\\d{3})?",,,"2015555555"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",,"","",1],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",,"","",1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3"]],[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UY:[,[,,"[2489]\\d{6,7}","\\d{7,8}"],[, -,"2\\d{7}|4[2-7]\\d{6}","\\d{7,8}",,,"21231234"],[,,"9[1-9]\\d{6}","\\d{8}",,,"94231234"],[,,"80[05]\\d{4}","\\d{7}",,,"8001234"],[,,"90[0-8]\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UY",598,"0(?:1[3-9]\\d|0)","0"," int. ",,"0",,"00",,[[,"(\\d{4})(\\d{4})","$1 $2",["[24]"],"","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{4})","$1 $2",["[89]0"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UZ:[,[,,"[679]\\d{8}", -"\\d{7,9}"],[,,"(?:6(?:1(?:22|3[124]|4[1-4]|5[123578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d{2}|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[12456]|9[135-8])|1[12]\\d|2(?:22|3[1345789]|4[123579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}","\\d{7,9}",,,"662345678"],[,,"6(?:1(?:2(?:98|2[01])|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:11\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4])|7\\d{2})|5(?:19[01]|2(?:27|9[26])|30\\d|59\\d|7\\d{2})|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|3[79]\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79])|9[0-3]\\d)|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|5\\d|3[01]|7[0-4])|5[67]\\d|6(?:2[0-26]|8\\d)|7\\d{2}))\\d{4}|7(?:0\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|33\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078])|9[4-6]\\d)|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0127]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[05629]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07])))\\d{4}|9[0-57-9]\\d{7}", -"\\d{7,9}",,,"912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UZ",998,"810","8",,,"8",,"8~10",,[[,"([679]\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"8 $1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VA:[,[,,"06\\d{8}","\\d{10}"],[,,"06698\\d{5}","\\d{10}",,,"0669812345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VA",379,"00",,,,,,,,[[,"(06)(\\d{4})(\\d{4})","$1 $2 $3",,"","",0]],,[,,"NA","NA"], -,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],VC:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-24-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}","\\d{7}(?:\\d{3})?",,,"7842661234"],[,,"784(?:4(?:3[0-4]|5[45]|89|9[0-5])|5(?:2[6-9]|3[0-4]))\\d{4}","\\d{10}",,,"7844301234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"], -[,,"NA","NA"],"VC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"784",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VE:[,[,,"[24589]\\d{9}","\\d{7,10}"],[,,"(?:2(?:12|3[457-9]|[58][1-9]|[467]\\d|9[1-6])|50[01])\\d{7}","\\d{7,10}",,,"2121234567"],[,,"4(?:1[24-8]|2[46])\\d{7}","\\d{10}",,,"4121234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",,"0$1","$CC $1",0]],,[,,"NA", -"NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VG:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"284(?:(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}|496[0-5]\\d{3})","\\d{7}(?:\\d{3})?",,,"2842291234"],[,,"284(?:(?:3(?:0[0-3]|4[0-367])|4(?:4[0-6]|68|99)|54[0-57])\\d{4}|496[6-9]\\d{3})","\\d{10}",,,"2843001234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"], -[,,"NA","NA"],"VG",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"284",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VI:[,[,,"[3589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"340(?:2(?:01|2[0678]|44|77)|3(?:32|44)|4(?:22|7[34])|5(?:1[34]|55)|6(?:26|4[23]|77|9[023])|7(?:1[2-589]|27|7\\d)|884|998)\\d{4}","\\d{7}(?:\\d{3})?",,,"3406421234"],[,,"340(?:2(?:01|2[0678]|44|77)|3(?:32|44)|4(?:22|7[34])|5(?:1[34]|55)|6(?:26|4[23]|77|9[023])|7(?:1[2-589]|27|7\\d)|884|998)\\d{4}","\\d{7}(?:\\d{3})?",,,"3406421234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}", -"\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"VI",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"340",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VN:[,[,,"[17]\\d{6,9}|[2-69]\\d{7,9}|8\\d{6,8}","\\d{7,10}"],[,,"(?:2(?:[025-79]|1[0189]|[348][01])|3(?:[0136-9]|[25][01])|4\\d|5(?:[01][01]|[2-9])|6(?:[0-46-8]|5[01])|7(?:[02-79]|[18][01])|8[1-9])\\d{7}","\\d{9,10}",,,"2101234567"],[,,"(?:9\\d|1(?:2\\d|6[2-9]|8[68]|99))\\d{7}", -"\\d{9,10}",,,"912345678"],[,,"1800\\d{4,6}","\\d{8,10}",,,"1800123456"],[,,"1900\\d{4,6}","\\d{8,10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VN",84,"00","0",,,"0",,,,[[,"([17]99)(\\d{4})","$1 $2",["[17]99"],"0$1","",1],[,"([48])(\\d{4})(\\d{4})","$1 $2 $3",["[48]"],"0$1","",1],[,"([235-7]\\d)(\\d{4})(\\d{3})","$1 $2 $3",["2[025-79]|3[0136-9]|5[2-9]|6[0-46-8]|7[02-79]"],"0$1","",1],[,"(80)(\\d{5})","$1 $2",["80"],"0$1","",1],[,"(69\\d)(\\d{4,5})","$1 $2",["69"],"0$1","",1],[,"([235-7]\\d{2})(\\d{4})(\\d{3})", -"$1 $2 $3",["2[1348]|3[25]|5[01]|65|7[18]"],"0$1","",1],[,"(9\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1","",1],[,"(1[2689]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"],"0$1","",1],[,"(1[89]00)(\\d{4,6})","$1 $2",["1[89]0"],"$1","",1]],,[,,"NA","NA"],,,[,,"[17]99\\d{4}|69\\d{5,6}","\\d{7,8}",,,"1992000"],[,,"[17]99\\d{4}|69\\d{5,6}|80\\d{5}","\\d{7,8}",,,"1992000"],,,[,,"NA","NA"]],VU:[,[,,"[2-57-9]\\d{4,6}","\\d{5,7}"],[,,"(?:2[02-9]\\d|3(?:[5-7]\\d|8[0-8])|48[4-9]|88\\d)\\d{2}", -"\\d{5}",,,"22123"],[,,"(?:5(?:7[2-5]|[3-69]\\d)|7[013-7]\\d)\\d{4}","\\d{7}",,,"5912345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[579]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"3[03]\\d{3}|900\\d{4}","\\d{5,7}",,,"30123"],,,[,,"NA","NA"]],WF:[,[,,"[5-7]\\d{5}","\\d{6}"],[,,"(?:50|68|72)\\d{4}","\\d{6}",,,"501234"],[,,"(?:50|68|72)\\d{4}","\\d{6}",,,"501234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA", -"NA"],[,,"NA","NA"],"WF",681,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],WS:[,[,,"[2-8]\\d{4,6}","\\d{5,7}"],[,,"(?:[2-5]\\d|6[1-9]|84\\d{2})\\d{3}","\\d{5,7}",,,"22123"],[,,"(?:60|7[25-7]\\d)\\d{4}","\\d{6,7}",,,"601234"],[,,"800\\d{3}","\\d{6}",,,"800123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"WS",685,"0",,,,,,,,[[,"(8\\d{2})(\\d{3,4})","$1 $2",["8"],"","",0],[,"(7\\d)(\\d{5})","$1 $2",["7"],"", -"",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],YE:[,[,,"[1-7]\\d{6,8}","\\d{6,9}"],[,,"(?:1(?:7\\d|[2-68])|2[2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-68])\\d{5}","\\d{6,8}",,,"1234567"],[,,"7[0137]\\d{7}","\\d{9}",,,"712345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"YE",967,"00","0",,,"0",,,,[[,"([1-7])(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1","",0],[,"(7\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["7[0137]"],"0$1","",0]],,[,,"NA","NA"], -,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],YT:[,[,,"[268]\\d{8}","\\d{9}"],[,,"2696[0-4]\\d{4}","\\d{9}",,,"269601234"],[,,"639\\d{6}","\\d{9}",,,"639123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"YT",262,"00","0",,,"0",,,,,,[,,"NA","NA"],,"269|63",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ZA:[,[,,"[1-79]\\d{8}|8(?:[067]\\d{7}|[1-4]\\d{3,7})","\\d{5,9}"],[,,"(?:1[0-8]|2[0-378]|3[1-69]|4\\d|5[1346-8])\\d{7}","\\d{9}",,,"101234567"],[, -,"(?:6[0-5]|7[0-46-9])\\d{7}|8[1-4]\\d{3,7}","\\d{5,9}",,,"711234567"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"86[2-9]\\d{6}|90\\d{7}","\\d{9}",,,"862345678"],[,,"860\\d{6}","\\d{9}",,,"860123456"],[,,"NA","NA"],[,,"87\\d{7}","\\d{9}",,,"871234567"],"ZA",27,"00","0",,,"0",,,,[[,"(860)(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-47]|6[1-9])"],"0$1","",0],[,"(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})", -"$1 $2 $3",["8[1-4]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"861\\d{6}","\\d{9}",,,"861123456"],,,[,,"NA","NA"]],ZM:[,[,,"[289]\\d{8}","\\d{9}"],[,,"21[1-8]\\d{6}","\\d{9}",,,"211234567"],[,,"9(?:5[05]|6\\d|7[1-9])\\d{6}","\\d{9}",,,"955123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ZM",260,"00","0",,,"0",,,,[[,"([29]\\d)(\\d{7})","$1 $2",["[29]"],"0$1","",0],[,"(800)(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],, -,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ZW:[,[,,"2(?:[012457-9]\\d{3,8}|6\\d{3,6})|[13-79]\\d{4,8}|8[06]\\d{8}","\\d{3,10}"],[,,"(?:1[3-9]|2(?:0[45]|[16]|2[28]|[49]8?|58[23]|7[246]|8[1346-9])|3(?:08?|17?|3[78]|[2456]|7[1569]|8[379])|5(?:[07-9]|1[78]|483|5(?:7?|8))|6(?:0|28|37?|[45][68][78]|98?)|848)\\d{3,6}|(?:2(?:27|5|7[135789]|8[25])|3[39]|5[1-46]|6[126-8])\\d{4,6}|2(?:(?:0|70)\\d{5,6}|2[05]\\d{7})|(?:4\\d|9[2-8])\\d{4,7}","\\d{3,10}",,,"1312345"],[,,"7[1378]\\d{7}|86(?:22|44)\\d{6}","\\d{9,10}", -,,"711234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"86(?:1[12]|30|55|77|8[367]|99)\\d{6}","\\d{10}",,,"8686123456"],"ZW",263,"00","0",,,"0",,,,[[,"([49])(\\d{3})(\\d{2,5})","$1 $2 $3",["4|9[2-9]"],"0$1","",0],[,"([179]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[19]1|7"],"0$1","",0],[,"(86\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["86[24]"],"0$1","",0],[,"([2356]\\d{2})(\\d{3,5})","$1 $2",["2(?:[278]|0[45]|[49]8)|3(?:08|17|3[78]|[78])|5[15][78]|6(?:[29]8|37|[68][78])"], -"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:[278]|0[45]|48)|3(?:08|17|3[78]|[78])|5[15][78]|6(?:[29]8|37|[68][78])|80"],"0$1","",0],[,"([1-356]\\d)(\\d{3,5})","$1 $2",["1[3-9]|2(?:[1-469]|0[0-35-9]|[45][0-79])|3(?:0[0-79]|1[0-689]|[24-69]|3[0-69])|5(?:[02-46-9]|[15][0-69])|6(?:[0145]|[29][0-79]|3[0-689]|[68][0-69])"],"0$1","",0],[,"([1-356]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[3-9]|2(?:[1-469]|0[0-35-9]|[45][0-79])|3(?:0[0-79]|1[0-689]|[24-69]|3[0-69])|5(?:[02-46-9]|[15][0-69])|6(?:[0145]|[29][0-79]|3[0-689]|[68][0-69])"], -"0$1","",0],[,"([25]\\d{3})(\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"],"0$1","",0],[,"([25]\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["(?:25|54)8","258[23]|5483"],"0$1","",0],[,"(8\\d{3})(\\d{6})","$1 $2",["86"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],800:[,[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",800,"",,,,,,,1,[[,"(\\d{4})(\\d{4})", -"$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],808:[,[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],"001",808,"",,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],870:[,[,,"[35-7]\\d{8}","\\d{9}",,,"301234567"],[,,"NA","NA",,,"301234567"],[,,"(?:[356]\\d|7[6-8])\\d{7}","\\d{9}", -,,"301234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",870,"",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],878:[,[,,"1\\d{11}","\\d{12}",,,"101234567890"],[,,"NA","NA",,,"101234567890"],[,,"NA","NA",,,"101234567890"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"10\\d{10}","\\d{12}",,,"101234567890"],"001",878,"",,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",,"","",0]], -,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],881:[,[,,"[67]\\d{8}","\\d{9}",,,"612345678"],[,,"NA","NA",,,"612345678"],[,,"[67]\\d{8}","\\d{9}",,,"612345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",881,"",,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[67]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],882:[,[,,"[13]\\d{6,11}","\\d{7,12}",,,"3451234567"],[,,"NA","NA",,,"3451234567"],[,,"3(?:2\\d{3}|37\\d{2}|4(?:2|7\\d{3}))\\d{4}", -"\\d{7,10}",,,"3451234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15678]|9[0689])\\d{4}|6\\d{5,10})|345\\d{7}","\\d{7,12}",,,"3451234567"],"001",882,"",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"],"","",0],[,"(\\d{2})(\\d{5})","$1 $2",["16|342"],"","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["348"],"","",0],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3", -["1"],"","",0],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"],"","",0],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["16"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"348[57]\\d{7}","\\d{11}",,,"3451234567"]],883:[,[,,"51\\d{7}(?:\\d{3})?","\\d{9}(?:\\d{3})?",,,"510012345"],[,,"NA","NA",,,"510012345"],[,,"NA","NA",,,"510012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"51(?:00\\d{5}(?:\\d{3})?|[13]0\\d{8})","\\d{9}(?:\\d{3})?",,,"510012345"],"001",883,"",,,,,,,1, -[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"],"","",0],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],888:[,[,,"\\d{11}","\\d{11}",,,"12345678901"],[,,"NA","NA",,,"12345678901"],[,,"NA","NA",,,"12345678901"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",888,"",,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",,"","",0]],,[, -,"NA","NA"],,,[,,"NA","NA"],[,,"\\d{11}","\\d{11}",,,"12345678901"],1,,[,,"NA","NA"]],979:[,[,,"\\d{9}","\\d{9}",,,"123456789"],[,,"NA","NA",,,"123456789"],[,,"NA","NA",,,"123456789"],[,,"NA","NA"],[,,"\\d{9}","\\d{9}",,,"123456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",979,"",,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]]};/* - - Copyright (C) 2010 The Libphonenumber Authors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -function P(){this.$={}}P.ba=function(){return P.v?P.v:P.v=new P}; -var Ja={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},Ka={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6", -7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7", -Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},Q=RegExp("^[+\uff0b]+"),La=RegExp("([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])"),Ma=RegExp("[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]"),Na=/[\\\/] *x/,Oa=RegExp("[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9A-Za-z#]+$"),Pa=/(?:.*?[A-Za-z]){3}.*/,Qa=RegExp("(?:;ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \u00a0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|[,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \u00a0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#)$", -"i"),Ra=RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]*(?:[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:;ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \u00a0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|[,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \u00a0\\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#)?$", -"i"),Sa=/(\$\d)/;function Ta(a){var b=a.search(Ma);0<=b?(a=a.substring(b),a=a.replace(Oa,""),b=a.search(Na),0<=b&&(a=a.substring(0,b))):a="";return a}function Ua(a){return 2>a.length?!1:R(Ra,a)}function Va(a){return R(Pa,a)?S(a,Ka):S(a,Ja)}function Wa(a){var b=Va(a.toString());a.clear();a.append(b)}function S(a,b){for(var c=new F,d,f=a.length,e=0;e<f;++e)d=a.charAt(e),d=b[d.toUpperCase()],null!=d&&c.append(d);return c.toString()} -P.prototype.format=function(a,b){if(0==y(a,2)&&null!=a.b[5]){var c=B(a,5);if(0<c.length)return c}var c=a.h(),d=T(a);if(0==b)return Xa(c,0,d,"");if(!(c in N))return d;var f=U(this,c,Ya(c)),e;e=null!=a.b[3]&&0!=a.getExtension().length?3==b?";ext="+a.getExtension():null!=f.b[13]?y(f,13)+B(a,3):" ext. "+B(a,3):"";a:{for(var f=0==(A(f,20)||[]).length||2==b?A(f,19)||[]:A(f,20)||[],g,h=f.length,k=0;k<h;++k){g=f[k];var m=g.f[3].o?null!=g.b[3]?g.b[3].length:0:null!=g.b[3]?1:0;if(0==m||0==d.search(y(g,3,m- -1)))if(m=new RegExp(y(g,1)),R(m,d)){f=g;break a}}f=null}null!=f&&(h=f,f=B(h,2),g=new RegExp(y(h,1)),B(h,5),k="",h=B(h,4),k=2==b&&null!=h&&0<h.length?d.replace(g,f.replace(Sa,h)):d.replace(g,f),3==b&&(k=k.replace(RegExp("^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+"),""),k=k.replace(RegExp("[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+", -"g"),"-")),d=k);return Xa(c,b,d,e)};function U(a,b,c){return"001"==c?V(a,""+b):V(a,c)}function T(a){var b=""+y(a,2);return null!=a.b[4]&&y(a,4)?Array(B(a,8)+1).join("0")+b:b}function Xa(a,b,c,d){switch(b){case 0:return"+"+a+c+d;case 1:return"+"+a+" "+c+d;case 3:return"tel:+"+a+"-"+c+d;default:return c+d}} -function Za(a,b){return W(a,y(b,1))?W(a,y(b,5))?4:W(a,y(b,4))?3:W(a,y(b,6))?5:W(a,y(b,8))?6:W(a,y(b,7))?7:W(a,y(b,21))?8:W(a,y(b,25))?9:W(a,y(b,28))?10:W(a,y(b,2))?y(b,18)||W(a,y(b,3))?2:0:!y(b,18)&&W(a,y(b,3))?1:-1:-1}function V(a,b){if(null==b)return null;b=b.toUpperCase();var c=a.$[b];if(null==c){c=O[b];if(null==c)return null;c=(new M).k(I.i(),c);a.$[b]=c}return c}function W(a,b){return R(B(b,3),a)&&R(B(b,2),a)}function Ya(a){a=N[a];return null==a?"ZZ":a[0]} -function $a(a,b){return R(a,b)?0:0==b.search(a)?3:2} -function ab(a,b,c,d,f){if(0==a.length)return 0;a=new F(a);var e;null!=b&&(e=y(b,11));null==e&&(e="NonMatch");var g=a.toString();if(0==g.length)e=20;else if(Q.test(g))g=g.replace(Q,""),a.clear(),a.append(Va(g)),e=1;else{g=new RegExp(e);Wa(a);e=a.toString();if(0==e.search(g)){var g=e.match(g)[0].length,h=e.substring(g).match(La);h&&null!=h[1]&&0<h[1].length&&"0"==S(h[1],Ja)?e=!1:(a.clear(),a.append(e.substring(g)),e=!0)}else e=!1;e=e?5:20}d&&z(f,6,e);if(20!=e){if(2>=a.e.length)throw"Phone number too short after IDD"; -a:{d=a.toString();if(0!=d.length&&"0"!=d.charAt(0))for(b=d.length,e=1;3>=e&&e<=b;++e)if(a=parseInt(d.substring(0,e),10),a in N){c.append(d.substring(e));c=a;break a}c=0}if(0!=c)return f.l(c),c;throw"Invalid country calling code";}if(null!=b&&(e=b.h(),g=""+e,h=a.toString(),0==h.lastIndexOf(g,0))){var k=new F(h.substring(g.length)),h=y(b,1),g=new RegExp(B(h,2));bb(k,b,null);b=k.toString();h=B(h,3);if(!R(g,a.toString())&&R(g,b)||3==$a(h,a.toString()))return c.append(b),d&&z(f,6,10),f.l(e),e}f.l(0);return 0} -function bb(a,b,c){var d=a.toString(),f=d.length,e=y(b,15);if(0!=f&&null!=e&&0!=e.length&&(e=new RegExp("^(?:"+e+")"),f=e.exec(d))){var g=RegExp,h;h=y(b,1);h=B(h,2);g=new g(h);h=R(g,d);var k=f.length-1;b=y(b,16);if(null==b||0==b.length||null==f[k]||0==f[k].length){if(!h||R(g,d.substring(f[0].length)))null!=c&&0<k&&null!=f[k]&&c.append(f[1]),a.set(d.substring(f[0].length))}else if(d=d.replace(e,b),!h||R(g,d))null!=c&&0<k&&c.append(f[1]),a.set(d)}} -P.prototype.parse=function(a,b){return cb(this,a,b,!1)}; -function cb(a,b,c,d){if(null==b)throw"The string supplied did not seem to be a phone number";if(250<b.length)throw"The string supplied is too long to be a phone number";var f=new F,e=b.indexOf(";phone-context=");if(0<e){var g=e+15;if("+"==b.charAt(g)){var h=b.indexOf(";",g);0<h?f.append(b.substring(g,h)):f.append(b.substring(g))}g=b.indexOf("tel:");f.append(b.substring(0<=g?g+4:0,e))}else f.append(Ta(b));e=f.toString();g=e.indexOf(";isub=");0<g&&(f.clear(),f.append(e.substring(0,g)));if(!Ua(f.toString()))throw"The string supplied did not seem to be a phone number"; -e=f.toString();if(!(null!=c&&isNaN(c)&&c.toUpperCase()in O||null!=e&&0<e.length&&Q.test(e)))throw"Invalid country calling code";e=new K;d&&z(e,5,b);a:{b=f.toString();g=b.search(Qa);if(0<=g&&Ua(b.substring(0,g)))for(var h=b.match(Qa),k=h.length,m=1;m<k;++m)if(null!=h[m]&&0<h[m].length){f.clear();f.append(b.substring(0,g));b=h[m];break a}b=""}0<b.length&&z(e,3,b);g=V(a,c);b=new F;h=0;k=f.toString();try{h=ab(k,g,b,d,e)}catch(r){if("Invalid country calling code"==r&&Q.test(k)){if(k=k.replace(Q,""),h= -ab(k,g,b,d,e),0==h)throw r;}else throw r;}0!=h?(f=Ya(h),f!=c&&(g=U(a,h,f))):(Wa(f),b.append(f.toString()),null!=c?(h=g.h(),e.l(h)):d&&Da(e,6));if(2>b.e.length)throw"The string supplied is too short to be a phone number";null!=g&&(a=new F,c=new F(b.toString()),bb(c,g,a),f=c.toString(),g=y(g,1),g=B(g,3),2!=$a(g,f)&&(b=c,d&&z(e,7,a.toString())));d=b.toString();a=d.length;if(2>a)throw"The string supplied is too short to be a phone number";if(17<a)throw"The string supplied is too long to be a phone number"; -if(1<d.length&&"0"==d.charAt(0)){z(e,4,!0);for(a=1;a<d.length-1&&"0"==d.charAt(a);)a++;1!=a&&z(e,8,a)}z(e,2,parseInt(d,10));return e}function R(a,b){var c="string"==typeof a?b.match("^(?:"+a+")$"):b.match(a);return c&&c[0].length==b.length?!0:!1};/* - - Copyright (C) 2010 The Libphonenumber Authors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -var db=new I;z(db,11,"NA");/* - - Copyright (C) 2010 The Libphonenumber Authors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -function eb(a,b){try{var c=P.ba();if(!(null!=b&&isNaN(b)&&b.toUpperCase()in O)&&0<a.length&&"+"!=a.charAt(0))throw"Invalid country calling code";var d=cb(c,a,b,!0),f;if(null==d)f=null;else{var e=d.h(),g=N[e],h;if(null==g)h=null;else{var k;if(1==g.length)k=g[0];else b:{for(var m=T(d),r,C=g.length,e=0;e<C;e++){r=g[e];var $=V(c,r);if(null!=$.b[23]){if(0==m.search(y($,23))){k=r;break b}}else if(-1!=Za(m,$)){k=r;break b}}k=null}h=k}f=h}var aa;var Ea=d.h(),Fa=U(c,Ea,f),ba;if(!(ba=null==Fa)){var ca;if(ca= -"001"!=f){var Ga,Ha=V(c,f);if(null==Ha)throw"Invalid region code: "+f;Ga=Ha.h();ca=Ea!=Ga}ba=ca}if(ba)aa=!1;else{var gb=T(d);aa=-1!=Za(gb,Fa)}return aa}catch(hb){return hb}}var X=["isPhoneNumberValid"],Y=n;X[0]in Y||!Y.execScript||Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());){var fb;if(fb=!X.length)fb=void 0!==eb;fb?Y[Z]=eb:Y=Y[Z]?Y[Z]:Y[Z]={}};})(); \ No newline at end of file diff --git a/themes/blueprint/js/lightbox.js b/themes/blueprint/js/lightbox.js deleted file mode 100644 index 467fd925e432a213060cd81cdeaff01c9cb8e0e9..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/lightbox.js +++ /dev/null @@ -1,616 +0,0 @@ -/*global btoa, checkSaveStatuses, confirm, extractController, extractSource, getItemsFromCartCookie, hexEncode, htmlEncode, path, printIDs, rc4Encrypt, Recaptcha, redrawCartStatus, refreshCommentList, removeRecordState, saveCartCookie, unescape, userIsLoggedIn, vufindString*/ - -// keep a handle to the current opened dialog so we can access it later -var __dialogHandle = {dialog: null, processFollowup:false, followupModule: null, followupAction: null, recordId: null, postParams: null}; - -function getLightbox(module, action, id, lookfor, message, followupModule, followupAction, followupId, postParams) { - // Optional parameters - if (followupModule === undefined) {followupModule = '';} - if (followupAction === undefined) {followupAction = '';} - if (followupId === undefined) {followupId = '';} - - var params = { - method: 'getLightbox', - lightbox: 'true', - submodule: module, - subaction: action, - id: id, - lookfor: lookfor, - message: message, - followupModule: followupModule, - followupAction: followupAction, - followupId: followupId - }; - - // create a new modal dialog - var $dialog = $('<div id="modalDialog"><div class="dialogLoading"> </div></div>') - .load(path + '/AJAX/JSON?' + $.param(params), postParams) - .dialog({ - modal: true, - autoOpen: false, - closeOnEscape: true, - title: message, - width: 600, - height: 350, - close: function () { - // check if the dialog was successful, if so, load the followup action - if (__dialogHandle.processFollowup && __dialogHandle.followupModule - && __dialogHandle.followupAction) { - $(this).remove(); - getLightbox(__dialogHandle.followupModule, __dialogHandle.followupAction, - __dialogHandle.recordId, null, message, null, null, null, postParams); - } - $(this).remove(); - } - }); - - // save information about this dialog so we can get it later for followup processing - __dialogHandle.dialog = $dialog; - __dialogHandle.processFollowup = false; - __dialogHandle.followupModule = followupModule; - __dialogHandle.followupAction = followupAction; - __dialogHandle.recordId = followupId == '' ? id : followupId; - __dialogHandle.postParams = postParams; - - // done - return $dialog.dialog('open'); -} - -function hideLightbox() { - if (!__dialogHandle.dialog) { - return false; - } - __dialogHandle.dialog.dialog('close'); -} - -function displayLightboxFeedback($form, message, type) { - var $container = $form.parent(); - $container.empty(); - $container.append('<div class="' + type + '">' + message + '</div>'); -} - -function displayFormError($form, error) { - $form.parent().find('.error').remove(); - $form.prepend('<div class="error">' + error + '</div>'); - if (typeof Recaptcha != "undefined") { - Recaptcha.reload(); - } -} - -function displayFormInfo($form, msg) { - $form.parent().parent().find('.info').remove(); - $form.parent().prepend('<div class="info">' + msg + '</div>'); -} - -function showLoadingGraphic($form) { - $form.parent().prepend('<div class="dialogLoading"> </div>'); -} - -function hideLoadingGraphic($form) { - $form.parent().parent().find('.dialogLoading').remove(); -} - -function registerAjaxLogin() { - $('#modalDialog form[name="loginForm"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var form = this; - $.ajax({ - url: path + '/AJAX/JSON?method=getSalt', - dataType: 'json', - success: function(response) { - if (response.status == 'OK') { - var salt = response.data; - - // get the user entered password - var password = form.password.value; - - // base-64 encode the password (to allow support for Unicode) - // and then encrypt the password with the salt - password = rc4Encrypt(salt, btoa(unescape(encodeURIComponent(password)))); - - // hex encode the encrypted password - password = hexEncode(password); - - var params = {password:password}; - - // get any other form values - for (var i = 0; i < form.length; i++) { - if (form.elements[i].name == 'password') { - continue; - } - params[form.elements[i].name] = form.elements[i].value; - } - - // login via ajax - $.ajax({ - type: 'POST', - url: path + '/AJAX/JSON?method=login', - dataType: 'json', - data: params, - success: function(response) { - if (response.status == 'OK') { - // Hide "log in" options and show "log out" options: - $('#loginOptions').hide(); - $('#logoutOptions').show(); - - // Update user save statuses if the current context calls for it: - if (typeof(checkSaveStatuses) == 'function') { - checkSaveStatuses(); - } - - // refresh the comment list so the "Delete" links will show - $('.commentList').each(function(){ - var recordId = $('#record_id').val(); - var recordSource = extractSource($('#record')); - refreshCommentList(recordId, recordSource); - }); - - // if there is a followup action, then it should be processed - __dialogHandle.processFollowup = true; - - // and we close the dialog - hideLightbox(); - } else { - displayFormError($(form), response.data); - } - } - }); - } else { - displayFormError($(form), response.data); - } - } - }); - return false; - }); -} - -function registerAjaxCart() { - - var $form = $('#modalDialog form[name="cartForm"]'); - if($form) { - $($form).submit(function(){return false;}); - $("input[name='ids[]']", $form).attr('checked', false); - $($form).validate({ - rules: { - "ids[]": "required" - }, - showErrors: function(x) { - hideLoadingGraphic($form); - for (var y in x) { - if (y == 'ids[]') { - displayFormError($form, vufindString.bulk_noitems_advice); - } - } - } - }); - $("input[name='email']", $form).unbind('click').click(function(){ - showLoadingGraphic($form); - if (!$($form).valid()) { return false; } - var selected = $("input[name='ids[]']:checked", $form); - var postParams = []; - $.each(selected, function(i) { - postParams[i] = this.value; - }); - hideLightbox(); - var $dialog = getLightbox('Cart', 'Home', null, null, this.title, 'Cart', 'Home', '', {email: 1, ids: postParams}); - return false; - }); - $("input[name='print']", $form).unbind('click').click(function(){ - showLoadingGraphic($form); - var selected = $("#modalDialog input[name='ids[]']:checked"); - var ids = []; - $.each(selected, function(i) { - ids[i] = this.value; - }); - var printing = printIDs(ids); - if(!printing) { - hideLoadingGraphic($form); - displayFormError($($form), vufindString.bulk_noitems_advice); - } else { - hideLightbox(); - } - return false; - }); - $("input[name='empty']", $form).unbind('click').click(function(){ - if (confirm(vufindString.confirmEmpty)) { - saveCartCookie([]); - showLoadingGraphic($form); - hideLightbox(); - // This always assumes the Empty command was successful as no indication of success or failure is given - var $dialog = getLightbox('Cart', 'Home', null, null, vufindString.viewBookBag, '', '', ''); - redrawCartStatus(); - removeRecordState(); - } - return false; - }); - $("input[name='export']", $form).unbind('click').click(function(){ - showLoadingGraphic($form); - if (!$($form).valid()) { return false; } - var selected = $("input[name='ids[]']:checked", $form); - var postParams = []; - $.each(selected, function(i) { - postParams[i] = this.value; - }); - hideLightbox(); - var $dialog = getLightbox('Cart', 'Home', null, null, this.title, 'Cart', 'Home', '', {"export": "1", ids: postParams}); - return false; - }); - $("input[name='delete']", $form).unbind('click').click(function(){ - showLoadingGraphic($form); - if (!$($form).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'removeItemsCart'}); - $($form).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - var items = getItemsFromCartCookie(); - redrawCartStatus(); - hideLightbox(); - } - var $dialog = getLightbox('Cart', 'Home', null, null, vufindString.viewBookBag, '', '', '', {viewCart:"1"}); - } - }); - return false; - }); - $("input[name='saveCart']", $form).unbind('click').click(function(){ - showLoadingGraphic($form); - if (!$($form).valid()) { return false; } - var selected = $("input[name='ids[]']:checked", $form); - var postParams = []; - $.each(selected, function(i) { - postParams[i] = this.value; - }); - hideLightbox(); - var $dialog = getLightbox('Cart', 'Home', null, null, this.title, 'Cart', 'Home', '', {saveCart: 1, ids: postParams}); - return false; - }); - } - - // assign action to the "select all checkboxes" class - $('input[type="checkbox"].selectAllCheckboxes').change(function(){ - $(this.form).find('input[type="checkbox"]').attr('checked', $(this).is(':checked')); - }); -} - -function refreshTagList(loggedin) { - loggedin = !!loggedin || userIsLoggedIn; - var recordId = $('#record_id').val(); - var recordSource = $('.hiddenSource').val(); - var tagList = $('#tagList'); - if (tagList.length > 0) { - tagList.empty(); - var url = path + '/AJAX/JSON?' + $.param({method:'getRecordTags',id:recordId,'source':recordSource}); - $.ajax({ - dataType: 'json', - url: url, - complete: function(response) { - if(response.status == 200) { - tagList.html(response.responseText); - if(loggedin) { - $('#tagList').addClass('loggedin'); - } else { - $('#tagList').removeClass('loggedin'); - } - } - } - }); - } -} - -function registerAjaxSaveRecord() { - var saveForm = $('#modalDialog form[name="saveRecord"]'); - if (saveForm.length > 0) { - saveForm.unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var recordId = this.id.value; - var recordSource = this.source.value; - var url = path + '/AJAX/JSON?' + $.param({method:'saveRecord',id:recordId,'source':recordSource}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - // close the dialog - hideLightbox(); - // Update user save statuses if the current context calls for it: - if (typeof(checkSaveStatuses) == 'function') { - checkSaveStatuses(); - } - // Update tag list: - refreshTagList(recordId, recordSource); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); - - $('a.listEdit').unbind('click').click(function(){ - var id = this.href.substring(this.href.indexOf('?')+'recordId='.length+1); - id = decodeURIComponent(id.split('&')[0].replace(/\+/g, ' ')); - var controller = extractController(this); - hideLightbox(); - getLightbox('MyResearch', 'EditList', 'NEW', null, this.title, controller, 'Save', id); - return false; - }); - } -} - -function registerAjaxListEdit() { - $('#modalDialog form[name="newList"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'addList'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - // if there is a followup action, then it should be processed - __dialogHandle.processFollowup = true; - - // close the dialog - hideLightbox(); - } else if (response.status == 'NEED_AUTH') { - // TODO: redirect to login prompt? - // For now, we'll just display an error message; short of - // strange user behavior involving multiple open windows, - // it is very unlikely to get logged out at this stage. - displayFormError($form, response.data); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxEmailRecord() { - $('#modalDialog form[name="emailRecord"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - showLoadingGraphic($(this)); - $(this).hide(); - var url = path + '/AJAX/JSON?' + $.param({method:'emailRecord',id:this.id.value,'source':this.source.value}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - hideLoadingGraphic($form); - if (response.status == 'OK') { - displayFormInfo($form, response.data); - // close the dialog - setTimeout(function() { hideLightbox(); }, 2000); - } else { - $form.show(); - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxSMSRecord() { - $('#modalDialog form[name="smsRecord"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - showLoadingGraphic($(this)); - $(this).hide(); - var url = path + '/AJAX/JSON?' + $.param({method:'smsRecord',id:this.id.value,'source':this.source.value}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - clearForm: true, - success: function(response, statusText, xhr, $form) { - hideLoadingGraphic($form); - if (response.status == 'OK') { - displayFormInfo($form, response.data); - // close the dialog - setTimeout(function() { hideLightbox(); }, 2000); - } else { - $form.show(); - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxTagRecord() { - $('#modalDialog form[name="tagRecord"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var id = this.id.value; - var recordSource = this.source.value; - var url = path + '/AJAX/JSON?' + $.param({method:'tagRecord',id:id,'source':recordSource}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - hideLightbox(); - refreshTagList(id, recordSource); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxEmailSearch() { - $('#modalDialog form[name="emailSearch"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - showLoadingGraphic($(this)); - $(this).hide(); - var url = path + '/AJAX/JSON?' + $.param({method:'emailSearch'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - data: {url:window.location.href}, - success: function(response, statusText, xhr, $form) { - hideLoadingGraphic($form); - if (response.status == 'OK') { - displayFormInfo($form, response.data); - // close the dialog - setTimeout(function() { hideLightbox(); }, 2000); - } else { - $form.show(); - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxBulkEmail() { - $('#modalDialog form[name="bulkEmail"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'emailSearch', 'cart':'1'}); - var ids = []; - $(':input[name="ids[]"]', this).each(function() { - ids.push(encodeURIComponent('id[]') + '=' + encodeURIComponent(this.value)); - }); - var searchURL = path + '/Records?' + ids.join('&'); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - data: {url:searchURL}, - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - displayLightboxFeedback($form, response.data, 'info'); - setTimeout(function() { hideLightbox(); }, 3000); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxBulkExport() { - $('#modalDialog form[name="bulkExport"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'exportFavorites'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - $form.parent().empty().append(response.data.result_additional); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxCartExport() { - $('#modalDialog form[name="exportForm"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'exportFavorites'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if(response.data.export_type == 'download') { - document.location.href = response.data.result_url; - hideLightbox(); - return false; - } - if (response.status == 'OK') { - $form.parent().empty().append(response.data.result_additional); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function registerAjaxBulkSave() { - var bulkSave = $('#modalDialog form[name="bulkSave"]'); - if (bulkSave.length > 0) { - bulkSave.unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'bulkSave'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - displayLightboxFeedback($form, response.data.info, 'info'); - var url = path + '/MyResearch/MyList/' + response.data.result.list; - setTimeout(function() { hideLightbox(); window.location = url; }, 2000); - } else { - displayFormError($form, response.data.info); - } - } - }); - return false; - }); - - $('a.listEdit').unbind('click').click(function(){ - var $form = $('#modalDialog form[name="bulkSave"]'); - var id = this.href.substring(this.href.indexOf('?')+'recordId='.length+1); - id = decodeURIComponent(id.split('&')[0].replace(/\+/g, ' ')); - var ids = $("input[name='ids[]']", $form); - var postParams = []; - $.each(ids, function(i) { - postParams[i] = this.value; - }); - hideLightbox(); - var $dialog = getLightbox('MyResearch', 'EditList', 'NEW', null, this.title, 'Cart', 'Save', '', {ids: postParams}); - return false; - }); - } -} - -function registerAjaxBulkDelete() { - $('#modalDialog form[name="bulkDelete"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var url = path + '/AJAX/JSON?' + $.param({method:'deleteFavorites'}); - $(this).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - displayLightboxFeedback($form, response.data.result, 'info'); - setTimeout(function() { hideLightbox(); window.location.reload(); }, 3000); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -/** - * This is called by the lightbox when it - * finished loading the dialog content from the server - * to register the form in the dialog for ajax submission. - */ -function lightboxDocumentReady() { - registerAjaxLogin(); - registerAjaxCart(); - registerAjaxCartExport(); - registerAjaxSaveRecord(); - registerAjaxListEdit(); - registerAjaxEmailRecord(); - registerAjaxSMSRecord(); - registerAjaxTagRecord(); - registerAjaxEmailSearch(); - registerAjaxBulkSave(); - registerAjaxBulkEmail(); - registerAjaxBulkExport(); - registerAjaxBulkDelete(); - $('.mainFocus').focus(); -} \ No newline at end of file diff --git a/themes/blueprint/js/openurl.js b/themes/blueprint/js/openurl.js deleted file mode 100644 index d6582501b142e8f3cc77d334332403a1a62f796d..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/openurl.js +++ /dev/null @@ -1,40 +0,0 @@ -/*global extractParams, path*/ - -function loadResolverLinks($target, openUrl) { - $target.addClass('ajax_availability'); - var url = path + '/AJAX/JSON?' + $.param({method:'getResolverLinks',openurl:openUrl}); - $.ajax({ - dataType: 'json', - url: url, - success: function(response) { - if (response.status == 'OK') { - $target.removeClass('ajax_availability') - .empty().append(response.data); - } else { - $target.removeClass('ajax_availability').addClass('error') - .empty().append(response.data); - } - } - }); -} - -$(document).ready(function() { - // assign action to the openUrlWindow link class - $('a.openUrlWindow').click(function(){ - var params = extractParams($(this).attr('class')); - var settings = params.window_settings; - window.open($(this).attr('href'), 'openurl', settings); - return false; - }); - - // assign action to the openUrlEmbed link class - $('a.openUrlEmbed').click(function(){ - var params = extractParams($(this).attr('class')); - var openUrl = $(this).children('span.openUrl:first').attr('title'); - $(this).hide(); - loadResolverLinks($('#openUrlEmbed'+params.openurl_id).show(), openUrl); - return false; - }); - - $('a.openUrlEmbed.openUrlEmbedAutoLoad').trigger("click"); -}); \ No newline at end of file diff --git a/themes/blueprint/js/preview.js b/themes/blueprint/js/preview.js deleted file mode 100644 index a54475fd0ad45688fab654a0fb5c7f380a962fe2..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/preview.js +++ /dev/null @@ -1,194 +0,0 @@ -// functions to get rights codes for previews -function getHathiOptions() { - return $('[class*="hathiPreviewSpan"]').attr("class").split('__')[1].split(','); -} -function getGoogleOptions() { - var opts_temp = $('[class*="googlePreviewSpan"]').attr("class").split('__')[1].split(';'); - var options = {}; - for(var key in opts_temp) { - var arr = opts_temp[key].split(':'); - options[arr[0]] = arr[1].split(','); - } - return options; -} -function getOLOptions() { - return $('[class*="olPreviewSpan"]').attr("class").split('__')[1].split(','); -} - -function getHTPreviews(skeys) { - skeys = skeys.replace(/(ISBN|LCCN|OCLC)/gi, '$1:').toLowerCase(); - var bibkeys = skeys.split(/\s+/); - // fetch 20 books at time if there are more than 20 - // since hathitrust only allows 20 at a time - // as per http://vufind.org/jira/browse/VUFIND-317 - var batch = []; - for(var i = 0; i < bibkeys.length; i++) { - batch.push(bibkeys[i]); - if ((i > 0 && i % 20 == 0) || i == bibkeys.length-1) { - var script = 'http://catalog.hathitrust.org/api/volumes/brief/json/' - + batch.join('|') + '&callback=processHTBookInfo'; - $.getScript(script); - batch = []; - } - } -} - -function applyPreviewUrl($link, url) { - // Update the preview button: - $link.attr('href', url).show(); - - // Update associated record thumbnail, if any: - $link.parents('.result,.record') - .find('img.summcover,img.recordcover') - .parents('a').attr('href', url); -} - -function processBookInfo(booksInfo, previewClass, viewOptions) { - for (var bibkey in booksInfo) { - var bookInfo = booksInfo[bibkey]; - if (bookInfo) { - if (viewOptions.indexOf(bookInfo.preview)>= 0) { - applyPreviewUrl( - $('.' + previewClass + '.' + bibkey), bookInfo.preview_url - ); - } - } - } -} - -function processGBSBookInfo(booksInfo) { - var viewOptions = getGoogleOptions(); - if (viewOptions['link'] && viewOptions['link'].length > 0) { - processBookInfo(booksInfo, 'previewGBS', viewOptions['link']); - } - if (viewOptions['tab'] && viewOptions['tab'].length > 0) { - // check for "embeddable: true" in bookinfo - for (var bibkey in booksInfo) { - var bookInfo = booksInfo[bibkey]; - if (bookInfo) { - if (viewOptions['tab'].indexOf(bookInfo.preview)>= 0 - && (bookInfo.embeddable)) { - // make tab visible - $('ul.recordTabs li.hidden a#Preview').parent().removeClass('hidden'); - } - } - } - } -} - -function processOLBookInfo(booksInfo) { - processBookInfo(booksInfo, 'previewOL', getOLOptions()); -} - -function processHTBookInfo(booksInfo) { - for (var b in booksInfo) { - var bibkey = b.replace(/:/, '').toUpperCase(); - var $link = $('.previewHT.' + bibkey); - var items = booksInfo[b].items; - for (var i = 0; i < items.length; i++) { - // check if items possess an eligible rights code - if (getHathiOptions().indexOf(items[i].rightsCode) >= 0) { - applyPreviewUrl($link, items[i].itemURL); - } - } - } -} - -/** - * Array.indexOf is not universally supported - * We need to set it for users who don't have it. - * - * developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf - */ -function setIndexOf() { - Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { - "use strict"; - if (this == null) { - throw new TypeError(); - } - var t = Object(this); - /*jslint bitwise: false*/ - var len = t.length >>> 0; - /*jslint bitwise: true*/ - if (len === 0) { - return -1; - } - var n = 0; - if (arguments.length > 1) { - n = Number(arguments[1]); - if (n != n) { // shortcut for verifying if it's NaN - n = 0; - } else if (n != 0 && n != Infinity && n != -Infinity) { - n = (n > 0 || -1) * Math.floor(Math.abs(n)); - } - } - if (n >= len) { - return -1; - } - var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); - for (; k < len; k++) { - if (k in t && t[k] === searchElement) { - return k; - } - } - return -1; - }; -} - -function getBibKeyString() { - var skeys = ''; - $('.previewBibkeys').each(function(){ - skeys += $(this).attr('class'); - }); - return skeys.replace(/previewBibkeys/g, '').replace(/^\s+|\s+$/g, ''); -} - -function getBookPreviews() { - var skeys = getBibKeyString(); - var bibkeys = skeys.split(/\s+/); - var script; - - // fetch Google preview if enabled - if ($('[class*="googlePreviewSpan"]').length > 0) { - // checks if query string might break URI limit - if not, run as normal - if (bibkeys.length <= 150){ - script = 'https://encrypted.google.com/books?jscmd=viewapi&bibkeys=' - + bibkeys.join(',') + '&callback=processGBSBookInfo'; - $.getScript(script); - } else { - // if so, break request into chunks of 100 - var keyString = ''; - // loop through array - for (var i=0; i < bibkeys.length; i++){ - keyString += bibkeys[i] + ','; - // send request when there are 100 requests ready or when there are no - // more elements to be sent - if ((i > 0 && i % 100 == 0) || i == bibkeys.length-1) { - script = 'https://encrypted.google.com/books?jscmd=viewapi&bibkeys=' - + keyString + '&callback=processGBSBookInfo'; - $.getScript(script); - keyString = ''; - } - } - } - } - - // fetch OpenLibrary preview if enabled - if ($('[class*="olPreviewSpan"]').length > 0) { - script = '//openlibrary.org/api/books?bibkeys=' - + bibkeys.join(',') + '&callback=processOLBookInfo'; - $.getScript(script); - } - - // fetch HathiTrust preview if enabled - if ($('[class*="hathiPreviewSpan"]').length > 0) { - getHTPreviews(skeys); - } -} - -$(document).ready(function() { - if (!Array.prototype.indexOf) { - setIndexOf(); - } - getBookPreviews(); -}); diff --git a/themes/blueprint/js/pubdate_slider.js b/themes/blueprint/js/pubdate_slider.js deleted file mode 100644 index 04df18a9eb48c67c9f8ea6821d8bd48c8f7117d5..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/pubdate_slider.js +++ /dev/null @@ -1,56 +0,0 @@ -function updatePublishDateSlider(prefix) { - var from = parseInt($('#' + prefix + 'from').val(), 10); - var to = parseInt($('#' + prefix + 'to').val(), 10); - - // assuming our oldest item is published in the 15th century - var min = 1500; - if (!from || from < min) { - from = min; - } - // move the min 20 years away from the "from" value - if (from > min + 20) { - min = from - 20; - } - // and keep the max at 1 years from now - var max = (new Date()).getFullYear() + 1; - if (!to || to > max) { - to = max; - } - if (from > max) { - from = max; - } - // update the slider with the new min/max/values - $('#' + prefix + 'Slider').slider('option', { - min: min, max: max, values: [from, to] - }); -} - -function makePublishDateSlider(prefix) { - // create the slider widget - $('#' + prefix + 'Slider').slider({ - range: true, - min: 0, max: 9999, values: [0, 9999], - slide: function(event, ui) { - $('#' + prefix + 'from').val(ui.values[0]); - $('#' + prefix + 'to').val(ui.values[1]); - } - }); - // initialize the slider with the original values - // in the text boxes - updatePublishDateSlider(prefix); - - // when user enters values into the boxes - // the slider needs to be updated too - $('#' + prefix + 'from, #' + prefix + 'to').change(function(){ - updatePublishDateSlider(prefix); - }); -} - -$(document).ready(function(){ - // create the slider for the publish date facet - $('.dateSlider').each(function(i) { - var myId = $(this).attr('id'); - var prefix = myId.substr(0, myId.length - 6); - makePublishDateSlider(prefix); - }); -}); \ No newline at end of file diff --git a/themes/blueprint/js/pubdate_vis.js b/themes/blueprint/js/pubdate_vis.js deleted file mode 100644 index 89e441f3f61c56c0753bcb8d2aa2a58c2443bddf..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/pubdate_vis.js +++ /dev/null @@ -1,119 +0,0 @@ -/*global htmlEncode*/ - -function PadDigits(n, totalDigits) -{ - if (n <= 0){ - n= 1; - } - n = n.toString(); - var pd = ''; - if (totalDigits > n.length) - { - for (var i=0; i < (totalDigits-n.length); i++) - { - pd += '0'; - } - } - return pd + n; -} - -function loadVis(facetFields, searchParams, baseURL, zooming) { - // options for the graph, TODO: make configurable - var options = { - series: { - bars: { - show: true, - align: "center", - fill: true, - fillColor: "rgb(0,0,0)" - } - }, - colors: ["rgba(255,0,0,255)"], - legend: { noColumns: 2 }, - xaxis: { tickDecimals: 0 }, - yaxis: { min: 0, ticks: [] }, - selection: {mode: "x"}, - grid: { backgroundColor: null /*"#ffffff"*/ } - }; - - // AJAX call - var url = baseURL + '/AJAX/json?method=getVisData&facetFields=' + encodeURIComponent(facetFields) + '&' + searchParams; - $.getJSON(url, function (data) { - if (data.status == 'OK') { - $.each(data['data'], function(key, val) { - //check if there is data to display, if there isn't hide the box - if (val['data'] == undefined || val['data'].length == 0) { - return; - } - $("#datevis" + key + "xWrapper").show(); - - // plot graph - var placeholder = $("#datevis" + key + "x"); - - //set up the hasFilter variable - var hasFilter = true; - - //set the has filter - if (val['min'] == 0 && val['max']== 0) { - hasFilter = false; - } - - //check if the min and max value have been set otherwise set them to the ends of the graph - if (val['min'] == 0) { - val['min'] = val['data'][0][0] - 5; - } - if (val['max']== 0) { - val['max'] = parseInt(val['data'][val['data'].length - 1][0], 10) + 5; - } - - if (zooming) { - //check the first and last elements of the data array against min and max value (+padding) - //if the element exists leave it, otherwise create a new marker with a minus one value - if (val['data'][val['data'].length - 1][0] != parseInt(val['max'], 10) + 5) { - val['data'].push([parseInt(val['max'], 10) + 5, -1]); - } - if (val['data'][0][0] != val['min'] - 5) { - val['data'].push([val['min'] - 5, -1]); - } - //check for values outside the selected range and remove them by setting them to null - for (var i=0; i<val['data'].length; i++) { - if (val['data'][i][0] < val['min'] -5 || val['data'][i][0] > parseInt(val['max'], 10) + 5) { - //remove this - val['data'].splice(i,1); - i--; - } - } - - } else { - //no zooming means that we need to specifically set the margins - //do the last one first to avoid getting the new last element - val['data'].push([parseInt(val['data'][val['data'].length - 1][0], 10) + 5, -1]); - //now get the first element - val['data'].push([val['data'][0][0] - 5, -1]); - } - - - var plot = $.plot(placeholder, [val], options); - if (hasFilter) { - // mark pre-selected area - plot.setSelection({ x1: val['min'] , x2: val['max']}); - } - // selection handler - placeholder.bind("plotselected", function (event, ranges) { - var from = Math.floor(ranges.xaxis.from); - var to = Math.ceil(ranges.xaxis.to); - location.href = val['removalURL'] + '&daterange[]=' + key + '&' + key + 'to=' + PadDigits(to,4) + '&' + key + 'from=' + PadDigits(from,4); - }); - - if (hasFilter) { - var newdiv = document.createElement('div'); - var text = document.getElementById("clearButtonText").innerHTML; - newdiv.setAttribute('id', 'clearButton' + key); - newdiv.innerHTML = '<a href="' + htmlEncode(val['removalURL']) + '">' + text + '</a>'; - newdiv.className += "dateVisClear"; - placeholder.append(newdiv); - } - }); - } - }); -} \ No newline at end of file diff --git a/themes/blueprint/js/rc4.js b/themes/blueprint/js/rc4.js deleted file mode 100644 index 7a902a2bd5219616bae4b06b22eabb1fdea992d8..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/rc4.js +++ /dev/null @@ -1,100 +0,0 @@ -/* RC4 symmetric cipher encryption/decryption - * Copyright (c) 2006 by Ali Farhadi. - * released under the terms of the Gnu Public License. - * see the GPL for details. - * - * Email: ali[at]farhadi[dot]ir - * Website: http://farhadi.ir/ - */ - -/** - * Encrypt given plain text using the key with RC4 algorithm. - * All parameters and return value are in binary format. - * - * @param string key - secret key for encryption - * @param string pt - plain text to be encrypted - * @return string - */ -function rc4Encrypt(key, pt) { - s = new Array(); - for (var i=0; i<256; i++) { - s[i] = i; - } - var j = 0; - var x; - for (i=0; i<256; i++) { - j = (j + s[i] + key.charCodeAt(i % key.length)) % 256; - x = s[i]; - s[i] = s[j]; - s[j] = x; - } - i = 0; - j = 0; - var ct = ''; - for (var y=0; y<pt.length; y++) { - i = (i + 1) % 256; - j = (j + s[i]) % 256; - x = s[i]; - s[i] = s[j]; - s[j] = x; - ct += String.fromCharCode(pt.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]); - } - return ct; -} - -/** - * Decrypt given cipher text using the key with RC4 algorithm. - * All parameters and return value are in binary format. - * - * @param string key - secret key for decryption - * @param string ct - cipher text to be decrypted - * @return string -*/ -function rc4Decrypt(key, ct) { - return rc4Encrypt(key, ct); -} - -/* Hexadecimal conversion methods. - * Copyright (c) 2006 by Ali Farhadi. - * released under the terms of the Gnu Public License. - * see the GPL for details. - * - * Email: ali[at]farhadi[dot]ir - * Website: http://farhadi.ir/ - */ - -//Encodes data to Hex(base16) format -function hexEncode(data){ - var b16_digits = '0123456789abcdef'; - var b16_map = new Array(); - for (var i=0; i<256; i++) { - b16_map[i] = b16_digits.charAt(i >> 4) + b16_digits.charAt(i & 15); - } - - var result = new Array(); - for (var i=0; i<data.length; i++) { - result[i] = b16_map[data.charCodeAt(i)]; - } - - return result.join(''); -} - -//Decodes Hex(base16) formated data -function hexDecode(data){ - var b16_digits = '0123456789abcdef'; - var b16_map = new Array(); - for (var i=0; i<256; i++) { - b16_map[b16_digits.charAt(i >> 4) + b16_digits.charAt(i & 15)] = String.fromCharCode(i); - } - if (!data.match(/^[a-f0-9]*$/i)) return false;// return false if input data is not a valid Hex string - - if (data.length % 2) data = '0'+data; - - var result = new Array(); - var j=0; - for (var i=0; i<data.length; i+=2) { - result[j++] = b16_map[data.substr(i,2)]; - } - - return result.join(''); -} \ No newline at end of file diff --git a/themes/blueprint/js/recaptcha_ajax.js b/themes/blueprint/js/recaptcha_ajax.js deleted file mode 100644 index 34ca67409589cc3ce6bb3a3d28d0491a5f7c794e..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/recaptcha_ajax.js +++ /dev/null @@ -1,182 +0,0 @@ -(function(){var h,aa=aa||{},l=this,ba=function(a){a=a.split(".");for(var b=l,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b},ca=function(){},da=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array"; -if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},m=function(a){return"array"==da(a)},ea=function(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length},n=function(a){return"string"==typeof a},fa=function(a){return"function"==da(a)},ga=function(a){var b=typeof a;return"object"==b&&null!=a||"function"== -b},ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},p=function(a,b,c){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia;return p.apply(null,arguments)},ja=Date.now||function(){return+new Date}, -q=function(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},r=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.base=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}; -Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return p.apply(null,c)}return p(this,a)};var s={};q("RecaptchaTemplates",s);s.VertHtml='<table id="recaptcha_table" class="recaptchatable" > <tr> <td colspan="6" class=\'recaptcha_r1_c1\'></td> </tr> <tr> <td class=\'recaptcha_r2_c1\'></td> <td colspan="4" class=\'recaptcha_image_cell\'><center><div id="recaptcha_image"></div></center></td> <td class=\'recaptcha_r2_c2\'></td> </tr> <tr> <td rowspan="6" class=\'recaptcha_r3_c1\'></td> <td colspan="4" class=\'recaptcha_r3_c2\'></td> <td rowspan="6" class=\'recaptcha_r3_c3\'></td> </tr> <tr> <td rowspan="3" class=\'recaptcha_r4_c1\' height="49"> <div class="recaptcha_input_area"> <input name="recaptcha_response_field" id="recaptcha_response_field" type="text" autocorrect="off" autocapitalize="off" placeholder="" /> <span id="recaptcha_privacy" class="recaptcha_only_if_privacy"></span> </div> </td> <td rowspan="4" class=\'recaptcha_r4_c2\'></td> <td><a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="17" /></a></td> <td rowspan="4" class=\'recaptcha_r4_c4\'></td> </tr> <tr> <td><a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="16" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="16" alt=""/></a></td> </tr> <tr> <td><a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a></td> </tr> <tr> <td class=\'recaptcha_r7_c1\'></td> <td class=\'recaptcha_r8_c1\'></td> </tr> </table> ';s.CleanCss=".recaptchatable td img{display:block}.recaptchatable .recaptcha_image_cell center img{height:57px}.recaptchatable .recaptcha_image_cell center{height:57px}.recaptchatable .recaptcha_image_cell{background-color:white;height:57px;padding:7px!important}.recaptchatable,#recaptcha_area tr,#recaptcha_area td,#recaptcha_area th{margin:0!important;border:0!important;border-collapse:collapse!important;vertical-align:middle!important}.recaptchatable *{margin:0;padding:0;border:0;color:black;position:static;top:auto;left:auto;right:auto;bottom:auto}.recaptchatable #recaptcha_image{position:relative;margin:auto;border:1px solid #dfdfdf!important}.recaptchatable #recaptcha_image #recaptcha_challenge_image{display:block}.recaptchatable #recaptcha_image #recaptcha_ad_image{display:block;position:absolute;top:0}.recaptchatable a img{border:0}.recaptchatable a,.recaptchatable a:hover{cursor:pointer;outline:none;border:0!important;padding:0!important;text-decoration:none;color:blue;background:none!important;font-weight:normal}.recaptcha_input_area{position:relative!important;background:none!important}.recaptchatable label.recaptcha_input_area_text{border:1px solid #dfdfdf!important;margin:0!important;padding:0!important;position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important}.recaptcha_theme_red label.recaptcha_input_area_text,.recaptcha_theme_white label.recaptcha_input_area_text{color:black!important}.recaptcha_theme_blackglass label.recaptcha_input_area_text{color:white!important}.recaptchatable #recaptcha_response_field{font-size:11pt}.recaptcha_theme_blackglass #recaptcha_response_field,.recaptcha_theme_white #recaptcha_response_field{border:1px solid gray}.recaptcha_theme_red #recaptcha_response_field{border:1px solid #cca940}.recaptcha_audio_cant_hear_link{font-size:7pt;color:black}.recaptchatable{line-height:1em;border:1px solid #dfdfdf!important}.recaptcha_error_text{color:red}.recaptcha_only_if_privacy{float:right;text-align:right;margin-right:7px}#recaptcha-ad-choices{position:absolute;height:15px;top:0;right:0}#recaptcha-ad-choices img{height:15px}.recaptcha-ad-choices-collapsed{width:15px;height:15px;display:block}.recaptcha-ad-choices-expanded{width:75px;height:15px;display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-collapsed{display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-expanded{display:block}";s.CleanHtml='<table id="recaptcha_table" class="recaptchatable"> <tr height="73"> <td class=\'recaptcha_image_cell\' width="302"><center><div id="recaptcha_image"></div></center></td> <td style="padding: 10px 7px 7px 7px;"> <a id=\'recaptcha_reload_btn\'><img id=\'recaptcha_reload\' width="25" height="18" alt="" /></a> <a id=\'recaptcha_switch_audio_btn\' class="recaptcha_only_if_image"><img id=\'recaptcha_switch_audio\' width="25" height="15" alt="" /></a><a id=\'recaptcha_switch_img_btn\' class="recaptcha_only_if_audio"><img id=\'recaptcha_switch_img\' width="25" height="15" alt=""/></a> <a id=\'recaptcha_whatsthis_btn\'><img id=\'recaptcha_whatsthis\' width="25" height="16" /></a> </td> <td style="padding: 18px 7px 18px 7px;"> <img id=\'recaptcha_logo\' alt="" width="71" height="36" /> </td> </tr> <tr> <td style="padding-left: 7px;"> <div class="recaptcha_input_area" style="padding-top: 2px; padding-bottom: 7px;"> <input style="border: 1px solid #3c3c3c; width: 302px;" name="recaptcha_response_field" id="recaptcha_response_field" type="text" /> </div> </td> <td colspan=2><span id="recaptcha_privacy" class="recaptcha_only_if_privacy"></span></td> </tr> </table> ';s.VertCss=".recaptchatable td img{display:block}.recaptchatable .recaptcha_r1_c1{background:url('IMGROOT/sprite.png') 0 -63px no-repeat;width:318px;height:9px}.recaptchatable .recaptcha_r2_c1{background:url('IMGROOT/sprite.png') -18px 0 no-repeat;width:9px;height:57px}.recaptchatable .recaptcha_r2_c2{background:url('IMGROOT/sprite.png') -27px 0 no-repeat;width:9px;height:57px}.recaptchatable .recaptcha_r3_c1{background:url('IMGROOT/sprite.png') 0 0 no-repeat;width:9px;height:63px}.recaptchatable .recaptcha_r3_c2{background:url('IMGROOT/sprite.png') -18px -57px no-repeat;width:300px;height:6px}.recaptchatable .recaptcha_r3_c3{background:url('IMGROOT/sprite.png') -9px 0 no-repeat;width:9px;height:63px}.recaptchatable .recaptcha_r4_c1{background:url('IMGROOT/sprite.png') -43px 0 no-repeat;width:171px;height:49px}.recaptchatable .recaptcha_r4_c2{background:url('IMGROOT/sprite.png') -36px 0 no-repeat;width:7px;height:57px}.recaptchatable .recaptcha_r4_c4{background:url('IMGROOT/sprite.png') -214px 0 no-repeat;width:97px;height:57px}.recaptchatable .recaptcha_r7_c1{background:url('IMGROOT/sprite.png') -43px -49px no-repeat;width:171px;height:8px}.recaptchatable .recaptcha_r8_c1{background:url('IMGROOT/sprite.png') -43px -49px no-repeat;width:25px;height:8px}.recaptchatable .recaptcha_image_cell center img{height:57px}.recaptchatable .recaptcha_image_cell center{height:57px}.recaptchatable .recaptcha_image_cell{background-color:white;height:57px}#recaptcha_area,#recaptcha_table{width:318px!important}.recaptchatable,#recaptcha_area tr,#recaptcha_area td,#recaptcha_area th{margin:0!important;border:0!important;padding:0!important;border-collapse:collapse!important;vertical-align:middle!important}.recaptchatable *{margin:0;padding:0;border:0;font-family:helvetica,sans-serif;font-size:8pt;color:black;position:static;top:auto;left:auto;right:auto;bottom:auto}.recaptchatable #recaptcha_image{position:relative;margin:auto}.recaptchatable #recaptcha_image #recaptcha_challenge_image{display:block}.recaptchatable #recaptcha_image #recaptcha_ad_image{display:block;position:absolute;top:0}.recaptchatable img{border:0!important;margin:0!important;padding:0!important}.recaptchatable a,.recaptchatable a:hover{cursor:pointer;outline:none;border:0!important;padding:0!important;text-decoration:none;color:blue;background:none!important;font-weight:normal}.recaptcha_input_area{position:relative!important;width:153px!important;height:45px!important;margin-left:7px!important;margin-right:7px!important;background:none!important}.recaptchatable label.recaptcha_input_area_text{margin:0!important;padding:0!important;position:static!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;background:none!important;height:auto!important;width:auto!important}.recaptcha_theme_red label.recaptcha_input_area_text,.recaptcha_theme_white label.recaptcha_input_area_text{color:black!important}.recaptcha_theme_blackglass label.recaptcha_input_area_text{color:white!important}.recaptchatable #recaptcha_response_field{width:153px!important;position:relative!important;bottom:7px!important;padding:0!important;margin:15px 0 0 0!important;font-size:10pt}.recaptcha_theme_blackglass #recaptcha_response_field,.recaptcha_theme_white #recaptcha_response_field{border:1px solid gray}.recaptcha_theme_red #recaptcha_response_field{border:1px solid #cca940}.recaptcha_audio_cant_hear_link{font-size:7pt;color:black}.recaptchatable{line-height:1!important}#recaptcha_instructions_error{color:red!important}.recaptcha_only_if_privacy{float:right;text-align:right}#recaptcha-ad-choices{position:absolute;height:15px;top:0;right:0}#recaptcha-ad-choices img{height:15px}.recaptcha-ad-choices-collapsed{width:15px;height:15px;display:block}.recaptcha-ad-choices-expanded{width:75px;height:15px;display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-collapsed{display:none}#recaptcha-ad-choices:hover .recaptcha-ad-choices-expanded{display:block}";var t={visual_challenge:"Get a visual challenge",audio_challenge:"Get an audio challenge",refresh_btn:"Get a new challenge",instructions_visual:"Type the text:",instructions_audio:"Type what you hear:",help_btn:"Help",play_again:"Play sound again",cant_hear_this:"Download sound as MP3",incorrect_try_again:"Incorrect. Try again.",image_alt_text:"reCAPTCHA challenge image",privacy_and_terms:"Privacy & Terms"},ka={visual_challenge:"\u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062a\u062d\u062f\u064d \u0645\u0631\u0626\u064a", -audio_challenge:"\u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062a\u062d\u062f\u064d \u0635\u0648\u062a\u064a",refresh_btn:"\u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062a\u062d\u062f\u064d \u062c\u062f\u064a\u062f",instructions_visual:"\u064a\u0631\u062c\u0649 \u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0646\u0635:",instructions_audio:"\u0627\u0643\u062a\u0628 \u0645\u0627 \u062a\u0633\u0645\u0639\u0647:",help_btn:"\u0645\u0633\u0627\u0639\u062f\u0629",play_again:"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0635\u0648\u062a \u0645\u0631\u0629 \u0623\u062e\u0631\u0649", -cant_hear_this:"\u062a\u0646\u0632\u064a\u0644 \u0627\u0644\u0635\u0648\u062a \u0628\u062a\u0646\u0633\u064a\u0642 MP3",incorrect_try_again:"\u063a\u064a\u0631 \u0635\u062d\u064a\u062d. \u0623\u0639\u062f \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629.",image_alt_text:"\u0635\u0648\u0631\u0629 \u0627\u0644\u062a\u062d\u062f\u064a \u0645\u0646 reCAPTCHA",privacy_and_terms:"\u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629 \u0648\u0627\u0644\u0628\u0646\u0648\u062f"},la={visual_challenge:"Obtener una pista visual", -audio_challenge:"Obtener una pista sonora",refresh_btn:"Obtener una pista nueva",instructions_visual:"Introduzca el texto:",instructions_audio:"Escribe lo que oigas:",help_btn:"Ayuda",play_again:"Volver a reproducir el sonido",cant_hear_this:"Descargar el sonido en MP3",incorrect_try_again:"Incorrecto. Vu\u00e9lvelo a intentar.",image_alt_text:"Pista de imagen reCAPTCHA",privacy_and_terms:"Privacidad y condiciones"},ma={visual_challenge:"Kumuha ng pagsubok na visual",audio_challenge:"Kumuha ng pagsubok na audio", -refresh_btn:"Kumuha ng bagong pagsubok",instructions_visual:"I-type ang teksto:",instructions_audio:"I-type ang iyong narinig",help_btn:"Tulong",play_again:"I-play muli ang tunog",cant_hear_this:"I-download ang tunog bilang MP3",incorrect_try_again:"Hindi wasto. Muling subukan.",image_alt_text:"larawang panghamon ng reCAPTCHA",privacy_and_terms:"Privacy at Mga Tuntunin"},na={visual_challenge:"Test visuel",audio_challenge:"Test audio",refresh_btn:"Nouveau test",instructions_visual:"Saisissez le texte\u00a0:", -instructions_audio:"Qu'entendez-vous ?",help_btn:"Aide",play_again:"R\u00e9\u00e9couter",cant_hear_this:"T\u00e9l\u00e9charger l'audio au format MP3",incorrect_try_again:"Incorrect. Veuillez r\u00e9essayer.",image_alt_text:"Image reCAPTCHA",privacy_and_terms:"Confidentialit\u00e9 et conditions d'utilisation"},oa={visual_challenge:"Dapatkan kata pengujian berbentuk visual",audio_challenge:"Dapatkan kata pengujian berbentuk audio",refresh_btn:"Dapatkan kata pengujian baru",instructions_visual:"Ketik teks:", -instructions_audio:"Ketik yang Anda dengar:",help_btn:"Bantuan",play_again:"Putar suara sekali lagi",cant_hear_this:"Unduh suara sebagai MP3",incorrect_try_again:"Salah. Coba lagi.",image_alt_text:"Gambar tantangan reCAPTCHA",privacy_and_terms:"Privasi & Persyaratan"},pa={visual_challenge:"\u05e7\u05d1\u05dc \u05d0\u05ea\u05d2\u05e8 \u05d7\u05d6\u05d5\u05ea\u05d9",audio_challenge:"\u05e7\u05d1\u05dc \u05d0\u05ea\u05d2\u05e8 \u05e9\u05de\u05e2",refresh_btn:"\u05e7\u05d1\u05dc \u05d0\u05ea\u05d2\u05e8 \u05d7\u05d3\u05e9", -instructions_visual:"\u05d4\u05e7\u05dc\u05d3 \u05d0\u05ea \u05d4\u05d8\u05e7\u05e1\u05d8:",instructions_audio:"\u05d4\u05e7\u05dc\u05d3 \u05d0\u05ea \u05de\u05d4 \u05e9\u05d0\u05ea\u05d4 \u05e9\u05d5\u05de\u05e2:",help_btn:"\u05e2\u05d6\u05e8\u05d4",play_again:"\u05d4\u05e4\u05e2\u05dc \u05e9\u05d5\u05d1 \u05d0\u05ea \u05d4\u05e9\u05de\u05e2",cant_hear_this:"\u05d4\u05d5\u05e8\u05d3 \u05e9\u05de\u05e2 \u05db-3MP",incorrect_try_again:"\u05e9\u05d2\u05d5\u05d9. \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1.", -image_alt_text:"\u05ea\u05de\u05d5\u05e0\u05ea \u05d0\u05ea\u05d2\u05e8 \u05e9\u05dc reCAPTCHA",privacy_and_terms:"\u05e4\u05e8\u05d8\u05d9\u05d5\u05ea \u05d5\u05ea\u05e0\u05d0\u05d9\u05dd"},qa={visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio de \u00e1udio",refresh_btn:"Obter um novo desafio",instructions_visual:"Digite o texto:",instructions_audio:"Digite o que voc\u00ea ouve:",help_btn:"Ajuda",play_again:"Reproduzir som novamente",cant_hear_this:"Fazer download do som no formato MP3", -incorrect_try_again:"Incorreto. Tente novamente.",image_alt_text:"Imagem de desafio reCAPTCHA",privacy_and_terms:"Privacidade e Termos"},ra={visual_challenge:"Ob\u0163ine\u0163i un cod captcha vizual",audio_challenge:"Ob\u0163ine\u0163i un cod captcha audio",refresh_btn:"Ob\u0163ine\u0163i un nou cod captcha",instructions_visual:"Introduce\u021bi textul:",instructions_audio:"Introduce\u0163i ceea ce auzi\u0163i:",help_btn:"Ajutor",play_again:"Reda\u0163i sunetul din nou",cant_hear_this:"Desc\u0103rca\u0163i fi\u015fierul audio ca MP3", -incorrect_try_again:"Incorect. \u00cencerca\u0163i din nou.",image_alt_text:"Imagine de verificare reCAPTCHA",privacy_and_terms:"Confiden\u0163ialitate \u015fi termeni"},sa={visual_challenge:"\u6536\u5230\u4e00\u4e2a\u89c6\u9891\u9080\u8bf7",audio_challenge:"\u6362\u4e00\u7ec4\u97f3\u9891\u9a8c\u8bc1\u7801",refresh_btn:"\u6362\u4e00\u7ec4\u9a8c\u8bc1\u7801",instructions_visual:"\u8f93\u5165\u6587\u5b57\uff1a",instructions_audio:"\u8bf7\u952e\u5165\u60a8\u542c\u5230\u7684\u5185\u5bb9\uff1a",help_btn:"\u5e2e\u52a9", -play_again:"\u91cd\u65b0\u64ad\u653e",cant_hear_this:"\u4ee5 MP3 \u683c\u5f0f\u4e0b\u8f7d\u58f0\u97f3",incorrect_try_again:"\u4e0d\u6b63\u786e\uff0c\u8bf7\u91cd\u8bd5\u3002",image_alt_text:"reCAPTCHA \u9a8c\u8bc1\u56fe\u7247",privacy_and_terms:"\u9690\u79c1\u6743\u548c\u4f7f\u7528\u6761\u6b3e"},ta={en:t,af:{visual_challenge:"Kry 'n visuele verifi\u00ebring",audio_challenge:"Kry 'n klankverifi\u00ebring",refresh_btn:"Kry 'n nuwe verifi\u00ebring",instructions_visual:"",instructions_audio:"Tik wat jy hoor:", -help_btn:"Hulp",play_again:"Speel geluid weer",cant_hear_this:"Laai die klank af as MP3",incorrect_try_again:"Verkeerd. Probeer weer.",image_alt_text:"reCAPTCHA-uitdagingprent",privacy_and_terms:"Privaatheid en bepalings"},am:{visual_challenge:"\u12e8\u12a5\u12ed\u1273 \u1270\u130b\u1323\u121a \u12a0\u130d\u129d",audio_challenge:"\u120c\u120b \u12a0\u12f2\u1235 \u12e8\u12f5\u121d\u133d \u1325\u12eb\u1244 \u12ed\u1245\u1228\u1265",refresh_btn:"\u120c\u120b \u12a0\u12f2\u1235 \u1325\u12eb\u1244 \u12ed\u1245\u1228\u1265", -instructions_visual:"",instructions_audio:"\u12e8\u121d\u1275\u1230\u121b\u12cd\u1295 \u1270\u12ed\u1265\u1361-",help_btn:"\u12a5\u1308\u12db",play_again:"\u12f5\u121d\u1339\u1295 \u12a5\u1295\u12f0\u1308\u1293 \u12a0\u132b\u12cd\u1275",cant_hear_this:"\u12f5\u121d\u1339\u1295 \u1260MP3 \u1245\u122d\u133d \u12a0\u12cd\u122d\u12f5",incorrect_try_again:"\u1275\u12ad\u12ad\u120d \u12a0\u12ed\u12f0\u1208\u121d\u1362 \u12a5\u1295\u12f0\u1308\u1293 \u121e\u12ad\u122d\u1362",image_alt_text:"reCAPTCHA \u121d\u1235\u120d \u130d\u1320\u121d", -privacy_and_terms:"\u130d\u120b\u12ca\u1290\u1275 \u12a5\u1293 \u12cd\u120d"},ar:ka,"ar-EG":ka,bg:{visual_challenge:"\u041f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430",audio_challenge:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435 \u043d\u0430 \u0430\u0443\u0434\u0438\u043e\u0442\u0435\u0441\u0442",refresh_btn:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435 \u043d\u0430 \u043d\u043e\u0432 \u0442\u0435\u0441\u0442", -instructions_visual:"\u0412\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u0430:",instructions_audio:"\u0412\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0447\u0443\u0442\u043e\u0442\u043e:",help_btn:"\u041f\u043e\u043c\u043e\u0449",play_again:"\u041f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u0443\u0441\u043a\u0430\u043d\u0435 \u043d\u0430 \u0437\u0432\u0443\u043a\u0430",cant_hear_this:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435 \u043d\u0430 \u0437\u0432\u0443\u043a\u0430 \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0430\u0442 MP3", -incorrect_try_again:"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e. \u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e.",image_alt_text:"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u0442\u0430 \u0441 reCAPTCHA",privacy_and_terms:"\u041f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442 \u0438 \u041e\u0431\u0449\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f"}, -bn:{visual_challenge:"\u098f\u0995\u099f\u09bf \u09a6\u09c3\u09b6\u09cd\u09af\u09ae\u09be\u09a8 \u09aa\u09cd\u09b0\u09a4\u09bf\u09a6\u09cd\u09ac\u09a8\u09cd\u09a6\u09cd\u09ac\u09bf\u09a4\u09be \u09aa\u09be\u09a8",audio_challenge:"\u098f\u0995\u099f\u09bf \u0985\u09a1\u09bf\u0993 \u09aa\u09cd\u09b0\u09a4\u09bf\u09a6\u09cd\u09ac\u09a8\u09cd\u09a6\u09cd\u09ac\u09bf\u09a4\u09be \u09aa\u09be\u09a8",refresh_btn:"\u098f\u0995\u099f\u09bf \u09a8\u09a4\u09c1\u09a8 \u09aa\u09cd\u09b0\u09a4\u09bf\u09a6\u09cd\u09ac\u09a8\u09cd\u09a6\u09cd\u09ac\u09bf\u09a4\u09be \u09aa\u09be\u09a8", -instructions_visual:"",instructions_audio:"\u0986\u09aa\u09a8\u09bf \u09af\u09be \u09b6\u09c1\u09a8\u099b\u09c7\u09a8 \u09a4\u09be \u09b2\u09bf\u0996\u09c1\u09a8:",help_btn:"\u09b8\u09b9\u09be\u09df\u09a4\u09be",play_again:"\u0986\u09ac\u09be\u09b0 \u09b8\u09be\u0989\u09a8\u09cd\u09a1 \u09aa\u09cd\u09b2\u09c7 \u0995\u09b0\u09c1\u09a8",cant_hear_this:"MP3 \u09b0\u09c2\u09aa\u09c7 \u09b6\u09ac\u09cd\u09a6 \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u0995\u09b0\u09c1\u09a8",incorrect_try_again:"\u09ac\u09c7\u09a0\u09bf\u0995\u09f7 \u0986\u09ac\u09be\u09b0 \u099a\u09c7\u09b7\u09cd\u099f\u09be \u0995\u09b0\u09c1\u09a8\u09f7", -image_alt_text:"reCAPTCHA \u099a\u09cd\u09af\u09be\u09b2\u09c7\u099e\u09cd\u099c \u099a\u09bf\u09a4\u09cd\u09b0",privacy_and_terms:"\u0997\u09cb\u09aa\u09a8\u09c0\u09af\u09bc\u09a4\u09be \u0993 \u09b6\u09b0\u09cd\u09a4\u09be\u09ac\u09b2\u09c0"},ca:{visual_challenge:"Obt\u00e9n un repte visual",audio_challenge:"Obteniu una pista sonora",refresh_btn:"Obteniu una pista nova",instructions_visual:"Escriviu el text:",instructions_audio:"Escriviu el que escolteu:",help_btn:"Ajuda",play_again:"Torna a reproduir el so", -cant_hear_this:"Baixa el so com a MP3",incorrect_try_again:"No \u00e9s correcte. Torna-ho a provar.",image_alt_text:"Imatge del repte de reCAPTCHA",privacy_and_terms:"Privadesa i condicions"},cs:{visual_challenge:"Zobrazit vizu\u00e1ln\u00ed podobu v\u00fdrazu",audio_challenge:"P\u0159ehr\u00e1t zvukovou podobu v\u00fdrazu",refresh_btn:"Zobrazit nov\u00fd v\u00fdraz",instructions_visual:"Zadejte text:",instructions_audio:"Napi\u0161te, co jste sly\u0161eli:",help_btn:"N\u00e1pov\u011bda",play_again:"Znovu p\u0159ehr\u00e1t zvuk", -cant_hear_this:"St\u00e1hnout zvuk ve form\u00e1tu MP3",incorrect_try_again:"\u0160patn\u011b. Zkuste to znovu.",image_alt_text:"Obr\u00e1zek reCAPTCHA",privacy_and_terms:"Ochrana soukrom\u00ed a smluvn\u00ed podm\u00ednky"},da:{visual_challenge:"Hent en visuel udfordring",audio_challenge:"Hent en lydudfordring",refresh_btn:"Hent en ny udfordring",instructions_visual:"Indtast teksten:",instructions_audio:"Indtast det, du h\u00f8rer:",help_btn:"Hj\u00e6lp",play_again:"Afspil lyden igen",cant_hear_this:"Download lyd som MP3", -incorrect_try_again:"Forkert. Pr\u00f8v igen.",image_alt_text:"reCAPTCHA-udfordringsbillede",privacy_and_terms:"Privatliv og vilk\u00e5r"},de:{visual_challenge:"Captcha abrufen",audio_challenge:"Audio-Captcha abrufen",refresh_btn:"Neues Captcha abrufen",instructions_visual:"Geben Sie den angezeigten Text ein:",instructions_audio:"Geben Sie das Geh\u00f6rte ein:",help_btn:"Hilfe",play_again:"Wort erneut abspielen",cant_hear_this:"Wort als MP3 herunterladen",incorrect_try_again:"Falsch. Bitte versuchen Sie es erneut.", -image_alt_text:"reCAPTCHA-Bild",privacy_and_terms:"Datenschutzerkl\u00e4rung & Nutzungsbedingungen"},el:{visual_challenge:"\u039f\u03c0\u03c4\u03b9\u03ba\u03ae \u03c0\u03c1\u03cc\u03ba\u03bb\u03b7\u03c3\u03b7",audio_challenge:"\u0397\u03c7\u03b7\u03c4\u03b9\u03ba\u03ae \u03c0\u03c1\u03cc\u03ba\u03bb\u03b7\u03c3\u03b7",refresh_btn:"\u039d\u03ad\u03b1 \u03c0\u03c1\u03cc\u03ba\u03bb\u03b7\u03c3\u03b7",instructions_visual:"\u03a0\u03bb\u03b7\u03ba\u03c4\u03c1\u03bf\u03bb\u03bf\u03b3\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf \u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf:", -instructions_audio:"\u03a0\u03bb\u03b7\u03ba\u03c4\u03c1\u03bf\u03bb\u03bf\u03b3\u03ae\u03c3\u03c4\u03b5 \u03cc\u03c4\u03b9 \u03b1\u03ba\u03bf\u03cd\u03c4\u03b5:",help_btn:"\u0392\u03bf\u03ae\u03b8\u03b5\u03b9\u03b1",play_again:"\u0391\u03bd\u03b1\u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03ae \u03ae\u03c7\u03bf\u03c5 \u03be\u03b1\u03bd\u03ac",cant_hear_this:"\u039b\u03ae\u03c8\u03b7 \u03ae\u03c7\u03bf\u03c5 \u03c9\u03c2 \u039c\u03a13",incorrect_try_again:"\u039b\u03ac\u03b8\u03bf\u03c2. \u0394\u03bf\u03ba\u03b9\u03bc\u03ac\u03c3\u03c4\u03b5 \u03be\u03b1\u03bd\u03ac.", -image_alt_text:"\u0395\u03b9\u03ba\u03cc\u03bd\u03b1 \u03c0\u03c1\u03cc\u03ba\u03bb\u03b7\u03c3\u03b7\u03c2 reCAPTCHA",privacy_and_terms:"\u0391\u03c0\u03cc\u03c1\u03c1\u03b7\u03c4\u03bf \u03ba\u03b1\u03b9 \u03cc\u03c1\u03bf\u03b9"},"en-GB":t,"en-US":t,es:la,"es-419":{visual_challenge:"Enfrentar un desaf\u00edo visual",audio_challenge:"Enfrentar un desaf\u00edo de audio",refresh_btn:"Enfrentar un nuevo desaf\u00edo",instructions_visual:"Escriba el texto:",instructions_audio:"Escribe lo que escuchas:", -help_btn:"Ayuda",play_again:"Reproducir sonido de nuevo",cant_hear_this:"Descargar sonido en formato MP3",incorrect_try_again:"Incorrecto. Vuelve a intentarlo.",image_alt_text:"Imagen del desaf\u00edo de la reCAPTCHA",privacy_and_terms:"Privacidad y condiciones"},"es-ES":la,et:{visual_challenge:"Kuva kuvap\u00f5hine robotil\u00f5ks",audio_challenge:"Kuva helip\u00f5hine robotil\u00f5ks",refresh_btn:"Kuva uus robotil\u00f5ks",instructions_visual:"Tippige tekst:",instructions_audio:"Tippige, mida kuulete.", -help_btn:"Abi",play_again:"Esita heli uuesti",cant_hear_this:"Laadi heli alla MP3-vormingus",incorrect_try_again:"Vale. Proovige uuesti.",image_alt_text:"reCAPTCHA robotil\u00f5ksu kujutis",privacy_and_terms:"Privaatsus ja tingimused"},eu:{visual_challenge:"Eskuratu ikusizko erronka",audio_challenge:"Eskuratu audio-erronka",refresh_btn:"Eskuratu erronka berria",instructions_visual:"",instructions_audio:"Idatzi entzuten duzuna:",help_btn:"Laguntza",play_again:"Erreproduzitu soinua berriro",cant_hear_this:"Deskargatu soinua MP3 gisa", -incorrect_try_again:"Ez da zuzena. Saiatu berriro.",image_alt_text:"reCAPTCHA erronkaren irudia",privacy_and_terms:"Pribatutasuna eta baldintzak"},fa:{visual_challenge:"\u062f\u0631\u06cc\u0627\u0641\u062a \u06cc\u06a9 \u0645\u0639\u0645\u0627\u06cc \u062f\u06cc\u062f\u0627\u0631\u06cc",audio_challenge:"\u062f\u0631\u06cc\u0627\u0641\u062a \u06cc\u06a9 \u0645\u0639\u0645\u0627\u06cc \u0635\u0648\u062a\u06cc",refresh_btn:"\u062f\u0631\u06cc\u0627\u0641\u062a \u06cc\u06a9 \u0645\u0639\u0645\u0627\u06cc \u062c\u062f\u06cc\u062f", -instructions_visual:"",instructions_audio:"\u0622\u0646\u0686\u0647 \u0631\u0627 \u06a9\u0647 \u0645\u06cc\u200c\u0634\u0646\u0648\u06cc\u062f \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f:",help_btn:"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc",play_again:"\u067e\u062e\u0634 \u0645\u062c\u062f\u062f \u0635\u062f\u0627",cant_hear_this:"\u062f\u0627\u0646\u0644\u0648\u062f \u0635\u062f\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a MP3",incorrect_try_again:"\u0646\u0627\u062f\u0631\u0633\u062a. \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0646\u06cc\u062f.", -image_alt_text:"\u062a\u0635\u0648\u06cc\u0631 \u0686\u0627\u0644\u0634\u06cc reCAPTCHA",privacy_and_terms:"\u062d\u0631\u06cc\u0645 \u062e\u0635\u0648\u0635\u06cc \u0648 \u0634\u0631\u0627\u06cc\u0637"},fi:{visual_challenge:"Kuvavahvistus",audio_challenge:"\u00c4\u00e4nivahvistus",refresh_btn:"Uusi kuva",instructions_visual:"Kirjoita teksti:",instructions_audio:"Kirjoita kuulemasi:",help_btn:"Ohje",play_again:"Toista \u00e4\u00e4ni uudelleen",cant_hear_this:"Lataa \u00e4\u00e4ni MP3-tiedostona", -incorrect_try_again:"V\u00e4\u00e4rin. Yrit\u00e4 uudelleen.",image_alt_text:"reCAPTCHA-kuva",privacy_and_terms:"Tietosuoja ja k\u00e4ytt\u00f6ehdot"},fil:ma,fr:na,"fr-CA":{visual_challenge:"Obtenir un test visuel",audio_challenge:"Obtenir un test audio",refresh_btn:"Obtenir un nouveau test",instructions_visual:"Saisissez le texte\u00a0:",instructions_audio:"Tapez ce que vous entendez\u00a0:",help_btn:"Aide",play_again:"Jouer le son de nouveau",cant_hear_this:"T\u00e9l\u00e9charger le son en format MP3", -incorrect_try_again:"Erreur, essayez \u00e0 nouveau",image_alt_text:"Image reCAPTCHA",privacy_and_terms:"Confidentialit\u00e9 et conditions d'utilisation"},"fr-FR":na,gl:{visual_challenge:"Obter unha proba visual",audio_challenge:"Obter unha proba de audio",refresh_btn:"Obter unha proba nova",instructions_visual:"",instructions_audio:"Escribe o que escoitas:",help_btn:"Axuda",play_again:"Reproducir o son de novo",cant_hear_this:"Descargar son como MP3",incorrect_try_again:"Incorrecto. T\u00e9ntao de novo.", -image_alt_text:"Imaxe de proba de reCAPTCHA",privacy_and_terms:"Privacidade e condici\u00f3ns"},gu:{visual_challenge:"\u0a8f\u0a95 \u0aa6\u0ac3\u0ab6\u0acd\u0aaf\u0abe\u0aa4\u0acd\u0aae\u0a95 \u0aaa\u0aa1\u0a95\u0abe\u0ab0 \u0aae\u0ac7\u0ab3\u0ab5\u0acb",audio_challenge:"\u0a8f\u0a95 \u0a91\u0aa1\u0abf\u0a93 \u0aaa\u0aa1\u0a95\u0abe\u0ab0 \u0aae\u0ac7\u0ab3\u0ab5\u0acb",refresh_btn:"\u0a8f\u0a95 \u0aa8\u0ab5\u0acb \u0aaa\u0aa1\u0a95\u0abe\u0ab0 \u0aae\u0ac7\u0ab3\u0ab5\u0acb",instructions_visual:"", -instructions_audio:"\u0aa4\u0aae\u0ac7 \u0a9c\u0ac7 \u0ab8\u0abe\u0a82\u0aad\u0ab3\u0acb \u0a9b\u0acb \u0aa4\u0ac7 \u0ab2\u0a96\u0acb:",help_btn:"\u0ab8\u0ab9\u0abe\u0aaf",play_again:"\u0aa7\u0acd\u0ab5\u0aa8\u0abf \u0aab\u0ab0\u0ac0\u0aa5\u0ac0 \u0a9a\u0ab2\u0abe\u0ab5\u0acb",cant_hear_this:"MP3 \u0aa4\u0ab0\u0ac0\u0a95\u0ac7 \u0aa7\u0acd\u0ab5\u0aa8\u0abf\u0aa8\u0ac7 \u0aa1\u0abe\u0a89\u0aa8\u0ab2\u0acb\u0aa1 \u0a95\u0ab0\u0acb",incorrect_try_again:"\u0a96\u0acb\u0a9f\u0ac1\u0a82. \u0aab\u0ab0\u0ac0 \u0aaa\u0acd\u0ab0\u0aaf\u0abe\u0ab8 \u0a95\u0ab0\u0acb.", -image_alt_text:"reCAPTCHA \u0aaa\u0aa1\u0a95\u0abe\u0ab0 \u0a9b\u0aac\u0ac0",privacy_and_terms:"\u0a97\u0acb\u0aaa\u0aa8\u0ac0\u0aaf\u0aa4\u0abe \u0a85\u0aa8\u0ac7 \u0ab6\u0ab0\u0aa4\u0acb"},hi:{visual_challenge:"\u0915\u094b\u0908 \u0935\u093f\u091c\u0941\u0905\u0932 \u091a\u0941\u0928\u094c\u0924\u0940 \u0932\u0947\u0902",audio_challenge:"\u0915\u094b\u0908 \u0911\u0921\u093f\u092f\u094b \u091a\u0941\u0928\u094c\u0924\u0940 \u0932\u0947\u0902",refresh_btn:"\u0915\u094b\u0908 \u0928\u0908 \u091a\u0941\u0928\u094c\u0924\u0940 \u0932\u0947\u0902", -instructions_visual:"\u091f\u0947\u0915\u094d\u0938\u094d\u091f \u091f\u093e\u0907\u092a \u0915\u0930\u0947\u0902:",instructions_audio:"\u091c\u094b \u0906\u092a \u0938\u0941\u0928 \u0930\u0939\u0947 \u0939\u0948\u0902 \u0909\u0938\u0947 \u0932\u093f\u0916\u0947\u0902:",help_btn:"\u0938\u0939\u093e\u092f\u0924\u093e",play_again:"\u0927\u094d\u200d\u0935\u0928\u093f \u092a\u0941\u0928: \u091a\u0932\u093e\u090f\u0902",cant_hear_this:"\u0927\u094d\u200d\u0935\u0928\u093f \u0915\u094b MP3 \u0915\u0947 \u0930\u0942\u092a \u092e\u0947\u0902 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902", -incorrect_try_again:"\u0917\u0932\u0924. \u092a\u0941\u0928: \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902.",image_alt_text:"reCAPTCHA \u091a\u0941\u0928\u094c\u0924\u0940 \u091a\u093f\u0924\u094d\u0930",privacy_and_terms:"\u0917\u094b\u092a\u0928\u0940\u092f\u0924\u093e \u0914\u0930 \u0936\u0930\u094d\u0924\u0947\u0902"},hr:{visual_challenge:"Dohvati vizualni upit",audio_challenge:"Dohvati zvu\u010dni upit",refresh_btn:"Dohvati novi upit",instructions_visual:"Unesite tekst:",instructions_audio:"Upi\u0161ite \u0161to \u010dujete:", -help_btn:"Pomo\u0107",play_again:"Ponovi zvuk",cant_hear_this:"Preuzmi zvuk u MP3 formatu",incorrect_try_again:"Nije to\u010dno. Poku\u0161ajte ponovno.",image_alt_text:"Slikovni izazov reCAPTCHA",privacy_and_terms:"Privatnost i odredbe"},hu:{visual_challenge:"Vizu\u00e1lis kih\u00edv\u00e1s k\u00e9r\u00e9se",audio_challenge:"Hangkih\u00edv\u00e1s k\u00e9r\u00e9se",refresh_btn:"\u00daj kih\u00edv\u00e1s k\u00e9r\u00e9se",instructions_visual:"\u00cdrja be a sz\u00f6veget:",instructions_audio:"\u00cdrja le, amit hall:", -help_btn:"S\u00fag\u00f3",play_again:"Hang ism\u00e9telt lej\u00e1tsz\u00e1sa",cant_hear_this:"Hang let\u00f6lt\u00e9se MP3 form\u00e1tumban",incorrect_try_again:"Hib\u00e1s. Pr\u00f3b\u00e1lkozzon \u00fajra.",image_alt_text:"reCAPTCHA ellen\u0151rz\u0151 k\u00e9p",privacy_and_terms:"Adatv\u00e9delem \u00e9s Szerz\u0151d\u00e9si Felt\u00e9telek"},hy:{visual_challenge:"\u054d\u057f\u0561\u0576\u0561\u056c \u057f\u0565\u057d\u0578\u0572\u0561\u056f\u0561\u0576 \u056d\u0576\u0564\u056b\u0580",audio_challenge:"\u054d\u057f\u0561\u0576\u0561\u056c \u0571\u0561\u0575\u0576\u0561\u0575\u056b\u0576 \u056d\u0576\u0564\u056b\u0580", -refresh_btn:"\u054d\u057f\u0561\u0576\u0561\u056c \u0576\u0578\u0580 \u056d\u0576\u0564\u056b\u0580",instructions_visual:"\u0544\u0578\u0582\u057f\u0584\u0561\u0563\u0580\u0565\u0584 \u057f\u0565\u0584\u057d\u057f\u0568\u055d",instructions_audio:"\u0544\u0578\u0582\u057f\u0584\u0561\u0563\u0580\u0565\u0584 \u0561\u0575\u0576, \u056b\u0576\u0579 \u056c\u057d\u0578\u0582\u0574 \u0565\u0584\u055d",help_btn:"\u0555\u0563\u0576\u0578\u0582\u0569\u0575\u0578\u0582\u0576",play_again:"\u0546\u057e\u0561\u0563\u0561\u0580\u056f\u0565\u056c \u0571\u0561\u0575\u0576\u0568 \u056f\u0580\u056f\u056b\u0576", -cant_hear_this:"\u0532\u0565\u057c\u0576\u0565\u056c \u0571\u0561\u0575\u0576\u0568 \u0578\u0580\u057a\u0565\u057d MP3",incorrect_try_again:"\u054d\u056d\u0561\u056c \u0567: \u0553\u0578\u0580\u0571\u0565\u0584 \u056f\u0580\u056f\u056b\u0576:",image_alt_text:"reCAPTCHA \u057a\u0561\u057f\u056f\u0565\u0580\u0578\u057e \u056d\u0576\u0564\u056b\u0580",privacy_and_terms:"\u0533\u0561\u0572\u057f\u0576\u056b\u0578\u0582\u0569\u0575\u0561\u0576 & \u057a\u0561\u0575\u0574\u0561\u0576\u0576\u0565\u0580"}, -id:oa,is:{visual_challenge:"F\u00e1 a\u00f0gangspr\u00f3f sem mynd",audio_challenge:"F\u00e1 a\u00f0gangspr\u00f3f sem hlj\u00f3\u00f0skr\u00e1",refresh_btn:"F\u00e1 n\u00fdtt a\u00f0gangspr\u00f3f",instructions_visual:"",instructions_audio:"Sl\u00e1\u00f0u inn \u00fea\u00f0 sem \u00fe\u00fa heyrir:",help_btn:"Hj\u00e1lp",play_again:"Spila hlj\u00f3\u00f0 aftur",cant_hear_this:"S\u00e6kja hlj\u00f3\u00f0 sem MP3",incorrect_try_again:"Rangt. Reyndu aftur.",image_alt_text:"mynd reCAPTCHA a\u00f0gangspr\u00f3fs", -privacy_and_terms:"Pers\u00f3nuvernd og skilm\u00e1lar"},it:{visual_challenge:"Verifica visiva",audio_challenge:"Verifica audio",refresh_btn:"Nuova verifica",instructions_visual:"Digita il testo:",instructions_audio:"Digita ci\u00f2 che senti:",help_btn:"Guida",play_again:"Riproduci di nuovo audio",cant_hear_this:"Scarica audio in MP3",incorrect_try_again:"Sbagliato. Riprova.",image_alt_text:"Immagine di verifica reCAPTCHA",privacy_and_terms:"Privacy e Termini"},iw:pa,ja:{visual_challenge:"\u753b\u50cf\u3067\u78ba\u8a8d\u3057\u307e\u3059", -audio_challenge:"\u97f3\u58f0\u3067\u78ba\u8a8d\u3057\u307e\u3059",refresh_btn:"\u5225\u306e\u5358\u8a9e\u3067\u3084\u308a\u76f4\u3057\u307e\u3059",instructions_visual:"\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u529b:",instructions_audio:"\u805e\u3053\u3048\u305f\u5358\u8a9e\u3092\u5165\u529b\u3057\u307e\u3059:",help_btn:"\u30d8\u30eb\u30d7",play_again:"\u3082\u3046\u4e00\u5ea6\u805e\u304f",cant_hear_this:"MP3 \u3067\u97f3\u58f0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",incorrect_try_again:"\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3082\u3046\u4e00\u5ea6\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002", -image_alt_text:"reCAPTCHA \u78ba\u8a8d\u7528\u753b\u50cf",privacy_and_terms:"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u3068\u5229\u7528\u898f\u7d04"},kn:{visual_challenge:"\u0ca6\u0cc3\u0cb6\u0ccd\u0caf \u0cb8\u0cb5\u0cbe\u0cb2\u0cca\u0c82\u0ca6\u0ca8\u0ccd\u0ca8\u0cc1 \u0cb8\u0ccd\u0cb5\u0cc0\u0c95\u0cb0\u0cbf\u0cb8\u0cbf",audio_challenge:"\u0c86\u0ca1\u0cbf\u0caf\u0ccb \u0cb8\u0cb5\u0cbe\u0cb2\u0cca\u0c82\u0ca6\u0ca8\u0ccd\u0ca8\u0cc1 \u0cb8\u0ccd\u0cb5\u0cc0\u0c95\u0cb0\u0cbf\u0cb8\u0cbf",refresh_btn:"\u0cb9\u0cca\u0cb8 \u0cb8\u0cb5\u0cbe\u0cb2\u0cca\u0c82\u0ca6\u0ca8\u0ccd\u0ca8\u0cc1 \u0caa\u0ca1\u0cc6\u0caf\u0cbf\u0cb0\u0cbf", -instructions_visual:"",instructions_audio:"\u0ca8\u0cbf\u0cae\u0c97\u0cc6 \u0c95\u0cc7\u0cb3\u0cbf\u0cb8\u0cc1\u0cb5\u0cc1\u0ca6\u0ca8\u0ccd\u0ca8\u0cc1 \u0c9f\u0cc8\u0caa\u0ccd\u200c \u0cae\u0cbe\u0ca1\u0cbf:",help_btn:"\u0cb8\u0cb9\u0cbe\u0caf",play_again:"\u0ca7\u0ccd\u0cb5\u0ca8\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 \u0cae\u0ca4\u0ccd\u0ca4\u0cc6 \u0caa\u0ccd\u0cb2\u0cc7 \u0cae\u0cbe\u0ca1\u0cbf",cant_hear_this:"\u0ca7\u0ccd\u0cb5\u0ca8\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 MP3 \u0cb0\u0cc2\u0caa\u0ca6\u0cb2\u0ccd\u0cb2\u0cbf \u0ca1\u0ccc\u0ca8\u0ccd\u200c\u0cb2\u0ccb\u0ca1\u0ccd \u0cae\u0cbe\u0ca1\u0cbf", -incorrect_try_again:"\u0ca4\u0caa\u0ccd\u0caa\u0cbe\u0c97\u0cbf\u0ca6\u0cc6. \u0cae\u0ca4\u0ccd\u0ca4\u0cca\u0cae\u0ccd\u0cae\u0cc6 \u0caa\u0ccd\u0cb0\u0caf\u0ca4\u0ccd\u0ca8\u0cbf\u0cb8\u0cbf.",image_alt_text:"reCAPTCHA \u0cb8\u0cb5\u0cbe\u0cb2\u0cc1 \u0c9a\u0cbf\u0ca4\u0ccd\u0cb0",privacy_and_terms:"\u0c97\u0ccc\u0caa\u0ccd\u0caf\u0ca4\u0cc6 \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 \u0ca8\u0cbf\u0caf\u0cae\u0c97\u0cb3\u0cc1"},ko:{visual_challenge:"\uadf8\ub9bc\uc73c\ub85c \ubcf4\uc548\ubb38\uc790 \ubc1b\uae30", -audio_challenge:"\uc74c\uc131\uc73c\ub85c \ubcf4\uc548\ubb38\uc790 \ubc1b\uae30",refresh_btn:"\ubcf4\uc548\ubb38\uc790 \uc0c8\ub85c \ubc1b\uae30",instructions_visual:"\ud14d\uc2a4\ud2b8 \uc785\ub825:",instructions_audio:"\uc74c\uc131 \ubcf4\uc548\ubb38\uc790 \uc785\ub825:",help_btn:"\ub3c4\uc6c0\ub9d0",play_again:"\uc74c\uc131 \ub2e4\uc2dc \ub4e3\uae30",cant_hear_this:"\uc74c\uc131\uc744 MP3\ub85c \ub2e4\uc6b4\ub85c\ub4dc",incorrect_try_again:"\ud2c0\ub838\uc2b5\ub2c8\ub2e4. \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.", -image_alt_text:"reCAPTCHA \ubcf4\uc548\ubb38\uc790 \uc774\ubbf8\uc9c0",privacy_and_terms:"\uac1c\uc778\uc815\ubcf4 \ubcf4\ud638 \ubc0f \uc57d\uad00"},ln:na,lt:{visual_challenge:"Gauti vaizdin\u012f atpa\u017einimo test\u0105",audio_challenge:"Gauti garso atpa\u017einimo test\u0105",refresh_btn:"Gauti nauj\u0105 atpa\u017einimo test\u0105",instructions_visual:"\u012eveskite tekst\u0105:",instructions_audio:"\u012eveskite tai, k\u0105 girdite:",help_btn:"Pagalba",play_again:"Dar kart\u0105 paleisti gars\u0105", -cant_hear_this:"Atsisi\u0173sti gars\u0105 kaip MP3",incorrect_try_again:"Neteisingai. Bandykite dar kart\u0105.",image_alt_text:"Testo \u201ereCAPTCHA\u201c vaizdas",privacy_and_terms:"Privatumas ir s\u0105lygos"},lv:{visual_challenge:"Sa\u0146emt vizu\u0101lu izaicin\u0101jumu",audio_challenge:"Sa\u0146emt audio izaicin\u0101jumu",refresh_btn:"Sa\u0146emt jaunu izaicin\u0101jumu",instructions_visual:"Ievadiet tekstu:",instructions_audio:"Ierakstiet dzirdamo:",help_btn:"Pal\u012bdz\u012bba",play_again:"V\u0113lreiz atska\u0146ot ska\u0146u", -cant_hear_this:"Lejupiel\u0101d\u0113t ska\u0146u MP3\u00a0form\u0101t\u0101",incorrect_try_again:"Nepareizi. M\u0113\u0123iniet v\u0113lreiz.",image_alt_text:"reCAPTCHA izaicin\u0101juma att\u0113ls",privacy_and_terms:"Konfidencialit\u0101te un noteikumi"},ml:{visual_challenge:"\u0d12\u0d30\u0d41 \u0d26\u0d43\u0d36\u0d4d\u0d2f \u0d1a\u0d32\u0d1e\u0d4d\u0d1a\u0d4d \u0d28\u0d47\u0d1f\u0d41\u0d15",audio_challenge:"\u0d12\u0d30\u0d41 \u0d13\u0d21\u0d3f\u0d2f\u0d4b \u0d1a\u0d32\u0d1e\u0d4d\u0d1a\u0d4d \u0d28\u0d47\u0d1f\u0d41\u0d15", -refresh_btn:"\u0d12\u0d30\u0d41 \u0d2a\u0d41\u0d24\u0d3f\u0d2f \u0d1a\u0d32\u0d1e\u0d4d\u0d1a\u0d4d \u0d28\u0d47\u0d1f\u0d41\u0d15",instructions_visual:"",instructions_audio:"\u0d15\u0d47\u0d7e\u0d15\u0d4d\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d24\u0d4d \u0d1f\u0d48\u0d2a\u0d4d\u0d2a\u0d4d \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d42:",help_btn:"\u0d38\u0d39\u0d3e\u0d2f\u0d02",play_again:"\u0d36\u0d2c\u0d4d\u200c\u0d26\u0d02 \u0d35\u0d40\u0d23\u0d4d\u0d1f\u0d41\u0d02 \u0d2a\u0d4d\u0d32\u0d47 \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d15", -cant_hear_this:"\u0d36\u0d2c\u0d4d\u200c\u0d26\u0d02 MP3 \u0d06\u0d2f\u0d3f \u0d21\u0d57\u0d7a\u0d32\u0d4b\u0d21\u0d4d \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d15",incorrect_try_again:"\u0d24\u0d46\u0d31\u0d4d\u0d31\u0d3e\u0d23\u0d4d. \u0d35\u0d40\u0d23\u0d4d\u0d1f\u0d41\u0d02 \u0d36\u0d4d\u0d30\u0d2e\u0d3f\u0d15\u0d4d\u0d15\u0d41\u0d15.",image_alt_text:"reCAPTCHA \u0d1a\u0d32\u0d1e\u0d4d\u0d1a\u0d4d \u0d07\u0d2e\u0d47\u0d1c\u0d4d",privacy_and_terms:"\u0d38\u0d4d\u0d35\u0d15\u0d3e\u0d30\u0d4d\u0d2f\u0d24\u0d2f\u0d41\u0d02 \u0d28\u0d3f\u0d2c\u0d28\u0d4d\u0d27\u0d28\u0d15\u0d33\u0d41\u0d02"}, -mr:{visual_challenge:"\u0926\u0943\u0936\u094d\u200d\u092f\u092e\u093e\u0928 \u0906\u0935\u094d\u0939\u093e\u0928 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u093e",audio_challenge:"\u0911\u0921\u0940\u0913 \u0906\u0935\u094d\u0939\u093e\u0928 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u093e",refresh_btn:"\u090f\u0915 \u0928\u0935\u0940\u0928 \u0906\u0935\u094d\u0939\u093e\u0928 \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u093e",instructions_visual:"",instructions_audio:"\u0906\u092a\u0932\u094d\u092f\u093e\u0932\u093e \u091c\u0947 \u0910\u0915\u0942 \u092f\u0947\u0908\u0932 \u0924\u0947 \u091f\u093e\u0907\u092a \u0915\u0930\u093e:", -help_btn:"\u092e\u0926\u0924",play_again:"\u0927\u094d\u200d\u0935\u0928\u0940 \u092a\u0941\u0928\u094d\u0939\u093e \u092a\u094d\u200d\u0932\u0947 \u0915\u0930\u093e",cant_hear_this:"MP3 \u0930\u0941\u092a\u093e\u0924 \u0927\u094d\u200d\u0935\u0928\u0940 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u093e",incorrect_try_again:"\u0905\u092f\u094b\u0917\u094d\u200d\u092f. \u092a\u0941\u0928\u094d\u200d\u0939\u093e \u092a\u094d\u0930\u092f\u0924\u094d\u200d\u0928 \u0915\u0930\u093e.",image_alt_text:"reCAPTCHA \u0906\u0935\u094d\u200d\u0939\u093e\u0928 \u092a\u094d\u0930\u0924\u093f\u092e\u093e", -privacy_and_terms:"\u0917\u094b\u092a\u0928\u0940\u092f\u0924\u093e \u0906\u0923\u093f \u0905\u091f\u0940"},ms:{visual_challenge:"Dapatkan cabaran visual",audio_challenge:"Dapatkan cabaran audio",refresh_btn:"Dapatkan cabaran baru",instructions_visual:"Taipkan teksnya:",instructions_audio:"Taip apa yang didengari:",help_btn:"Bantuan",play_again:"Mainkan bunyi sekali lagi",cant_hear_this:"Muat turun bunyi sebagai MP3",incorrect_try_again:"Tidak betul. Cuba lagi.",image_alt_text:"Imej cabaran reCAPTCHA", -privacy_and_terms:"Privasi & Syarat"},nl:{visual_challenge:"Een visuele uitdaging proberen",audio_challenge:"Een audio-uitdaging proberen",refresh_btn:"Een nieuwe uitdaging proberen",instructions_visual:"Typ de tekst:",instructions_audio:"Typ wat u hoort:",help_btn:"Help",play_again:"Geluid opnieuw afspelen",cant_hear_this:"Geluid downloaden als MP3",incorrect_try_again:"Onjuist. Probeer het opnieuw.",image_alt_text:"reCAPTCHA-uitdagingsafbeelding",privacy_and_terms:"Privacy en voorwaarden"},no:{visual_challenge:"F\u00e5 en bildeutfordring", -audio_challenge:"F\u00e5 en lydutfordring",refresh_btn:"F\u00e5 en ny utfordring",instructions_visual:"Skriv inn teksten:",instructions_audio:"Skriv inn det du h\u00f8rer:",help_btn:"Hjelp",play_again:"Spill av lyd p\u00e5 nytt",cant_hear_this:"Last ned lyd som MP3",incorrect_try_again:"Feil. Pr\u00f8v p\u00e5 nytt.",image_alt_text:"reCAPTCHA-utfordringsbilde",privacy_and_terms:"Personvern og vilk\u00e5r"},pl:{visual_challenge:"Poka\u017c podpowied\u017a wizualn\u0105",audio_challenge:"Odtw\u00f3rz podpowied\u017a d\u017awi\u0119kow\u0105", -refresh_btn:"Nowa podpowied\u017a",instructions_visual:"Przepisz tekst:",instructions_audio:"Wpisz us\u0142yszane s\u0142owa:",help_btn:"Pomoc",play_again:"Odtw\u00f3rz d\u017awi\u0119k ponownie",cant_hear_this:"Pobierz d\u017awi\u0119k jako plik MP3",incorrect_try_again:"Nieprawid\u0142owo. Spr\u00f3buj ponownie.",image_alt_text:"Zadanie obrazkowe reCAPTCHA",privacy_and_terms:"Prywatno\u015b\u0107 i warunki"},pt:qa,"pt-BR":qa,"pt-PT":{visual_challenge:"Obter um desafio visual",audio_challenge:"Obter um desafio de \u00e1udio", -refresh_btn:"Obter um novo desafio",instructions_visual:"Introduza o texto:",instructions_audio:"Escreva o que ouvir:",help_btn:"Ajuda",play_again:"Reproduzir som novamente",cant_hear_this:"Transferir som como MP3",incorrect_try_again:"Incorreto. Tente novamente.",image_alt_text:"Imagem de teste reCAPTCHA",privacy_and_terms:"Privacidade e Termos de Utiliza\u00e7\u00e3o"},ro:ra,ru:{visual_challenge:"\u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430", -audio_challenge:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430",refresh_btn:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",instructions_visual:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442:",instructions_audio:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u043e, \u0447\u0442\u043e \u0441\u043b\u044b\u0448\u0438\u0442\u0435:",help_btn:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430",play_again:"\u041f\u0440\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0435\u0449\u0435 \u0440\u0430\u0437", -cant_hear_this:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c MP3-\u0444\u0430\u0439\u043b",incorrect_try_again:"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.",image_alt_text:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e \u0441\u043b\u043e\u0432\u0443 reCAPTCHA",privacy_and_terms:"\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b"}, -sk:{visual_challenge:"Zobrazi\u0165 vizu\u00e1lnu podobu",audio_challenge:"Prehra\u0165 zvukov\u00fa podobu",refresh_btn:"Zobrazi\u0165 nov\u00fd v\u00fdraz",instructions_visual:"Zadajte text:",instructions_audio:"Zadajte, \u010do po\u010dujete:",help_btn:"Pomocn\u00edk",play_again:"Znova prehra\u0165 zvuk",cant_hear_this:"Prevzia\u0165 zvuk v podobe s\u00faboru MP3",incorrect_try_again:"Nespr\u00e1vne. Sk\u00faste to znova.",image_alt_text:"Obr\u00e1zok zadania reCAPTCHA",privacy_and_terms:"Ochrana osobn\u00fdch \u00fadajov a Zmluvn\u00e9 podmienky"}, -sl:{visual_challenge:"Vizualni preskus",audio_challenge:"Zvo\u010dni preskus",refresh_btn:"Nov preskus",instructions_visual:"Vnesite besedilo:",instructions_audio:"Natipkajte, kaj sli\u0161ite:",help_btn:"Pomo\u010d",play_again:"Znova predvajaj zvok",cant_hear_this:"Prenesi zvok kot MP3",incorrect_try_again:"Napa\u010dno. Poskusite znova.",image_alt_text:"Slika izziva reCAPTCHA",privacy_and_terms:"Zasebnost in pogoji"},sr:{visual_challenge:"\u041f\u0440\u0438\u043c\u0438\u0442\u0435 \u0432\u0438\u0437\u0443\u0435\u043b\u043d\u0438 \u0443\u043f\u0438\u0442", -audio_challenge:"\u041f\u0440\u0438\u043c\u0438\u0442\u0435 \u0430\u0443\u0434\u0438\u043e \u0443\u043f\u0438\u0442",refresh_btn:"\u041f\u0440\u0438\u043c\u0438\u0442\u0435 \u043d\u043e\u0432\u0438 \u0443\u043f\u0438\u0442",instructions_visual:"\u0423\u043d\u0435\u0441\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442:",instructions_audio:"\u041e\u0442\u043a\u0443\u0446\u0430\u0458\u0442\u0435 \u043e\u043d\u043e \u0448\u0442\u043e \u0447\u0443\u0458\u0435\u0442\u0435:",help_btn:"\u041f\u043e\u043c\u043e\u045b", -play_again:"\u041f\u043e\u043d\u043e\u0432\u043e \u043f\u0443\u0441\u0442\u0438 \u0437\u0432\u0443\u043a",cant_hear_this:"\u041f\u0440\u0435\u0443\u0437\u043c\u0438 \u0437\u0432\u0443\u043a \u043a\u0430\u043e MP3 \u0441\u043d\u0438\u043c\u0430\u043a",incorrect_try_again:"\u041d\u0435\u0442\u0430\u0447\u043d\u043e. \u041f\u043e\u043a\u0443\u0448\u0430\u0458\u0442\u0435 \u043f\u043e\u043d\u043e\u0432\u043e.",image_alt_text:"\u0421\u043b\u0438\u043a\u0430 reCAPTCHA \u043f\u0440\u043e\u0432\u0435\u0440\u0435", -privacy_and_terms:"\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0441\u0442 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438"},sv:{visual_challenge:"H\u00e4mta captcha i bildformat",audio_challenge:"H\u00e4mta captcha i ljudformat",refresh_btn:"H\u00e4mta ny captcha",instructions_visual:"Skriv texten:",instructions_audio:"Skriv det du h\u00f6r:",help_btn:"Hj\u00e4lp",play_again:"Spela upp ljudet igen",cant_hear_this:"H\u00e4mta ljud som MP3",incorrect_try_again:"Fel. F\u00f6rs\u00f6k igen.",image_alt_text:"reCAPTCHA-bild", -privacy_and_terms:"Sekretess och villkor"},sw:{visual_challenge:"Pata herufi za kusoma",audio_challenge:"Pata herufi za kusikiliza",refresh_btn:"Pata herufi mpya",instructions_visual:"",instructions_audio:"Charaza unachosikia:",help_btn:"Usaidizi",play_again:"Cheza sauti tena",cant_hear_this:"Pakua sauti kama MP3",incorrect_try_again:"Sio sahihi. Jaribu tena.",image_alt_text:"picha ya changamoto ya reCAPTCHA",privacy_and_terms:"Faragha & Masharti"},ta:{visual_challenge:"\u0baa\u0bbe\u0bb0\u0bcd\u0bb5\u0bc8 \u0b9a\u0bc7\u0bb2\u0b9e\u0bcd\u0b9a\u0bc8\u0baa\u0bcd \u0baa\u0bc6\u0bb1\u0bc1\u0b95", -audio_challenge:"\u0b86\u0b9f\u0bbf\u0baf\u0bcb \u0b9a\u0bc7\u0bb2\u0b9e\u0bcd\u0b9a\u0bc8\u0baa\u0bcd \u0baa\u0bc6\u0bb1\u0bc1\u0b95",refresh_btn:"\u0baa\u0bc1\u0ba4\u0bbf\u0baf \u0b9a\u0bc7\u0bb2\u0b9e\u0bcd\u0b9a\u0bc8\u0baa\u0bcd \u0baa\u0bc6\u0bb1\u0bc1\u0b95",instructions_visual:"",instructions_audio:"\u0b95\u0bc7\u0b9f\u0bcd\u0baa\u0ba4\u0bc8 \u0b9f\u0bc8\u0baa\u0bcd \u0b9a\u0bc6\u0baf\u0bcd\u0b95:",help_btn:"\u0b89\u0ba4\u0bb5\u0bbf",play_again:"\u0b92\u0bb2\u0bbf\u0baf\u0bc8 \u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0b87\u0baf\u0b95\u0bcd\u0b95\u0bc1", -cant_hear_this:"\u0b92\u0bb2\u0bbf\u0baf\u0bc8 MP3 \u0b86\u0b95 \u0baa\u0ba4\u0bbf\u0bb5\u0bbf\u0bb1\u0b95\u0bcd\u0b95\u0bc1\u0b95",incorrect_try_again:"\u0ba4\u0bb5\u0bb1\u0bbe\u0ba9\u0ba4\u0bc1. \u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0bae\u0bc1\u0baf\u0bb2\u0bb5\u0bc1\u0bae\u0bcd.",image_alt_text:"reCAPTCHA \u0b9a\u0bc7\u0bb2\u0b9e\u0bcd\u0b9a\u0bcd \u0baa\u0b9f\u0bae\u0bcd",privacy_and_terms:"\u0ba4\u0ba9\u0bbf\u0baf\u0bc1\u0bb0\u0bbf\u0bae\u0bc8 & \u0bb5\u0bbf\u0ba4\u0bbf\u0bae\u0bc1\u0bb1\u0bc8\u0b95\u0bb3\u0bcd"}, -te:{visual_challenge:"\u0c12\u0c15 \u0c26\u0c43\u0c36\u0c4d\u0c2f\u0c2e\u0c3e\u0c28 \u0c38\u0c35\u0c3e\u0c32\u0c41\u0c28\u0c41 \u0c38\u0c4d\u0c35\u0c40\u0c15\u0c30\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f",audio_challenge:"\u0c12\u0c15 \u0c06\u0c21\u0c3f\u0c2f\u0c4b \u0c38\u0c35\u0c3e\u0c32\u0c41\u0c28\u0c41 \u0c38\u0c4d\u0c35\u0c40\u0c15\u0c30\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f",refresh_btn:"\u0c15\u0c4d\u0c30\u0c4a\u0c24\u0c4d\u0c24 \u0c38\u0c35\u0c3e\u0c32\u0c41\u0c28\u0c41 \u0c38\u0c4d\u0c35\u0c40\u0c15\u0c30\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f", -instructions_visual:"",instructions_audio:"\u0c2e\u0c40\u0c30\u0c41 \u0c35\u0c3f\u0c28\u0c4d\u0c28\u0c26\u0c3f \u0c1f\u0c48\u0c2a\u0c4d \u0c1a\u0c47\u0c2f\u0c02\u0c21\u0c3f:",help_btn:"\u0c38\u0c39\u0c3e\u0c2f\u0c02",play_again:"\u0c27\u0c4d\u0c35\u0c28\u0c3f\u0c28\u0c3f \u0c2e\u0c33\u0c4d\u0c32\u0c40 \u0c2a\u0c4d\u0c32\u0c47 \u0c1a\u0c47\u0c2f\u0c3f",cant_hear_this:"\u0c27\u0c4d\u0c35\u0c28\u0c3f\u0c28\u0c3f MP3 \u0c35\u0c32\u0c46 \u0c21\u0c4c\u0c28\u0c4d\u200c\u0c32\u0c4b\u0c21\u0c4d \u0c1a\u0c47\u0c2f\u0c3f", -incorrect_try_again:"\u0c24\u0c2a\u0c4d\u0c2a\u0c41. \u0c2e\u0c33\u0c4d\u0c32\u0c40 \u0c2a\u0c4d\u0c30\u0c2f\u0c24\u0c4d\u0c28\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f.",image_alt_text:"reCAPTCHA \u0c38\u0c35\u0c3e\u0c32\u0c41 \u0c1a\u0c3f\u0c24\u0c4d\u0c30\u0c02",privacy_and_terms:"\u0c17\u0c4b\u0c2a\u0c4d\u0c2f\u0c24 & \u0c28\u0c3f\u0c2c\u0c02\u0c27\u0c28\u0c32\u0c41"},th:{visual_challenge:"\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e17\u0e49\u0e32\u0e17\u0e32\u0e22\u0e14\u0e49\u0e32\u0e19\u0e20\u0e32\u0e1e", -audio_challenge:"\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e17\u0e49\u0e32\u0e17\u0e32\u0e22\u0e14\u0e49\u0e32\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07",refresh_btn:"\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e17\u0e49\u0e32\u0e17\u0e32\u0e22\u0e43\u0e2b\u0e21\u0e48",instructions_visual:"\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49:",instructions_audio:"\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e22\u0e34\u0e19:", -help_btn:"\u0e04\u0e27\u0e32\u0e21\u0e0a\u0e48\u0e27\u0e22\u0e40\u0e2b\u0e25\u0e37\u0e2d",play_again:"\u0e40\u0e25\u0e48\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",cant_hear_this:"\u0e14\u0e32\u0e27\u0e42\u0e2b\u0e25\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e40\u0e1b\u0e47\u0e19 MP3",incorrect_try_again:"\u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e25\u0e2d\u0e07\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",image_alt_text:"\u0e23\u0e2b\u0e31\u0e2a\u0e20\u0e32\u0e1e reCAPTCHA", -privacy_and_terms:"\u0e19\u0e42\u0e22\u0e1a\u0e32\u0e22\u0e2a\u0e48\u0e27\u0e19\u0e1a\u0e38\u0e04\u0e04\u0e25\u0e41\u0e25\u0e30\u0e02\u0e49\u0e2d\u0e01\u0e33\u0e2b\u0e19\u0e14"},tr:{visual_challenge:"G\u00f6rsel sorgu al",audio_challenge:"Sesli sorgu al",refresh_btn:"Yeniden y\u00fckle",instructions_visual:"Metni yaz\u0131n:",instructions_audio:"Duydu\u011funuzu yaz\u0131n:",help_btn:"Yard\u0131m",play_again:"Sesi tekrar \u00e7al",cant_hear_this:"Sesi MP3 olarak indir",incorrect_try_again:"Yanl\u0131\u015f. Tekrar deneyin.", -image_alt_text:"reCAPTCHA sorusu resmi",privacy_and_terms:"Gizlilik ve \u015eartlar"},uk:{visual_challenge:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0432\u0456\u0437\u0443\u0430\u043b\u044c\u043d\u0438\u0439 \u0442\u0435\u043a\u0441\u0442",audio_challenge:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0430\u0443\u0434\u0456\u043e\u0437\u0430\u043f\u0438\u0441",refresh_btn:"\u041e\u043d\u043e\u0432\u0438\u0442\u0438 \u0442\u0435\u043a\u0441\u0442",instructions_visual:"\u0412\u0432\u0435\u0434\u0456\u0442\u044c \u0442\u0435\u043a\u0441\u0442:", -instructions_audio:"\u0412\u0432\u0435\u0434\u0456\u0442\u044c \u043f\u043e\u0447\u0443\u0442\u0435:",help_btn:"\u0414\u043e\u0432\u0456\u0434\u043a\u0430",play_again:"\u0412\u0456\u0434\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0441 \u0449\u0435 \u0440\u0430\u0437",cant_hear_this:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0441 \u044f\u043a MP3",incorrect_try_again:"\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437.", -image_alt_text:"\u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f reCAPTCHA",privacy_and_terms:"\u041a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0456 \u0443\u043c\u043e\u0432\u0438"},ur:{visual_challenge:"\u0627\u06cc\u06a9 \u0645\u0631\u0626\u06cc \u0686\u06cc\u0644\u0646\u062c \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba",audio_challenge:"\u0627\u06cc\u06a9 \u0622\u0688\u06cc\u0648 \u0686\u06cc\u0644\u0646\u062c \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba", -refresh_btn:"\u0627\u06cc\u06a9 \u0646\u06cc\u0627 \u0686\u06cc\u0644\u0646\u062c \u062d\u0627\u0635\u0644 \u06a9\u0631\u06cc\u06ba",instructions_visual:"",instructions_audio:"\u062c\u0648 \u0633\u0646\u0627\u0626\u06cc \u062f\u06cc\u062a\u0627 \u06c1\u06d2 \u0648\u06c1 \u0679\u0627\u0626\u067e \u06a9\u0631\u06cc\u06ba:",help_btn:"\u0645\u062f\u062f",play_again:"\u0622\u0648\u0627\u0632 \u062f\u0648\u0628\u0627\u0631\u06c1 \u0686\u0644\u0627\u0626\u06cc\u06ba",cant_hear_this:"\u0622\u0648\u0627\u0632 \u06a9\u0648 MP3 \u06a9\u06d2 \u0628\u0637\u0648\u0631 \u0688\u0627\u0624\u0646 \u0644\u0648\u0688 \u06a9\u0631\u06cc\u06ba", -incorrect_try_again:"\u063a\u0644\u0637\u06d4 \u062f\u0648\u0628\u0627\u0631\u06c1 \u06a9\u0648\u0634\u0634 \u06a9\u0631\u06cc\u06ba\u06d4",image_alt_text:"reCAPTCHA \u0686\u06cc\u0644\u0646\u062c \u0648\u0627\u0644\u06cc \u0634\u0628\u06cc\u06c1",privacy_and_terms:"\u0631\u0627\u0632\u062f\u0627\u0631\u06cc \u0648 \u0634\u0631\u0627\u0626\u0637"},vi:{visual_challenge:"Nh\u1eadn th\u1eed th\u00e1ch h\u00ecnh \u1ea3nh",audio_challenge:"Nh\u1eadn th\u1eed th\u00e1ch \u00e2m thanh",refresh_btn:"Nh\u1eadn th\u1eed th\u00e1ch m\u1edbi", -instructions_visual:"Nh\u1eadp v\u0103n b\u1ea3n:",instructions_audio:"Nh\u1eadp n\u1ed9i dung b\u1ea1n nghe th\u1ea5y:",help_btn:"Tr\u1ee3 gi\u00fap",play_again:"Ph\u00e1t l\u1ea1i \u00e2m thanh",cant_hear_this:"T\u1ea3i \u00e2m thanh xu\u1ed1ng d\u01b0\u1edbi d\u1ea1ng MP3",incorrect_try_again:"Kh\u00f4ng ch\u00ednh x\u00e1c. H\u00e3y th\u1eed l\u1ea1i.",image_alt_text:"H\u00ecnh x\u00e1c th\u1ef1c reCAPTCHA",privacy_and_terms:"B\u1ea3o m\u1eadt v\u00e0 \u0111i\u1ec1u kho\u1ea3n"},"zh-CN":sa,"zh-HK":{visual_challenge:"\u56de\u7b54\u5716\u50cf\u9a57\u8b49\u554f\u984c", -audio_challenge:"\u53d6\u5f97\u8a9e\u97f3\u9a57\u8b49\u554f\u984c",refresh_btn:"\u63db\u4e00\u500b\u9a57\u8b49\u554f\u984c",instructions_visual:"\u8f38\u5165\u6587\u5b57\uff1a",instructions_audio:"\u9375\u5165\u60a8\u6240\u807d\u5230\u7684\uff1a",help_btn:"\u8aaa\u660e",play_again:"\u518d\u6b21\u64ad\u653e\u8072\u97f3",cant_hear_this:"\u5c07\u8072\u97f3\u4e0b\u8f09\u70ba MP3",incorrect_try_again:"\u4e0d\u6b63\u78ba\uff0c\u518d\u8a66\u4e00\u6b21\u3002",image_alt_text:"reCAPTCHA \u9a57\u8b49\u6587\u5b57\u5716\u7247", -privacy_and_terms:"\u79c1\u96b1\u6b0a\u8207\u689d\u6b3e"},"zh-TW":{visual_challenge:"\u53d6\u5f97\u5716\u7247\u9a57\u8b49\u554f\u984c",audio_challenge:"\u53d6\u5f97\u8a9e\u97f3\u9a57\u8b49\u554f\u984c",refresh_btn:"\u53d6\u5f97\u65b0\u7684\u9a57\u8b49\u554f\u984c",instructions_visual:"\u8acb\u8f38\u5165\u5716\u7247\u4e2d\u7684\u6587\u5b57\uff1a",instructions_audio:"\u8acb\u8f38\u5165\u8a9e\u97f3\u5167\u5bb9\uff1a",help_btn:"\u8aaa\u660e",play_again:"\u518d\u6b21\u64ad\u653e",cant_hear_this:"\u4ee5 MP3 \u683c\u5f0f\u4e0b\u8f09\u8072\u97f3", -incorrect_try_again:"\u9a57\u8b49\u78bc\u6709\u8aa4\uff0c\u8acb\u518d\u8a66\u4e00\u6b21\u3002",image_alt_text:"reCAPTCHA \u9a57\u8b49\u6587\u5b57\u5716\u7247",privacy_and_terms:"\u96b1\u79c1\u6b0a\u8207\u689d\u6b3e"},zu:{visual_challenge:"Thola inselelo ebonakalayo",audio_challenge:"Thola inselelo yokulalelwayo",refresh_btn:"Thola inselelo entsha",instructions_visual:"",instructions_audio:"Bhala okuzwayo:",help_btn:"Usizo",play_again:"Phinda udlale okulalelwayo futhi",cant_hear_this:"Layisha umsindo njenge-MP3", -incorrect_try_again:"Akulungile. Zama futhi.",image_alt_text:"umfanekiso oyinselelo we-reCAPTCHA",privacy_and_terms:"Okwangasese kanye nemigomo"},tl:ma,he:pa,"in":oa,mo:ra,zh:sa};var ua=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},va=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},wa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},xa=function(a){for(var b in a)return!1;return!0},za=function(){var a=ya()?l.google_ad:null,b={},c;for(c in a)b[c]=a[c];return b},Aa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ba=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]= -d[c];for(var g=0;g<Aa.length;g++)c=Aa[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var w=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,w);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};r(w,Error);w.prototype.name="CustomError";var Ca;var Da=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},x=function(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"<"));-1!=a.indexOf(">")&&(a=a.replace(Ha,">"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"""));-1!=a.indexOf("'")&&(a=a.replace(Ja,"'"));return a},Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ja=/'/g,Ea=/[&<>"']/,Ka=function(a, -b){return a<b?-1:a>b?1:0},La=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},Ma=function(a){var b=n(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var Na=function(a,b){b.unshift(a);w.call(this,Da.apply(null,b));b.shift()};r(Na,w);Na.prototype.name="AssertionError";var y=function(a,b,c){if(!a){var d="Assertion failed";if(b)var d=d+(": "+b),e=Array.prototype.slice.call(arguments,2);throw new Na(""+d,e||[]);}},Oa=function(a,b){throw new Na("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var z=Array.prototype,Pa=z.indexOf?function(a,b,c){y(null!=a.length);return z.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Qa=z.forEach?function(a,b,c){y(null!=a.length);z.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},Ra=z.filter?function(a,b,c){y(null!=a.length);return z.filter.call(a, -b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,f=n(a)?a.split(""):a,k=0;k<d;k++)if(k in f){var u=f[k];b.call(c,u,k,a)&&(e[g++]=u)}return e},Sa=z.map?function(a,b,c){y(null!=a.length);return z.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=n(a)?a.split(""):a,f=0;f<d;f++)f in g&&(e[f]=b.call(c,g[f],f,a));return e},Ua=function(a){var b;t:{b=Ta;for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break t}b=-1}return 0>b?null:n(a)?a.charAt(b): -a[b]},Va=function(a,b){var c=Pa(a,b),d;if(d=0<=c)y(null!=a.length),z.splice.call(a,c,1);return d},Wa=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Xa=function(a,b,c){y(null!=a.length);return 2>=arguments.length?z.slice.call(a,b):z.slice.call(a,b,c)};var A,Ya,Za,$a,ab=function(){return l.navigator?l.navigator.userAgent:null};$a=Za=Ya=A=!1;var B;if(B=ab()){var bb=l.navigator;A=0==B.lastIndexOf("Opera",0);Ya=!A&&(-1!=B.indexOf("MSIE")||-1!=B.indexOf("Trident"));Za=!A&&-1!=B.indexOf("WebKit");$a=!A&&!Za&&!Ya&&"Gecko"==bb.product}var cb=A,C=Ya,D=$a,E=Za,db=function(){var a=l.document;return a?a.documentMode:void 0},eb; -t:{var fb="",gb;if(cb&&l.opera)var hb=l.opera.version,fb="function"==typeof hb?hb():hb;else if(D?gb=/rv\:([^\);]+)(\)|;)/:C?gb=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:E&&(gb=/WebKit\/(\S+)/),gb)var ib=gb.exec(ab()),fb=ib?ib[1]:"";if(C){var jb=db();if(jb>parseFloat(fb)){eb=String(jb);break t}}eb=fb} -var kb=eb,lb={},F=function(a){var b;if(!(b=lb[a])){b=0;for(var c=String(kb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var f=c[g]||"",k=d[g]||"",u=RegExp("(\\d*)(\\D*)","g"),L=RegExp("(\\d*)(\\D*)","g");do{var v=u.exec(f)||["","",""],Q=L.exec(k)||["","",""];if(0==v[0].length&&0==Q[0].length)break;b=Ka(0==v[1].length?0:parseInt(v[1],10),0==Q[1].length?0:parseInt(Q[1],10))||Ka(0==v[2].length, -0==Q[2].length)||Ka(v[2],Q[2])}while(0==b)}b=lb[a]=0<=b}return b},mb=l.document,nb=mb&&C?db()||("CSS1Compat"==mb.compatMode?parseInt(kb,10):5):void 0;var ob=!C||C&&9<=nb,pb=!D&&!C||C&&C&&9<=nb||D&&F("1.9.1");C&&F("9");var qb=function(a,b){var c;c=a.className;c=n(c)&&c.match(/\S+/g)||[];for(var d=Xa(arguments,1),e=c.length+d.length,g=c,f=0;f<d.length;f++)0<=Pa(g,d[f])||g.push(d[f]);a.className=c.join(" ");return c.length==e};var sb=function(a){return a?new rb(9==a.nodeType?a:a.ownerDocument||a.document):Ca||(Ca=new rb)},tb=function(a,b){return n(b)?a.getElementById(b):b},vb=function(a,b){ua(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ub?a.setAttribute(ub[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},ub={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength", -role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},xb=function(a,b,c){function d(c){c&&b.appendChild(n(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var g=c[e];!ea(g)||ga(g)&&0<g.nodeType?d(g):Qa(wb(g)?Wa(g):g,d)}},yb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},zb=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},wb=function(a){if(a&&"number"==typeof a.length){if(ga(a))return"function"==typeof a.item||"string"==typeof a.item;if(fa(a))return"function"== -typeof a.item}return!1},rb=function(a){this.document_=a||l.document||document};h=rb.prototype;h.getDomHelper=sb;h.getElement=function(a){return tb(this.document_,a)};h.$=rb.prototype.getElement; -h.createDom=function(a,b,c){var d=this.document_,e=arguments,g=e[0],f=e[1];if(!ob&&f&&(f.name||f.type)){g=["<",g];f.name&&g.push(' name="',x(f.name),'"');if(f.type){g.push(' type="',x(f.type),'"');var k={};Ba(k,f);delete k.type;f=k}g.push(">");g=g.join("")}g=d.createElement(g);f&&(n(f)?g.className=f:m(f)?qb.apply(null,[g].concat(f)):vb(g,f));2<e.length&&xb(d,g,e);return g};h.createElement=function(a){return this.document_.createElement(a)};h.createTextNode=function(a){return this.document_.createTextNode(String(a))}; -h.appendChild=function(a,b){a.appendChild(b)};h.getChildren=function(a){return pb&&void 0!=a.children?a.children:Ra(a.childNodes,function(a){return 1==a.nodeType})};var Ab=function(){};Ab.prototype.disposed_=!1;Ab.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};Ab.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Bb=function(a){Bb[" "](a);return a};Bb[" "]=ca;var Cb=!C||C&&9<=nb,Db=C&&!F("9");!E||F("528");D&&F("1.9b")||C&&F("8")||cb&&F("9.5")||E&&F("528");D&&!F("8")||C&&F("9");var G=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1;this.returnValue_=!0};G.prototype.disposeInternal=function(){};G.prototype.dispose=function(){};G.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};var H=function(a,b){G.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.event_=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(D){var e;t:{try{Bb(d.nodeName);e=!0;break t}catch(g){}e=!1}e||(d=null)}}else"mouseover"== -c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=E||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=E||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey= -a.metaKey;this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault()}};r(H,G);H.prototype.preventDefault=function(){H.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Db)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};H.prototype.disposeInternal=function(){};var Eb="closure_listenable_"+(1E6*Math.random()|0),Fb=function(a){try{return!(!a||!a[Eb])}catch(b){return!1}},Gb=0;var Hb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Gb;this.removed=this.callOnce=!1},Ib=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var I=function(a){this.src=a;this.listeners={};this.typeCount_=0};I.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.listeners[g];a||(a=this.listeners[g]=[],this.typeCount_++);var f=Jb(a,b,d,e);-1<f?(b=a[f],c||(b.callOnce=!1)):(b=new Hb(b,this.src,g,!!d,e),b.callOnce=c,a.push(b));return b}; -I.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Jb(e,b,c,d);return-1<b?(Ib(e[b]),y(null!=e.length),z.splice.call(e,b,1),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var Kb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=Va(a.listeners[c],b);d&&(Ib(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d}; -I.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Ib(d[e]);delete this.listeners[c];this.typeCount_--}return b};I.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Jb(a,b,c,d));return-1<e?a[e]:null};var Jb=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.handler==d)return e}return-1};var Lb="closure_lm_"+(1E6*Math.random()|0),J={},Mb=0,Nb=function(a,b,c,d,e){if(m(b)){for(var g=0;g<b.length;g++)Nb(a,b[g],c,d,e);return null}c=Ob(c);return Fb(a)?a.listen(b,c,d,e):Pb(a,b,c,!1,d,e)},Pb=function(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var f=!!e,k=Qb(a);k||(a[Lb]=k=new I(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=Rb();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b,d,f):a.attachEvent(b in J?J[b]:J[b]="on"+b,d);Mb++;return c},Rb=function(){var a= -Sb,b=Cb?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Tb=function(a,b,c,d,e){if(m(b)){for(var g=0;g<b.length;g++)Tb(a,b[g],c,d,e);return null}c=Ob(c);return Fb(a)?a.listenOnce(b,c,d,e):Pb(a,b,c,!0,d,e)},Ub=function(a,b,c,d,e){if(m(b))for(var g=0;g<b.length;g++)Ub(a,b[g],c,d,e);else c=Ob(c),Fb(a)?a.unlisten(b,c,d,e):a&&(a=Qb(a))&&(b=a.getListener(b,c,!!d,e))&&Vb(b)},Vb=function(a){if("number"==typeof a||!a||a.removed)return!1;var b= -a.src;if(Fb(b))return Kb(b.eventTargetListeners_,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(c in J?J[c]:J[c]="on"+c,d);Mb--;(c=Qb(b))?(Kb(c,a),0==c.typeCount_&&(c.src=null,b[Lb]=null)):Ib(a);return!0},Xb=function(a,b,c,d){var e=1;if(a=Qb(a))if(b=a.listeners[b])for(b=Wa(b),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.removed&&(e&=!1!==Wb(g,d))}return Boolean(e)},Wb=function(a,b){var c=a.listener,d=a.handler||a.src;a.callOnce&& -Vb(a);return c.call(d,b)},Sb=function(a,b){if(a.removed)return!0;if(!Cb){var c=b||ba("window.event"),d=new H(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(f){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.propagationStopped_&&0<=k;k--)d.currentTarget=c[k],e&=Xb(c[k],g,!0,d);for(k=0;!d.propagationStopped_&&k<c.length;k++)d.currentTarget=c[k], -e&=Xb(c[k],g,!1,d)}return e}return Wb(a,new H(b,this))},Qb=function(a){a=a[Lb];return a instanceof I?a:null},Yb="__closure_events_fn_"+(1E9*Math.random()>>>0),Ob=function(a){y(a,"Listener can not be null.");if(fa(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");return a[Yb]||(a[Yb]=function(b){return a.handleEvent(b)})};var K=function(a){this.handler_=a;this.keys_={}};r(K,Ab);var Zb=[];K.prototype.listen=function(a,b,c,d){m(b)||(Zb[0]=b,b=Zb);for(var e=0;e<b.length;e++){var g=Nb(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!g)break;this.keys_[g.key]=g}return this};K.prototype.listenOnce=function(a,b,c,d){return $b(this,a,b,c,d)};var $b=function(a,b,c,d,e,g){if(m(c))for(var f=0;f<c.length;f++)$b(a,b,c[f],d,e,g);else{b=Tb(b,c,d||a.handleEvent,e,g||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a}; -K.prototype.unlisten=function(a,b,c,d,e){if(m(b))for(var g=0;g<b.length;g++)this.unlisten(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.handler_||this,c=Ob(c),d=!!d,b=Fb(a)?a.getListener(b,c,d,e):a?(a=Qb(a))?a.getListener(b,c,d,e):null:null,b&&(Vb(b),delete this.keys_[b.key]);return this};K.prototype.removeAll=function(){ua(this.keys_,Vb);this.keys_={}};K.prototype.disposeInternal=function(){K.superClass_.disposeInternal.call(this);this.removeAll()}; -K.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var M=function(){this.eventTargetListeners_=new I(this);this.actualEventTarget_=this};r(M,Ab);M.prototype[Eb]=!0;h=M.prototype;h.parentEventTarget_=null;h.setParentEventTarget=function(a){this.parentEventTarget_=a};h.addEventListener=function(a,b,c,d){Nb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Ub(this,a,b,c,d)}; -h.dispatchEvent=function(a){ac(this);var b,c=this.parentEventTarget_;if(c){b=[];for(var d=1;c;c=c.parentEventTarget_)b.push(c),y(1E3>++d,"infinite loop")}c=this.actualEventTarget_;d=a.type||a;if(n(a))a=new G(a,c);else if(a instanceof G)a.target=a.target||c;else{var e=a;a=new G(d,c);Ba(a,e)}var e=!0,g;if(b)for(var f=b.length-1;!a.propagationStopped_&&0<=f;f--)g=a.currentTarget=b[f],e=bc(g,d,!0,a)&&e;a.propagationStopped_||(g=a.currentTarget=c,e=bc(g,d,!0,a)&&e,a.propagationStopped_||(e=bc(g,d,!1,a)&& -e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)g=a.currentTarget=b[f],e=bc(g,d,!1,a)&&e;return e};h.disposeInternal=function(){M.superClass_.disposeInternal.call(this);this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0);this.parentEventTarget_=null};h.listen=function(a,b,c,d){ac(this);return this.eventTargetListeners_.add(String(a),b,!1,c,d)};h.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)}; -h.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};var bc=function(a,b,c,d){b=a.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=Wa(b);for(var e=!0,g=0;g<b.length;++g){var f=b[g];if(f&&!f.removed&&f.capture==c){var k=f.listener,u=f.handler||f.src;f.callOnce&&Kb(a.eventTargetListeners_,f);e=!1!==k.call(u,d)&&e}}return e&&!1!=d.returnValue_};M.prototype.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)}; -var ac=function(a){y(a.eventTargetListeners_,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var N=function(a){M.call(this);this.imageIdToRequestMap_={};this.imageIdToImageMap_={};this.handler_=new K(this);this.parent_=a};r(N,M);var cc=[C&&!F("11")?"readystatechange":"load","abort","error"],dc=function(a,b,c){(c=n(c)?c:c.src)&&(a.imageIdToRequestMap_[b]={src:c,corsRequestType:null})}; -N.prototype.start=function(){var a=this.imageIdToRequestMap_;Qa(wa(a),function(b){var c=a[b];if(c&&(delete a[b],!this.disposed_)){var d;d=this.parent_?sb(this.parent_).createDom("img"):new Image;c.corsRequestType&&(d.crossOrigin=c.corsRequestType);this.handler_.listen(d,cc,this.onNetworkEvent_);this.imageIdToImageMap_[b]=d;d.id=b;d.src=c.src}},this)}; -N.prototype.onNetworkEvent_=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});!this.disposed_&&(a=b.id,delete this.imageIdToRequestMap_[a],b=this.imageIdToImageMap_[a])&&(delete this.imageIdToImageMap_[a],this.handler_.unlisten(b,cc,this.onNetworkEvent_), -xa(this.imageIdToImageMap_)&&xa(this.imageIdToRequestMap_)&&this.dispatchEvent("complete"))}};N.prototype.disposeInternal=function(){delete this.imageIdToRequestMap_;delete this.imageIdToImageMap_;var a=this.handler_;a&&"function"==typeof a.dispose&&a.dispose();N.superClass_.disposeInternal.call(this)};var ec="StopIteration"in l?l.StopIteration:Error("StopIteration"),fc=function(){};fc.prototype.next=function(){throw ec;};fc.prototype.__iterator__=function(){return this};var O=function(a,b){this.map_={};this.keys_=[];this.version_=this.count_=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof O?(c=a.getKeys(),d=a.getValues()):(c=wa(a),d=va(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};O.prototype.getValues=function(){gc(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a}; -O.prototype.getKeys=function(){gc(this);return this.keys_.concat()};O.prototype.remove=function(a){return Object.prototype.hasOwnProperty.call(this.map_,a)?(delete this.map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&gc(this),!0):!1}; -var gc=function(a){if(a.count_!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];Object.prototype.hasOwnProperty.call(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.count_!=a.keys_.length){for(var e={},c=b=0;b<a.keys_.length;)d=a.keys_[b],Object.prototype.hasOwnProperty.call(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};O.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.map_[a]=b}; -O.prototype.__iterator__=function(a){gc(this);var b=0,c=this.keys_,d=this.map_,e=this.version_,g=this,f=new fc;f.next=function(){for(;;){if(e!=g.version_)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw ec;var f=c[b++];return a?f:d[f]}};return f};var hc=function(a){if("function"==typeof a.getValues)return a.getValues();if(n(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return va(a)},ic=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||n(a))Qa(a,b,c);else{var d;if("function"==typeof a.getKeys)d=a.getKeys();else if("function"!=typeof a.getValues)if(ea(a)||n(a)){d=[];for(var e=a.length,g=0;g<e;g++)d.push(g)}else d=wa(a);else d=void 0;for(var e=hc(a),g=e.length,f=0;f<g;f++)b.call(c, -e[f],d&&d[f],a)}};var kc=function(a){return jc(a||arguments.callee.caller,[])},jc=function(a,b){var c=[];if(0<=Pa(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(lc(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var g;g=d[e];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=lc(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"..."); -c.push(g)}b.push(a);c.push(")\n");try{c.push(jc(a.caller,b))}catch(f){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},lc=function(a){if(mc[a])return mc[a];a=String(a);if(!mc[a]){var b=/function ([^\(]+)/.exec(a);mc[a]=b?b[1]:"[Anonymous]"}return mc[a]},mc={};var nc=function(a,b,c,d,e){this.reset(a,b,c,d,e)};nc.prototype.exception_=null;nc.prototype.exceptionText_=null;var oc=0;nc.prototype.reset=function(a,b,c,d,e){"number"==typeof e||oc++;d||ja();this.level_=a;this.msg_=b;delete this.exception_;delete this.exceptionText_};nc.prototype.setLevel=function(a){this.level_=a};var P=function(a){this.name_=a;this.handlers_=this.children_=this.level_=this.parent_=null},pc=function(a,b){this.name=a;this.value=b};pc.prototype.toString=function(){return this.name};var qc=new pc("SEVERE",1E3),rc=new pc("CONFIG",700),sc=new pc("FINE",500);P.prototype.getParent=function(){return this.parent_};P.prototype.getChildren=function(){this.children_||(this.children_={});return this.children_};P.prototype.setLevel=function(a){this.level_=a}; -var tc=function(a){if(a.level_)return a.level_;if(a.parent_)return tc(a.parent_);Oa("Root logger has no level set.");return null};P.prototype.log=function(a,b,c){if(a.value>=tc(this).value)for(fa(b)&&(b=b()),a=this.getLogRecord(a,b,c),b="log:"+a.msg_,l.console&&(l.console.timeStamp?l.console.timeStamp(b):l.console.markTimeline&&l.console.markTimeline(b)),l.msWriteProfilerMark&&l.msWriteProfilerMark(b),b=this;b;){c=b;var d=a;if(c.handlers_)for(var e=0,g=void 0;g=c.handlers_[e];e++)g(d);b=b.getParent()}}; -P.prototype.getLogRecord=function(a,b,c){var d=new nc(a,String(b),this.name_);if(c){d.exception_=c;var e;var g=arguments.callee.caller;try{var f;var k=ba("window.location.href");if(n(c))f={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var u,L,v=!1;try{u=c.lineNumber||c.line||"Not available"}catch(Q){u="Not available",v=!0}try{L=c.fileName||c.filename||c.sourceURL||l.$googDebugFname||k}catch(jd){L="Not available",v=!0}f=!v&&c.lineNumber&&c.fileName&& -c.stack&&c.message&&c.name?c:{message:c.message||"Not available",name:c.name||"UnknownError",lineNumber:u,fileName:L,stack:c.stack||"Not available"}}e="Message: "+x(f.message)+'\nUrl: <a href="view-source:'+f.fileName+'" target="_new">'+f.fileName+"</a>\nLine: "+f.lineNumber+"\n\nBrowser stack:\n"+x(f.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+x(kc(g)+"-> ")}catch(Yc){e="Exception trying to expose exception! You win, we lose. "+Yc}d.exceptionText_=e}return d}; -var uc={},vc=null,wc=function(a){vc||(vc=new P(""),uc[""]=vc,vc.setLevel(rc));var b;if(!(b=uc[a])){b=new P(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=wc(a.substr(0,c));c.getChildren()[d]=b;b.parent_=c;uc[a]=b}return b};var R=function(a,b){a&&a.log(sc,b,void 0)};var xc=function(a,b,c){if(fa(a))c&&(a=p(a,c));else if(a&&"function"==typeof a.handleEvent)a=p(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:l.setTimeout(a,b||0)};var yc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),zc=E,Ac=function(a,b){if(zc){zc=!1;var c=l.location;if(c){var d=c.href;if(d&&(d=(d=Ac(3,d))&&decodeURIComponent(d))&&d!=c.hostname)throw zc=!0,Error();}}return b.match(yc)[a]||null};var Bc=function(){};Bc.prototype.cachedOptions_=null;var Dc=function(a){var b;(b=a.cachedOptions_)||(b={},Cc(a)&&(b[0]=!0,b[1]=!0),b=a.cachedOptions_=b);return b};var Ec,Fc=function(){};r(Fc,Bc);var Gc=function(a){return(a=Cc(a))?new ActiveXObject(a):new XMLHttpRequest},Cc=function(a){if(!a.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.ieProgId_=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.ieProgId_}; -Ec=new Fc;var S=function(a){M.call(this);this.headers=new O;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastError_=this.lastMethod_=this.lastUri_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.useXhr2Timeout_=this.withCredentials_=!1};r(S,M);var Hc=S.prototype,Ic=wc("goog.net.XhrIo");Hc.logger_=Ic; -var Jc=/^https?$/i,Kc=["POST","PUT"],Lc=[],Mc=function(a){var b=new S;Lc.push(b);b.listenOnce("ready",b.cleanupSend_);b.send(a,"POST",void 0,void 0)};S.prototype.cleanupSend_=function(){this.dispose();Va(Lc,this)}; -S.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("[goog.net.XhrIo] Object is active with another request="+this.lastUri_+"; newUri="+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastMethod_=b;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.xmlHttpFactory_?Gc(this.xmlHttpFactory_):Gc(Ec);this.xhrOptions_=this.xmlHttpFactory_?Dc(this.xmlHttpFactory_):Dc(Ec);this.xhr_.onreadystatechange=p(this.onReadyStateChange_,this);try{R(this.logger_,T(this,"Opening Xhr")), -this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(e){R(this.logger_,T(this,"Error opening Xhr: "+e.message));Nc(this,e);return}a=c||"";var g=new O(this.headers);d&&ic(d,function(a,b){g.set(b,a)});d=Ua(g.getKeys());c=l.FormData&&a instanceof l.FormData;!(0<=Pa(Kc,b))||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");ic(g,function(a,b){this.xhr_.setRequestHeader(b,a)},this);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in -this.xhr_&&(this.xhr_.withCredentials=this.withCredentials_);try{Oc(this),0<this.timeoutInterval_&&(this.useXhr2Timeout_=Pc(this.xhr_),R(this.logger_,T(this,"Will abort after "+this.timeoutInterval_+"ms if incomplete, xhr2 "+this.useXhr2Timeout_)),this.useXhr2Timeout_?(this.xhr_.timeout=this.timeoutInterval_,this.xhr_.ontimeout=p(this.timeout_,this)):this.timeoutId_=xc(this.timeout_,this.timeoutInterval_,this)),R(this.logger_,T(this,"Sending request")),this.inSend_=!0,this.xhr_.send(a),this.inSend_= -!1}catch(f){R(this.logger_,T(this,"Send error: "+f.message)),Nc(this,f)}};var Pc=function(a){return C&&F(9)&&"number"==typeof a.timeout&&void 0!==a.ontimeout},Ta=function(a){return"content-type"==a.toLowerCase()};S.prototype.timeout_=function(){"undefined"!=typeof aa&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",R(this.logger_,T(this,this.lastError_)),this.dispatchEvent("timeout"),this.abort(8))}; -var Nc=function(a,b){a.active_=!1;a.xhr_&&(a.inAbort_=!0,a.xhr_.abort(),a.inAbort_=!1);a.lastError_=b;Qc(a);Rc(a)},Qc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};S.prototype.abort=function(){this.xhr_&&this.active_&&(R(this.logger_,T(this,"Aborting")),this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rc(this))}; -S.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),Rc(this,!0));S.superClass_.disposeInternal.call(this)};S.prototype.onReadyStateChange_=function(){if(!this.disposed_)if(this.inOpen_||this.inSend_||this.inAbort_)Sc(this);else this.onReadyStateChangeEntryPoint_()};S.prototype.onReadyStateChangeEntryPoint_=function(){Sc(this)}; -var Sc=function(a){if(a.active_&&"undefined"!=typeof aa)if(a.xhrOptions_[1]&&4==Tc(a)&&2==Uc(a))R(a.logger_,T(a,"Local request error detected and ignored"));else if(a.inSend_&&4==Tc(a))xc(a.onReadyStateChange_,0,a);else if(a.dispatchEvent("readystatechange"),4==Tc(a)){R(a.logger_,T(a,"Request complete"));a.active_=!1;try{var b=Uc(a),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var g=Ac(1,String(a.lastUri_)); -if(!g&&self.location)var f=self.location.protocol,g=f.substr(0,f.length-1);e=!Jc.test(g?g.toLowerCase():"")}c=e}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");else{var k;try{k=2<Tc(a)?a.xhr_.statusText:""}catch(u){R(a.logger_,"Can not get status: "+u.message),k=""}a.lastError_=k+" ["+Uc(a)+"]";Qc(a)}}finally{Rc(a)}}},Rc=function(a,b){if(a.xhr_){Oc(a);var c=a.xhr_,d=a.xhrOptions_[0]?ca:null;a.xhr_=null;a.xhrOptions_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(c= -a.logger_)&&c.log(qc,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},Oc=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);"number"==typeof a.timeoutId_&&(l.clearTimeout(a.timeoutId_),a.timeoutId_=null)},Tc=function(a){return a.xhr_?a.xhr_.readyState:0},Uc=function(a){try{return 2<Tc(a)?a.xhr_.status:-1}catch(b){return-1}},T=function(a,b){return b+" ["+a.lastMethod_+" "+a.lastUri_+" "+Uc(a)+"]"};var U=function(){};U.getInstance=function(){return U.instance_?U.instance_:U.instance_=new U};U.prototype.nextId_=0;var V=function(a){M.call(this);this.dom_=a||sb()};r(V,M);h=V.prototype;h.idGenerator_=U.getInstance();h.id_=null;h.inDocument_=!1;h.element_=null;h.parent_=null;h.children_=null;h.childIndex_=null;h.wasDecorated_=!1;h.getElement=function(){return this.element_};h.getParent=function(){return this.parent_};h.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Method not supported");V.superClass_.setParentEventTarget.call(this,a)};h.getDomHelper=function(){return this.dom_}; -h.createDom=function(){this.element_=this.dom_.createElement("div")}; -var Wc=function(a,b){if(a.inDocument_)throw Error("Component already rendered");a.element_||a.createDom();b?b.insertBefore(a.element_,null):a.dom_.document_.body.appendChild(a.element_);a.parent_&&!a.parent_.inDocument_||Vc(a)},Vc=function(a){a.inDocument_=!0;Xc(a,function(a){!a.inDocument_&&a.getElement()&&Vc(a)})},Zc=function(a){Xc(a,function(a){a.inDocument_&&Zc(a)});a.googUiComponentHandler_&&a.googUiComponentHandler_.removeAll();a.inDocument_=!1}; -V.prototype.disposeInternal=function(){this.inDocument_&&Zc(this);this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);Xc(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&zb(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;V.superClass_.disposeInternal.call(this)};var Xc=function(a,b){a.children_&&Qa(a.children_,b,void 0)}; -V.prototype.removeChild=function(a,b){if(a){var c=n(a)?a:a.id_||(a.id_=":"+(a.idGenerator_.nextId_++).toString(36)),d;this.childIndex_&&c?(d=this.childIndex_,d=(c in d?d[c]:void 0)||null):d=null;a=d;if(c&&a){d=this.childIndex_;c in d&&delete d[c];Va(this.children_,a);b&&(Zc(a),a.element_&&zb(a.element_));c=a;if(null==c)throw Error("Unable to set parent component");c.parent_=null;V.superClass_.setParentEventTarget.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};var W=function(a,b,c){V.call(this,c);this.captchaImage_=a;this.adImage_=b&&300==b.naturalWidth&&57==b.naturalHeight?b:null};r(W,V);W.prototype.createDom=function(){W.superClass_.createDom.call(this);var a=this.getElement();this.captchaImage_.alt=X.image_alt_text;this.getDomHelper().appendChild(a,this.captchaImage_);this.adImage_&&(this.adImage_.alt=X.image_alt_text,this.getDomHelper().appendChild(a,this.adImage_),this.adImage_&&$c(this.adImage_)&&(a.innerHTML+='<div id="recaptcha-ad-choices"><div class="recaptcha-ad-choices-collapsed"><img height="15" width="15" alt="AdChoices" border="0" src="//pagead2.googlesyndication.com/pagead/images/adchoices/icon.png"/></div><div class="recaptcha-ad-choices-expanded"><a href="https://support.google.com/adsense/troubleshooter/1631343" target="_blank"><img height="15" width="75" alt="AdChoices" border="0" src="//pagead2.googlesyndication.com/pagead/images/adchoices/en.png"/></a></div></div>'))}; -var $c=function(a){var b=ad(a,"visibility");a=ad(a,"display");return"hidden"!=b&&"none"!=a},ad=function(a,b){var c;t:{c=9==a.nodeType?a:a.ownerDocument||a.document;if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))){c=c[b]||c.getPropertyValue(b)||"";break t}c=""}if(!c&&!(c=a.currentStyle?a.currentStyle[b]:null)&&(c=a.style[La(b)],"undefined"===typeof c)){c=a.style;var d;t:if(d=La(b),void 0===a.style[d]){var e=(E?"Webkit":D?"Moz":C?"ms":cb?"O":null)+Ma(b); -if(void 0!==a.style[e]){d=e;break t}}c=c[d]||""}return c};W.prototype.disposeInternal=function(){delete this.captchaImage_;delete this.adImage_;W.superClass_.disposeInternal.call(this)};var bd=function(a){return Sa(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};var cd=function(){this.blockSize=-1};var dd=function(){this.blockSize=-1;this.blockSize=64;this.chain_=Array(4);this.block_=Array(this.blockSize);this.totalLength_=this.blockLength_=0;this.reset()};r(dd,cd);dd.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.totalLength_=this.blockLength_=0}; -var ed=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.chain_[0];c=a.chain_[1];var e=a.chain_[2],g=a.chain_[3],f=0,f=b+(g^c&(e^g))+d[0]+3614090360&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[1]+3905402710&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[2]+606105819&4294967295;e=g+(f<<17&4294967295| -f>>>15);f=c+(b^e&(g^b))+d[3]+3250441966&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[4]+4118548399&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[5]+1200080426&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[6]+2821735955&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[7]+4249261313&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[8]+1770035416&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[9]+2336552879&4294967295;g=b+(f<<12&4294967295| -f>>>20);f=e+(c^g&(b^c))+d[10]+4294925233&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[11]+2304563134&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(g^c&(e^g))+d[12]+1804603682&4294967295;b=c+(f<<7&4294967295|f>>>25);f=g+(e^b&(c^e))+d[13]+4254626195&4294967295;g=b+(f<<12&4294967295|f>>>20);f=e+(c^g&(b^c))+d[14]+2792965006&4294967295;e=g+(f<<17&4294967295|f>>>15);f=c+(b^e&(g^b))+d[15]+1236535329&4294967295;c=e+(f<<22&4294967295|f>>>10);f=b+(e^g&(c^e))+d[1]+4129170786&4294967295;b=c+(f<< -5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[6]+3225465664&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[11]+643717713&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[0]+3921069994&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[5]+3593408605&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[10]+38016083&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[15]+3634488961&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[4]+3889429448&4294967295;c= -e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[9]+568446438&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[14]+3275163606&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[3]+4107603335&4294967295;e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[8]+1163531501&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(e^g&(c^e))+d[13]+2850285829&4294967295;b=c+(f<<5&4294967295|f>>>27);f=g+(c^e&(b^c))+d[2]+4243563512&4294967295;g=b+(f<<9&4294967295|f>>>23);f=e+(b^c&(g^b))+d[7]+1735328473&4294967295; -e=g+(f<<14&4294967295|f>>>18);f=c+(g^b&(e^g))+d[12]+2368359562&4294967295;c=e+(f<<20&4294967295|f>>>12);f=b+(c^e^g)+d[5]+4294588738&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[8]+2272392833&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[11]+1839030562&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[14]+4259657740&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[1]+2763975236&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[4]+1272893353&4294967295;g=b+(f<<11&4294967295| -f>>>21);f=e+(g^b^c)+d[7]+4139469664&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[10]+3200236656&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[13]+681279174&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[0]+3936430074&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[3]+3572445317&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[6]+76029189&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(c^e^g)+d[9]+3654602809&4294967295;b=c+(f<<4&4294967295|f>>>28);f=g+(b^c^e)+d[12]+ -3873151461&4294967295;g=b+(f<<11&4294967295|f>>>21);f=e+(g^b^c)+d[15]+530742520&4294967295;e=g+(f<<16&4294967295|f>>>16);f=c+(e^g^b)+d[2]+3299628645&4294967295;c=e+(f<<23&4294967295|f>>>9);f=b+(e^(c|~g))+d[0]+4096336452&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[7]+1126891415&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[14]+2878612391&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[5]+4237533241&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[12]+1700485571& -4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[3]+2399980690&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[10]+4293915773&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[1]+2240044497&4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[8]+1873313359&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[15]+4264355552&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[6]+2734768916&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[13]+1309151649& -4294967295;c=e+(f<<21&4294967295|f>>>11);f=b+(e^(c|~g))+d[4]+4149444226&4294967295;b=c+(f<<6&4294967295|f>>>26);f=g+(c^(b|~e))+d[11]+3174756917&4294967295;g=b+(f<<10&4294967295|f>>>22);f=e+(b^(g|~c))+d[2]+718787259&4294967295;e=g+(f<<15&4294967295|f>>>17);f=c+(g^(e|~b))+d[9]+3951481745&4294967295;a.chain_[0]=a.chain_[0]+b&4294967295;a.chain_[1]=a.chain_[1]+(e+(f<<21&4294967295|f>>>11))&4294967295;a.chain_[2]=a.chain_[2]+e&4294967295;a.chain_[3]=a.chain_[3]+g&4294967295}; -dd.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.block_,e=this.blockLength_,g=0;g<b;){if(0==e)for(;g<=c;)ed(this,a,g),g+=this.blockSize;if(n(a))for(;g<b;){if(d[e++]=a.charCodeAt(g++),e==this.blockSize){ed(this,d);e=0;break}}else for(;g<b;)if(d[e++]=a[g++],e==this.blockSize){ed(this,d);e=0;break}}this.blockLength_=e;this.totalLength_+=b};var Y=function(){K.call(this);this.callback_=this.element_=null;this.md5_=new dd};r(Y,K);var fd=function(a,b,c,d,e){a.unwatch();a.element_=b;a.callback_=e;a.listen(b,"keyup",p(a.onChanged_,a,c,d))};Y.prototype.unwatch=function(){this.element_&&this.callback_&&(this.removeAll(),this.callback_=this.element_=null)}; -Y.prototype.onChanged_=function(a,b){var c;c=(c=this.element_.value)?c.replace(/[\s\xa0]+/g,"").toLowerCase():"";this.md5_.reset();this.md5_.update(c+"."+b);c=this.md5_;var d=Array((56>c.blockLength_?c.blockSize:2*c.blockSize)-c.blockLength_);d[0]=128;for(var e=1;e<d.length-8;++e)d[e]=0;for(var g=8*c.totalLength_,e=d.length-8;e<d.length;++e)d[e]=g&255,g/=256;c.update(d);d=Array(16);for(e=g=0;4>e;++e)for(var f=0;32>f;f+=8)d[g++]=c.chain_[e]>>>f&255;bd(d).toLowerCase()==a.toLowerCase()&&this.callback_()}; -Y.prototype.disposeInternal=function(){this.element_=null;Y.superClass_.disposeInternal.call(this)};var hd=function(a,b,c){this.adObject_=a;this.captchaImageUrl_=b;this.opt_successCallback_=c||null;gd(this)},gd=function(a){var b=new N;dc(b,"recaptcha_challenge_image",a.captchaImageUrl_);dc(b,"recaptcha_ad_image",a.adObject_.imageAdUrl);var c={};Nb(b,"load",p(function(a,b){a[b.target.id]=b.target},a,c));Nb(b,"complete",p(a.handleImagesLoaded_,a,c));b.start()}; -hd.prototype.handleImagesLoaded_=function(a){a=new W(a.recaptcha_challenge_image,a.recaptcha_ad_image);var b=tb(document,"recaptcha_image");yb(b);Wc(a,b);a.adImage_&&$c(a.adImage_)&&(Mc(this.adObject_.delayedImpressionUrl),a=new Y,fd(a,tb(document,"recaptcha_response_field"),this.adObject_.hashedAnswer,this.adObject_.salt,p(function(a,b){a.unwatch();Mc(b)},this,a,this.adObject_.engagementUrl)),this.opt_successCallback_&&this.opt_successCallback_("04"+this.adObject_.token))};var ya=function(){var a=l.google_ad;return!!(a&&a.token&&a.imageAdUrl&&a.hashedAnswer&&a.salt&&a.delayedImpressionUrl&&a.engagementUrl)};var X=t;q("RecaptchaStr",X);var Z=l.RecaptchaOptions;q("RecaptchaOptions",Z);var id={tabindex:0,theme:"red",callback:null,lang:null,custom_theme_widget:null,custom_translations:null};q("RecaptchaDefaultOptions",id); -var $={widget:null,timer_id:-1,style_set:!1,theme:null,type:"image",ajax_verify_cb:null,$:function(a){return"string"==typeof a?document.getElementById(a):a},attachEvent:function(a,b,c){a&&a.addEventListener?a.addEventListener(b,c,!1):a&&a.attachEvent&&a.attachEvent("on"+b,c)},create:function(a,b,c){$.destroy();b&&($.widget=$.$(b));$._init_options(c);$._call_challenge(a)},destroy:function(){var a=$.$("recaptcha_challenge_field");a&&a.parentNode.removeChild(a);-1!=$.timer_id&&clearInterval($.timer_id); -$.timer_id=-1;if(a=$.$("recaptcha_image"))a.innerHTML="";$.widget&&("custom"!=$.theme?$.widget.innerHTML="":$.widget.style.display="none",$.widget=null)},focus_response_field:function(){$.$("recaptcha_response_field").focus()},get_challenge:function(){return"undefined"==typeof RecaptchaState?null:RecaptchaState.challenge},get_response:function(){var a=$.$("recaptcha_response_field");return a?a.value:null},ajax_verify:function(a){$.ajax_verify_cb=a;a=$.get_challenge()||"";var b=$.get_response()||""; -a=$._get_api_server()+"/ajaxverify?c="+encodeURIComponent(a)+"&response="+encodeURIComponent(b);$._add_script(a)},_ajax_verify_callback:function(a){$.ajax_verify_cb(a)},_get_overridable_url:function(a){var b=window.location.protocol;if("undefined"!=typeof _RecaptchaOverrideApiServer)a=_RecaptchaOverrideApiServer;else if("undefined"!=typeof RecaptchaState&&"string"==typeof RecaptchaState.server&&0<RecaptchaState.server.length)return RecaptchaState.server.replace(/\/+$/,"");return b+"//"+a},_get_api_server:function(){return $._get_overridable_url("www.google.com/recaptcha/api")}, -_get_static_url_root:function(){return $._get_overridable_url("www.gstatic.com/recaptcha/api")},_call_challenge:function(a){a=$._get_api_server()+"/challenge?k="+a+"&ajax=1&cachestop="+Math.random();$.getLang_()&&(a+="&lang="+$.getLang_());"undefined"!=typeof Z.extra_challenge_params&&(a+="&"+Z.extra_challenge_params);$._add_script(a)},_add_script:function(a){var b=document.createElement("script");b.type="text/javascript";b.src=a;$._get_script_area().appendChild(b)},_get_script_area:function(){var a= -document.getElementsByTagName("head");return a=!a||1>a.length?document.body:a[0]},_hash_merge:function(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])b[d]=a[c][d];return b},_init_options:function(a){Z=$._hash_merge([id,a||{}])},challenge_callback:function(){$._reset_timer();X=$._hash_merge([t,ta[$.getLang_()]||{},Z.custom_translations||{}]);window.addEventListener&&window.addEventListener("unload",function(){$.destroy()},!1);$._is_ie()&&window.attachEvent&&window.attachEvent("onbeforeunload", -function(){});if(0<navigator.userAgent.indexOf("KHTML")){var a=document.createElement("iframe");a.src="about:blank";a.style.height="0px";a.style.width="0px";a.style.visibility="hidden";a.style.border="none";a.appendChild(document.createTextNode("This frame prevents back/forward cache problems in Safari."));document.body.appendChild(a)}$._finish_widget()},_add_css:function(a){if(-1!=navigator.appVersion.indexOf("MSIE 5"))document.write('<style type="text/css">'+a+"</style>");else{var b=document.createElement("style"); -b.type="text/css";b.styleSheet?b.styleSheet.cssText=a:b.appendChild(document.createTextNode(a));$._get_script_area().appendChild(b)}},_set_style:function(a){$.style_set||($.style_set=!0,$._add_css(a+"\n\n.recaptcha_is_showing_audio .recaptcha_only_if_image,.recaptcha_isnot_showing_audio .recaptcha_only_if_audio,.recaptcha_had_incorrect_sol .recaptcha_only_if_no_incorrect_sol,.recaptcha_nothad_incorrect_sol .recaptcha_only_if_incorrect_sol{display:none !important}"))},_init_builtin_theme:function(){var a= -$.$,b=$._get_static_url_root(),c=s.VertCss,d=s.VertHtml,e=b+"/img/"+$.theme,g="gif",b=$.theme;"clean"==b&&(c=s.CleanCss,d=s.CleanHtml,g="png");c=c.replace(/IMGROOT/g,e);$._set_style(c);$.widget.innerHTML='<div id="recaptcha_area">'+d+"</div>";c=$.getLang_();a("recaptcha_privacy")&&null!=c&&"en"==c.substring(0,2).toLowerCase()&&null!=X.privacy_and_terms&&0<X.privacy_and_terms.length&&(c=document.createElement("a"),c.href="http://www.google.com/intl/en/policies/",c.target="_blank",c.innerHTML=X.privacy_and_terms, -a("recaptcha_privacy").appendChild(c));c=function(b,c,d,L){var v=a(b);v.src=e+"/"+c+"."+g;c=X[d];v.alt=c;b=a(b+"_btn");b.title=c;$.attachEvent(b,"click",L)};c("recaptcha_reload","refresh","refresh_btn",$.reload);c("recaptcha_switch_audio","audio","audio_challenge",function(){$.switch_type("audio")});c("recaptcha_switch_img","text","visual_challenge",function(){$.switch_type("image")});c("recaptcha_whatsthis","help","help_btn",$.showhelp);"clean"==b&&(a("recaptcha_logo").src=e+"/logo."+g);a("recaptcha_table").className= -"recaptchatable recaptcha_theme_"+$.theme;b=function(b,c){var d=a(b);d&&(RecaptchaState.rtl&&"span"==d.tagName.toLowerCase()&&(d.dir="rtl"),d.appendChild(document.createTextNode(X[c])))};b("recaptcha_instructions_image","instructions_visual");b("recaptcha_instructions_audio","instructions_audio");b("recaptcha_instructions_error","incorrect_try_again");a("recaptcha_instructions_image")||a("recaptcha_instructions_audio")||(b="audio"==$.type?X.instructions_audio:X.instructions_visual,b=b.replace(/:$/, -""),a("recaptcha_response_field").setAttribute("placeholder",b))},_finish_widget:function(){var a=$.$,b=Z,c=b.theme;c in{blackglass:1,clean:1,custom:1,red:1,white:1}||(c="red");$.theme||($.theme=c);"custom"!=$.theme?$._init_builtin_theme():$._set_style("");c=document.createElement("span");c.id="recaptcha_challenge_field_holder";c.style.display="none";a("recaptcha_response_field").parentNode.insertBefore(c,a("recaptcha_response_field"));a("recaptcha_response_field").setAttribute("autocomplete","off"); -a("recaptcha_image").style.width="300px";a("recaptcha_image").style.height="57px";$.should_focus=!1;$._set_challenge(RecaptchaState.challenge,"image");$.updateTabIndexes_();$.widget&&($.widget.style.display="");b.callback&&b.callback()},updateTabIndexes_:function(){var a=$.$,b=Z;b.tabindex&&(b=b.tabindex,a("recaptcha_response_field").tabIndex=b++,"audio"==$.type&&a("recaptcha_audio_play_again")&&(a("recaptcha_audio_play_again").tabIndex=b++,a("recaptcha_audio_download"),a("recaptcha_audio_download").tabIndex= -b++),"custom"!=$.theme&&(a("recaptcha_reload_btn").tabIndex=b++,a("recaptcha_switch_audio_btn").tabIndex=b++,a("recaptcha_switch_img_btn").tabIndex=b++,a("recaptcha_whatsthis_btn").tabIndex=b,a("recaptcha_privacy").tabIndex=b++))},switch_type:function(a){$.type=a;$.reload("audio"==$.type?"a":"v");if("custom"!=$.theme){a=$.$;var b="audio"==$.type?X.instructions_audio:X.instructions_visual,b=b.replace(/:$/,"");a("recaptcha_response_field").setAttribute("placeholder",b)}},reload:function(a){var b=Z, -c=RecaptchaState;"undefined"==typeof a&&(a="r");c=$._get_api_server()+"/reload?c="+c.challenge+"&k="+c.site+"&reason="+a+"&type="+$.type;$.getLang_()&&(c+="&lang="+$.getLang_());"undefined"!=typeof b.extra_challenge_params&&(c+="&"+b.extra_challenge_params);"audio"==$.type&&(c=b.audio_beta_12_08?c+"&audio_beta_12_08=1":c+"&new_audio_default=1");$.should_focus="t"!=a;$._add_script(c)},finish_reload:function(a,b,c){RecaptchaState.payload_url=c;RecaptchaState.is_incorrect=!1;$._set_challenge(a,b);$.updateTabIndexes_()}, -_set_challenge:function(a,b){var c=$.$,d=RecaptchaState;d.challenge=a;$.type=b;c("recaptcha_challenge_field_holder").innerHTML='<input type="hidden" name="recaptcha_challenge_field" id="recaptcha_challenge_field" value="'+d.challenge+'"/>';if("audio"==b)c("recaptcha_image").innerHTML=$.getAudioCaptchaHtml(),$._loop_playback();else if("image"==b){var e=d.payload_url;e||(e=$._get_api_server()+"/image?c="+d.challenge);ya()?(new hd(za(),e,function(a){RecaptchaState.challenge=a;c("recaptcha_challenge_field").value= -a}),l.google_ad&&(l.google_ad=null)):c("recaptcha_image").innerHTML='<img id="recaptcha_challenge_image" alt="'+X.image_alt_text+'" height="57" width="300" src="'+e+'" />'}$._css_toggle("recaptcha_had_incorrect_sol","recaptcha_nothad_incorrect_sol",d.is_incorrect);$._css_toggle("recaptcha_is_showing_audio","recaptcha_isnot_showing_audio","audio"==b);$._clear_input();$.should_focus&&$.focus_response_field();$._reset_timer()},_reset_timer:function(){clearInterval($.timer_id);var a=Math.max(1E3*(RecaptchaState.timeout- -60),6E4);$.timer_id=setInterval(function(){$.reload("t")},a);return a},showhelp:function(){window.open($._get_help_link(),"recaptcha_popup","width=460,height=580,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes")},_clear_input:function(){$.$("recaptcha_response_field").value=""},_displayerror:function(a){var b=$.$;b("recaptcha_image").innerHTML="";b("recaptcha_image").appendChild(document.createTextNode(a))},reloaderror:function(a){$._displayerror(a)},_is_ie:function(){return 0< -navigator.userAgent.indexOf("MSIE")&&!window.opera},_css_toggle:function(a,b,c){var d=$.widget;d||(d=document.body);var e=d.className,e=e.replace(RegExp("(^|\\s+)"+a+"(\\s+|$)")," "),e=e.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," ");d.className=e+(" "+(c?a:b))},_get_help_link:function(){var a=$._get_api_server().replace(/\/[a-zA-Z0-9]+\/?$/,"/help"),a=a+("?c="+RecaptchaState.challenge);$.getLang_()&&(a+="&hl="+$.getLang_());return a},playAgain:function(){$.$("recaptcha_image").innerHTML=$.getAudioCaptchaHtml(); -$._loop_playback()},_loop_playback:function(){var a=$.$("recaptcha_audio_play_again");a&&$.attachEvent(a,"click",function(){$.playAgain();return!1})},getAudioCaptchaHtml:function(){var a=RecaptchaState.payload_url;a||(a=$._get_api_server()+"/audio.mp3?c="+RecaptchaState.challenge);var b=$._get_static_url_root()+"/img/audiocaptcha.swf?v2",b=$._is_ie()?'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="audiocaptcha" width="0" height="0" codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+ -b+'" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="always" /></object><br/>':'<embed src="'+b+'" quality="high" bgcolor="#869ca7" width="0" height="0" name="audiocaptcha" align="middle" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></embed>',c="";$.checkFlashVer()&&(c="<br/>"+$.getSpan_('<a id="recaptcha_audio_play_again" class="recaptcha_audio_cant_hear_link">'+ -X.play_again+"</a>"));c+="<br/>"+$.getSpan_('<a id="recaptcha_audio_download" class="recaptcha_audio_cant_hear_link" target="_blank" href="'+a+'">'+X.cant_hear_this+"</a>");return b+c},getSpan_:function(a){return"<span"+(RecaptchaState&&RecaptchaState.rtl?' dir="rtl"':"")+">"+a+"</span>"},gethttpwavurl:function(){if("audio"!=$.type)return"";var a=RecaptchaState.payload_url;a||(a=$._get_api_server()+"/image?c="+RecaptchaState.challenge);return a},checkFlashVer:function(){var a=-1!=navigator.appVersion.indexOf("MSIE"), -b=-1!=navigator.appVersion.toLowerCase().indexOf("win"),c=-1!=navigator.userAgent.indexOf("Opera"),d=-1;if(null!=navigator.plugins&&0<navigator.plugins.length){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])d=navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" ")[2].split(".")[0]}else if(a&&b&&!c)try{d=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")).GetVariable("$version").split(" ")[1].split(",")[0]}catch(e){}return 9<= -d},getLang_:function(){return"undefined"!=typeof RecaptchaState&&RecaptchaState.lang?RecaptchaState.lang:Z.lang?Z.lang:null}};q("Recaptcha",$);})() diff --git a/themes/blueprint/js/record.js b/themes/blueprint/js/record.js deleted file mode 100644 index 4bf332884d8fea8105978e2ed934785dbba938df..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/record.js +++ /dev/null @@ -1,206 +0,0 @@ -/*global __dialogHandle, displayFormError, extractController, extractSource, getLightbox, path, refreshTagList, toggleMenu*/ - -/** - * Functions and event handlers specific to record pages. - */ - -function checkRequestIsValid(element, requestURL, requestType, checkClasses, blockedClass) { - var recordId = requestURL.match(/\/Record\/([^\/]+)\//)[1]; - var vars = {}, hash; - var hashes = requestURL.slice(requestURL.indexOf('?') + 1).split('&'); - - for(var i = 0; i < hashes.length; i++) - { - hash = hashes[i].split('='); - var x = hash[0]; - var y = hash[1]; - vars[x] = y; - } - vars['id'] = recordId; - - var url = path + '/AJAX/JSON?' + $.param({method:'checkRequestIsValid', id: recordId, requestType: requestType, data: vars}); - $.ajax({ - dataType: 'json', - cache: false, - url: url, - success: function(response) { - if (response.status == 'OK') { - if (response.data.status) { - $(element).removeClass(checkClasses).html(response.data.msg); - } else { - $(element).remove(); - } - } else if (response.status == 'NEED_AUTH') { - $(element).replaceWith('<span class="' + blockedClass + '">' + response.data.msg + '</span>'); - } - } - }); -} - -function setUpCheckRequest() { - $('.checkRequest').each(function(i) { - if($(this).hasClass('checkRequest')) { - $(this).addClass('ajax_hold_availability'); - var isValid = checkRequestIsValid(this, this.href, 'Hold', - 'checkRequest ajax_hold_availability', 'holdBlocked'); - } - }); - $('.checkStorageRetrievalRequest').each(function(i) { - if($(this).hasClass('checkStorageRetrievalRequest')) { - $(this).addClass('ajax_storage_retrieval_request_availability'); - var isValid = checkRequestIsValid(this, this.href, 'StorageRetrievalRequest', - 'checkStorageRetrievalRequest ajax_storage_retrieval_request_availability', - 'storageRetrievalRequestBlocked'); - } - }); - $('.checkILLRequest').each(function(i) { - if($(this).hasClass('checkILLRequest')) { - $(this).addClass('ajax_ill_request_availability'); - var isValid = checkRequestIsValid(this, this.href, 'ILLRequest', - 'checkILLRequest ajax_ill_request_availability', - 'ILLRequestBlocked'); - } - }); -} - -function deleteRecordComment(element, recordId, recordSource, commentId) { - var url = path + '/AJAX/JSON?' + $.param({method:'deleteRecordComment',id:commentId}); - $.ajax({ - dataType: 'json', - url: url, - success: function(response) { - if (response.status == 'OK') { - $($(element).parents('li')[0]).remove(); - } - } - }); -} - -function refreshCommentList(recordId, recordSource) { - var url = path + '/AJAX/JSON?' + $.param({method:'getRecordCommentsAsHTML',id:recordId,'source':recordSource}); - $.ajax({ - dataType: 'json', - url: url, - success: function(response) { - if (response.status == 'OK') { - $('#commentList').empty(); - $('#commentList').append(response.data); - $('#commentList a.deleteRecordComment').unbind('click').click(function() { - var commentId = $(this).attr('id').substr('recordComment'.length); - deleteRecordComment(this, recordId, recordSource, commentId); - return false; - }); - } - } - }); -} - -function registerAjaxCommentRecord() { - $('form[name="commentRecord"]').unbind('submit').submit(function(){ - if (!$(this).valid()) { return false; } - var form = this; - var id = form.id.value; - var recordSource = form.source.value; - var url = path + '/AJAX/JSON?' + $.param({method:'commentRecord',id:id}); - $(form).ajaxSubmit({ - url: url, - dataType: 'json', - success: function(response, statusText, xhr, $form) { - if (response.status == 'OK') { - refreshCommentList(id, recordSource); - $(form).resetForm(); - } else if (response.status == 'NEED_AUTH') { - var $dialog = getLightbox('MyResearch', 'Login', id, null, 'Login'); - $dialog.dialog({ - close: function(event, ui) { - // login dialog is closed, check to see if we can proceed with followup - if (__dialogHandle.processFollowup) { - // trigger the submit event on the comment form again - $(form).trigger('submit'); - } - } - }); - } else { - displayFormError($form, response.data); - } - } - }); - return false; - }); -} - -function ajaxTagUpdate(tag, remove) { - if(typeof remove === "undefined") { - remove = false; - } - var recordId = $('#record_id').val(); - var recordSource = $('.hiddenSource').val(); - $.ajax({ - url:path+'/AJAX/JSON?method=tagRecord', - type:'POST', - data:{ - tag:'"'+tag.replace(/\+/g, ' ')+'"', - id:recordId, - source:recordSource, - remove:remove - }, - complete:refreshTagList - }); -} - -$(document).ready(function(){ - // register the record comment form to be submitted via AJAX - registerAjaxCommentRecord(); - - // bind click action to export record menu - $('a.exportMenu').click(function(){ - toggleMenu('exportMenu'); - return false; - }); - - var id = document.getElementById('record_id').value; - - // bind click action on toolbar links - $('a.citeRecord').click(function() { - var controller = extractController(this); - var $dialog = getLightbox(controller, 'Cite', id, null, this.title); - return false; - }); - $('a.smsRecord').click(function() { - var controller = extractController(this); - var $dialog = getLightbox(controller, 'SMS', id, null, this.title); - return false; - }); - $('a.mailRecord').click(function() { - var controller = extractController(this); - var $dialog = getLightbox(controller, 'Email', id, null, this.title, controller, 'Email', id); - return false; - }); - $('a.tagRecord').click(function() { - var controller = extractController(this); - var $dialog = getLightbox(controller, 'AddTag', id, null, this.title, controller, 'AddTag', id); - return false; - }); - $('a.deleteRecordComment').click(function() { - var commentId = this.id.substr('recordComment'.length); - var recordSource = extractSource(this); - deleteRecordComment(this, id, recordSource, commentId); - return false; - }); - - // add highlighting to subject headings when mouseover - $('a.subjectHeading').mouseover(function() { - var subjectHeadings = $(this).parent().children('a.subjectHeading'); - for(var i = 0; i < subjectHeadings.length; i++) { - $(subjectHeadings[i]).addClass('highlight'); - if ($(this).text() == $(subjectHeadings[i]).text()) { - break; - } - } - }); - $('a.subjectHeading').mouseout(function() { - $('.subjectHeading').removeClass('highlight'); - }); - - setUpCheckRequest(); -}); \ No newline at end of file diff --git a/themes/blueprint/js/search_hierarchyTree.js b/themes/blueprint/js/search_hierarchyTree.js deleted file mode 100644 index 01f02b30f78d2f2f688a5f6624283173839d96ef..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/search_hierarchyTree.js +++ /dev/null @@ -1,10 +0,0 @@ -/*global getLightbox*/ - -$(document).ready(function() { - $(".hierarchyTreeLink a").click(function() { - var hierarchyID = $(this).parent().find(".hiddenHierarchyId")[0].value; - var id = $(this).parent().parent().parent().find(".hiddenId")[0].value; - var $dialog = getLightbox('Record', 'AjaxTab', id, null, this.title, '', '', '', {hierarchy: hierarchyID, tab: "HierarchyTree"}); - return false; - }); -}); \ No newline at end of file diff --git a/themes/blueprint/js/slick/slick.js b/themes/blueprint/js/slick/slick.js deleted file mode 100644 index 00c5baffbf0e87c98d31b33aa4d67e554a42f4bc..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/slick/slick.js +++ /dev/null @@ -1,2117 +0,0 @@ -/* - _ _ _ _ - ___| (_) ___| | __ (_)___ -/ __| | |/ __| |/ / | / __| -\__ \ | | (__| < _ | \__ \ -|___/_|_|\___|_|\_(_)/ |___/ - |__/ - - Version: 1.3.15 - Author: Ken Wheeler - Website: http://kenwheeler.github.io - Docs: http://kenwheeler.github.io/slick - Repo: http://github.com/kenwheeler/slick - Issues: http://github.com/kenwheeler/slick/issues - - */ - -/* global window, document, define, jQuery, setInterval, clearInterval */ - -(function(factory) { - 'use strict'; - if (typeof define === 'function' && define.amd) { - define(['jquery'], factory); - } else if (typeof exports !== 'undefined') { - module.exports = factory(require('jquery')); - } else { - factory(jQuery); - } - -}(function($) { - 'use strict'; - var Slick = window.Slick || {}; - - Slick = (function() { - - var instanceUid = 0; - - function Slick(element, settings) { - - var _ = this, - responsiveSettings, breakpoint; - - _.defaults = { - accessibility: true, - adaptiveHeight: false, - appendArrows: $(element), - appendDots: $(element), - arrows: true, - asNavFor: null, - prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>', - nextArrow: '<button type="button" data-role="none" class="slick-next">Next</button>', - autoplay: false, - autoplaySpeed: 3000, - centerMode: false, - centerPadding: '50px', - cssEase: 'ease', - customPaging: function(slider, i) { - return '<button type="button" data-role="none">' + (i + 1) + '</button>'; - }, - dots: false, - dotsClass: 'slick-dots', - draggable: true, - easing: 'linear', - fade: false, - focusOnSelect: false, - infinite: true, - initialSlide: 0, - lazyLoad: 'ondemand', - onBeforeChange: null, - onAfterChange: null, - onInit: null, - onReInit: null, - onSetPosition: null, - pauseOnHover: true, - pauseOnDotsHover: false, - respondTo: 'window', - responsive: null, - rtl: false, - slide: 'div', - slidesToShow: 1, - slidesToScroll: 1, - speed: 500, - swipe: true, - swipeToSlide: false, - touchMove: true, - touchThreshold: 5, - useCSS: true, - variableWidth: false, - vertical: false, - waitForAnimate: true - }; - - _.initials = { - animating: false, - dragging: false, - autoPlayTimer: null, - currentDirection: 0, - currentLeft: null, - currentSlide: 0, - direction: 1, - $dots: null, - listWidth: null, - listHeight: null, - loadIndex: 0, - $nextArrow: null, - $prevArrow: null, - slideCount: null, - slideWidth: null, - $slideTrack: null, - $slides: null, - sliding: false, - slideOffset: 0, - swipeLeft: null, - $list: null, - touchObject: {}, - transformsEnabled: false - }; - - $.extend(_, _.initials); - - _.activeBreakpoint = null; - _.animType = null; - _.animProp = null; - _.breakpoints = []; - _.breakpointSettings = []; - _.cssTransitions = false; - _.paused = false; - _.positionProp = null; - _.respondTo = null; - _.shouldClick = true; - _.$slider = $(element); - _.$slidesCache = null; - _.transformType = null; - _.transitionType = null; - _.windowWidth = 0; - _.windowTimer = null; - - _.options = $.extend({}, _.defaults, settings); - - _.currentSlide = _.options.initialSlide; - - _.originalSettings = _.options; - responsiveSettings = _.options.responsive || null; - - if (responsiveSettings && responsiveSettings.length > -1) { - _.respondTo = _.options.respondTo || "window"; - for (breakpoint in responsiveSettings) { - if (responsiveSettings.hasOwnProperty(breakpoint)) { - _.breakpoints.push(responsiveSettings[ - breakpoint].breakpoint); - _.breakpointSettings[responsiveSettings[ - breakpoint].breakpoint] = - responsiveSettings[breakpoint].settings; - } - } - _.breakpoints.sort(function(a, b) { - return b - a; - }); - } - - _.autoPlay = $.proxy(_.autoPlay, _); - _.autoPlayClear = $.proxy(_.autoPlayClear, _); - _.changeSlide = $.proxy(_.changeSlide, _); - _.clickHandler = $.proxy(_.clickHandler, _); - _.selectHandler = $.proxy(_.selectHandler, _); - _.setPosition = $.proxy(_.setPosition, _); - _.swipeHandler = $.proxy(_.swipeHandler, _); - _.dragHandler = $.proxy(_.dragHandler, _); - _.keyHandler = $.proxy(_.keyHandler, _); - _.autoPlayIterator = $.proxy(_.autoPlayIterator, _); - - _.instanceUid = instanceUid++; - - // A simple way to check for HTML strings - // Strict HTML recognition (must start with <) - // Extracted from jQuery v1.11 source - _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/; - - _.init(); - - _.checkResponsive(); - - } - - return Slick; - - }()); - - Slick.prototype.addSlide = function(markup, index, addBefore) { - - var _ = this; - - if (typeof(index) === 'boolean') { - addBefore = index; - index = null; - } else if (index < 0 || (index >= _.slideCount)) { - return false; - } - - _.unload(); - - if (typeof(index) === 'number') { - if (index === 0 && _.$slides.length === 0) { - $(markup).appendTo(_.$slideTrack); - } else if (addBefore) { - $(markup).insertBefore(_.$slides.eq(index)); - } else { - $(markup).insertAfter(_.$slides.eq(index)); - } - } else { - if (addBefore === true) { - $(markup).prependTo(_.$slideTrack); - } else { - $(markup).appendTo(_.$slideTrack); - } - } - - _.$slides = _.$slideTrack.children(this.options.slide); - - _.$slideTrack.children(this.options.slide).detach(); - - _.$slideTrack.append(_.$slides); - - _.$slides.each(function(index, element) { - $(element).attr("index",index); - }); - - _.$slidesCache = _.$slides; - - _.reinit(); - - }; - - Slick.prototype.animateSlide = function(targetLeft, callback) { - - var animProps = {}, _ = this; - - if(_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { - var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); - _.$list.animate({height: targetHeight},_.options.speed); - } - - if (_.options.rtl === true && _.options.vertical === false) { - targetLeft = -targetLeft; - } - if (_.transformsEnabled === false) { - if (_.options.vertical === false) { - _.$slideTrack.animate({ - left: targetLeft - }, _.options.speed, _.options.easing, callback); - } else { - _.$slideTrack.animate({ - top: targetLeft - }, _.options.speed, _.options.easing, callback); - } - - } else { - - if (_.cssTransitions === false) { - - $({ - animStart: _.currentLeft - }).animate({ - animStart: targetLeft - }, { - duration: _.options.speed, - easing: _.options.easing, - step: function(now) { - if (_.options.vertical === false) { - animProps[_.animType] = 'translate(' + - now + 'px, 0px)'; - _.$slideTrack.css(animProps); - } else { - animProps[_.animType] = 'translate(0px,' + - now + 'px)'; - _.$slideTrack.css(animProps); - } - }, - complete: function() { - if (callback) { - callback.call(); - } - } - }); - - } else { - - _.applyTransition(); - - if (_.options.vertical === false) { - animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)'; - } else { - animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)'; - } - _.$slideTrack.css(animProps); - - if (callback) { - setTimeout(function() { - - _.disableTransition(); - - callback.call(); - }, _.options.speed); - } - - } - - } - - }; - - Slick.prototype.asNavFor = function(index) { - var _ = this, asNavFor = _.options.asNavFor != null ? $(_.options.asNavFor).getSlick() : null; - if(asNavFor != null) asNavFor.slideHandler(index, true); - }; - - Slick.prototype.applyTransition = function(slide) { - - var _ = this, - transition = {}; - - if (_.options.fade === false) { - transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase; - } else { - transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase; - } - - if (_.options.fade === false) { - _.$slideTrack.css(transition); - } else { - _.$slides.eq(slide).css(transition); - } - - }; - - Slick.prototype.autoPlay = function() { - - var _ = this; - - if (_.autoPlayTimer) { - clearInterval(_.autoPlayTimer); - } - - if (_.slideCount > _.options.slidesToShow && _.paused !== true) { - _.autoPlayTimer = setInterval(_.autoPlayIterator, - _.options.autoplaySpeed); - } - - }; - - Slick.prototype.autoPlayClear = function() { - - var _ = this; - if (_.autoPlayTimer) { - clearInterval(_.autoPlayTimer); - } - - }; - - Slick.prototype.autoPlayIterator = function() { - - var _ = this; - - if (_.options.infinite === false) { - - if (_.direction === 1) { - - if ((_.currentSlide + 1) === _.slideCount - - 1) { - _.direction = 0; - } - - _.slideHandler(_.currentSlide + _.options.slidesToScroll); - - } else { - - if ((_.currentSlide - 1 === 0)) { - - _.direction = 1; - - } - - _.slideHandler(_.currentSlide - _.options.slidesToScroll); - - } - - } else { - - _.slideHandler(_.currentSlide + _.options.slidesToScroll); - - } - - }; - - Slick.prototype.buildArrows = function() { - - var _ = this; - - if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { - - _.$prevArrow = $(_.options.prevArrow); - _.$nextArrow = $(_.options.nextArrow); - - if (_.htmlExpr.test(_.options.prevArrow)) { - _.$prevArrow.appendTo(_.options.appendArrows); - } - - if (_.htmlExpr.test(_.options.nextArrow)) { - _.$nextArrow.appendTo(_.options.appendArrows); - } - - if (_.options.infinite !== true) { - _.$prevArrow.addClass('slick-disabled'); - } - - } - - }; - - Slick.prototype.buildDots = function() { - - var _ = this, - i, dotString; - - if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { - - dotString = '<ul class="' + _.options.dotsClass + '">'; - - for (i = 0; i <= _.getDotCount(); i += 1) { - dotString += '<li>' + _.options.customPaging.call(this, _, i) + '</li>'; - } - - dotString += '</ul>'; - - _.$dots = $(dotString).appendTo( - _.options.appendDots); - - _.$dots.find('li').first().addClass( - 'slick-active'); - - } - - }; - - Slick.prototype.buildOut = function() { - - var _ = this; - - _.$slides = _.$slider.children(_.options.slide + - ':not(.slick-cloned)').addClass( - 'slick-slide'); - _.slideCount = _.$slides.length; - - _.$slides.each(function(index, element) { - $(element).attr("index",index); - }); - - _.$slidesCache = _.$slides; - - _.$slider.addClass('slick-slider'); - - _.$slideTrack = (_.slideCount === 0) ? - $('<div class="slick-track"/>').appendTo(_.$slider) : - _.$slides.wrapAll('<div class="slick-track"/>').parent(); - - _.$list = _.$slideTrack.wrap( - '<div class="slick-list"/>').parent(); - _.$slideTrack.css('opacity', 0); - - if (_.options.centerMode === true) { - _.options.slidesToScroll = 1; - } - - $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading'); - - _.setupInfinite(); - - _.buildArrows(); - - _.buildDots(); - - _.updateDots(); - - if (_.options.accessibility === true) { - _.$list.prop('tabIndex', 0); - } - - _.setSlideClasses(typeof this.currentSlide === 'number' ? this.currentSlide : 0); - - if (_.options.draggable === true) { - _.$list.addClass('draggable'); - } - - }; - - Slick.prototype.checkResponsive = function() { - - var _ = this, - breakpoint, targetBreakpoint, respondToWidth; - var sliderWidth = _.$slider.width(); - var windowWidth = window.innerWidth || $(window).width(); - if (_.respondTo === "window") { - respondToWidth = windowWidth; - } else if (_.respondTo === "slider") { - respondToWidth = sliderWidth; - } else if (_.respondTo === "min") { - respondToWidth = Math.min(windowWidth, sliderWidth); - } - - if (_.originalSettings.responsive && _.originalSettings - .responsive.length > -1 && _.originalSettings.responsive !== null) { - - targetBreakpoint = null; - - for (breakpoint in _.breakpoints) { - if (_.breakpoints.hasOwnProperty(breakpoint)) { - if (respondToWidth < _.breakpoints[breakpoint]) { - targetBreakpoint = _.breakpoints[breakpoint]; - } - } - } - - if (targetBreakpoint !== null) { - if (_.activeBreakpoint !== null) { - if (targetBreakpoint !== _.activeBreakpoint) { - _.activeBreakpoint = - targetBreakpoint; - _.options = $.extend({}, _.originalSettings, - _.breakpointSettings[ - targetBreakpoint]); - _.refresh(); - } - } else { - _.activeBreakpoint = targetBreakpoint; - _.options = $.extend({}, _.originalSettings, - _.breakpointSettings[ - targetBreakpoint]); - _.refresh(); - } - } else { - if (_.activeBreakpoint !== null) { - _.activeBreakpoint = null; - _.options = _.originalSettings; - _.refresh(); - } - } - - } - - }; - - Slick.prototype.changeSlide = function(event, dontAnimate) { - - var _ = this, - $target = $(event.target), - indexOffset, slideOffset, unevenOffset,navigables, prevNavigable; - - // If target is a link, prevent default action. - $target.is('a') && event.preventDefault(); - - unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0); - indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll; - - switch (event.data.message) { - - case 'previous': - slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset; - if (_.slideCount > _.options.slidesToShow) { - _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate); - } - break; - - case 'next': - slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset; - if (_.slideCount > _.options.slidesToShow) { - _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate); - } - break; - - case 'index': - var index = event.data.index === 0 ? 0 : - event.data.index || $(event.target).parent().index() * _.options.slidesToScroll; - - navigables = _.getNavigableIndexes(); - prevNavigable = 0; - if(navigables[index] && navigables[index] === index) { - if(index > navigables[navigables.length -1]){ - index = navigables[navigables.length -1]; - } else { - for(var n in navigables) { - if(index < navigables[n]) { - index = prevNavigable; - break; - } - prevNavigable = navigables[n]; - } - } - } - _.slideHandler(index, false, dontAnimate); - - default: - return; - } - - }; - - Slick.prototype.clickHandler = function(event) { - - var _ = this; - - if(_.shouldClick === false) { - event.stopImmediatePropagation(); - event.stopPropagation(); - event.preventDefault(); - } - - } - - Slick.prototype.destroy = function() { - - var _ = this; - - _.autoPlayClear(); - - _.touchObject = {}; - - $('.slick-cloned', _.$slider).remove(); - if (_.$dots) { - _.$dots.remove(); - } - if (_.$prevArrow && (typeof _.options.prevArrow !== 'object')) { - _.$prevArrow.remove(); - } - if (_.$nextArrow && (typeof _.options.nextArrow !== 'object')) { - _.$nextArrow.remove(); - } - if (_.$slides.parent().hasClass('slick-track')) { - _.$slides.unwrap().unwrap(); - } - - _.$slides.removeClass( - 'slick-slide slick-active slick-center slick-visible') - .removeAttr('index') - .css({ - position: '', - left: '', - top: '', - zIndex: '', - opacity: '', - width: '' - }); - - _.$slider.removeClass('slick-slider'); - _.$slider.removeClass('slick-initialized'); - - _.$list.off('.slick'); - $(window).off('.slick-' + _.instanceUid); - $(document).off('.slick-' + _.instanceUid); - - }; - - Slick.prototype.disableTransition = function(slide) { - - var _ = this, - transition = {}; - - transition[_.transitionType] = ""; - - if (_.options.fade === false) { - _.$slideTrack.css(transition); - } else { - _.$slides.eq(slide).css(transition); - } - - }; - - Slick.prototype.fadeSlide = function(oldSlide, slideIndex, callback) { - - var _ = this; - - if (_.cssTransitions === false) { - - _.$slides.eq(slideIndex).css({ - zIndex: 1000 - }); - - _.$slides.eq(slideIndex).animate({ - opacity: 1 - }, _.options.speed, _.options.easing, callback); - - _.$slides.eq(oldSlide).animate({ - opacity: 0 - }, _.options.speed, _.options.easing); - - } else { - - _.applyTransition(slideIndex); - _.applyTransition(oldSlide); - - _.$slides.eq(slideIndex).css({ - opacity: 1, - zIndex: 1000 - }); - - _.$slides.eq(oldSlide).css({ - opacity: 0 - }); - - if (callback) { - setTimeout(function() { - - _.disableTransition(slideIndex); - _.disableTransition(oldSlide); - - callback.call(); - }, _.options.speed); - } - - } - - }; - - Slick.prototype.filterSlides = function(filter) { - - var _ = this; - - if (filter !== null) { - - _.unload(); - - _.$slideTrack.children(this.options.slide).detach(); - - _.$slidesCache.filter(filter).appendTo(_.$slideTrack); - - _.reinit(); - - } - - }; - - Slick.prototype.getCurrent = function() { - - var _ = this; - - return _.currentSlide; - - }; - - Slick.prototype.getDotCount = function() { - - var _ = this; - - var breakPoint = 0; - var counter = 0; - var pagerQty = 0; - - if(_.options.infinite === true) { - pagerQty = Math.ceil(_.slideCount / _.options.slidesToScroll); - } else { - while (breakPoint < _.slideCount){ - ++pagerQty; - breakPoint = counter + _.options.slidesToShow; - counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; - } - } - - return pagerQty - 1; - - }; - - Slick.prototype.getLeft = function(slideIndex) { - - var _ = this, - targetLeft, - verticalHeight, - verticalOffset = 0, - slideWidth, - targetSlide; - - _.slideOffset = 0; - verticalHeight = _.$slides.first().outerHeight(); - - if (_.options.infinite === true) { - if (_.slideCount > _.options.slidesToShow) { - _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1; - verticalOffset = (verticalHeight * _.options.slidesToShow) * -1; - } - if (_.slideCount % _.options.slidesToScroll !== 0) { - if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) { - if(slideIndex > _.slideCount) { - _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1; - verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1; - } else { - _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1; - verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1; - } - } - } - } else { - if(slideIndex + _.options.slidesToShow > _.slideCount) { - _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth; - verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight; - } - } - - if (_.slideCount <= _.options.slidesToShow){ - _.slideOffset = 0; - verticalOffset = 0; - } - - if (_.options.centerMode === true && _.options.infinite === true) { - _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth; - } else if (_.options.centerMode === true) { - _.slideOffset = 0; - _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2); - } - - if (_.options.vertical === false) { - targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset; - } else { - targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset; - } - - if (_.options.variableWidth === true) { - - if(_.slideCount <= _.options.slidesToShow || _.options.infinite === false) { - targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); - } else { - targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow); - } - targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; - if (_.options.centerMode === true) { - if(_.options.infinite === false) { - targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); - } else { - targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1); - } - targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; - targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2; - } - } - - // 1680 - - return targetLeft; - - }; - - Slick.prototype.getNavigableIndexes = function() { - - var _ = this; - - var breakPoint = 0; - var counter = 0; - var indexes = []; - - while (breakPoint < _.slideCount){ - indexes.push(breakPoint); - breakPoint = counter + _.options.slidesToScroll; - counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; - } - - return indexes; - - }; - - Slick.prototype.getSlideCount = function() { - - var _ = this, slidesTraversed; - - if(_.options.swipeToSlide === true) { - var swipedSlide = null; - _.$slideTrack.find('.slick-slide').each(function(index, slide){ - if (slide.offsetLeft + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) { - swipedSlide = slide; - return false; - } - }); - slidesTraversed = Math.abs($(swipedSlide).attr('index') - _.currentSlide); - return slidesTraversed; - } else { - return _.options.slidesToScroll; - } - - }; - - Slick.prototype.init = function() { - - var _ = this; - - if (!$(_.$slider).hasClass('slick-initialized')) { - - $(_.$slider).addClass('slick-initialized'); - _.buildOut(); - _.setProps(); - _.startLoad(); - _.loadSlider(); - _.initializeEvents(); - _.updateArrows(); - _.updateDots(); - } - - if (_.options.onInit !== null) { - _.options.onInit.call(this, _); - } - - }; - - Slick.prototype.initArrowEvents = function() { - - var _ = this; - - if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { - _.$prevArrow.bind('click.slick', { - message: 'previous' - }, _.changeSlide); - _.$nextArrow.bind('click.slick', { - message: 'next' - }, _.changeSlide); - } - - }; - - Slick.prototype.initDotEvents = function() { - - var _ = this; - - if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { - $('li', _.$dots).bind('click.slick', { - message: 'index' - }, _.changeSlide); - } - - if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.options.autoplay === true) { - $('li', _.$dots) - .bind('mouseenter.slick', function(){ - _.paused = true; - _.autoPlayClear(); - }) - .bind('mouseleave.slick', function(){ - _.paused = false; - _.autoPlay(); - }); - } - - }; - - Slick.prototype.initializeEvents = function() { - - var _ = this; - - _.initArrowEvents(); - - _.initDotEvents(); - - _.$list.bind('touchstart.slick mousedown.slick', { - action: 'start' - }, _.swipeHandler); - _.$list.bind('touchmove.slick mousemove.slick', { - action: 'move' - }, _.swipeHandler); - _.$list.bind('touchend.slick mouseup.slick', { - action: 'end' - }, _.swipeHandler); - _.$list.bind('touchcancel.slick mouseleave.slick', { - action: 'end' - }, _.swipeHandler); - - _.$list.bind('click.slick', _.clickHandler); - - if (_.options.pauseOnHover === true && _.options.autoplay === true) { - _.$list.bind('mouseenter.slick', function(){ - _.paused = true; - _.autoPlayClear(); - }); - _.$list.bind('mouseleave.slick', function(){ - _.paused = false; - _.autoPlay(); - }); - } - - if(_.options.accessibility === true) { - _.$list.bind('keydown.slick', _.keyHandler); - } - - if(_.options.focusOnSelect === true) { - $(_.options.slide, _.$slideTrack).bind('click.slick', _.selectHandler); - } - - $(window).bind('orientationchange.slick.slick-' + _.instanceUid, function() { - _.checkResponsive(); - _.setPosition(); - }); - - $(window).bind('resize.slick.slick-' + _.instanceUid, function() { - if ($(window).width() !== _.windowWidth) { - clearTimeout(_.windowDelay); - _.windowDelay = window.setTimeout(function() { - _.windowWidth = $(window).width(); - _.checkResponsive(); - _.setPosition(); - }, 50); - } - }); - - $('*[draggable!=true]', _.$slideTrack).bind('dragstart', function(e){ e.preventDefault(); }) - - $(window).bind('load.slick.slick-' + _.instanceUid, _.setPosition); - $(document).bind('ready.slick.slick-' + _.instanceUid, _.setPosition); - - }; - - Slick.prototype.initUI = function() { - - var _ = this; - - if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { - - _.$prevArrow.show(); - _.$nextArrow.show(); - - } - - if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { - - _.$dots.show(); - - } - - if (_.options.autoplay === true) { - - _.autoPlay(); - - } - - }; - - Slick.prototype.keyHandler = function(event) { - - var _ = this; - - if (event.keyCode === 37 && _.options.accessibility === true) { - _.changeSlide({ - data: { - message: 'previous' - } - }); - } else if (event.keyCode === 39 && _.options.accessibility === true) { - _.changeSlide({ - data: { - message: 'next' - } - }); - } - - }; - - Slick.prototype.lazyLoad = function() { - - var _ = this, - loadRange, cloneRange, rangeStart, rangeEnd; - - function loadImages(imagesScope) { - $('img[data-lazy]', imagesScope).each(function() { - var image = $(this), - imageSource = $(this).attr('data-lazy'); - - image - .load(function() { image.animate({ opacity: 1 }, 200); }) - .css({ opacity: 0 }) - .attr('src', imageSource) - .removeAttr('data-lazy') - .removeClass('slick-loading'); - }); - } - - if (_.options.centerMode === true) { - if (_.options.infinite === true) { - rangeStart = _.currentSlide + (_.options.slidesToShow/2 + 1); - rangeEnd = rangeStart + _.options.slidesToShow + 2; - } else { - rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow/2 + 1)); - rangeEnd = 2 + (_.options.slidesToShow/2 + 1) + _.currentSlide; - } - } else { - rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide; - rangeEnd = rangeStart + _.options.slidesToShow; - if (_.options.fade === true ) { - if(rangeStart > 0) rangeStart--; - if(rangeEnd <= _.slideCount) rangeEnd++; - } - } - - loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd); - loadImages(loadRange); - - if (_.slideCount <= _.options.slidesToShow){ - cloneRange = _.$slider.find('.slick-slide') - loadImages(cloneRange) - }else - if (_.currentSlide >= _.slideCount - _.options.slidesToShow) { - cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow); - loadImages(cloneRange) - } else if (_.currentSlide === 0) { - cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1); - loadImages(cloneRange); - } - - }; - - Slick.prototype.loadSlider = function() { - - var _ = this; - - _.setPosition(); - - _.$slideTrack.css({ - opacity: 1 - }); - - _.$slider.removeClass('slick-loading'); - - _.initUI(); - - if (_.options.lazyLoad === 'progressive') { - _.progressiveLazyLoad(); - } - - }; - - Slick.prototype.postSlide = function(index) { - - var _ = this; - - if (_.options.onAfterChange !== null) { - _.options.onAfterChange.call(this, _, index); - } - - _.animating = false; - - _.setPosition(); - - _.swipeLeft = null; - - if (_.options.autoplay === true && _.paused === false) { - _.autoPlay(); - } - - }; - - Slick.prototype.progressiveLazyLoad = function() { - - var _ = this, - imgCount, targetImage; - - imgCount = $('img[data-lazy]', _.$slider).length; - - if (imgCount > 0) { - targetImage = $('img[data-lazy]', _.$slider).first(); - targetImage.attr('src', targetImage.attr('data-lazy')).removeClass('slick-loading').load(function() { - targetImage.removeAttr('data-lazy'); - _.progressiveLazyLoad(); - }) - .error(function () { - targetImage.removeAttr('data-lazy'); - _.progressiveLazyLoad(); - }); - } - - }; - - Slick.prototype.refresh = function() { - - var _ = this, - currentSlide = _.currentSlide; - - _.destroy(); - - $.extend(_, _.initials); - - _.init(); - - _.changeSlide({ - data: { - message: 'index', - index: currentSlide, - } - }, true); - - }; - - Slick.prototype.reinit = function() { - - var _ = this; - - _.$slides = _.$slideTrack.children(_.options.slide).addClass( - 'slick-slide'); - - _.slideCount = _.$slides.length; - - if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) { - _.currentSlide = _.currentSlide - _.options.slidesToScroll; - } - - if (_.slideCount <= _.options.slidesToShow) { - _.currentSlide = 0; - } - - _.setProps(); - - _.setupInfinite(); - - _.buildArrows(); - - _.updateArrows(); - - _.initArrowEvents(); - - _.buildDots(); - - _.updateDots(); - - _.initDotEvents(); - - if(_.options.focusOnSelect === true) { - $(_.options.slide, _.$slideTrack).bind('click.slick', _.selectHandler); - } - - _.setSlideClasses(0); - - _.setPosition(); - - if (_.options.onReInit !== null) { - _.options.onReInit.call(this, _); - } - - }; - - Slick.prototype.removeSlide = function(index, removeBefore, removeAll) { - - var _ = this; - - if (typeof(index) === 'boolean') { - removeBefore = index; - index = removeBefore === true ? 0 : _.slideCount - 1; - } else { - index = removeBefore === true ? --index : index; - } - - if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) { - return false; - } - - _.unload(); - - if(removeAll === true) { - _.$slideTrack.children().remove(); - } else { - _.$slideTrack.children(this.options.slide).eq(index).remove(); - } - - _.$slides = _.$slideTrack.children(this.options.slide); - - _.$slideTrack.children(this.options.slide).detach(); - - _.$slideTrack.append(_.$slides); - - _.$slidesCache = _.$slides; - - _.reinit(); - - }; - - Slick.prototype.setCSS = function(position) { - - var _ = this, - positionProps = {}, x, y; - - if (_.options.rtl === true) { - position = -position; - } - x = _.positionProp == 'left' ? position + 'px' : '0px'; - y = _.positionProp == 'top' ? position + 'px' : '0px'; - - positionProps[_.positionProp] = position; - - if (_.transformsEnabled === false) { - _.$slideTrack.css(positionProps); - } else { - positionProps = {}; - if (_.cssTransitions === false) { - positionProps[_.animType] = 'translate(' + x + ', ' + y + ')'; - _.$slideTrack.css(positionProps); - } else { - positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)'; - _.$slideTrack.css(positionProps); - } - } - - }; - - Slick.prototype.setDimensions = function() { - - var _ = this; - - if (_.options.vertical === false) { - if (_.options.centerMode === true) { - _.$list.css({ - padding: ('0px ' + _.options.centerPadding) - }); - } - } else { - _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow); - if (_.options.centerMode === true) { - _.$list.css({ - padding: (_.options.centerPadding + ' 0px') - }); - } - } - - _.listWidth = _.$list.width(); - _.listHeight = _.$list.height(); - - - if(_.options.vertical === false && _.options.variableWidth === false) { - _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow); - _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length))); - - } else if (_.options.variableWidth === true) { - var trackWidth = 0; - _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow); - _.$slideTrack.children('.slick-slide').each(function(){ - trackWidth += Math.ceil($(this).outerWidth(true)); - }); - _.$slideTrack.width(Math.ceil(trackWidth) + 1); - } else { - _.slideWidth = Math.ceil(_.listWidth); - _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length))); - } - - var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width(); - if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset); - - }; - - Slick.prototype.setFade = function() { - - var _ = this, - targetLeft; - - _.$slides.each(function(index, element) { - targetLeft = (_.slideWidth * index) * -1; - if (_.options.rtl === true) { - $(element).css({ - position: 'relative', - right: targetLeft, - top: 0, - zIndex: 800, - opacity: 0 - }); - } else { - $(element).css({ - position: 'relative', - left: targetLeft, - top: 0, - zIndex: 800, - opacity: 0 - }); - } - }); - - _.$slides.eq(_.currentSlide).css({ - zIndex: 900, - opacity: 1 - }); - - }; - - Slick.prototype.setHeight = function() { - - var _ = this; - - if(_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { - var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); - _.$list.css('height', targetHeight); - } - - }; - - Slick.prototype.setPosition = function() { - - var _ = this; - - _.setDimensions(); - - _.setHeight(); - - if (_.options.fade === false) { - _.setCSS(_.getLeft(_.currentSlide)); - } else { - _.setFade(); - } - - if (_.options.onSetPosition !== null) { - _.options.onSetPosition.call(this, _); - } - - }; - - Slick.prototype.setProps = function() { - - var _ = this, - bodyStyle = document.body.style; - - _.positionProp = _.options.vertical === true ? 'top' : 'left'; - - if (_.positionProp === 'top') { - _.$slider.addClass('slick-vertical'); - } else { - _.$slider.removeClass('slick-vertical'); - } - - if (bodyStyle.WebkitTransition !== undefined || - bodyStyle.MozTransition !== undefined || - bodyStyle.msTransition !== undefined) { - if(_.options.useCSS === true) { - _.cssTransitions = true; - } - } - - if (bodyStyle.OTransform !== undefined) { - _.animType = 'OTransform'; - _.transformType = "-o-transform"; - _.transitionType = 'OTransition'; - if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; - } - if (bodyStyle.MozTransform !== undefined) { - _.animType = 'MozTransform'; - _.transformType = "-moz-transform"; - _.transitionType = 'MozTransition'; - if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false; - } - if (bodyStyle.webkitTransform !== undefined) { - _.animType = 'webkitTransform'; - _.transformType = "-webkit-transform"; - _.transitionType = 'webkitTransition'; - if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; - } - if (bodyStyle.msTransform !== undefined) { - _.animType = 'msTransform'; - _.transformType = "-ms-transform"; - _.transitionType = 'msTransition'; - if (bodyStyle.msTransform === undefined) _.animType = false; - } - if (bodyStyle.transform !== undefined && _.animType !== false) { - _.animType = 'transform'; - _.transformType = "transform"; - _.transitionType = 'transition'; - } - _.transformsEnabled = (_.animType !== null && _.animType !== false); - - }; - - - Slick.prototype.setSlideClasses = function(index) { - - var _ = this, - centerOffset, allSlides, indexOffset, remainder; - - _.$slider.find('.slick-slide').removeClass('slick-active').removeClass('slick-center'); - allSlides = _.$slider.find('.slick-slide'); - - if (_.options.centerMode === true) { - - centerOffset = Math.floor(_.options.slidesToShow / 2); - - if(_.options.infinite === true) { - - if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) { - _.$slides.slice(index - centerOffset, index + centerOffset + 1).addClass('slick-active'); - } else { - indexOffset = _.options.slidesToShow + index; - allSlides.slice(indexOffset - centerOffset + 1, indexOffset + centerOffset + 2).addClass('slick-active'); - } - - if (index === 0) { - allSlides.eq(allSlides.length - 1 - _.options.slidesToShow).addClass('slick-center'); - } else if (index === _.slideCount - 1) { - allSlides.eq(_.options.slidesToShow).addClass('slick-center'); - } - - } - - _.$slides.eq(index).addClass('slick-center'); - - } else { - - if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) { - _.$slides.slice(index, index + _.options.slidesToShow).addClass('slick-active'); - } else if ( allSlides.length <= _.options.slidesToShow ) { - allSlides.addClass('slick-active'); - } else { - remainder = _.slideCount%_.options.slidesToShow; - indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index; - if(_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) { - allSlides.slice(indexOffset-(_.options.slidesToShow-remainder), indexOffset + remainder).addClass('slick-active'); - } else { - allSlides.slice(indexOffset, indexOffset + _.options.slidesToShow).addClass('slick-active'); - } - } - - } - - if (_.options.lazyLoad === 'ondemand') { - _.lazyLoad(); - } - - }; - - Slick.prototype.setupInfinite = function() { - - var _ = this, - i, slideIndex, infiniteCount; - - if (_.options.fade === true) { - _.options.centerMode = false; - } - - if (_.options.infinite === true && _.options.fade === false) { - - slideIndex = null; - - if (_.slideCount > _.options.slidesToShow) { - - if (_.options.centerMode === true) { - infiniteCount = _.options.slidesToShow + 1; - } else { - infiniteCount = _.options.slidesToShow; - } - - for (i = _.slideCount; i > (_.slideCount - - infiniteCount); i -= 1) { - slideIndex = i - 1; - $(_.$slides[slideIndex]).clone(true).attr('id', '') - .attr('index', slideIndex-_.slideCount) - .prependTo(_.$slideTrack).addClass('slick-cloned'); - } - for (i = 0; i < infiniteCount; i += 1) { - slideIndex = i; - $(_.$slides[slideIndex]).clone(true).attr('id', '') - .attr('index', slideIndex+_.slideCount) - .appendTo(_.$slideTrack).addClass('slick-cloned'); - } - _.$slideTrack.find('.slick-cloned').find('[id]').each(function() { - $(this).attr('id', ''); - }); - - } - - } - - }; - - Slick.prototype.selectHandler = function(event) { - - var _ = this; - var index = parseInt($(event.target).parents('.slick-slide').attr("index")); - if(!index) index = 0; - - if(_.slideCount <= _.options.slidesToShow){ - _.$slider.find('.slick-slide').removeClass('slick-active'); - _.$slides.eq(index).addClass('slick-active'); - if(_.options.centerMode === true) { - _.$slider.find('.slick-slide').removeClass('slick-center'); - _.$slides.eq(index).addClass('slick-center'); - } - _.asNavFor(index); - return; - } - _.slideHandler(index); - - }; - - Slick.prototype.slideHandler = function(index,sync,dontAnimate) { - - var targetSlide, animSlide, oldSlide, slideLeft, unevenOffset, targetLeft = null, - _ = this; - - sync = sync || false; - - if (_.animating === true && _.options.waitForAnimate === true) { - return; - } - - if (_.options.fade === true && _.currentSlide === index) { - return; - } - - if (_.slideCount <= _.options.slidesToShow) { - return; - } - - if (sync === false) { - _.asNavFor(index); - } - - targetSlide = index; - targetLeft = _.getLeft(targetSlide); - slideLeft = _.getLeft(_.currentSlide); - - _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft; - - if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) { - if(_.options.fade === false) { - targetSlide = _.currentSlide; - if(dontAnimate!==true) { - _.animateSlide(slideLeft, function() { - _.postSlide(targetSlide); - }); - } else { - _.postSlide(targetSlide); - } - } - return; - } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) { - if(_.options.fade === false) { - targetSlide = _.currentSlide; - if(dontAnimate!==true) { - _.animateSlide(slideLeft, function() { - _.postSlide(targetSlide); - }); - } else { - _.postSlide(targetSlide); - } - } - return; - } - - if (_.options.autoplay === true) { - clearInterval(_.autoPlayTimer); - } - - if (targetSlide < 0) { - if (_.slideCount % _.options.slidesToScroll !== 0) { - animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll); - } else { - animSlide = _.slideCount + targetSlide; - } - } else if (targetSlide >= _.slideCount) { - if (_.slideCount % _.options.slidesToScroll !== 0) { - animSlide = 0; - } else { - animSlide = targetSlide - _.slideCount; - } - } else { - animSlide = targetSlide; - } - - _.animating = true; - - if (_.options.onBeforeChange !== null && index !== _.currentSlide) { - _.options.onBeforeChange.call(this, _, _.currentSlide, animSlide); - } - - oldSlide = _.currentSlide; - _.currentSlide = animSlide; - - _.setSlideClasses(_.currentSlide); - - _.updateDots(); - _.updateArrows(); - - if (_.options.fade === true) { - if(dontAnimate!==true) { - _.fadeSlide(oldSlide,animSlide, function() { - _.postSlide(animSlide); - }); - } else { - _.postSlide(animSlide); - } - return; - } - - if(dontAnimate!==true) { - _.animateSlide(targetLeft, function() { - _.postSlide(animSlide); - }); - } else { - _.postSlide(animSlide); - } - - }; - - Slick.prototype.startLoad = function() { - - var _ = this; - - if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { - - _.$prevArrow.hide(); - _.$nextArrow.hide(); - - } - - if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { - - _.$dots.hide(); - - } - - _.$slider.addClass('slick-loading'); - - }; - - Slick.prototype.swipeDirection = function() { - - var xDist, yDist, r, swipeAngle, _ = this; - - xDist = _.touchObject.startX - _.touchObject.curX; - yDist = _.touchObject.startY - _.touchObject.curY; - r = Math.atan2(yDist, xDist); - - swipeAngle = Math.round(r * 180 / Math.PI); - if (swipeAngle < 0) { - swipeAngle = 360 - Math.abs(swipeAngle); - } - - if ((swipeAngle <= 45) && (swipeAngle >= 0)) { - return (_.options.rtl === false ? 'left' : 'right'); - } - if ((swipeAngle <= 360) && (swipeAngle >= 315)) { - return (_.options.rtl === false ? 'left' : 'right'); - } - if ((swipeAngle >= 135) && (swipeAngle <= 225)) { - return (_.options.rtl === false ? 'right' : 'left'); - } - - return 'vertical'; - - }; - - Slick.prototype.swipeEnd = function(event) { - - var _ = this, slideCount; - - _.dragging = false; - - _.shouldClick = (_.touchObject.swipeLength > 10) ? false : true; - - if (_.touchObject.curX === undefined) { - return false; - } - - if (_.touchObject.swipeLength >= _.touchObject.minSwipe) { - - switch (_.swipeDirection()) { - case 'left': - _.slideHandler(_.currentSlide + _.getSlideCount()); - _.currentDirection = 0; - _.touchObject = {}; - break; - - case 'right': - _.slideHandler(_.currentSlide - _.getSlideCount()); - _.currentDirection = 1; - _.touchObject = {}; - break; - } - } else { - if(_.touchObject.startX !== _.touchObject.curX) { - _.slideHandler(_.currentSlide); - _.touchObject = {}; - } - } - - }; - - Slick.prototype.swipeHandler = function(event) { - - var _ = this; - - if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) { - return; - } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) { - return; - } - - _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ? - event.originalEvent.touches.length : 1; - - _.touchObject.minSwipe = _.listWidth / _.options - .touchThreshold; - - switch (event.data.action) { - - case 'start': - _.swipeStart(event); - break; - - case 'move': - _.swipeMove(event); - break; - - case 'end': - _.swipeEnd(event); - break; - - } - - }; - - Slick.prototype.swipeMove = function(event) { - - var _ = this, - curLeft, swipeDirection, positionOffset, touches; - - touches = event.originalEvent !== undefined ? event.originalEvent.touches : null; - - if (!_.dragging || touches && touches.length !== 1) { - return false; - } - - curLeft = _.getLeft(_.currentSlide); - - _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX; - _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY; - - _.touchObject.swipeLength = Math.round(Math.sqrt( - Math.pow(_.touchObject.curX - _.touchObject.startX, 2))); - - swipeDirection = _.swipeDirection(); - - if (swipeDirection === 'vertical') { - return; - } - - if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) { - event.preventDefault(); - } - - positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1); - - if (_.options.vertical === false) { - _.swipeLeft = curLeft + _.touchObject.swipeLength * positionOffset; - } else { - _.swipeLeft = curLeft + (_.touchObject - .swipeLength * (_.$list.height() / _.listWidth)) * positionOffset; - } - - if (_.options.fade === true || _.options.touchMove === false) { - return false; - } - - if (_.animating === true) { - _.swipeLeft = null; - return false; - } - - _.setCSS(_.swipeLeft); - - }; - - Slick.prototype.swipeStart = function(event) { - - var _ = this, - touches; - - if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) { - _.touchObject = {}; - return false; - } - - if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) { - touches = event.originalEvent.touches[0]; - } - - _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX; - _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY; - - _.dragging = true; - - }; - - Slick.prototype.unfilterSlides = function() { - - var _ = this; - - if (_.$slidesCache !== null) { - - _.unload(); - - _.$slideTrack.children(this.options.slide).detach(); - - _.$slidesCache.appendTo(_.$slideTrack); - - _.reinit(); - - } - - }; - - Slick.prototype.unload = function() { - - var _ = this; - - $('.slick-cloned', _.$slider).remove(); - if (_.$dots) { - _.$dots.remove(); - } - if (_.$prevArrow && (typeof _.options.prevArrow !== 'object')) { - _.$prevArrow.remove(); - } - if (_.$nextArrow && (typeof _.options.nextArrow !== 'object')) { - _.$nextArrow.remove(); - } - _.$slides.removeClass( - 'slick-slide slick-active slick-visible').css('width', ''); - - }; - - Slick.prototype.updateArrows = function() { - - var _ = this, centerOffset; - - centerOffset = Math.floor(_.options.slidesToShow / 2) - - if (_.options.arrows === true && _.options.infinite !== - true && _.slideCount > _.options.slidesToShow) { - _.$prevArrow.removeClass('slick-disabled'); - _.$nextArrow.removeClass('slick-disabled'); - if (_.currentSlide === 0) { - _.$prevArrow.addClass('slick-disabled'); - _.$nextArrow.removeClass('slick-disabled'); - } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) { - _.$nextArrow.addClass('slick-disabled'); - _.$prevArrow.removeClass('slick-disabled'); - } else if (_.currentSlide > _.slideCount - _.options.slidesToShow + centerOffset && _.options.centerMode === true) { - _.$nextArrow.addClass('slick-disabled'); - _.$prevArrow.removeClass('slick-disabled'); - } - } - - }; - - Slick.prototype.updateDots = function() { - - var _ = this; - - if (_.$dots !== null) { - - _.$dots.find('li').removeClass('slick-active'); - _.$dots.find('li').eq(Math.floor(_.currentSlide / _.options.slidesToScroll)).addClass('slick-active'); - - } - - }; - - $.fn.slick = function(options) { - var _ = this; - return _.each(function(index, element) { - - element.slick = new Slick(element, options); - - }); - }; - - $.fn.slickAdd = function(slide, slideIndex, addBefore) { - var _ = this; - return _.each(function(index, element) { - - element.slick.addSlide(slide, slideIndex, addBefore); - - }); - }; - - $.fn.slickCurrentSlide = function() { - var _ = this; - return _.get(0).slick.getCurrent(); - }; - - $.fn.slickFilter = function(filter) { - var _ = this; - return _.each(function(index, element) { - - element.slick.filterSlides(filter); - - }); - }; - - $.fn.slickGoTo = function(slide, dontAnimate) { - var _ = this; - return _.each(function(index, element) { - - element.slick.changeSlide({ - data: { - message: 'index', - index: parseInt(slide) - } - }, dontAnimate); - - }); - }; - - $.fn.slickNext = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.changeSlide({ - data: { - message: 'next' - } - }); - - }); - }; - - $.fn.slickPause = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.autoPlayClear(); - element.slick.paused = true; - - }); - }; - - $.fn.slickPlay = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.paused = false; - element.slick.autoPlay(); - - }); - }; - - $.fn.slickPrev = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.changeSlide({ - data: { - message: 'previous' - } - }); - - }); - }; - - $.fn.slickRemove = function(slideIndex, removeBefore) { - var _ = this; - return _.each(function(index, element) { - - element.slick.removeSlide(slideIndex, removeBefore); - - }); - }; - - $.fn.slickRemoveAll = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.removeSlide(null, null, true); - - }); - }; - - $.fn.slickGetOption = function(option) { - var _ = this; - return _.get(0).slick.options[option]; - }; - - $.fn.slickSetOption = function(option, value, refresh) { - var _ = this; - return _.each(function(index, element) { - - element.slick.options[option] = value; - - if (refresh === true) { - element.slick.unload(); - element.slick.reinit(); - } - - }); - }; - - $.fn.slickUnfilter = function() { - var _ = this; - return _.each(function(index, element) { - - element.slick.unfilterSlides(); - - }); - }; - - $.fn.unslick = function() { - var _ = this; - return _.each(function(index, element) { - - if (element.slick) { - element.slick.destroy(); - } - - }); - }; - - $.fn.getSlick = function() { - var s = null; - var _ = this; - _.each(function(index, element) { - s = element.slick; - }); - - return s; - }; - -})); diff --git a/themes/blueprint/js/slick/slick.min.js b/themes/blueprint/js/slick/slick.min.js deleted file mode 100644 index ae481fab8676b4b4323045b9aea33be6603ecff5..0000000000000000000000000000000000000000 --- a/themes/blueprint/js/slick/slick.min.js +++ /dev/null @@ -1,18 +0,0 @@ -/* - _ _ _ _ - ___| (_) ___| | __ (_)___ -/ __| | |/ __| |/ / | / __| -\__ \ | | (__| < _ | \__ \ -|___/_|_|\___|_|\_(_)/ |___/ - |__/ - - Version: 1.3.15 - Author: Ken Wheeler - Website: http://kenwheeler.github.io - Docs: http://kenwheeler.github.io/slick - Repo: http://github.com/kenwheeler/slick - Issues: http://github.com/kenwheeler/slick/issues - - */ - -!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,g,e=this;if(e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(a,b){return'<button type="button" data-role="none">'+(b+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.paused=!1,e.positionProp=null,e.respondTo=null,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.windowWidth=0,e.windowTimer=null,e.options=a.extend({},e.defaults,d),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,f=e.options.responsive||null,f&&f.length>-1){e.respondTo=e.options.respondTo||"window";for(g in f)f.hasOwnProperty(g)&&(e.breakpoints.push(f[g].breakpoint),e.breakpointSettings[f[g].breakpoint]=f[g].settings);e.breakpoints.sort(function(a,b){return b-a})}e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.init(),e.checkResponsive()}var b=0;return c}(),b.prototype.addSlide=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateSlide=function(b,c){var d={},e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var f=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:f},e.options.speed)}e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}}):(e.applyTransition(),d[e.animType]=e.options.vertical===!1?"translate3d("+b+"px, 0px, 0px)":"translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this,d=null!=c.options.asNavFor?a(c.options.asNavFor).getSlick():null;null!=d&&d.slideHandler(b,!0)},b.prototype.applyTransition=function(a){var b=this,c={};c[b.transitionType]=b.options.fade===!1?b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:"opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>a.options.slidesToShow&&a.paused!==!0&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(0===a.currentSlide-1&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow=a(b.options.prevArrow),b.$nextArrow=a(b.options.nextArrow),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.appendTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled"))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(d='<ul class="'+b.options.dotsClass+'">',c=0;c<=b.getDotCount();c+=1)d+="<li>"+b.options.customPaging.call(this,b,c)+"</li>";d+="</ul>",b.$dots=a(d).appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("index",b)}),b.$slidesCache=b.$slides,b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),b.options.centerMode===!0&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.options.accessibility===!0&&b.$list.prop("tabIndex",0),b.setSlideClasses("number"==typeof this.currentSlide?this.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.checkResponsive=function(){var c,d,e,b=this,f=b.$slider.width(),g=window.innerWidth||a(window).width();if("window"===b.respondTo?e=g:"slider"===b.respondTo?e=f:"min"===b.respondTo&&(e=Math.min(g,f)),b.originalSettings.responsive&&b.originalSettings.responsive.length>-1&&null!==b.originalSettings.responsive){d=null;for(c in b.breakpoints)b.breakpoints.hasOwnProperty(c)&&e<b.breakpoints[c]&&(d=b.breakpoints[c]);null!==d?null!==b.activeBreakpoint?d!==b.activeBreakpoint&&(b.activeBreakpoint=d,b.options=a.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):(b.activeBreakpoint=d,b.options=a.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):null!==b.activeBreakpoint&&(b.activeBreakpoint=null,b.options=b.originalSettings,b.refresh())}},b.prototype.changeSlide=function(b,c){var f,g,h,i,j,d=this,e=a(b.target);switch(e.is("a")&&b.preventDefault(),h=0!==d.slideCount%d.options.slidesToScroll,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var k=0===b.data.index?0:b.data.index||a(b.target).parent().index()*d.options.slidesToScroll;if(i=d.getNavigableIndexes(),j=0,i[k]&&i[k]===k)if(k>i[i.length-1])k=i[i.length-1];else for(var l in i){if(k<i[l]){k=j;break}j=i[l]}d.slideHandler(k,!1,c);default:return}},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(){var b=this;b.autoPlayClear(),b.touchObject={},a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&"object"!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&"object"!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.parent().hasClass("slick-track")&&b.$slides.unwrap().unwrap(),b.$slides.removeClass("slick-slide slick-active slick-center slick-visible").removeAttr("index").css({position:"",left:"",top:"",zIndex:"",opacity:"",width:""}),b.$slider.removeClass("slick-slider"),b.$slider.removeClass("slick-initialized"),b.$list.off(".slick"),a(window).off(".slick-"+b.instanceUid),a(document).off(".slick-"+b.instanceUid)},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b,c){var d=this;d.cssTransitions===!1?(d.$slides.eq(b).css({zIndex:1e3}),d.$slides.eq(b).animate({opacity:1},d.options.speed,d.options.easing,c),d.$slides.eq(a).animate({opacity:0},d.options.speed,d.options.easing)):(d.applyTransition(b),d.applyTransition(a),d.$slides.eq(b).css({opacity:1,zIndex:1e3}),d.$slides.eq(a).css({opacity:0}),c&&setTimeout(function(){d.disableTransition(b),d.disableTransition(a),c.call()},d.options.speed))},b.prototype.filterSlides=function(a){var b=this;null!==a&&(b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.getCurrent=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)d=Math.ceil(a.slideCount/a.options.slidesToScroll);else for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d-1},b.prototype.getLeft=function(a){var c,d,g,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=-1*b.slideWidth*b.options.slidesToShow,e=-1*d*b.options.slidesToShow),0!==b.slideCount%b.options.slidesToScroll&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=-1*(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth,e=-1*(b.options.slidesToShow-(a-b.slideCount))*d):(b.slideOffset=-1*b.slideCount%b.options.slidesToScroll*b.slideWidth,e=-1*b.slideCount%b.options.slidesToScroll*d))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?-1*a*b.slideWidth+b.slideOffset:-1*a*d+e,b.options.variableWidth===!0&&(g=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=g[0]?-1*g[0].offsetLeft:0,b.options.centerMode===!0&&(g=b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=g[0]?-1*g[0].offsetLeft:0,c+=(b.$list.width()-g.outerWidth())/2)),c},b.prototype.getNavigableIndexes=function(){for(var a=this,b=0,c=0,d=[];b<a.slideCount;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlideCount=function(){var c,b=this;if(b.options.swipeToSlide===!0){var d=null;return b.$slideTrack.find(".slick-slide").each(function(c,e){return e.offsetLeft+a(e).outerWidth()/2>-1*b.swipeLeft?(d=e,!1):void 0}),c=Math.abs(a(d).attr("index")-b.currentSlide)}return b.options.slidesToScroll},b.prototype.init=function(){var b=this;a(b.$slider).hasClass("slick-initialized")||(a(b.$slider).addClass("slick-initialized"),b.buildOut(),b.setProps(),b.startLoad(),b.loadSlider(),b.initializeEvents(),b.updateArrows(),b.updateDots()),null!==b.options.onInit&&b.options.onInit.call(this,b)},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a("li",b.$dots).on("mouseenter.slick",function(){b.paused=!0,b.autoPlayClear()}).on("mouseleave.slick",function(){b.paused=!1,b.autoPlay()})},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),b.options.pauseOnHover===!0&&b.options.autoplay===!0&&(b.$list.on("mouseenter.slick",function(){b.paused=!0,b.autoPlayClear()}),b.$list.on("mouseleave.slick",function(){b.paused=!1,b.autoPlay()})),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.options.slide,b.$slideTrack).on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,function(){b.checkResponsive(),b.setPosition()}),a(window).on("resize.slick.slick-"+b.instanceUid,function(){a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.setPosition()},50))}),a("*[draggable!=true]",b.$slideTrack).on("dragstart",function(a){a.preventDefault()}),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show(),a.options.autoplay===!0&&a.autoPlay()},b.prototype.keyHandler=function(a){var b=this;37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:"next"}})},b.prototype.lazyLoad=function(){function g(b){a("img[data-lazy]",b).each(function(){var b=a(this),c=a(this).attr("data-lazy");b.load(function(){b.animate({opacity:1},200)}).css({opacity:0}).attr("src",c).removeAttr("data-lazy").removeClass("slick-loading")})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=e+b.options.slidesToShow,b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.postSlide=function(a){var b=this;null!==b.options.onAfterChange&&b.options.onAfterChange.call(this,b,a),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&b.autoPlay()},b.prototype.progressiveLazyLoad=function(){var c,d,b=this;c=a("img[data-lazy]",b.$slider).length,c>0&&(d=a("img[data-lazy]",b.$slider).first(),d.attr("src",d.attr("data-lazy")).removeClass("slick-loading").load(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}).error(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}))},b.prototype.refresh=function(){var b=this,c=b.currentSlide;b.destroy(),a.extend(b,b.initials),b.init(),b.changeSlide({data:{message:"index",index:c}},!0)},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.options.focusOnSelect===!0&&a(b.options.slide,b.$slideTrack).on("click.slick",b.selectHandler),b.setSlideClasses(0),b.setPosition(),null!==b.options.onReInit&&b.options.onReInit.call(this,b)},b.prototype.removeSlide=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit(),void 0)},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?a+"px":"0px",e="top"==b.positionProp?a+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var b=this;if(b.options.vertical===!1?b.options.centerMode===!0&&b.$list.css({padding:"0px "+b.options.centerPadding}):(b.$list.height(b.$slides.first().outerHeight(!0)*b.options.slidesToShow),b.options.centerMode===!0&&b.$list.css({padding:b.options.centerPadding+" 0px"})),b.listWidth=b.$list.width(),b.listHeight=b.$list.height(),b.options.vertical===!1&&b.options.variableWidth===!1)b.slideWidth=Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.width(Math.ceil(b.slideWidth*b.$slideTrack.children(".slick-slide").length));else if(b.options.variableWidth===!0){var c=0;b.slideWidth=Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.children(".slick-slide").each(function(){c+=Math.ceil(a(this).outerWidth(!0))}),b.$slideTrack.width(Math.ceil(c)+1)}else b.slideWidth=Math.ceil(b.listWidth),b.$slideTrack.height(Math.ceil(b.$slides.first().outerHeight(!0)*b.$slideTrack.children(".slick-slide").length));var d=b.$slides.first().outerWidth(!0)-b.$slides.first().width();b.options.variableWidth===!1&&b.$slideTrack.children(".slick-slide").width(b.slideWidth-d)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=-1*b.slideWidth*d,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:800,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:800,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:900,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),null!==a.options.onSetPosition&&a.options.onSetPosition.call(this,a)},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;b.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),d=b.$slider.find(".slick-slide"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active"):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active"):d.length<=b.options.slidesToShow?d.addClass("slick-active"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.selectHandler=function(b){var c=this,d=parseInt(a(b.target).parents(".slick-slide").attr("index"));return d||(d=0),c.slideCount<=c.options.slidesToShow?(c.$slider.find(".slick-slide").removeClass("slick-active"),c.$slides.eq(d).addClass("slick-active"),c.options.centerMode===!0&&(c.$slider.find(".slick-slide").removeClass("slick-center"),c.$slides.eq(d).addClass("slick-center")),c.asNavFor(d),void 0):(c.slideHandler(d),void 0)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,i=null,j=this;return b=b||!1,j.animating===!0&&j.options.waitForAnimate===!0||j.options.fade===!0&&j.currentSlide===a||j.slideCount<=j.options.slidesToShow?void 0:(b===!1&&j.asNavFor(a),d=a,i=j.getLeft(d),g=j.getLeft(j.currentSlide),j.currentLeft=null===j.swipeLeft?g:j.swipeLeft,j.options.infinite===!1&&j.options.centerMode===!1&&(0>a||a>j.getDotCount()*j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):j.options.infinite===!1&&j.options.centerMode===!0&&(0>a||a>j.slideCount-j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):(j.options.autoplay===!0&&clearInterval(j.autoPlayTimer),e=0>d?0!==j.slideCount%j.options.slidesToScroll?j.slideCount-j.slideCount%j.options.slidesToScroll:j.slideCount+d:d>=j.slideCount?0!==j.slideCount%j.options.slidesToScroll?0:d-j.slideCount:d,j.animating=!0,null!==j.options.onBeforeChange&&a!==j.currentSlide&&j.options.onBeforeChange.call(this,j,j.currentSlide,e),f=j.currentSlide,j.currentSlide=e,j.setSlideClasses(j.currentSlide),j.updateDots(),j.updateArrows(),j.options.fade===!0?(c!==!0?j.fadeSlide(f,e,function(){j.postSlide(e)}):j.postSlide(e),void 0):(c!==!0?j.animateSlide(i,function(){j.postSlide(e)}):j.postSlide(e),void 0)))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":"vertical"},b.prototype.swipeEnd=function(){var b=this;if(b.dragging=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.swipeLength>=b.touchObject.minSwipe)switch(b.swipeDirection()){case"left":b.slideHandler(b.currentSlide+b.getSlideCount()),b.currentDirection=0,b.touchObject={};break;case"right":b.slideHandler(b.currentSlide-b.getSlideCount()),b.currentDirection=1,b.touchObject={}}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var c,d,e,f,b=this;return f=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||f&&1!==f.length?!1:(c=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==f?f[0].pageX:a.clientX,b.touchObject.curY=void 0!==f?f[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),d=b.swipeDirection(),"vertical"!==d?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),e=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.swipeLeft=b.options.vertical===!1?c+b.touchObject.swipeLength*e:c+b.touchObject.swipeLength*(b.$list.height()/b.listWidth)*e,b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):(b.setCSS(b.swipeLeft),void 0)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return 1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,b.dragging=!0,void 0)},b.prototype.unfilterSlides=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&"object"!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&"object"!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.options.infinite!==!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.removeClass("slick-disabled"),a.$nextArrow.removeClass("slick-disabled"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled"),a.$nextArrow.removeClass("slick-disabled")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")):a.currentSlide>a.slideCount-a.options.slidesToShow+b&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled"),a.$prevArrow.removeClass("slick-disabled")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active"))},a.fn.slick=function(a){var c=this;return c.each(function(c,d){d.slick=new b(d,a)})},a.fn.slickAdd=function(a,b,c){var d=this;return d.each(function(d,e){e.slick.addSlide(a,b,c)})},a.fn.slickCurrentSlide=function(){var a=this;return a.get(0).slick.getCurrent()},a.fn.slickFilter=function(a){var b=this;return b.each(function(b,c){c.slick.filterSlides(a)})},a.fn.slickGoTo=function(a,b){var c=this;return c.each(function(c,d){d.slick.changeSlide({data:{message:"index",index:parseInt(a)}},b)})},a.fn.slickNext=function(){var a=this;return a.each(function(a,b){b.slick.changeSlide({data:{message:"next"}})})},a.fn.slickPause=function(){var a=this;return a.each(function(a,b){b.slick.autoPlayClear(),b.slick.paused=!0})},a.fn.slickPlay=function(){var a=this;return a.each(function(a,b){b.slick.paused=!1,b.slick.autoPlay()})},a.fn.slickPrev=function(){var a=this;return a.each(function(a,b){b.slick.changeSlide({data:{message:"previous"}})})},a.fn.slickRemove=function(a,b){var c=this;return c.each(function(c,d){d.slick.removeSlide(a,b)})},a.fn.slickRemoveAll=function(){var a=this;return a.each(function(a,b){b.slick.removeSlide(null,null,!0)})},a.fn.slickGetOption=function(a){var b=this;return b.get(0).slick.options[a]},a.fn.slickSetOption=function(a,b,c){var d=this;return d.each(function(d,e){e.slick.options[a]=b,c===!0&&(e.slick.unload(),e.slick.reinit())})},a.fn.slickUnfilter=function(){var a=this;return a.each(function(a,b){b.slick.unfilterSlides()})},a.fn.unslick=function(){var a=this;return a.each(function(a,b){b.slick&&b.slick.destroy()})},a.fn.getSlick=function(){var a=null,b=this;return b.each(function(b,c){a=c.slick}),a}}); \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/AbstractBase/login.phtml b/themes/blueprint/templates/Auth/AbstractBase/login.phtml deleted file mode 100644 index ebdab8ee4ec1136b8f0f5e3a6e3b9ab7d0aaa092..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/AbstractBase/login.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? $account = $this->auth()->getManager(); ?> -<? $sessionInitiator = $account->getSessionInitiator($this->serverUrl($this->url('myresearch-home'))); ?> -<? if (!$sessionInitiator): // display default login form if no login URL provided ?> - <form method="post" action="<?=$this->url('myresearch-home')?>" name="loginForm" id="loginForm"> - <?=$this->auth()->getLoginFields()?> - <input type="hidden" name="auth_method" value="<?=$account->getAuthMethod()?>"> - <input class="push-2 button" type="submit" name="processLogin" value="<?=$this->transEsc('Login')?>"/> - <div class="clear"></div> - </form> - <? - // Set up form validation: - $initJs = '$(document).ready(function() { $(\'#loginForm\').validate(); });'; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs, 'SET'); - ?> - <? if ($account->supportsCreation()): ?> - <a class="new_account" href="<?=$this->url('myresearch-account')?>?auth_method=<?=$account->getAuthMethod()?>"><?=$this->transEsc('Create New Account')?></a> - <? endif; ?> - <? if ($account->supportsRecovery()): ?> - <a class="forgot_password" href="<?=$this->url('myresearch-recover')?>?auth_method=<?=$account->getAuthMethod()?>"><?=$this->transEsc('Forgot Password')?></a> - <? endif; ?> -<? else: ?> - <a href="<?=$this->escapeHtmlAttr($sessionInitiator)?>"><?=$this->transEsc("Institutional Login")?></a> -<? endif; ?> diff --git a/themes/blueprint/templates/Auth/AbstractBase/logindesc.phtml b/themes/blueprint/templates/Auth/AbstractBase/logindesc.phtml deleted file mode 100644 index 9f4088f8d270f09bc536fa26d8dd35282a49294a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/AbstractBase/logindesc.phtml +++ /dev/null @@ -1 +0,0 @@ -<h3><?=$this->transEsc('Login')?></h3> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/AbstractBase/loginfields.phtml b/themes/blueprint/templates/Auth/AbstractBase/loginfields.phtml deleted file mode 100644 index 3398d2bf4a674fad8ba7fc0348da9833547cf94b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/AbstractBase/loginfields.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<label class="span-2" for="login_username"><?=$this->transEsc('Username')?>:</label> -<input id="login_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>" size="15" class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> -<br class="clear"/> -<label class="span-2" for="login_password"><?=$this->transEsc('Password')?>:</label> -<input id="login_password" type="password" name="password" size="15" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> -<br class="clear"/> diff --git a/themes/blueprint/templates/Auth/CAS/logindesc.phtml b/themes/blueprint/templates/Auth/CAS/logindesc.phtml deleted file mode 100644 index fab51a92a722fa166127618844ea2ac4bdf3c765..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/CAS/logindesc.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<h3><?=$this->transEsc('Institutional Login')?></h3> -<p><?=$this->transEsc('institutional_login_desc')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/ChoiceAuth/login.phtml b/themes/blueprint/templates/Auth/ChoiceAuth/login.phtml deleted file mode 100644 index b4482128d3e9295f047b37118a3763b873c92538..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/ChoiceAuth/login.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<p><?=$this->transEsc('choose_login_method')?></p> -<div id="authcontainer"> -<? foreach ($this->auth()->getManager()->getSelectableAuthOptions() as $loop=>$method):?> - <div class="authmethod<?=$loop?>"> - <? $this->auth()->getManager()->setAuthMethod($method) ?> - <?=$this->auth()->getLoginDesc() ?> - <?=$this->auth()->getLogin() ?> - </div> -<? endforeach ?> -</div> -<div class="clearer"></div> -<? $this->auth()->getManager()->setAuthMethod('ChoiceAuth') ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/Database/create.phtml b/themes/blueprint/templates/Auth/Database/create.phtml deleted file mode 100644 index b012608eca7dbdf2fae0b9300e8f4c3d03ff6f46..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Database/create.phtml +++ /dev/null @@ -1,18 +0,0 @@ -<label class="span-3" for="account_firstname"><?=$this->transEsc('First Name')?>:</label> -<input id="account_firstname" type="text" name="firstname" value="<?=$this->escapeHtmlAttr($this->request->get('firstname'))?>" size="30" - class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/><br class="clear"/> -<label class="span-3" for="account_lastname"><?=$this->transEsc('Last Name')?>:</label> -<input id="account_lastname" type="text" name="lastname" value="<?=$this->escapeHtmlAttr($this->request->get('lastname'))?>" size="30" - class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/><br class="clear"/> -<label class="span-3" for="account_email"><?=$this->transEsc('Email Address')?>:</label> -<input id="account_email" type="text" name="email" value="<?=$this->escapeHtmlAttr($this->request->get('email'))?>" size="30" - class="<?=$this->jqueryValidation(array('required'=>'This field is required', 'email'=>'Email address is invalid'))?>"/><br class="clear"/> -<label class="span-3" for="account_username"><?=$this->transEsc('Desired Username')?>:</label> -<input id="account_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>" size="30" - class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/><br class="clear"/> -<label class="span-3" for="account_password"><?=$this->transEsc('Password')?>:</label> -<input id="account_password" type="password" name="password" size="15" - class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/><br class="clear"/> -<label class="span-3" for="account_password2"><?=$this->transEsc('Password Again')?>:</label> -<input id="account_password2" type="password" name="password2" size="15" - class="<?=$this->jqueryValidation(array('required'=>'This field is required', 'equalTo'=>'Passwords do not match', 'equalToField'=>'#account_password'))?>"/><br class="clear"/> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/Database/logindesc.phtml b/themes/blueprint/templates/Auth/Database/logindesc.phtml deleted file mode 100644 index 10d39c2498b61e3e4b59cd9f9283eb0b6e3d1b34..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Database/logindesc.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<h3><?=$this->transEsc('Local Login')?></h3> -<p><?=$this->transEsc('local_login_desc')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/Database/newpassword.phtml b/themes/blueprint/templates/Auth/Database/newpassword.phtml deleted file mode 100644 index a5c74c252e178fbb69b468a89fe5016f295c4a4e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Database/newpassword.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? if (isset($this->username)): ?> - <label class="span-4"><?=$this->transEsc('Username') ?>:</label> - <input type="text" disabled value="<?=$this->username ?>"/><br/> -<? endif; ?> -<? if (isset($this->verifyold) && $this->verifyold || isset($this->oldpwd)): ?> - <label class="span-4"><?=$this->transEsc('old_password') ?>:</label> - <input type="password" name="oldpwd"/><br/> -<? endif; ?> -<label class="span-4"><?=$this->transEsc('new_password') ?>:</label> -<input type="password" name="password"/><br/> -<label class="span-4"><?=$this->transEsc('confirm_new_password') ?>:</label> -<input type="password" name="password2"/><br/> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/Database/recovery.phtml b/themes/blueprint/templates/Auth/Database/recovery.phtml deleted file mode 100644 index 60a1589712ffcb54f4472a1a825123162c4b25cb..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Database/recovery.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<label class="span-4"><?=$this->transEsc('recovery_by_username') ?>:</label> -<input type="text" name="username"/> <?=$this->translate('conjunction_or') ?> -<br/><br/> -<label class="span-4"><?=$this->transEsc('recovery_by_email') ?>:</label> -<input type="email" name="email"/><br/> -<?=$this->recaptcha()->html($this->useRecaptcha) ?> -<input type="submit" name="submit" value="<?=$this->transEsc('Recover Account') ?>"/> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/ILS/logindesc.phtml b/themes/blueprint/templates/Auth/ILS/logindesc.phtml deleted file mode 100644 index 73ac1374e787e6fcedcf9ed95a8293f66808ea10..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/ILS/logindesc.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<h3><?=$this->transEsc('Catalog Login')?></h3> -<p><?=$this->transEsc('catalog_login_desc')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/ILS/newpassword.phtml b/themes/blueprint/templates/Auth/ILS/newpassword.phtml deleted file mode 100644 index a5c74c252e178fbb69b468a89fe5016f295c4a4e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/ILS/newpassword.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? if (isset($this->username)): ?> - <label class="span-4"><?=$this->transEsc('Username') ?>:</label> - <input type="text" disabled value="<?=$this->username ?>"/><br/> -<? endif; ?> -<? if (isset($this->verifyold) && $this->verifyold || isset($this->oldpwd)): ?> - <label class="span-4"><?=$this->transEsc('old_password') ?>:</label> - <input type="password" name="oldpwd"/><br/> -<? endif; ?> -<label class="span-4"><?=$this->transEsc('new_password') ?>:</label> -<input type="password" name="password"/><br/> -<label class="span-4"><?=$this->transEsc('confirm_new_password') ?>:</label> -<input type="password" name="password2"/><br/> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/LDAP/logindesc.phtml b/themes/blueprint/templates/Auth/LDAP/logindesc.phtml deleted file mode 100644 index fab51a92a722fa166127618844ea2ac4bdf3c765..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/LDAP/logindesc.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<h3><?=$this->transEsc('Institutional Login')?></h3> -<p><?=$this->transEsc('institutional_login_desc')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/MultiILS/loginfields.phtml b/themes/blueprint/templates/Auth/MultiILS/loginfields.phtml deleted file mode 100644 index fd5dd3c1a39e80c5ecf84122be48d86aea76ff83..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/MultiILS/loginfields.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<label class="span-2" for="login_target"><?=$this->transEsc('login_target')?>:</label> -<?$currentTarget = $this->request->get('target'); if (!$currentTarget) $currentTarget = $this->auth()->getManager()->getDefaultLoginTarget();?> -<select id="login_target" name="target"> -<?foreach ($this->auth()->getManager()->getLoginTargets() as $target):?> - <option value="<?=$this->escapeHtmlAttr($target)?>"<?=($target == $currentTarget ? ' selected="selected"' : '')?>><?=$this->transEsc("source_$target", null, $target)?></option> -<? endforeach ?> -</select> -<br class="clear"/> -<label class="span-2" for="login_username"><?=$this->transEsc('Username')?>:</label> -<input id="login_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>" size="15" class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> -<br class="clear"/> -<label class="span-2" for="login_password"><?=$this->transEsc('Password')?>:</label> -<input id="login_password" type="password" name="password" size="15" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> -<br class="clear"/> diff --git a/themes/blueprint/templates/Auth/MultiILS/newpassword.phtml b/themes/blueprint/templates/Auth/MultiILS/newpassword.phtml deleted file mode 100644 index a5c74c252e178fbb69b468a89fe5016f295c4a4e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/MultiILS/newpassword.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? if (isset($this->username)): ?> - <label class="span-4"><?=$this->transEsc('Username') ?>:</label> - <input type="text" disabled value="<?=$this->username ?>"/><br/> -<? endif; ?> -<? if (isset($this->verifyold) && $this->verifyold || isset($this->oldpwd)): ?> - <label class="span-4"><?=$this->transEsc('old_password') ?>:</label> - <input type="password" name="oldpwd"/><br/> -<? endif; ?> -<label class="span-4"><?=$this->transEsc('new_password') ?>:</label> -<input type="password" name="password"/><br/> -<label class="span-4"><?=$this->transEsc('confirm_new_password') ?>:</label> -<input type="password" name="password2"/><br/> \ No newline at end of file diff --git a/themes/blueprint/templates/Auth/Shibboleth/login.phtml b/themes/blueprint/templates/Auth/Shibboleth/login.phtml deleted file mode 100644 index 3feb62a33fd7e3948fdb6324a1ed056932524397..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Shibboleth/login.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<? $account = $this->auth()->getManager(); ?> -<? $sessionInitiator = $account->getSessionInitiator($this->serverUrl($this->url('myresearch-home'))); ?> -<a href="<?=$this->escapeHtmlAttr($sessionInitiator)?>"><?=$this->transEsc("Institutional Login")?></a> diff --git a/themes/blueprint/templates/Auth/Shibboleth/logindesc.phtml b/themes/blueprint/templates/Auth/Shibboleth/logindesc.phtml deleted file mode 100644 index fab51a92a722fa166127618844ea2ac4bdf3c765..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Auth/Shibboleth/logindesc.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<h3><?=$this->transEsc('Institutional Login')?></h3> -<p><?=$this->transEsc('institutional_login_desc')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/Helpers/email-form-fields.phtml b/themes/blueprint/templates/Helpers/email-form-fields.phtml deleted file mode 100644 index e4bcfa8a5a7bf3f08ae1e855278a60eca95af20b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Helpers/email-form-fields.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<label class="displayBlock" for="email_to"><?=$this->transEsc('To')?>:</label> -<? $toValidations = ($this->maxRecipients == 1) ? array('required'=>'This field is required', 'email'=>'Email address is invalid') : array('required'=>'This field is required')?> -<input id="email_to" type="text" name="to" value="<?=isset($this->to) ? $this->to : ''?>" size="40" class="mainFocus <?=$this->jqueryValidation($toValidations)?>"/> -<? if ($this->maxRecipients != 1): ?> - <br /> - <?=$this->transEsc('email_multiple_recipients_note')?> - <? if ($this->maxRecipients > 1): ?> - <?=$this->transEsc('email_maximum_recipients_note', array('%%max%%' => $this->maxRecipients))?> - <? endif; ?> -<? endif; ?> -<? if (!$this->disableFrom): ?> - <label class="displayBlock" for="email_from"><?=$this->transEsc('From')?>:</label> - <input id="email_from" type="text" name="from" value="<?=isset($this->from) ? $this->from : ''?>" size="40" class="<?=$this->jqueryValidation(array('required'=>'This field is required', 'email'=>'Email address is invalid'))?>"/> -<? endif; ?> -<? if ($this->editableSubject): ?> - <label class="displayBlock" for="email_subject"><?=$this->transEsc('email_subject')?>:</label> - <input id="email_subject" type="text" name="subject" value="<?=isset($this->subject) ? $this->subject : ''?>" size="40" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> -<? endif; ?> -<label class="displayBlock" for="email_message"><?=$this->transEsc('Message')?>:</label> -<textarea id="email_message" name="message" rows="3" cols="40"><?=isset($this->message) ? $this->message : ''?></textarea> -<br/> -<?=$this->recaptcha()->html($this->useRecaptcha) ?> -<input class="button" type="submit" name="submit" value="<?=$this->transEsc('Send')?>"/> -<? if ($this->disableFrom && $this->userEmailInFrom): ?> - <input type="checkbox" id="ccme" name="ccself"/><label for="ccme"><?=$this->translate('send_email_copy_to_me'); ?></label> -<? endif; ?> diff --git a/themes/blueprint/templates/Helpers/openurl.phtml b/themes/blueprint/templates/Helpers/openurl.phtml deleted file mode 100644 index 9102c5f49b157e6d5264cf2c206a6b7d9e010c59..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Helpers/openurl.phtml +++ /dev/null @@ -1,33 +0,0 @@ -<? - $this->headScript()->appendFile("openurl.js"); - if ($this->openUrlEmbed) { - $classes = "fulltext openUrlEmbed openurl_id:{$this->openUrlId}" - . ($this->openUrlEmbedAutoLoad ? ' openUrlEmbedAutoLoad' : ''); - $class = ' class="' . $classes . '"'; - } elseif ($this->openUrlWindow) { - $class = ' class="fulltext openUrlWindow window_settings:' . $this->escapeHtmlAttr($this->openUrlWindow) . '"'; - } else { - $class = ''; - } -?> -<a href="<?=$this->escapeHtmlAttr($this->openUrlBase . '?' . $this->openUrl)?>"<?=$class?>> - <? /* put the openUrl here in a span (COinS almost) so we can retrieve it later */ ?> - <span title="<?=$this->escapeHtmlAttr($this->openUrl)?>" class="openUrl"></span> - <? if ($this->openUrlGraphic): ?> - <? - $style = ''; - if ($this->openUrlGraphicWidth) { - $style .= 'width:' . $this->escapeHtmlAttr($this->openUrlGraphicWidth) . 'px;'; - } - if ($this->openUrlGraphicHeight) { - $style .= 'height:' . $this->escapeHtmlAttr($this->openUrlGraphicHeight) . 'px;'; - } - ?> - <img src="<?=$this->escapeHtmlAttr($this->openUrlGraphic)?>" alt="<?=$this->transEsc('Get full text')?>" style="<?=$style?>" /> - <? else: ?> - <?=$this->transEsc('Get full text')?> - <? endif; ?> -</a> -<? if ($this->openUrlEmbed): ?> - <div id="openUrlEmbed<?=$this->openUrlId?>" class="resolver hide"><?=$this->transEsc('Loading')?>...</div> -<? endif; ?> diff --git a/themes/blueprint/templates/Helpers/pagination.phtml b/themes/blueprint/templates/Helpers/pagination.phtml deleted file mode 100644 index 02a3fab78ba590353967cb1771ae3d41a9e79f1a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Helpers/pagination.phtml +++ /dev/null @@ -1,61 +0,0 @@ -<!-- -See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination ---> -<?php if ($this->pageCount): ?> -<div class="paginationControl"> - -<!-- Previous page link --> -<?php if (isset($this->previous)): ?> - <? $newParams = $this->params; $newParams['page'] = $this->previous; ?> - <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> - < <?=$this->translate('Previous')?> - </a> | -<?php else: ?> - <span class="disabled">< <?=$this->translate('Previous')?></span> | -<?php endif; ?> - -<!-- First page link --> -<?php if (isset($this->first) && $this->first != $this->current): ?> - <? $newParams = $this->params; $newParams['page'] = $this->first; ?> - <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> - <?=$this->translate('First')?> - </a>| -<?php else: ?> - <span class="disabled"><?=$this->translate('First')?> </span>| -<?php endif; ?> - -<!-- Numbered page links --> -<?php foreach ($this->pagesInRange as $page): ?> - <?php if ($page != $this->current): ?> - <? $newParams = $this->params; $newParams['page'] = $page; ?> - <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> - <?php echo $page; ?> - </a> | - <?php else: ?> - <?php echo $page; ?> | - <?php endif; ?> -<?php endforeach; ?> - -<!-- Last page link --> -<?php if (isset($this->last) && $this->last != $this->current): ?> - <? $newParams = $this->params; $newParams['page'] = $this->last; ?> - <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> - <?=$this->translate('Last')?> - </a> - | -<?php else: ?> - <span class="disabled"><?=$this->translate('Last')?> </span>| -<?php endif; ?> - -<!-- Next page link --> -<?php if (isset($this->next)): ?> - <? $newParams = $this->params; $newParams['page'] = $this->next; ?> - <a href="<?= $this->currentPath() . '?' . http_build_query($newParams); ?>"> - <?=$this->translate('Next')?> > - </a> -<?php else: ?> - <span class="disabled"><?=$this->translate('Next')?> ></span> -<?php endif; ?> - -</div> -<?php endif; ?> diff --git a/themes/blueprint/templates/Recommend/AlphaBrowseLink.phtml b/themes/blueprint/templates/Recommend/AlphaBrowseLink.phtml deleted file mode 100644 index ff7aa235d05c00aded224a3ca119ba7c73bafeda..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/AlphaBrowseLink.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<? - $index = $this->recommend->getIndex(); - $from = $this->recommend->getQuery(); - $link = $this->translate( - 'alphabrowselink_html', - [ - '%%index%%' => $this->transEsc('browse_' . $index), - '%%from%%' => $this->escapeHtml($from), - '%%url%%' => $this->url('alphabrowse-home') - . '?from=' . urlencode($from) . '&source=' . urlencode($index) - ] - ); -?> -<div class="info"><?=$link?></div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/AuthorFacets.phtml b/themes/blueprint/templates/Recommend/AuthorFacets.phtml deleted file mode 100644 index a7b3d2cd13c2cacd1e8c2ebe67d3e77abb9f67f5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/AuthorFacets.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? if ($this->recommend->getResults()->getResultTotal() > 0): ?> - <? $similarAuthors = $this->recommend->getSimilarAuthors(); ?> - <? if (!empty($similarAuthors['list'])): ?> - <div class="authorbox"> - <p>Author Results for <strong><?=$this->escapeHtml($this->recommend->getSearchTerm()) ?></strong></p> - <div class="span-5"> - <? foreach($similarAuthors['list'] as $i => $author): ?> - <? if ($i == 5): ?> - <a href="<?=$this->url('author-search') . '?lookfor=' . urlencode($this->recommend->getSearchTerm()) ?>"><strong><?=$this->transEsc("see all") ?> <?=(isset($similarAuthors['count']) && $similarAuthors['count']) ? $similarAuthors['count'] : ''?> »</strong></a> - </div> - <div class="span-5 last"> - <? endif; ?> - <a style="display:inline-block;text-indent:-10px;padding-left:10px;" href="<?=$this->url('author-home') . '?author=' . urlencode($author['value'])?>"><?=$author['value'] ?><? /* count disabled -- uncomment to add: echo ' - ' . $author['count']; */ ?></a> - <? if ($i+1<count($similarAuthors['list'])): ?> - <br/> - <? endif; ?> - <? endforeach; ?> - </div> - <div class="clear"></div> - </div> - <? endif; ?> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/AuthorInfo.phtml b/themes/blueprint/templates/Recommend/AuthorInfo.phtml deleted file mode 100644 index 9609eb13f67a6dd577e2ef40479ccc120bf69201..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/AuthorInfo.phtml +++ /dev/null @@ -1,16 +0,0 @@ -<? $this->info = $this->recommend->getAuthorInfo() ?> -<? if (!empty($this->info)): ?> -<div class="authorbio"> - <h2><?=$this->info['name'] ?></h2> - - <? if (isset($this->info['image'])): ?> - <img src="<?=$this->info['image'] ?>" alt="<?=$this->escapeHtmlAttr($this->info['altimage']) ?>" width="150px" class="alignleft recordcover"/> - <? endif; ?> - - <?=preg_replace('/___baseurl___/', $this->url('search-results'), $this->info['description']) ?> - - <div class="providerLink"><a class="wikipedia" href="http://<?=$this->info['wiki_lang'] ?>.wikipedia.org/wiki/<?=$this->escapeHtmlAttr($this->info['name']/*url*/) ?>" target="new"><?=$this->transEsc('wiki_link') ?></a></div> - - <div class="clear"></div> -</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/AuthorityRecommend.phtml b/themes/blueprint/templates/Recommend/AuthorityRecommend.phtml deleted file mode 100644 index 5a7cbdbfb8b3d7804150cb462e2d4a0daaa15619..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/AuthorityRecommend.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - $data = $this->recommend->getRecommendations(); - $results = $this->recommend->getResults(); -?> -<? if (is_array($data) && !empty($data)): ?> - <div class="authoritybox"> - <div><strong><?=$this->transEsc('See also')?>:</strong></div> - <div> - <? for ($i = 0; $i < count($data); $i++): ?> - <? - // Generate a new search URL that replaces the user's current term with the authority term: - $url = $this->url($results->getOptions()->getSearchAction()) - . $results->getUrlQuery()->replaceTerm($results->getParams()->getDisplayQuery(), $data[$i]['heading']); - ?> - <a href="<?=$url?>"><?=$this->escapeHtml($data[$i]['heading'])?></a><? if ($i != count($data) - 1): ?>, <? endif; ?> - <? endfor; ?> - </div> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/CatalogResults.phtml b/themes/blueprint/templates/Recommend/CatalogResults.phtml deleted file mode 100644 index 38f433d42fac6b2ee38f46d4ab38d22907035f17..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/CatalogResults.phtml +++ /dev/null @@ -1,32 +0,0 @@ -<? $searchObject = $this->recommend->getResults(); $results = $searchObject->getResults(); if (!empty($results)): ?> -<div class="sidegroup"> - <h4><?=$this->transEsc('Catalog Results')?></h4> - - <ul class="similar"> - <? foreach ($results as $driver): ?> - <li> - <? $formats = $driver->getFormats(); $format = isset($formats[0]) ? $formats[0] : ''; ?> - <span class="<?=$this->record($driver)->getFormatClass($format)?>"> - <a href="<?=$this->recordLink()->getUrl($driver)?>" class="title"> - <?=$this->record($driver)->getTitleHtml()?> - </a> - </span> - <? $summAuthor = $driver->getPrimaryAuthor(); if (!empty($summAuthor)): ?> - <br /> - <?=$this->transEsc('By')?>: - <a href="<?=$this->record($driver)->getLink('author', $summAuthor)?>"><? - $summHighlightedAuthor = $driver->getHighlightedAuthor(); - echo !empty($summHighlightedAuthor) - ? $this->highlight($summHighlightedAuthor) - : $this->escapeHtml($summAuthor); - ?></a> - <? endif; ?> - <? $summDate = $driver->getPublicationDates(); if (!empty($summDate)): ?> - <br/><?=$this->transEsc('Published')?>: (<?=$this->escapeHtml($summDate[0])?>) - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - <p><a href="<?=$this->url($searchObject->getOptions()->getSearchAction()) . $searchObject->getUrlQuery()->setLimit($searchObject->getOptions()->getDefaultLimit())?>"><?=$this->transEsc('More catalog results')?>...</a></p> -</div> -<? endif ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/CollectionSideFacets.phtml b/themes/blueprint/templates/Recommend/CollectionSideFacets.phtml deleted file mode 100644 index 6eb163b306a2989607ce14aba99b530c23e8fa0c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/CollectionSideFacets.phtml +++ /dev/null @@ -1,38 +0,0 @@ -<? - $this->overrideSideFacetCaption = 'In This Collection'; -?> -<? if ($this->recommend->keywordFilterEnabled()): ?> - <? - $keywordFilter = $this->recommend->getKeywordFilter(); - if (!empty($keywordFilter)) { - $this->extraSideFacetFilters = array( - 'Keyword' => array( - array( - 'value' => $keywordFilter, - 'displayText' => $keywordFilter, - 'specialType' => 'keyword', - 'operator' => 'OR' - ) - ) - ); - } - ?> - <? ob_start() ?> - <dl class="narrowList navmenu"> - <dt><?=$this->transEsc('Keyword Filter')?></dt> - <dd style="padding: 0"> - <form method="get" action="" name="keywordFilterForm" id="keywordFilterForm" class="keywordFilterForm"> - <input id="keywordFilter_lookfor" type="text" name="lookfor" size="27" value="<?=$this->escapeHtmlAttr($keywordFilter)?>"/> - <? foreach ($this->recommend->getResults()->getParams()->getFilterList(true) as $field => $filters): ?> - <? foreach ($filters as $filter): ?> - <input type="hidden" name="filter[]" value="<?=$this->escapeHtmlAttr($filter['field'])?>:"<?=$this->escapeHtmlAttr($filter['value'])?>"" /> - <? endforeach; ?> - <? endforeach; ?> - <input type="submit" name="submit" value="<?=$this->transEsc('Set')?>"/> - </form> - </dd> - </dl> - <? $this->sideFacetExtraControls = ob_get_contents(); ?> - <? ob_end_clean(); ?> -<? endif; ?> -<?=$this->render('Recommend/SideFacets.phtml')?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/DPLATerms.phtml b/themes/blueprint/templates/Recommend/DPLATerms.phtml deleted file mode 100644 index 8df5a2cc8d58813d0548867b5ed34d89217050c0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/DPLATerms.phtml +++ /dev/null @@ -1,17 +0,0 @@ -<? $results = $this->recommend->getResults(); ?> -<? if(!empty($results)): ?> - <dl class="narrowList navmenu<? if(!$this->recommend->isCollapsed()): ?> open<? endif ?>"> - <dt class="facet_dpla">DPLA</dt> - <? foreach($results as $item): ?> - <dd> - <a href="<?=$item['link'] ?>" target="new"><?=$this->escapeHtml($item['title']) ?></a> - <? if(!empty($item['desc'])): ?> - <span title="<?=$item['desc'] ?>"><?=$this->escapeHtml($this->truncate($item['desc'], 50)) ?></span></br> - <? endif; ?> - <span style="font-size:85%;font-style:italic"> - (<?=$this->transEsc('Provider') ?>: <?=$this->escapeHtml($item['provider']) ?>) - </span> - </dd> - <? endforeach; ?> - </ul> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/EuropeanaResults.phtml b/themes/blueprint/templates/Recommend/EuropeanaResults.phtml deleted file mode 100644 index dee1a15902be9643d80dab491618a5d67de63787..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/EuropeanaResults.phtml +++ /dev/null @@ -1,32 +0,0 @@ -<? $data = $this->recommend->getResults(); if (is_array($data)): ?> - <div class="sidegroup rssResults"> - <div class="suggestionHeader"> - <a href="http://www.europeana.eu/portal/" title="Europeana.eu" target="_blank"> - <img class="suggestionLogo" src="<?=$this->imageLink(strtolower($data['feedTitle']) . '.png')?>"/> - </a> - </div> - <div class="clearer"></div> - <div> - <ul class="suggestion"> - <? $i = 0; foreach ($data['worksArray'] as $workKey => $work): ?> - <li class="suggestedResult <? (++$i % 2) ? 'alt ' : ''?>record<?=$i?>"> - <div class="resultitem"> - <? if (isset($work['enclosure'])): ?> - <span class="europeanaImg"><img src="<?=$this->escapeHtmlAttr($work['enclosure'])?>" id="europeanaImage<?=$this->escapeHtmlAttr($workKey)?>" style="display: none;" class="europeanaImage" onload="document.getElementById('europeanaImage<?=$this->escapeHtmlAttr($workKey)?>').style.display = 'inline';"/></span> - <? endif; ?> - <a href="<?=$this->escapeHtmlAttr($work['link'])?>" target="_blank"> - <span><?=$this->escapeHtml($this->truncate($work['title'], 90))?></span> - </a> - <div class="clearer"></div> - </li> - <? endforeach; ?> - </ul> - <p class="olSubjectMore"> - <a href="<?=$this->escapeHtmlAttr($data['sourceLink'])?>" title="<?=$this->escapeHtmlAttr($data['feedTitle'])?>" target="_blank"> - <?=$this->transEsc('more')?>... - </a> - </p> - </div> - </div> - <div class="clearer"></div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml b/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml deleted file mode 100644 index 9e36fdf0f814a2b0ba84958a79c37be6265fab1d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/EuropeanaResultsDeferred.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Set up Javascript for use below: - $loadJs = 'var url = path + "/AJAX/Recommend?' . $this->recommend->getUrlParams() . '";' - . "\$('#EuropeanaDeferredRecommend').load(url);"; -?> -<div id="EuropeanaDeferredRecommend"> - <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/ExpandFacets.phtml b/themes/blueprint/templates/Recommend/ExpandFacets.phtml deleted file mode 100644 index 7eb38ff8127a169d99ff9575b929c4ffae0f3790..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/ExpandFacets.phtml +++ /dev/null @@ -1,17 +0,0 @@ -<? - $expandFacetSet = $this->recommend->getExpandedSet(); - // Get empty search object to use as basis for parameter generation below: - $blankResults = $this->recommend->getEmptyResults(); -?> -<? if ($expandFacetSet): ?> - <div class="sidegroup"> - <? foreach ($expandFacetSet as $title=>$cluster): ?> - <h4><?=$this->transEsc($cluster['label']) ?></h4> - <ul class="bulleted"> - <? foreach ($cluster['list'] as $thisFacet): ?> - <li><a href="<?=$this->url('search-results') . $blankResults->getUrlQuery()->addFacet($title, $thisFacet['value'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a></li> - <? endforeach; ?> - </ul> - <? endforeach; ?> - </div> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/FacetCloud.phtml b/themes/blueprint/templates/Recommend/FacetCloud.phtml deleted file mode 100644 index e65b1bdd46c96e5a22fd712972b266d820b768c9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/FacetCloud.phtml +++ /dev/null @@ -1,28 +0,0 @@ -<? - $expandFacetSet = $this->recommend->getExpandedSet(); - // Get empty search object to use as basis for parameter generation below: - $blankResults = $this->recommend->getEmptyResults(); - $cloudLimit = $this->recommend->getFacetLimit(); -?> -<? if ($expandFacetSet): ?> - <div class="sidegroup"> - <? foreach ($expandFacetSet as $title=>$facets): ?> - <dl class="narrowList navmenu"> - <dt><?=$this->transEsc($facets['label']) ?></dt> - <? - foreach ($facets['list'] as $i => $facetItem) { - if ($i < $cloudLimit) { - echo (($i == 0) ? '' : ', ') - . '<a href="' . $blankResults->getUrlQuery()->addFacet($title, $facetItem['value']) . '">' - . $this->escapeHtml($facetItem['displayText']) - . '</a> (' . $this->escapeHtml($facetItem['count']) . ')'; - } else { - echo ', ...'; - break; - } - } - ?> - </dl> - <? endforeach; ?> - </div> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/FavoriteFacets.phtml b/themes/blueprint/templates/Recommend/FavoriteFacets.phtml deleted file mode 100644 index 13eafc7c0478cd4fbeb32adeaa103115f16a4ab0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/FavoriteFacets.phtml +++ /dev/null @@ -1,36 +0,0 @@ -<? $results = $this->recommend->getResults(); ?> -<div class="sidegroup"> - <? $sideFacetSet = $this->recommend->getFacetSet(); ?> - - <? if (isset($sideFacetSet['tags']) && !empty($sideFacetSet['tags']['list'])): ?> - <div class="sidegroup"> - <h4 class="tag"><?=$this->transEsc($sideFacetSet['tags']['label'])?></h4> - <? $filterList = $results->getParams()->getFilterList(true); - $tagFilterList = isset($filterList[$sideFacetSet['tags']['label']]) ? $filterList[$sideFacetSet['tags']['label']] : null; - if (!empty($tagFilterList)): ?> - <strong><?=$this->transEsc('Remove Filters')?></strong> - <ul class="filters"> - <? $field = $sideFacetSet['tags']['label']; - foreach ($tagFilterList as $filter): ?> - <? $removeLink = $this->currentPath().$results->getUrlQuery()->removeFacet($filter['field'], $filter['value']); ?> - <li> - <a href="<?=$removeLink?>"><img src="<?=$this->imageLink('silk/delete.png')?>" alt="<?=$this->transEsc('Delete') ?>"/></a> - <a href="<?=$removeLink?>"><?=$this->transEsc($field)?>: <?=$this->escapeHtml($filter['displayText'])?></a> - </li> - <? endforeach; ?> - </ul> - <? endif; ?> - <ul> - <? foreach ($sideFacetSet['tags']['list'] as $thisFacet): ?> - <li> - <? if ($thisFacet['isApplied']): ?> - <?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="<?=$this->transEsc('Selected') ?>"/> - <? else: ?> - <a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet('tags', $thisFacet['value'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> (<?=$this->escapeHtml($thisFacet['count'])?>) - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - </div> - <? endif; ?> -</div> diff --git a/themes/blueprint/templates/Recommend/OpenLibrarySubjects.phtml b/themes/blueprint/templates/Recommend/OpenLibrarySubjects.phtml deleted file mode 100644 index 540a990f1fca532bb5a84ee7699661ae62da2d65..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/OpenLibrarySubjects.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? $data = $this->recommend->getResult(); if (is_array($data)): ?> -<div class="sidegroup"> - <h4>Open Library <? /* Intentionally not translated -- this is a site name, not a phrase */ ?></h4> - <div><?=$this->transEsc('Results for')?> <?=$this->escapeHtml($data['subject'])?> ...</div> - <ul class="similar"> - <? foreach ($data['worksArray'] as $work): ?> - <li> - <a href="http://openlibrary.org<?=$work['key']?>" title="<?=$this->transEsc('Get full text')?>" target="_blank"> - <span class="olSubjectCover"> - <? if (isset($work['cover_id']) && !empty($work['cover_id'])): ?> - <img src="http://covers.openlibrary.org/b/<?=$this->escapeHtmlAttr($work['cover_id_type'])?>/<?=$this->escapeHtmlAttr($work['cover_id'])?>-S.jpg" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" /> - <? else: ?> - <img src="<?=$this->imageLink('noCover2.gif')?>" class="olSubjectImage" alt="<?=$this->escapeHtmlAttr($work['title'])?>" /> - <? endif; ?> - </span> - <span><?=$this->escapeHtml($this->truncate($work['title'], 50))?></span> - <? if (isset($work['mainAuthor'])): ?> - <span class="olSubjectAuthor"><?=$this->transEsc('by')?> <?=$this->escapeHtml($this->truncate($work['mainAuthor'], 40))?></span> - <? endif; ?> - </a> - <div class="clearer"></div> - </li> - <? endforeach; ?> - </ul> - <p class="olSubjectMore"> - <a href="http://openlibrary.org/subjects" title="Open Library" target="_blank"> - <?=$this->transEsc('more')?>... - </a> - </p> -</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml b/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml deleted file mode 100644 index e3c0de443f1c9a42edca3f2b41bba42a15744889..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/OpenLibrarySubjectsDeferred.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Set up Javascript for use below: - $loadJs = 'var url = path + "/AJAX/Recommend?' . $this->recommend->getUrlParams() . '";' - . "\$('#openLibraryDeferredRecommend').load(url);"; -?> -<div id="openLibraryDeferredRecommend"> - <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml b/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml deleted file mode 100644 index 770ccf9dbca226e15db9723b2b4debfa38ac7447..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/PubDateVisAjax.phtml +++ /dev/null @@ -1,27 +0,0 @@ -<? $visFacets = $this->recommend->getVisFacets(); ?> -<? if ($visFacets): ?> - - <? /* load jQuery flot */ ?> -<?$this->headScript()->appendFile('flot/excanvas.min.js', null, array('conditional' => 'IE')); - $this->headScript()->appendFile('flot/jquery.flot.min.js'); - $this->headScript()->appendFile('flot/jquery.flot.selection.min.js'); - $this->headScript()->appendFile('pubdate_vis.js'); ?> - - <? foreach ($visFacets as $facetField=>$facetRange): ?> - <div class="authorbox"> - <div id="datevis<?=$this->escapeHtml($facetField)?>xWrapper" style="display: none;"> - <strong><?=$this->transEsc($facetRange['label']) ?></strong> - <? /* space the flot visualisation */ ?> - <div id="datevis<?=$facetField ?>x" style="margin:0 10px;width:auto;height:80px;cursor:crosshair;"></div> - <div id="clearButtonText" style="display: none"><?=$this->transEsc('Clear') ?></div> - </div> - </div> - <? endforeach; ?> - <? - $js = "loadVis('" . $this->recommend->getFacetFields() . "', '" - . $this->recommend->getSearchParams() . "', path, " - . $this->recommend->getZooming() . ");"; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $js, 'SET'); - ?> - -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/RandomRecommend.phtml b/themes/blueprint/templates/Recommend/RandomRecommend.phtml deleted file mode 100644 index c01c79e2152cccd46e025a2fd6680f00763823bd..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/RandomRecommend.phtml +++ /dev/null @@ -1,39 +0,0 @@ -<? $recommend = $this->recommend->getResults(); if (count($recommend)> 0): ?> - - <div class="sidegroup"> - <h4><?=$this->transEsc("random_recommendation_title")?></h4> - <ul class="random <?=$this->recommend->getDisplayMode()?>"> - <? foreach ($recommend as $driver): ?> - <li> - - <?if($this->recommend->getDisplayMode() === "images" || $this->recommend->getDisplayMode() === "mixed"):?> - - <? /* Display thumbnail if appropriate: */ ?> - <?=$this->record($driver)->getCover('RandomRecommend', 'small:medium', $this->recordLink()->getUrl($driver)); ?> - - <?endif;?> - - <?if($this->recommend->getDisplayMode() === "standard" || $this->recommend->getDisplayMode() === "mixed"):?> - <? $formats = $driver->getFormats(); $format = isset($formats[0]) ? $formats[0] : ''; ?> - <span class="<?=$this->record($driver)->getFormatClass($format)?>"> - <a href="<?=$this->recordLink()->getUrl($driver)?>" class="title"> - <?=$this->record($driver)->getTitleHtml()?> - </a> - </span> - <? $summAuthor = $driver->getPrimaryAuthor(); if (!empty($summAuthor)): ?> - <br /> - <?=$this->transEsc('By')?>: - <a href="<?=$this->record($driver)->getLink('author', $summAuthor)?>"> - <?=$this->escapeHtml($summAuthor)?> - </a> - <? endif; ?> - <? $summDate = $driver->getPublicationDates(); if (!empty($summDate)): ?> - <br/><?=$this->transEsc('Published')?>: (<?=$this->escapeHtml($summDate[0])?>) - <? endif; ?> - <?endif;?> - </li> - <? endforeach; ?> - </ul> - - </div> -<?endif;?> diff --git a/themes/blueprint/templates/Recommend/ResultGoogleMapAjax.phtml b/themes/blueprint/templates/Recommend/ResultGoogleMapAjax.phtml deleted file mode 100644 index 61d2ded5398fb6a2f9abc329bccdf7b1b28ac87a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/ResultGoogleMapAjax.phtml +++ /dev/null @@ -1,200 +0,0 @@ -<? - $searchParams = $this->recommend->getSearchParams(); - - $this->headScript()->appendFile('https://maps.googleapis.com/maps/api/js?v=3.8&sensor=false&language='.$this->layout()->userLang); - $this->headScript()->appendFile('https://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.9/src/markerclusterer_packed.js'); -?> -<script type="text/javascript"> -/** - * Overriding clusterer default function for determining the label text and style - * for a cluster icon. - * - * @param {Array.<google.maps.Marker>} markers The array of represented by the cluster. - * @param {number} numStyles The number of marker styles available. - * @return {ClusterIconInfo} The information resource for the cluster. - * @constant - * @ignore - */ -MarkerClusterer.CALCULATOR = function (markers, numStyles) { - var index = 0; - var count = markers.length.toString(); - var dispText = 0; - for (calcMarker in markers){ - dispText = dispText + parseInt(markers[calcMarker].getTitle()); - } - var dv = dispText; - while (dv !== 0) { - dv = parseInt(dv / 10, 10); - index++; - } - - index = Math.min(index, numStyles); - return { - text: dispText.toString(), - index: index - }; -}; - -/** - * Overriding clusterer adding the icon to the DOM. - */ -ClusterIcon.prototype.onAdd = function () { - var cClusterIcon = this; - - this.div_ = document.createElement("div"); - this.div_.className = "clusterDiv"; - if (this.visible_) { - this.show(); - } - - this.getPanes().overlayMouseTarget.appendChild(this.div_); - - google.maps.event.addDomListener(this.div_, "click", function () { - var mc = cClusterIcon.cluster_.getMarkerClusterer(); - google.maps.event.trigger(mc, "click", cClusterIcon.cluster_); - google.maps.event.trigger(mc, "clusterclick", cClusterIcon.cluster_); // deprecated name - - // The default click handler follows. Disable it by setting - // the zoomOnClick property to false. - var mz = mc.getMaxZoom(); - if (mc.getZoomOnClick()) { - // Zoom into the cluster. - mc.getMap().fitBounds(cClusterIcon.cluster_.getBounds()); - // Don't zoom beyond the max zoom level - if (mz && (mc.getMap().getZoom() > mz)) { - mc.getMap().setZoom(mz + 1); - } - } - }); - - google.maps.event.addDomListener(this.div_, "mouseover", function () { - var mc = cClusterIcon.cluster_.getMarkerClusterer(); - google.maps.event.trigger(mc, "mouseover", cClusterIcon.cluster_); - }); - - google.maps.event.addDomListener(this.div_, "mouseout", function () { - var mc = cClusterIcon.cluster_.getMarkerClusterer(); - google.maps.event.trigger(mc, "mouseout", cClusterIcon.cluster_); - }); -}; - -/** - * Overriding the image path for ssl - * - * The default root name for the marker cluster images. - * - * @type {string} - * @constant - */ -MarkerClusterer.IMAGE_PATH = "https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m"; - -var markers; -var mc; -var markersData; -var latlng; -var myOptions; -var map; -var infowindow = new google.maps.InfoWindow({maxWidth: 480, minWidth: 480}); - function initialize() { - var url = path+'/AJAX/json?method=getMapData&<?=$searchParams ?>'; - //alert('go: ' + url); - $.getJSON(url, function(data){ - //alert(data); - markersData = data['data']; - if (markersData.length <= 0){ - return; - } - latlng = new google.maps.LatLng(0, 0); - myOptions = { - zoom: 1, - center: latlng, - mapTypeControl: true, - mapTypeControlOptions: { - style: google.maps.MapTypeControlStyle.DROPDOWN_MENU - }, - mapTypeId: google.maps.MapTypeId.ROADMAP - }; - map = new google.maps.Map(document.getElementById("map_canvas"), - myOptions); - //mc = new MarkerClusterer(map); - showMarkers(); - var checkbx = document.getElementById("useCluster"); - var wrap = document.getElementById("mapWrap"); - wrap.style.display = "block"; - checkbx.style.display = "block"; - }); - } - function showMarkers(){ - deleteOverlays(); - if(mc != null) { - mc.clearMarkers(); - } - markers = []; - - for (var i = 0; i<markersData.length; i++){ - var disTitle = markersData[i].title; - var iconSize = "0.5"; - if (disTitle>99){ - iconSize = "0.75"; - } - var markerImg = "https://chart.googleapis.com/chart?chst=d_map_spin&chld="+iconSize+"|0|F44847|10|_|" + disTitle; - var labelXoffset = 1 + disTitle.length * 4; - var latLng = new google.maps.LatLng(markersData[i].lat , markersData[i].lon) - var marker = new google.maps.Marker({//MarkerWithLabel - loc_facet: markersData[i].location_facet, - position: latLng, - map: map, - title: disTitle, - icon: markerImg - }); - google.maps.event.addListener(marker, 'click', function() { - infowindow.close(); - //infowindow.setContent(this.html); - //infowindow.open(map, this); - load_content(this); - }); - markers.push(marker); - } - if (document.getElementById("usegmm").checked) { - mc = new MarkerClusterer(map, markers); - } else { - for (var i = 0; i < markers.length; i++) { - map.addOverlay(markers[i]); - } - } - } - function load_content(marker){ - var xmlhttp; - if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safarihttp://www.google.ie/search?hl=en&cp=10&gs_id=2i&xhr=t&q=php+cast+string+to+int&pq=php+int+to+string&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.&biw=1876&bih=1020&um=1&ie=UTF-8&tbm=isch&source=og&sa=N&tab=wi - xmlhttp=new XMLHttpRequest(); - } - else{// code for IE6, IE5 - xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); - } - var ajaxUrl = path+'/AJAX/ResultGoogleMapInfo?limit=5&filter[]=long_lat%3A"' + marker.loc_facet+'"&<?=$searchParams ?>'; - xmlhttp.open("GET", ajaxUrl, false); - xmlhttp.send(); - - infowindow.setContent(xmlhttp.responseText); - infowindow.open(map, marker); - } - function deleteOverlays() { - if (markers) { - for (i in markers) { - markers[i].setMap(null); - } - markers.length = 0; - } - } - function refreshMap() { - showMarkers(); - } - - google.maps.event.addDomListener(window, 'load', initialize); -</script> -<div id="mapWrap" onload="initialize()" style="width: 710px; height: 479px; display : none"> - <div id="map_canvas" style="width: 100%; height: 100%"></div> - <div class="mapClusterToggle" id="useCluster" style="display:none;"> - <input type="checkbox" id="usegmm" checked="true" onclick="refreshMap();" style="vertical-align:middle;"></input><label for="usegmm" style="padding-left:2px;"><?=$this->transEsc('google_map_cluster_points') ?></label> - </div> -</div> diff --git a/themes/blueprint/templates/Recommend/SideFacets.phtml b/themes/blueprint/templates/Recommend/SideFacets.phtml deleted file mode 100644 index a0d84b97ce07a8e0dee08a7b6d7030d7370233af..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SideFacets.phtml +++ /dev/null @@ -1,96 +0,0 @@ -<? $results = $this->recommend->getResults(); ?> -<div class="sidegroup"> - <? if ($results->getResultTotal() > 0): ?><h4><?=$this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search')?></h4><? endif; ?> - <? $checkboxFilters = $results->getParams()->getCheckboxFacets(); if (count($checkboxFilters) > 0): ?> - <? foreach ($checkboxFilters as $current): ?> - <div class="checkboxFilter<?=($results->getResultTotal() < 1 && !$current['selected'] && !$current['alwaysVisible']) ? ' hide' : ''?>"> - <input type="checkbox" name="filter[]" value="<?=$this->escapeHtmlAttr($current['filter'])?>" - <?=$current['selected'] ? 'checked="checked"' : ''?> id="<?=$this->escapeHtmlAttr(str_replace(' ', '', $current['desc']))?>" - onclick="document.location.href='<?=$current['selected'] ? $results->getUrlQuery()->removeFilter($current['filter']) : $results->getUrlQuery()->addFilter($current['filter'])?>';" /> - <label for="<?=$this->escapeHtmlAttr(str_replace(' ', '', $current['desc']))?>"><?=$this->transEsc($current['desc'])?></label> - </div> - <? endforeach; ?> - <? endif; ?> - <? $collapsedFacets = $this->recommend->getCollapsedFacets() ?> - <? $hierarchicalFacets = $this->recommend->getHierarchicalFacets() ?> - <? $extraFilters = isset($this->extraSideFacetFilters) ? $this->extraSideFacetFilters : array(); ?> - <? $filterList = $this->recommend->getVisibleFilters($extraFilters); if (!empty($filterList)): ?> - <strong><?=$this->transEsc('Remove Filters')?></strong> - <ul class="filters"> - <? foreach ($filterList as $field => $filters): ?> - <? foreach ($filters as $i => $filter): ?> - <? - $index = isset($filter['field']) ? array_search($filter['field'], $collapsedFacets) : false; - if ($index !== false) { - unset($collapsedFacets[$index]); // Open if we have a match - } - if (isset($filter['specialType']) && $filter['specialType'] == 'keyword') { - $removeLink = $this->currentPath().$results->getUrlQuery()->replaceTerm($filter['value'], ''); - } else { - $removeLink = $this->currentPath().$results->getUrlQuery()->removeFacet($filter['field'], $filter['value'], true, $filter['operator']); - } - if ($filter['displayText'] == '[* TO *]') $filter['displayText'] = $this->translate('filter_wildcard'); - ?> - <li> - <a href="<?=$removeLink?>"><img src="<?=$this->imageLink('silk/delete.png')?>" alt="Delete"/></a> - <a href="<?=$removeLink?>"><? if ($filter['operator'] == 'NOT') echo $this->transEsc('NOT') . ' '; if ($filter['operator'] == 'OR' && $i > 0) echo $this->transEsc('OR') . ' '; ?><?=$this->transEsc($field)?>: <?=$this->escapeHtml($filter['displayText'])?></a> - </li> - <? endforeach; ?> - <? endforeach; ?> - </ul> - <? endif; ?> - <?= isset($this->sideFacetExtraControls) ? $this->sideFacetExtraControls : '' ?> - <? $sideFacetSet = $this->recommend->getFacetSet(); $rangeFacets = $this->recommend->getAllRangeFacets(); ?> - <? if (!empty($sideFacetSet) && $results->getResultTotal() > 0): ?> - <? foreach ($sideFacetSet as $title => $cluster): ?> - <? $hierarchical = in_array($title, $hierarchicalFacets); ?> - <? $allowExclude = $this->recommend->excludeAllowed($title); ?> - <? if (isset($rangeFacets[$title])): ?> - <? if ($rangeFacets[$title]['type'] == 'date'): ?> - <? /* Load the publication date slider UI widget */ $this->headScript()->appendFile('pubdate_slider.js'); ?> - <? /* Set extra text input attributes */ $extraInputAttribs = 'maxlength="4" class="yearbox" '; ?> - <? else: ?> - <? /* No extra attributes by default */ $extraInputAttribs = ''; ?> - <? endif; ?> - <form action="" name="<?=$this->escapeHtmlAttr($title)?>Filter" id="<?=$this->escapeHtmlAttr($title)?>Filter"> - <?=$results->getUrlQuery()->asHiddenFields(array('page' => '/./', 'filter' => "/^{$title}:.*/"))?> - <input type="hidden" name="<?=$this->escapeHtmlAttr($rangeFacets[$title]['type'])?>range[]" value="<?=$this->escapeHtmlAttr($title)?>"/> - <fieldset class="publishDateLimit" id="<?=$this->escapeHtmlAttr($title)?>"> - <legend><?=$this->transEsc($cluster['label'])?></legend> - <label for="<?=$this->escapeHtmlAttr($title)?>from"><?=$this->transEsc('date_from')?>:</label> - <input type="text" size="4" name="<?=$this->escapeHtmlAttr($title)?>from" id="<?=$this->escapeHtmlAttr($title)?>from" value="<?=isset($rangeFacets[$title]['values'][0])?$this->escapeHtmlAttr($rangeFacets[$title]['values'][0]):''?>" <?=$extraInputAttribs?>/> - <label for="<?=$this->escapeHtmlAttr($title)?>to"><?=$this->transEsc('date_to')?>:</label> - <input type="text" size="4" name="<?=$this->escapeHtmlAttr($title)?>to" id="<?=$this->escapeHtmlAttr($title)?>to" value="<?=isset($rangeFacets[$title]['values'][1])?$this->escapeHtmlAttr($rangeFacets[$title]['values'][1]):''?>" <?=$extraInputAttribs?>/> - <div id="<?=$this->escapeHtmlAttr($title)?>Slider" class="<?=$this->escapeHtmlAttr($rangeFacets[$title]['type'])?>Slider"></div> - <input type="submit" value="<?=$this->transEsc('Set')?>" id="<?=$this->escapeHtmlAttr($title)?>goButton"/> - </fieldset> - </form> - <? else: ?> - <dl class="narrowList navmenu<? if(!in_array($title, $collapsedFacets)): ?> open<? endif ?>"> - <dt class="facet_<?=$this->escapeHtmlAttr($title)?>"><?=$this->transEsc($cluster['label'])?></dt> - <? $i = 0; foreach ($cluster['list'] as $thisFacet): ?> - <? if (++$i == 6): ?> - <dd id="more<?=$this->escapeHtmlAttr($title)?>"><a href="#" onclick="moreFacets('<?=$this->escapeHtmlAttr($title)?>'); return false;"><?=$this->transEsc('more')?> ...</a></dd> - </dl> - <dl class="narrowList navmenu offscreen<? if(!in_array($title, $collapsedFacets)): ?> open<? endif ?>" id="narrowGroupHidden_<?=$this->escapeHtmlAttr($title)?>"> - <? endif; ?> - <? $indent = $hierarchical - ? str_pad('', 4 * $thisFacet['level'] * 6, ' ', STR_PAD_LEFT) - : ''; ?> - <dd> - <? if ($thisFacet['isApplied']): ?> - <a class="facet<?=$thisFacet['operator'] ?> applied" href="<?=$this->currentPath().$results->getUrlQuery()->removeFacet($title, $thisFacet['value'], true, $thisFacet['operator']) ?>"><?=$indent?><?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="Selected"/></a> - <? else: ?> - <a class="facet<?=$thisFacet['operator'] ?>" href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], $thisFacet['operator'])?>"><?=$indent?><?=$this->escapeHtml($thisFacet['displayText'])?></a> (<?=$this->localizedNumber($thisFacet['count'])?>) - <? if ($allowExclude): ?> - <a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], 'NOT')?>" title="<?=$this->transEsc('exclude_facet')?>"><img src="<?=$this->imageLink('fugue/cross-small.png')?>" alt="Delete"/></a> - <? endif; ?> - <? endif; ?> - </dd> - <? endforeach; ?> - <? if ($i > 5): ?><dd><a href="#" onclick="lessFacets('<?=$this->escapeHtmlAttr($title)?>'); return false;"><?=$this->transEsc('less')?> ...</a></dd><? endif; ?> - </dl> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> -</div> diff --git a/themes/blueprint/templates/Recommend/SpellingSuggestions.phtml b/themes/blueprint/templates/Recommend/SpellingSuggestions.phtml deleted file mode 100644 index 1f9f7cb5b81c6cd585174b20bd82efbfc3a5213b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SpellingSuggestions.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? - $results = $this->recommend->getResults(); - $label = $results->getResultTotal() > 0 - ? '<strong>' . $this->transEsc('spell_suggest') . '</strong>:' - : $this->transEsc('nohit_spelling') . ':'; - $suggestions = $this->search()->renderSpellingSuggestions($label, $results, $this); -?> -<? if (!empty($suggestions)): ?> - <div class="authorbox"> - <?=$suggestions?> - </div> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/SummonBestBets.phtml b/themes/blueprint/templates/Recommend/SummonBestBets.phtml deleted file mode 100644 index 3302226bb5ab23f8d4de157b955d1deec90666a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonBestBets.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<? $summonBestBets = $this->recommend->getResults(); if (!empty($summonBestBets)): ?> -<div class="authorbox"> - <? foreach ($summonBestBets as $current): ?> - <p> - <? if (isset($current['link']) && !empty($current['link'])):?> - <a href="<?=$this->escapeHtmlAttr($current['link'])?>"><?=$this->escapeHtml($current['title'])?></a> - <? else: ?> - <b><?=$this->escapeHtml($current['title'])?></b> - <? endif; ?> - <br/><?=$current['description']?> - </p> - <? endforeach; ?> -</div> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/SummonBestBetsDeferred.phtml b/themes/blueprint/templates/Recommend/SummonBestBetsDeferred.phtml deleted file mode 100644 index a71a85673111d7615032b4818d961116320f2e2e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonBestBetsDeferred.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Set up Javascript for use below: - $loadJs = 'var url = path + "/AJAX/Recommend?' . $this->recommend->getUrlParams() . '";' - . "\$('#SummonDeferredBestBets').load(url);"; -?> -<div id="SummonDeferredBestBets"> - <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SummonDatabases.phtml b/themes/blueprint/templates/Recommend/SummonDatabases.phtml deleted file mode 100644 index 507840f253d1ed4a9266f5c5ff48a3732988f5a0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonDatabases.phtml +++ /dev/null @@ -1,8 +0,0 @@ -<? $summonDatabases = $this->recommend->getResults(); if (!empty($summonDatabases)): ?> -<div class="authorbox"> - <p><?=$this->transEsc('summon_database_recommendations')?></p> - <? foreach ($summonDatabases as $current): ?> - <p><a href="<?=$this->escapeHtmlAttr($current['link'])?>"><?=$this->escapeHtml($current['title'])?></a><br/><?=$this->escapeHtml($current['description'])?></p> - <? endforeach; ?> -</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SummonDatabasesDeferred.phtml b/themes/blueprint/templates/Recommend/SummonDatabasesDeferred.phtml deleted file mode 100644 index dfc029e22934f5855e946803855c63f371b2061c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonDatabasesDeferred.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Set up Javascript for use below: - $loadJs = 'var url = path + "/AJAX/Recommend?' . $this->recommend->getUrlParams() . '";' - . "\$('#SummonDeferredDatabases').load(url);"; -?> -<div id="SummonDeferredDatabases"> - <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SummonResults.phtml b/themes/blueprint/templates/Recommend/SummonResults.phtml deleted file mode 100644 index 1e5f7ef5fa8cc01acada09c123e396d2034b4fc2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonResults.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? $searchObject = $this->recommend->getResults(); $results = $searchObject->getResults(); if (!empty($results)): ?> -<div class="sidegroup"> - <h4><?=$this->transEsc('Summon Results')?></h4> - - <ul class="similar"> - <? foreach ($results as $driver): ?> - <li> - <? $formats = $driver->getFormats(); $format = isset($formats[0]) ? $formats[0] : ''; ?> - <span class="<?=$this->record($driver)->getFormatClass($format)?>"> - <a href="<?=$this->recordLink()->getUrl($driver)?>" class="title"> - <?=$this->record($driver)->getTitleHtml()?> - </a> - </span> - <span style="font-size: .8em"> - <? $summAuthor = $driver->getPrimaryAuthor(); if (!empty($summAuthor)): ?> - <br /> - <?=$this->transEsc('by')?> - <a href="<?=$this->record($driver)->getLink('author', $summAuthor)?>"><? - $summHighlightedAuthor = $driver->getHighlightedAuthor(); - echo !empty($summHighlightedAuthor) - ? $this->highlight($summHighlightedAuthor) - : $this->escapeHtml($summAuthor); - ?></a> - <? endif; ?> - </span> - </li> - <? endforeach; ?> - </ul> - <p><a href="<?=$this->url($searchObject->getOptions()->getSearchAction()) . $searchObject->getUrlQuery()->setLimit($searchObject->getOptions()->getDefaultLimit())?>"><?=$this->transEsc('More Summon results')?>...</a></p> -</div> -<? endif ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml b/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml deleted file mode 100644 index ea9b1f32e2c298f2b7c321265afe3ffb4b630da5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonResultsDeferred.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Set up Javascript for use below: - $loadJs = 'var url = path + "/AJAX/Recommend?' . $this->recommend->getUrlParams() . '";' - . "\$('#SummonDeferredRecommend').load(url);"; -?> -<div id="SummonDeferredRecommend"> - <p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> - <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $loadJs, 'SET')?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SummonTopics.phtml b/themes/blueprint/templates/Recommend/SummonTopics.phtml deleted file mode 100644 index 076c8895617d1d2a1943e75eb9674d7deff45f1e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SummonTopics.phtml +++ /dev/null @@ -1,18 +0,0 @@ -<? $summonTopics = $this->recommend->getResults(); if (!empty($summonTopics)): $summonTopics = current($summonTopics); ?> -<div class="authorbox"> - <p><b><?=$this->transEsc('Suggested Topics')?></b></p> - <? if (isset($summonTopics['title'])): ?> - <p> - <a href="<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($summonTopics['title'])?>%22"><?=$this->escapeHtml($summonTopics['title'])?></a><br /> - <? if (isset($summonTopics['snippet'])): ?><?=$this->escapeHtml($summonTopics['snippet'])?><? endif; ?> - <? if (isset($summonTopics['sourceLink'])): ?><a href="<?=$this->escapeHtmlAttr($summonTopics['sourceLink'])?>"><?=$this->transEsc('more')?>...</a><? endif; ?> - </p> - <? endif; ?> - <? if (isset($summonTopics['relatedTopics']) && !empty($summonTopics['relatedTopics'])): ?> - <p> - <b><?=$this->transEsc('wcterms_exact')?>:</b> - <? foreach ($summonTopics['relatedTopics'] as $i => $topic): ?><? if ($i > 0): ?>, <? endif; ?><a href="<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($topic['title'])?>%22"><?=$this->escapeHtml($topic['title'])?></a><? endforeach; ?> - </p> - <? endif; ?> -</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SwitchQuery.phtml b/themes/blueprint/templates/Recommend/SwitchQuery.phtml deleted file mode 100644 index bf0db3cc02e6a14c61a2b2d8af3a5d68d7006fa5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SwitchQuery.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? $suggestions = $this->recommend->getSuggestions(); if (!empty($suggestions)): ?> - <div class="info"> - <p><?=$this->transEsc('switchquery_intro')?></p> - <ul> - <? foreach ($suggestions as $desc => $query): ?> - <li><?=$this->transEsc($desc)?>: <a href="<?=$this->recommend->getResults()->getUrlQuery()->setSearchTerms($query)?>"><?=$this->escapeHtml($query)?></a>.</li> - <? endforeach; ?> - </ul> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/SwitchType.phtml b/themes/blueprint/templates/Recommend/SwitchType.phtml deleted file mode 100644 index 48bf99dce3722173bf2a92fc20b228ca8e44946d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/SwitchType.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<? if ($handler = $this->recommend->getNewHandler()): ?> - <div class="info"> - <?=$this->transEsc('widen_prefix')?> - <a href="<?=$this->recommend->getResults()->getUrlQuery()->setHandler($handler)?>"><?=$this->transEsc($this->recommend->getNewHandlerName())?></a>. - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/TopFacets.phtml b/themes/blueprint/templates/Recommend/TopFacets.phtml deleted file mode 100644 index 702e0222ff09020d5a4572d743a4fcad579af590..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/TopFacets.phtml +++ /dev/null @@ -1,48 +0,0 @@ -<? - $topFacetSet = $this->recommend->getTopFacetSet(); - $topFacetSettings = $this->recommend->getTopFacetSettings(); - $results = $this->recommend->getResults(); -?> -<? if (isset($topFacetSet)): ?> - <? foreach($topFacetSet as $title => $cluster): ?> - <? $allowExclude = $this->recommend->excludeAllowed($title); ?> - <div class="authorbox"> - <strong><?=$this->transEsc($cluster['label'])?></strong><?=$this->transEsc("top_facet_suffix") ?> - <? $iter=1;$corner=$topFacetSettings['rows']*$topFacetSettings['cols']; ?> - <? foreach($cluster['list'] as $thisFacet): ?> - <? if ($iter == $corner+1): ?> - <br class="clear"/> - <a id="more<?=$this->escapeHtml($title)?>" href="#" onclick="moreFacets('<?=$this->escapeHtml($title)?>'); return false;"><?=$this->transEsc('more') ?> ...</a> - <div class="offscreen" id="narrowGroupHidden_<?=$this->escapeHtml($title)?>"> - <br/> - <strong><?=$this->transEsc('top_facet_additional_prefix').$this->transEsc($cluster['label']) ?></strong><?=$this->transEsc("top_facet_suffix") ?> - <? endif; ?> - <? if ($iter % $topFacetSettings['cols'] == 1): ?><br class="clear"/><? endif; ?> - <span class="span-<?=floor(16/$topFacetSettings['cols'])?>"> - <? if ($thisFacet['isApplied']): - if (isset($thisFacet['specialType']) && $thisFacet['specialType'] == 'keyword') { - $removeLink = $this->currentPath().$results->getUrlQuery()->replaceTerm($thisFacet['value'], ''); - } else { - $removeLink = $this->currentPath().$results->getUrlQuery()->removeFacet($title, $thisFacet['value'], true, $thisFacet['operator']); - } ?> - <a href="<?=$removeLink ?>" class="applied"> - <?=$this->escapeHtml($thisFacet['displayText'])?> <img src="<?=$this->imageLink('silk/tick.png')?>" alt="<?=$this->transEsc('Selected') ?>"/> - </a> - <? else: ?> - <a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], $thisFacet['operator'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> (<?=$this->localizedNumber($thisFacet['count']) ?>) - <? if ($allowExclude): ?> - <a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], 'NOT')?>"><?=$this->transEsc('exclude_facet')?></a> - <? endif; ?> - <? endif; ?> - </span> - <? if (count($cluster['list']) > $corner && $iter == count($cluster['list'])): ?> - <br class="clear"/> - <a href="#" onclick="lessFacets('<?=$title ?>'); return false;"><?=$this->transEsc('less') ?> ...</a> - </div> - <? endif; ?> - <? $iter++; ?> - <? endforeach; ?> - <div class="clear"></div> - </div> - <? endforeach; ?> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/VisualFacets.phtml b/themes/blueprint/templates/Recommend/VisualFacets.phtml deleted file mode 100644 index 81b8624d5bc722223f98bf971642866f94154377..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/VisualFacets.phtml +++ /dev/null @@ -1,253 +0,0 @@ -<? - $this->headScript()->appendFile("d3.js"); - - $visualFacetSet = $this->recommend->getPivotFacetSet(); - - if (isset($visualFacetSet->children)) { - $flarechildren = array(); - - foreach ($visualFacetSet->children as $toplevelfacet) { - $toplevelinfo = array(); - $toplevelchildren = array(); - $toplevelinfo['name'] = $toplevelfacet['value']; - $toplevelinfo['field'] = $toplevelfacet['field']; - $toplevelinfo['size'] = $toplevelfacet['count']; - foreach($toplevelfacet['pivot'] as $secondlevelfacet) { - $secondlevelinfo = array(); - $secondlevelinfo['name'] = $secondlevelfacet['value']; - $secondlevelinfo['size'] = $secondlevelfacet['count']; - $secondlevelinfo['field'] = $secondlevelfacet['field']; - $secondlevelinfo['parentlevel'] = $toplevelinfo['name']; - array_push($toplevelchildren, $secondlevelinfo); - } - $toplevelinfo['children'] = $toplevelchildren; - array_push($flarechildren, $toplevelinfo); - } - - $visualFacetSet->children = $flarechildren; - } -?> - -<? if (isset($visualFacetSet)): ?> - - <script type="text/javascript"> - - <? $pivotdata = json_encode($visualFacetSet); - - echo "var pivotdata = " . $pivotdata . ";"; ?> - - jQuery(document).ready(function(data) { - - if (!d3.select("#visualResults").empty()) { - - $('.limitSelect').css('display', 'none'); - - $('.sortSelector').css('display', 'none'); - - $('.pagination').css('display', 'none'); - - $('.bulkActionButtons').css('display', 'none'); - - // Color scheme developed using the awesome site - // http://colorschemedesigner.com - // Hue degrees (in order) -- 90, 105, 120, 135, 150 - // Even numbered degrees are 100% brightness, 50% saturation - // Odd numbered degrees are 100% brightness, 25% saturation - - var color = d3.scale.ordinal() - .range([ - "#A385FF", "#FF7975", "#C2FFE7", "#FFE775", - "#75FF7E", "#FFD4C2", "#E0C7FF", "#D1FF75", - "#D17DFF", "#FFB475", "#FFFF75", "#FF75C3", - "#FFD175", "#C6E6FF", "#FFE5C2", "#FFC2FF", - "#FFFF75", "#84A9FF", "#F5FFC2", "#FFFAC2", - "#AAAAAA"]) - .domain(["A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V", "Z"]); - - var div = d3.select("#visualResults") - .style("width", "710px") - .style("height", "575px") - .style("position", "absolute"); - - var treemap = d3.layout.treemap() - .size([710, 575]) - .sticky(true) - .mode("squarify") - .padding(0,0,0,18) - .value(function(d) { return d.size; }); - - // Total count of items matching the search; - // will be used below to do math to size the boxes properly. - - var totalbooks = pivotdata.total; - - $.each(pivotdata.children, function(facetindex, facetdata) { - //Saving the original size in a "count" variable - //that won't be resized. - - facetdata.count = facetdata.size; - - // If a first-level container contains less than 10% - // of the total results, don't show any child containers - // within that first-level container. You won't be able - // to read them and they'll just clutter up the display. - - if (facetdata.size < totalbooks * .1) { - var onechild = new Object(); - onechild.name = facetdata.name; - onechild.size = facetdata.size; - onechild.count = facetdata.count; - onechild.field = facetdata.field; - delete pivotdata.children[facetindex].children; - pivotdata.children[facetindex].children = new Array(); - pivotdata.children[facetindex].children.push(onechild); - } else { - - // Used to keep count of the total number of child - // facets under a first-level facet. Used for - // properly sizing multi-valued data. - - var totalbyfirstpivot = 0; - $.each(facetdata.children, function(childindex, childdata) { - totalbyfirstpivot += childdata.size; - }); - - // Now we roll back through the "facetdata.children" - // object (which contains all of the child facets in - // a top-level facet) and combine the smallest X% of - // squares into a "More topics" box. - // - // And then size the child boxes based on facetdata.size, - // which, as long as our top-level field is not - // multi-valued, is accurately sized for the number of - // items in the first-level container. - // - // If a single child facet contains less than 5% of the - // child facet results in a top-level container, roll it - // into a "More topics" box. Unless the top-level container - // is between 15% and 30% of the entire results; in that - // case, only roll up topic facets that are less than 2% of - // the box. If the top-level container is more than 30% but - // less than 100% of the entire results, only roll up child - // facets that are less than 1% of the facet results in that - // container. If the top-level container is 100% of the - // entire results, don't roll up any child facets. - - var morefacet = 0; - var morecount = 0; - var resizedData = new Array(); - $.each(facetdata.children, function(childindex, childdata) { - if (childdata && (childdata.size < totalbyfirstpivot * .05 && facetdata.size < totalbooks * .15 || childdata.size < totalbyfirstpivot * .02 && facetdata.size < totalbooks * .3 || childdata.size < totalbyfirstpivot * .01 && facetdata.size != totalbooks)) { - morefacet += childdata.size; - morecount++; - } else if (childdata) { - - //If it's not going into the "more" facet, save the - //count in a new variable, scale the size properly, - //and add it to a new array - - var childobject = childdata; - childobject.count = childdata.size; - childobject.size = childdata.size/totalbyfirstpivot * facetdata.size; - resizedData.push(childobject); - } - }); - - delete pivotdata.children[facetindex].children; - - // Stop! Using this algorithm, sometimes all of the topics wind - // up in a "More" facet, which leads to a confusing display. If - // that happens, just display the top level, with no topic - // boxes inside the callnumber-first box. - - if (morefacet == totalbyfirstpivot) { - var onechild = new Object(); - onechild.name = facetdata.name; - onechild.size = facetdata.size; - onechild.count = facetdata.count; - onechild.field = facetdata.field; - pivotdata.children[facetindex].children = new Array(); - pivotdata.children[facetindex].children.push(onechild); - } else { - - //If we're keeping the "More" facet, let's size it properly - - pivotdata.children[facetindex].children = resizedData; - var more = new Object(); - more.name = "<?=$this->transEsc('More Topics')?>"; - more.size = morefacet/totalbyfirstpivot * facetdata.size; - more.field = "topic_facet"; - more.count = morecount; - more.parentlevel = facetdata.name; - pivotdata.children[facetindex].children.push(more); - } - } - }); - - var node = div.datum(pivotdata).selectAll(".node") - .data(treemap.nodes) - .enter().append("a") - .attr("href", function(d) { - if (d.parentlevel && d.name != "<?=$this->transEsc('More Topics')?>") { - return window.location + "&filter[]=" + d.field + ":\"" + d.name + "\"&filter[]=callnumber-first:\"" + d.parentlevel + "\"&view=list"; - } else if (d.name == "<?=$this->transEsc('More Topics')?>") { - return window.location + "&filter[]=callnumber-first:\"" + d.parentlevel + "\""; - } else if (d.name != "theData") { - return window.location + "&filter[]=" + d.field + ":\"" + d.name + "\""; - } - }) - .append("div") - .attr("class", function(d) { return d.field == "callnumber-first" ? "node toplevel" : "node secondlevel" }) - .attr("id", function(d) { return d.name.replace(/\s+/g, ''); }) - .call(position) - .style("background", function(d) { return d.children ? color(d.name.substr(0,1)) : null; }) - .call(settitle) - .style("z-index", function(d) { return d.field == "topic_facet" ? "1" : "0" }) - .attr("tabindex", 0) - .append("div") - .call(settext) - .attr("class", function(d) { return d.children ? "label" : "notalabel";} ) - .insert("div") - .call(setscreenreader); - } - -}); - -function position() { - this.style("left", function(d) { return d.parentlevel ? d.x + 3 + "px" : d.x + "px"; }) - .style("top", function(d) { return d.parentlevel ? d.y + 3 + "px" : d.y + "px"; }) - .style("width", function(d) { return d.parentlevel ? Math.max(0, d.dx - 4) + "px" : Math.max(0, d.dx - 1) + "px"; }) - .style("height", function(d) { return d.parentlevel ? Math.max(0, d.dy - 4) + "px" : Math.max(0, d.dy -1) + "px"; }); -} - -function settext() { - this.text(function(d) { - if (!d.children && d.field == "callnumber-first") {return "";} - if (d.field == "callnumber-first") {return d.name + " (" + d.count + ")"; } - if (d.field == "topic_facet" && d.name == "<?=$this->transEsc('More Topics')?>") {var topics = "<?=$this->translate('more_topics')?>"; return topics.replace("%%count%%", d.count); } - if (d.field == "topic_facet") {return d.name + " (" + d.count + ")"; } - }); -} - -function setscreenreader() { - this.attr("class", "offscreen") - .text(function(d) { - if (d.field == "topic_facet") { - return "<?=$this->transEsc('visual_facet_parent')?> " + d.parentlevel; - } else { - return ""; - } - }); -} - -function settitle() { - this.attr("title", function(d) { - if (d.field == "callnumber-first") {return d.name + " (" + d.count + " <?=$this->transEsc('items')?>)"; } - if (d.field == "topic_facet" && d.name == "<?=$this->transEsc('More Topics')?>") {var topics = "<?=$this->translate('more_topics')?>"; return topics.replace("%%count%%", d.count); } - if (d.field == "topic_facet") {var on_topic = "<?=$this->translate('on_topic')?>"; return d.name + " (" + on_topic.replace("%%count%%", d.count) + ")"; } - }); -} - -</script> - -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/WebResults.phtml b/themes/blueprint/templates/Recommend/WebResults.phtml deleted file mode 100644 index 055b21a3617be2295913a250402992ca1e3b4a87..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/WebResults.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? $searchObject = $this->recommend->getResults(); $results = $searchObject->getResults(); if (!empty($results)): ?> -<div class="sidegroup"> - <h4><?=$this->transEsc('Library Web Search')?></h4> - - <ul class="similar"> - <? foreach ($results as $driver): ?> - <li> - <a href="<?=$this->escapeHtmlAttr($driver->getUrl())?>" class="title"> - <?=$this->record($driver)->getTitleHtml()?> - </a> - <? $snippet = $driver->getHighlightedSnippet(); ?> - <? $summary = $driver->getSummary(); ?> - <? if (!empty($snippet)): ?> - <br /><?=$this->highlight($snippet['snippet'])?> - <? elseif (!empty($summary)): ?> - <br /><?=$this->escapeHtml($summary[0])?> - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - <p><a href="<?=$this->url($searchObject->getOptions()->getSearchAction()) . $searchObject->getUrlQuery()->setLimit($searchObject->getOptions()->getDefaultLimit())?>"><?=$this->transEsc('Find More')?>...</a></p> -</div> -<? endif ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Recommend/WorldCatIdentities.phtml b/themes/blueprint/templates/Recommend/WorldCatIdentities.phtml deleted file mode 100644 index 5943891209592df06110c2756369adcecc98c2c5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/WorldCatIdentities.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? $worldCatIdentities = $this->recommend->getIdentities(); if (!empty($worldCatIdentities)): ?> - <div class="authorbox"> - <h3><?=$this->transEsc('Authors Related to Your Search')?></h3> - <dl> - <? $i = 0; foreach ($worldCatIdentities as $author => $subjects): ?> - <? if (++$i == 4): ?> - <dd id="moreWCIdents"><a href="#" onclick="moreFacets('WCIdents'); return false;"><?=$this->transEsc('more')?> ...</a></dd> - </dl> - <dl class="offscreen" id="narrowGroupHidden_WCIdents"> - <? endif; ?> - <dd>• <a href="<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($author)?>%22&type=Author"><?=$this->escapeHtml($author)?></a> - <? if (count($subjects) > 0): ?> - <dl> - <dd><?=$this->transEsc('Related Subjects')?>:</dd> - <? $j = 0; foreach ($subjects as $subj): ?> - <? if (++$j == 3): ?> - <dd id="moreWCIdents<?=$i?>"><a href="#" onclick="moreFacets('WCIdents<?=$i?>'); return false;"><?=$this->transEsc('more')?> ...</a></dd> - </dl> - <dl class="offscreen" id="narrowGroupHidden_WCIdents<?=$i?>"> - <? endif; ?> - <dd>• <a href="<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($subj)?>%22&type=Subject"><?=$this->escapeHtml($subj)?></a></dd> - <? endforeach; ?> - <? if ($j > 2): ?><dd><a href="#" onclick="lessFacets('WCIdents<?=$i?>'); return false;"><?=$this->transEsc('less')?> ...</a></dd><? endif; ?> - </dl> - <? endif; ?> - </dd> - <? endforeach; ?> - <? if ($i > 3): ?><dd><a href="#" onclick="lessFacets('WCIdents'); return false;"><?=$this->transEsc('less')?> ...</a></dd><? endif; ?> - </dl> - </div> -<? endif; ?> diff --git a/themes/blueprint/templates/Recommend/WorldCatTerms.phtml b/themes/blueprint/templates/Recommend/WorldCatTerms.phtml deleted file mode 100644 index 29c7571cc608305d02030a1b6c7e810d5858a923..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Recommend/WorldCatTerms.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? $worldCatTerms = $this->recommend->getTerms(); if (!empty($worldCatTerms)): ?> -<div class="authorbox"> - <h3><?=$this->transEsc('Subject Recommendations')?></h3> - <? $i = 0; foreach ($worldCatTerms as $type => $section): ?> - <div class="span-5<?=(++$i == count($worldCatTerms)) ? ' last' : ''?>"> - <dl> - <dt><?=$this->transEsc('wcterms_' . $type)?></dt> - <? $j = 0; foreach ($section as $subj): ?> - <? if (++$j == 4): ?> - <dd id="moreWCTerms<?=$this->escapeHtml($type)?>"><a href="#" onclick="moreFacets('WCTerms<?=$this->escapeHtml($type)?>'); return false;"><?=$this->transEsc('more')?> ...</a></dd> - </dl> - <dl class="offscreen" id="narrowGroupHidden_WCTerms<?=$this->escapeHtml($type)?>"> - <? endif; ?> - <dd>• <a href="<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($subj)?>%22&type=Subject"><?=$this->escapeHtml($subj)?></a></dd> - <? endforeach; ?> - <? if ($j > 3): ?><dd><a href="#" onclick="lessFacets('WCTerms<?=$this->escapeHtml($type)?>'); return false;"><?=$this->transEsc('less')?> ...</a></dd><? endif; ?> - </dl> - </div> - <? endforeach; ?> - <div class="clear"></div> -</div> -<? endif; ?> diff --git a/themes/blueprint/templates/RecordDriver/AbstractBase/previewdata.phtml b/themes/blueprint/templates/RecordDriver/AbstractBase/previewdata.phtml deleted file mode 100644 index 6b9cb54ea1fd589852cfd05b738943cbd293b6b7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/AbstractBase/previewdata.phtml +++ /dev/null @@ -1,74 +0,0 @@ -<? - $previews = isset($this->config->Content->previews) - ? explode(',', $this->config->Content->previews) : array(); - if (!empty($previews)) { - $idClasses = $this->record($this->driver)->getPreviewIds(); - - // If we found at least one identifier, we can insert the data - $html = ''; - if (!empty($idClasses)) { - // Convert to string: - $idClasses = implode(' ', $idClasses); - - // Loop through configured options and build appropriate HTML: - foreach ($previews as $current) { - switch (trim(strtolower($current))) { - case 'google': - $spanClass = 'googlePreviewSpan'; - // specify link vs. tab - $link_options = ''; - if (isset($this->config->Content->GoogleOptions->link) - && $this->config->Content->GoogleOptions->link) { - $link_options = 'link:' . strtolower(str_replace(' ', '', - $this->config->Content->GoogleOptions->link)); - } - $tab_options = ''; - if (isset($this->config->Content->GoogleOptions->tab) - && $this->config->Content->GoogleOptions->tab) { - $tab_options = 'tab:' . strtolower(str_replace(' ', '', - $this->config->Content->GoogleOptions->tab)); - } - $options = ($link_options && $tab_options) - ? "$link_options;$tab_options" - : "$link_options$tab_options"; - // maintain previous behavior and default - if (!$link_options && !$tab_options) { - $options = 'link:full,partial'; - if (isset($this->config->Content->GoogleOptions) - && is_string($this->config->Content->GoogleOptions)) { - $options = 'link:' . strtolower(str_replace(' ', '', - $this->config->Content->GoogleOptions)); - } - } - break; - case 'openlibrary': - $spanClass = 'olPreviewSpan'; - $options = isset($this->config->Content->OpenLibraryOptions) - ? str_replace(' ', '', $this->config->Content->OpenLibraryOptions) - : "full,partial"; - break; - case 'hathitrust': - $spanClass = 'hathiPreviewSpan'; - $options = isset($this->config->Content->HathiRights) - ? str_replace(' ', '', $this->config->Content->HathiRights) - : "pd,ic-world"; - break; - default: - $spanClass = $options = false; - break; - } - if ($spanClass) { - $html .= '<span class="' . $spanClass . '__' . $options . '"></span>'; - } - } - - // If we built some HTML, we should load the supporting Javascript and - // add the necessary identifier code: - if (!empty($html)) { - $html .= '<span class="previewBibkeys ' . $idClasses . '"></span>'; - $this->headScript()->appendFile("preview.js"); - echo $html; - } - } - } -?> diff --git a/themes/blueprint/templates/RecordDriver/AbstractBase/previewlink.phtml b/themes/blueprint/templates/RecordDriver/AbstractBase/previewlink.phtml deleted file mode 100644 index 083577fd2d0a5aded1fe11d40a5ac671dd487968..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/AbstractBase/previewlink.phtml +++ /dev/null @@ -1,53 +0,0 @@ -<? - $previews = isset($this->config->Content->previews) - ? explode(',', $this->config->Content->previews) : array(); - if (!empty($previews)) { - $idClasses = $this->record($this->driver)->getPreviewIds(); - // If we found at least one identifier, we can build the placeholder HTML: - $html = ''; - if (!empty($idClasses)) { - // Convert to string: - $idClasses = implode(' ', $idClasses); - - // Loop through previews and build appropriate HTML: - foreach ($previews as $current) { - switch (trim(strtolower($current))) { - case 'google': - $name = 'Google Books'; - $divClass = 'googlePreviewDiv'; - $linkClass = 'previewGBS'; - $icon = 'https://www.google.com/intl/' . $this->layout()->userLang . '/googlebooks/images/gbs_preview_button1.png'; - break; - case 'openlibrary': - $name = 'Open Library'; - $divClass = 'olPreviewDiv'; - $linkClass = 'previewOL'; - $icon = $this->imageLink('preview_ol.gif'); - break; - case 'hathitrust': - $name = 'HathiTrust'; - $divClass = 'hathiPreviewDiv'; - $linkClass = 'previewHT'; - $icon = $this->imageLink('preview_ht.gif'); - break; - default: - $name = $divClass = $linkClass = $icon = false; - break; - } - if ($name) { - $title = $this->transEsc('Preview from') . ' ' . $name; - $html .= '<div class="' . $divClass . '">' - . '<a title="' . $title . '" class="hide ' . $linkClass . ' ' . $idClasses . '" target="_blank">' - . '<img src="' . $icon . '" alt="' . $this->transEsc('Preview') . '" />' - . '</a>' - . '</div>'; - } - } - - // javascript included in previewdata template - if (!empty($html)) { - echo $html; - } - } - } -?> diff --git a/themes/blueprint/templates/RecordDriver/EDS/core.phtml b/themes/blueprint/templates/RecordDriver/EDS/core.phtml deleted file mode 100644 index cb28f81de0c626a0cbf449e7835b6ead85db9643..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EDS/core.phtml +++ /dev/null @@ -1,109 +0,0 @@ -<? $this->headLink()->appendStylesheet('EDS.css'); ?> -<? - $items = $this->driver->getItems(); - $dbLabel = $this->driver->getDbLabel(); - $thumb = $this->driver->getThumbnail('medium'); - $pubType = $this->driver->getPubType(); - $customLinks = $this->driver->getCustomLinks(); - $accessLevel = $this->driver->getAccessLevel(); - $restrictedView = empty($accessLevel) ? false : true; -?> -<div class="span-13"> - <h1> - <?=$this->driver->getTitle()?> - </h1> - - <table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Bibliographic Details')?>"> - <? foreach ($items as $key => $item): ?> - <? if (!empty($item['Data'])): ?> - <tr valign="top"> - <th width="150"><?=$this->transEsc($item['Label'])?>:</th> - <td><?=$this->driver->linkUrls($item['Data'])?></td> - </tr> - <? endif; ?> - <? endforeach; ?> - - <? if ($dbLabel): ?> - <tr valign="top"> - <th width="150"><?=$this->transEsc('Database')?>:</th> - <td><?=$this->escapeHtml($dbLabel)?></td> - </tr> - <? endif; ?> - - <?if ($this->driver->hasHTMLFullTextAvailable() && !$restrictedView): - $fullText = $this->driver->getHtmlFullText();?> - <tr id="html" valign="top"> - <td colspan="2" style="padding:10px 0; border: 0"> - <?=$fullText?> - </td> - </tr> - <? elseif ($this->driver->hasHTMLFullTextAvailable() && $restrictedView): ?> - <tr id="html" valign="top"> - <td colspan="2" style="padding:10px 0; border: 0"> - <p> - <?=$this->transEsc('Full text is not displayed to guests')?> - <br/> - <a class="login" href="<?=$this->url('myresearch-home')?>"> - <strong><?=$this->transEsc('Login for full access')?></strong> - </a> - </p> - </td> - </tr> - <? endif; ?> - </table> -</div> - -<div class="span-4 last"> - <? if ($thumb): ?> - <img src="<?=$this->escapeHtmlAttr($thumb)?>" class="summcover" alt="<?=$this->transEsc('Cover Image')?>"/> - <? else: ?> - <span class="summcover pt-icon pt-<?=$this->driver->getPubTypeId()?>"></span> - <? endif; ?> - <? if ($pubType): ?> - <p class="clearer"><?=$this->transEsc($pubType)?></p> - <? endif; ?> - - <div class="external-links"> - <? $pLink = $this->driver->getPLink(); - if($pLink): ?> - <span> - <a href="<?=$this->escapeHtmlAttr($pLink)?>"> - <?=$this->transEsc('View in EDS')?> - </a> - </span><br /> - <? endif; ?> - <? $pdfLink = $this->driver->getPdfLink(); - if ($pdfLink): ?> - <span> - <a href="<?=$pdfLink?>" class="icon pdf fulltext"> - <?=$this->transEsc('PDF Full Text')?> - </a> - </span><br /> - <? endif; ?> - <? if ($this->driver->hasHTMLFullTextAvailable()): ?> - <span> - <a href="<?=$this->recordLink()->getUrl($this->driver, 'fulltext')?>#html" class="icon html fulltext"> - <?=$this->transEsc('HTML Full Text')?> - </a> - </span><br /> - <? endif; ?> - <? if (!empty($customLinks)): ?> - <span> - <div class="custom-links"> - <? foreach ($customLinks as $customLink): ?> - <? $url = isset($customLink['Url']) ? $customLink['Url'] : ''; - $mot = isset($customLink['MouseOverText'])? $customLink['MouseOverText'] : ''; - $icon = isset ($customLink['Icon']) ? $customLink['Icon'] : ''; - $name = isset($customLink['Name']) ? $customLink['Name'] : '';?> - <span> - <a href="<?=$this->escapeHtmlAttr($url)?>" target="_blank" title="<?=$mot?>" class="custom-link"> - <? if ($icon): ?><img src="<?=$icon?>" /><? endif; ?><?=$name?> - </a> - </span><br /> - <? endforeach; ?> - </div> - </span> - <? endif; ?> - </div> -</div> -<div class="clear"></div> diff --git a/themes/blueprint/templates/RecordDriver/EDS/result-list.phtml b/themes/blueprint/templates/RecordDriver/EDS/result-list.phtml deleted file mode 100644 index 914bb9705d4d9ba06e21cc67e2ef4df3eac46c46..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EDS/result-list.phtml +++ /dev/null @@ -1,119 +0,0 @@ -<? - $this->headLink()->appendStylesheet('EDS.css'); - $accessLevel = $this->driver->getAccessLevel(); - $restrictedView = empty($accessLevel) ? false : true; -?> -<div class="result source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?> recordId<?=$this->driver->supportsAjaxStatus()?' ajaxItemId':''?>"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" /> - <div class="span-2"> - <? if ($summThumb = $this->record($this->driver)->getThumbnail()): ?> - <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="_record_link"> - <img src="<?=$this->escapeHtmlAttr($summThumb)?>" class="summcover" alt="<?=$this->transEsc('Cover Image')?>"/> - </a> - <? else: ?> - <span class="summcover pt-icon pt-<?=$this->driver->getPubTypeId()?>"></span> - <div><?=$this->transEsc($this->driver->getPubType())?></div> - <? endif; ?> - </div> - - <div class="span-9"> - <? $items = $this->driver->getItems(); - if (isset($items) && !empty($items)) : - foreach ($items as $item): - if (!empty($item)): ?> - <div class="resultItemLine1"> - <?if('Ti' == $item['Group']): ?> - <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title _record_link" > - <?=$item['Data']?> </a> - <?else:?> - <p> - <b><?=$this->transEsc($item['Label'])?>:</b> - <?=$item['Data']?> - </p> - <?endif;?> - </div> - <? endif; - endforeach; - elseif ($restrictedView): ?> - <div class="resultItemLine1"> - <p> - <?=$this->transEsc('This result is not displayed to guests')?> - <br /> - <a class="login" href="<?=$this->url('myresearch-home')?>"> - <strong><?=$this->transEsc('Login for full access')?></strong> - </a> - </p> - </div> - <? endif; ?> - <? $customLinks = $this->driver->getCustomLinks(); - if (!empty($customLinks)): ?> - <div class="resultItemLine4 custom-links"> - <? foreach ($customLinks as $customLink): ?> - <? $url = isset($customLink['Url']) ? $customLink['Url'] : ''; - $mot = isset($customLink['MouseOverText'])? $customLink['MouseOverText'] : ''; - $icon = isset ($customLink['Icon']) ? $customLink['Icon'] : ''; - $name = isset($customLink['Name']) ? $customLink['Name'] : '';?> - <span> - <a href="<?=$this->escapeHtmlAttr($url)?>" target="_blank" title="<?=$mot?>" class="custom-link"> - <? if ($icon): ?><img src="<?=$icon?>" /><? endif; ?><?=$name?> - </a> - </span> - <? endforeach; ?> - </div> - <? endif; ?> - - <div class="last"> - <? if ($this->driver->hasHTMLFullTextAvailable()): ?> - <a href="<?= $this->recordLink()->getUrl($this->driver, 'fulltext') ?>#html" class="icon html fulltext _record_link"> - <?=$this->transEsc('HTML Full Text')?> - </a> - - <? endif; ?> - - <? if ($this->driver->hasPdfAvailable()): ?> - <a href="<?= $this->recordLink()->getUrl($this->driver).'/PDF'; ?>" class="icon pdf fulltext"> - <?=$this->transEsc('PDF Full Text')?> - </a> - <? endif; ?> - </div> - - </div> - -<div class="span-4 last"> - - <? /* Display qrcode if appropriate: */ ?> - <? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?> - <? - // Add JS Variables for QrCode - $this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show')); - ?> - <a href="<?=$this->escapeHtmlAttr($QRCode);?>" class="qrcodeLink"><?=$this->transEsc('qrcode_show')?></a> - <div class="qrcodeHolder"> - <script type="text/template" class="qrCodeImgTag"> - <img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> - </script> - </div> - <? endif; ?> - - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" class="fav tool saveRecord controller<?=$this->record($this->driver)->getController()?>" title="<?=$this->transEsc('Add to favorites')?>"><?=$this->transEsc('Add to favorites')?></a> - - <div class="savedLists info hide"> - <strong><?=$this->transEsc("Saved in")?>:</strong> - </div> - <? endif; ?> - - <? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?> - <? $this->headScript()->appendFile('search_hierarchyTree.js'); ?> - <? foreach ($trees as $hierarchyID => $hierarchyTitle): ?> - <div class="hierarchyTreeLink"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" /> - <a class="hierarchyTreeLinkText" href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>"> - <?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?> - </a> - </div> - <? endforeach; ?> - <? endif; ?> - </div> - <div class="clear"></div> -</div> diff --git a/themes/blueprint/templates/RecordDriver/EIT/format-class.phtml b/themes/blueprint/templates/RecordDriver/EIT/format-class.phtml deleted file mode 100644 index 180fac1b46c5cf5a9185f236af60f398917b62aa..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/format-class.phtml +++ /dev/null @@ -1,44 +0,0 @@ -<? - // Convert EIT formats to VuFind formats so icons display correctly: - switch ($this->format) { - case 'Audio Recording': - echo 'audio'; - break; - case 'Book': - case 'Book Chapter': - echo 'book'; - break; - case 'Computer File': - case 'Web Resource': - echo 'electronic'; - break; - case 'Dissertation': - case 'Manuscript': - case 'Paper': - case 'Patent': - echo 'manuscript'; - break; - case 'eBook': - echo 'ebook'; - break; - case 'Kit': - echo 'kit'; - break; - case 'Image': - case 'Photograph': - echo 'photo'; - break; - case 'Music Score': - echo 'musicalscore'; - break; - case 'Newspaper Article': - echo 'newspaper'; - break; - case 'Video Recording': - echo 'video'; - break; - default: - echo 'journal'; - break; - } -?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/EIT/link-author.phtml b/themes/blueprint/templates/RecordDriver/EIT/link-author.phtml deleted file mode 100644 index fcd1912bf6ce6d588e00276dac54092067fbd0d0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('eit-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=AU \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/EIT/link-journaltitle.phtml b/themes/blueprint/templates/RecordDriver/EIT/link-journaltitle.phtml deleted file mode 100644 index b31db1dbcdfdb53209ba90ae6277693c389c4e95..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/link-journaltitle.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('eit-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22 \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/EIT/link-series.phtml b/themes/blueprint/templates/RecordDriver/EIT/link-series.phtml deleted file mode 100644 index 57f80eb30fd10256af415826ff5b4f3d98d3e43e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/link-series.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('eit-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=TI \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/EIT/link-subject.phtml b/themes/blueprint/templates/RecordDriver/EIT/link-subject.phtml deleted file mode 100644 index 37ed90fbfb17025a69265874851819eeb93e00dc..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('eit-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=SU \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/EIT/link-title.phtml b/themes/blueprint/templates/RecordDriver/EIT/link-title.phtml deleted file mode 100644 index 57f80eb30fd10256af415826ff5b4f3d98d3e43e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/EIT/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('eit-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=TI \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/LibGuides/result-list.phtml b/themes/blueprint/templates/RecordDriver/LibGuides/result-list.phtml deleted file mode 100644 index 531097ffc943f2077034d449eccdbd3307225e5f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/LibGuides/result-list.phtml +++ /dev/null @@ -1,11 +0,0 @@ -<? - $url = $this->driver->getUniqueId(); -?> -<div class="listentry span-15"> - <div class="resultItemLine1"> - <a href="<?=$this->escapeHtmlAttr($url)?>" class="title"> - <?=$this->record($this->driver)->getTitleHtml()?> - </a> - </div> -</div> -<div class="clearer"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Pazpar2/link-author.phtml b/themes/blueprint/templates/RecordDriver/Pazpar2/link-author.phtml deleted file mode 100644 index 34ec85e9849867608a0a901e72ab8ff8f452cfe1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Pazpar2/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('pazpar2-search')?>?lookfor=<?=urlencode($this->lookfor)?>&type=author \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Pazpar2/link-series.phtml b/themes/blueprint/templates/RecordDriver/Pazpar2/link-series.phtml deleted file mode 100644 index 203012a0d1e20fd416074e7aeabf72b45f06f3c5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Pazpar2/link-series.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('pazpar2-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=series \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Pazpar2/link-subject.phtml b/themes/blueprint/templates/RecordDriver/Pazpar2/link-subject.phtml deleted file mode 100644 index 12428b058b52d3d15abe04107fd9a063b3d719b6..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Pazpar2/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('pazpar2-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=subject \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Pazpar2/link-title.phtml b/themes/blueprint/templates/RecordDriver/Pazpar2/link-title.phtml deleted file mode 100644 index f0f81ef686c85302fd1beb62b9e565bd305602f7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Pazpar2/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('pazpar2-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=title \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Pazpar2/result-list.phtml b/themes/blueprint/templates/RecordDriver/Pazpar2/result-list.phtml deleted file mode 100644 index 662baa3a6387d02970b02b7646853bc3abfc2141..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Pazpar2/result-list.phtml +++ /dev/null @@ -1,91 +0,0 @@ -<div class="result source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?> recordId<?=$this->driver->supportsAjaxStatus()?' ajaxItemId':''?>"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" /> - <? $cover = $this->record($this->driver)->getCover('result-list', 'medium', $this->recordLink()->getUrl($this->driver)); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-9"> - <? else: ?> - <div class="span-11"> - <? endif; ?> - <div class="resultItemLine1"> - <b class="title"> - <?=$this->record($this->driver)->getTitleHtml()?> - </b> - </div> - - <div class="resultItemLine2"> - <? $summAuthor = $this->driver->getPrimaryAuthor(); if (!empty($summAuthor)): ?> - <?=$this->transEsc('by')?> - <a href="<?=$this->record($this->driver)->getLink('author', $summAuthor)?>"><? - $summHighlightedAuthor = $this->driver->getHighlightedAuthor(); - echo !empty($summHighlightedAuthor) - ? $this->highlight($summHighlightedAuthor) - : $this->escapeHtml($summAuthor); - ?></a> - <? endif; ?> - - <? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?> - <? if (!empty($journalTitle)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> - <?=/* TODO: handle highlighting more elegantly here */ $this->transEsc('Published in') . ' <a href="' . $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)) . '">' . $this->highlight($journalTitle) . '</a>';?> - <?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?> - <? elseif (!empty($summDate)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> - <?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?> - <? endif; ?> - </div> - - <div class="last"> - <? if ($snippet = $this->driver->getHighlightedSnippet()) { - if (!empty($snippet['caption'])) { - echo '<strong>' . $this->transEsc($snippet['caption']) . ':</strong> '; - } - if (!empty($snippet['snippet'])) { - echo '<span class="quotestart">“</span>...' . $this->highlight($snippet['snippet']) . '...<span class="quoteend">”</span><br/>'; - } - } - ?> - <div class="callnumAndLocation"> - <? $locations = $this->driver->getProviders(); if (!empty($locations)): ?> - <?=$this->transEsc('Provider')?>: <?=$this->escapeHtml(implode(', ', $locations))?> - <? endif; ?> - <? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?> - <?=$this->transEsc('Call Number')?>: <?=$this->escapeHtml($summCallNo)?> - <? endif; ?> - </div> - - <? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive), - but even if we don't plan to display the link, we still want to get the $openUrl - value for use in generating a COinS (Z3988) tag -- see bottom of file. - */ - $openUrl = $this->openUrl($this->driver, 'results'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - if ($openUrlActive || !empty($urls)): ?> - <? if ($openUrlActive): ?> - <br/> - <?=$openUrl->renderTemplate()?> - <? endif; ?> - <? if (!is_array($urls)) $urls = array(); foreach ($urls as $current): ?> - <br/> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a> - <? endforeach; ?> - <? endif; ?> - - <br class="hideIfDetailed"/> - <?=$this->record($this->driver)->getFormatList()?> - - <? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?> - <div class="status ajax_availability hide"><?=$this->transEsc('Loading')?>...</div> - <? endif; ?> - <?=$this->record($this->driver)->getPreviews()?> - </div> - </div> - - <div class="clear"></div> -</div> - -<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?> diff --git a/themes/blueprint/templates/RecordDriver/Primo/format-class.phtml b/themes/blueprint/templates/RecordDriver/Primo/format-class.phtml deleted file mode 100644 index 6702f4f504060de147dca96d74fd5cae34f5f159..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/format-class.phtml +++ /dev/null @@ -1,47 +0,0 @@ -<? - // Convert Primo formats to VuFind formats so icons display correctly: - switch ($this->format) { - case 'Audio Recording': - echo 'audio'; - break; - case 'Book': - case 'Book Chapter': - echo 'book'; - break; - case 'Computer File': - case 'Website': - echo 'electronic'; - break; - case 'Dissertation': - case 'Manuscript': - case 'Paper': - case 'Patent': - echo 'manuscript'; - break; - case 'eBook': - echo 'ebook'; - break; - case 'Kit': - echo 'kit'; - break; - case 'Image': - case 'Photograph': - echo 'photo'; - break; - case 'Score': - echo 'musicalscore'; - break; - case 'Newspaper Article': - echo 'newspaper'; - break; - case 'Video': - echo 'video'; - break; - case 'Map': - echo 'map'; - break; - default: - echo 'journal'; - break; - } -?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Primo/link-author.phtml b/themes/blueprint/templates/RecordDriver/Primo/link-author.phtml deleted file mode 100644 index e3dfe3c20cc2f7d0b09206e61747de172a8c2a7c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('primo-search')?>?lookfor=<?=urlencode($this->lookfor)?>&type=Author diff --git a/themes/blueprint/templates/RecordDriver/Primo/link-issn.phtml b/themes/blueprint/templates/RecordDriver/Primo/link-issn.phtml deleted file mode 100644 index acb39b5f503cfaaf703de3644f24a3f424e4b455..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/link-issn.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('primo-search')?>?lookfor=<?=urlencode($this->lookfor)?>&type=ISSN diff --git a/themes/blueprint/templates/RecordDriver/Primo/link-journaltitle.phtml b/themes/blueprint/templates/RecordDriver/Primo/link-journaltitle.phtml deleted file mode 100644 index 5b35541ccd0bd6e546408aa741d6e98c27ac9424..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/link-journaltitle.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('primo-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=AllFields \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Primo/link-subject.phtml b/themes/blueprint/templates/RecordDriver/Primo/link-subject.phtml deleted file mode 100644 index d24131fce6cea768c8d2faa353428329c8036456..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('primo-search')?>?lookfor=<?=urlencode($this->lookfor)?>&type=Subject diff --git a/themes/blueprint/templates/RecordDriver/Primo/link-title.phtml b/themes/blueprint/templates/RecordDriver/Primo/link-title.phtml deleted file mode 100644 index 863c2e40063faf1c2a2774906a506eca80dd4a74..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Primo/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('primo-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Title \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrAuth/result-list.phtml b/themes/blueprint/templates/RecordDriver/SolrAuth/result-list.phtml deleted file mode 100644 index 6706bce19823f2ddb4378d611281c0e5e7b45f86..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrAuth/result-list.phtml +++ /dev/null @@ -1,32 +0,0 @@ -<? - $heading = $this->driver->getTitle(); - if (empty($heading)) { - $heading = $this->translate('Heading unavailable.'); - } - $seeAlso = $this->driver->getSeeAlso(); - $useFor = $this->driver->getUseFor(); -?> -<div class="listentry span-15"> - <div class="resultItemLine1"> - <a href="<?=$this->url('authority-record')?>?id=<?=urlencode($this->driver->getUniqueId())?>" class="title"><?=$this->escapeHtml($heading)?></a> - </div> - - <div class="resultItemLine2"> - <? if (!empty($seeAlso)): ?> - <?=$this->transEsc("See also")?>:<br/> - <? foreach ($seeAlso as $current): ?> - <a href="<?=$this->url('authority-search')?>?lookfor=%22<?=urlencode($current)?>%22&type=MainHeading"><?=$this->escapeHtml($current)?></a><br/> - <? endforeach; ?> - <? endif; ?> - </div> - - <div class="resultItemLine3"> - <? if (!empty($useFor)): ?> - <?=$this->transEsc("Use for")?>:<br/> - <? foreach ($useFor as $current): ?> - <?=$this->escapeHtml($current)?><br/> - <? endforeach; ?> - <? endif; ?> - </div> -</div> -<div class="clearer"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/collection-info.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/collection-info.phtml deleted file mode 100644 index 1bc6a3cbf1ca83d3fd4ece41082a5c28340350e2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/collection-info.phtml +++ /dev/null @@ -1,196 +0,0 @@ -<? $this->headScript()->appendFile('collection_record.js'); ?> -<? /* Display thumbnail if appropriate: */ ?> -<? $cover = $this->record($this->driver)->getCover('collection-info', 'medium', $this->record($this->driver)->getThumbnail('large')); ?> -<? if ($cover): ?> - <div class="floatright"> - <?=$cover?> - </div> -<? endif; ?> -<h1><?=$this->escapeHtml($this->driver->getShortTitle())?></h1> -<? $summ = $this->driver->getSummary(); if (!empty($summ)): ?> - <p><?=$this->escapeHtml($summ[0])?></p> -<? endif; ?> - -<? /* Display the lists that this record is saved to */ ?> -<div class="savedLists info hide" id="savedLists" style="max-width:30%"> - <strong><?=$this->transEsc("Saved in")?>:</strong> -</div> - -<a id="moreInfoToggle" href="#" style="display:none"><?=$this->transEsc('more_info_toggle')?></a> -<div id="collectionInfo" class="collectionInfo"> -<table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Bibliographic Details')?>"> - <? $authors = $this->driver->getDeduplicatedAuthors(); ?> - <? if (isset($authors['main']) && !empty($authors['main'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Main Author')?>: </th> - <td><a href="<?=$this->record($this->driver)->getLink('author', $authors['main'])?>"><?=$this->escapeHtml($authors['main'])?></a></td> - </tr> - <? endif; ?> - - <? if (isset($authors['corporate']) && !empty($authors['corporate'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Corporate Author')?>: </th> - <td><a href="<?=$this->record($this->driver)->getLink('author', $authors['corporate'])?>"><?=$this->escapeHtml($authors['corporate'])?></a></td> - </tr> - <? endif; ?> - - <? if (isset($authors['secondary']) && !empty($authors['secondary'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Other Authors')?>: </th> - <td> - <? $i = 0; foreach ($authors['secondary'] as $field): ?><?=($i++ == 0)?'':', '?><a href="<?=$this->record($this->driver)->getLink('author', $field)?>"><?=$this->escapeHtml($field)?></a><? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? if (count($summ) > 1): ?> - <tr valign="top"> - <th><?=$this->transEsc('Summary')?>: </th> - <td> - <? foreach (array_slice($summ, 1) as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $formats = $this->driver->getFormats(); if (!empty($formats)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Format')?>: </th> - <td><?=$this->record($this->driver)->getFormatList()?></td> - </tr> - <? endif; ?> - - <? $langs = $this->driver->getLanguages(); if (!empty($langs)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Language')?>: </th> - <td><? foreach ($langs as $lang): ?><?= $this->escapeHtml($lang)?><br/><? endforeach; ?></td> - </tr> - <? endif; ?> - - <? $publications = $this->driver->getPublicationDetails(); if (!empty($publications)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Published')?>: </th> - <td> - <? foreach ($publications as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $edition = $this->driver->getEdition(); if (!empty($edition)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Edition')?>: </th> - <td><?=$this->escapeHtml($edition)?></td> - </tr> - <? endif; ?> - - <?/* Display series section if at least one series exists. */?> - <? $series = $this->driver->getSeries(); if (!empty($series)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Series')?>: </th> - <td> - <? foreach ($series as $field): ?> - <?/* Depending on the record driver, $field may either be an array with - "name" and "number" keys or a flat string containing only the series - name. We should account for both cases to maximize compatibility. */?> - <? if (is_array($field)): ?> - <? if (!empty($field['name'])): ?> - <a href="<?=$this->record($this->driver)->getLink('series', $field['name'])?>"><?=$this->escapeHtml($field['name'])?></a> - <? if (!empty($field['number'])): ?> - <?=$this->escapeHtml($field['number'])?> - <? endif; ?> - <br/> - <? endif; ?> - <? else: ?> - <a href="<?=$this->record($this->driver)->getLink('series', $field)?>"><?=$this->escapeHtml($field)?></a><br/> - <? endif; ?> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $subjects = $this->driver->getAllSubjectHeadings(); if (!empty($subjects)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Subjects')?>: </th> - <td> - <? foreach ($subjects as $field): ?> - <div class="subjectLine"> - <? $subject = ''; ?> - <? $i = 0; foreach ($field as $subfield): ?> - <?=($i++ == 0) ? '' : ' > '?> - <? $subject = trim($subject . ' ' . $subfield); ?> - <a title="<?=$this->escapeHtmlAttr($subject)?>" href="<?=$this->record($this->driver)->getLink('subject', $subject)?>" class="subjectHeading"><?=$this->escapeHtml($subfield)?></a> - <? endforeach; ?> - </div> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? - $openUrl = $this->openUrl($this->driver, 'record'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - ?> - <? if (!empty($urls) || $openUrlActive): ?> - <tr valign="top"> - <th><?=$this->transEsc('Online Access')?>: </th> - <td> - <? foreach ($urls as $current): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->escapeHtml($current['desc'])?></a><br/> - <? endforeach; ?> - <? if ($openUrlActive): ?> - <?=$openUrl->renderTemplate()?><br/> - <? endif; ?> - </td> - </tr> - <? endif; ?> - - <? $notes = $this->driver->getGeneralNotes(); if (!empty($notes)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Notes')?>: </th> - <td> - <? foreach ($notes as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $credits = $this->driver->getProductionCredits(); if (!empty($credits)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Production Credits')?>: </th> - <td> - <? foreach ($credits as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $isbns = $this->driver->getISBNs(); if (!empty($isbns)): ?> - <tr valign="top"> - <th><?=$this->transEsc('ISBN')?>: </th> - <td> - <? foreach ($isbns as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $issns = $this->driver->getISSNs(); if (!empty($issns)): ?> - <tr valign="top"> - <th><?=$this->transEsc('ISSN')?>: </th> - <td> - <? foreach ($issns as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> -</table> -</div> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/collection-record.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/collection-record.phtml deleted file mode 100644 index fea1ce46cf6f5fad1e9872ed4bbb47c1b9018e96..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/collection-record.phtml +++ /dev/null @@ -1,63 +0,0 @@ -<h1><?=$this->escapeHtml($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())?></h1> -<a href="<?=$this->recordLink()->getUrl($this->driver)?>"><?=$this->transEsc('View Full ' . ($this->driver->isCollection() ? 'Collection' : 'Record'))?></a> - -<table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Bibliographic Details')?>"> - <? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $summary[0] : false; ?> - <? if ($summary): ?> - <tr valign="top"> - <th><?=$this->transEsc('Description')?>: </th> - <td><?=$this->escapeHtml($summary)?></td> - </tr> - <? endif; ?> - - <? $authors = $this->driver->getDeduplicatedAuthors(); ?> - <? if (isset($authors['main']) && !empty($authors['main'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Main Author')?>: </th> - <td><a href="<?=$this->record($this->driver)->getLink('author', $authors['main'])?>"><?=$this->escapeHtml($authors['main'])?></a></td> - </tr> - <? endif; ?> - - <? if (isset($authors['corporate']) && !empty($authors['corporate'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Corporate Author')?>: </th> - <td><a href="<?=$this->record($this->driver)->getLink('author', $authors['corporate'])?>"><?=$this->escapeHtml($authors['corporate'])?></a></td> - </tr> - <? endif; ?> - - <? $langs = $this->driver->getLanguages(); if (!empty($langs)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Language')?>: </th> - <td><? foreach ($langs as $lang): ?><?= $this->escapeHtml($lang)?><br/><? endforeach; ?></td> - </tr> - <? endif; ?> - - <? $formats = $this->driver->getFormats(); if (!empty($formats)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Format')?>: </th> - <td><?=$this->record($this->driver)->getFormatList()?></td> - </tr> - <? endif; ?> - - <? $access = $this->driver->getAccessRestrictions(); if (!empty($access)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Access')?>: </th> - <td> - <? foreach ($access as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $related = $this->driver->getRelationshipNotes(); if (!empty($related)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Related Items')?>: </th> - <td> - <? foreach ($related as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> -</table> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/core-qrcode.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/core-qrcode.phtml deleted file mode 100644 index e162a0f98f11a5abfaa18b05e1f5c118850948d8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/core-qrcode.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->serverUrl($this->recordLink()->getUrl($this->driver))?> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/core.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/core.phtml deleted file mode 100644 index 05ef8428f7bf30d4a18d7b6b0122ef9ac1bcc0ed..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/core.phtml +++ /dev/null @@ -1,259 +0,0 @@ -<? - if($loggedin = $this->auth()->isLoggedIn()) { - $user_id = $loggedin->id; - $loggedin = true; - } else { - $user_id = false; - } -?> -<div class="span-13" vocab="http://schema.org/" resource="#record" typeof="<?=$this->driver->getSchemaOrgFormats()?> Product"> - <h1 property="name"><?=$this->escapeHtml($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())?></h1> - - <? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $summary[0] : false; ?> - <? if ($summary): ?> - <p property="description"> - <?=$this->escapeHtml($this->truncate($summary, 300))?> - <a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a> - </p> - <? endif; ?> - - <?/* Display Main Details */?> - <table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Bibliographic Details')?>"> - <? $journalTitle = $this->driver->getContainerTitle(); if (!empty($journalTitle)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Published in')?>:</th> - <td> - <? $containerID = $this->driver->getContainerRecordID(); ?> - <a href="<?=($containerID ? $this->recordLink()->getUrl("VuFind|$containerID") : $this->record($this->driver)->getLink('journaltitle', $journalTitle))?>"><?=$this->escapeHtml($journalTitle)?></a> - <? $ref = $this->driver->getContainerReference(); if (!empty($ref)) { echo $this->escapeHtml($ref); } ?> - </td> - </tr> - <? endif; ?> - - <? $nextTitles = $this->driver->getNewerTitles(); $prevTitles = $this->driver->getPreviousTitles(); ?> - <? if (!empty($nextTitles)): ?> - <tr valign="top"> - <th><?=$this->transEsc('New Title')?>: </th> - <td> - <? foreach($nextTitles as $field): ?> - <a href="<?=$this->record($this->driver)->getLink('title', $field)?>"><?=$this->escapeHtml($field)?></a><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? if (!empty($prevTitles)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Previous Title')?>: </th> - <td> - <? foreach($prevTitles as $field): ?> - <a href="<?=$this->record($this->driver)->getLink('title', $field)?>"><?=$this->escapeHtml($field)?></a><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $authors = $this->driver->getDeduplicatedAuthors(); ?> - <? if (isset($authors['main']) && !empty($authors['main'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Main Author')?>: </th> - <td property="author"><a href="<?=$this->record($this->driver)->getLink('author', $authors['main'])?>"><?=$this->escapeHtml($authors['main'])?></a></td> - </tr> - <? endif; ?> - - <? if (isset($authors['corporate']) && !empty($authors['corporate'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Corporate Author')?>: </th> - <td property="creator"><a href="<?=$this->record($this->driver)->getLink('author', $authors['corporate'])?>"><?=$this->escapeHtml($authors['corporate'])?></a></td> - </tr> - <? endif; ?> - - <? if (isset($authors['secondary']) && !empty($authors['secondary'])): ?> - <tr valign="top"> - <th><?=$this->transEsc('Other Authors')?>: </th> - <td> - <? $i = 0; foreach ($authors['secondary'] as $field): ?><?=($i++ == 0)?'':', '?><span property="contributor"><a href="<?=$this->record($this->driver)->getLink('author', $field)?>"><?=$this->escapeHtml($field)?></a></span><? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $formats = $this->driver->getFormats(); if (!empty($formats)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Format')?>: </th> - <td><?=$this->record($this->driver)->getFormatList()?></td> - </tr> - <? endif; ?> - - <? $langs = $this->driver->getLanguages(); if (!empty($langs)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Language')?>: </th> - <td><? foreach ($langs as $lang): ?><?= $this->escapeHtml($lang)?><br/><? endforeach; ?></td> - </tr> - <? endif; ?> - - <? $publications = $this->driver->getPublicationDetails(); if (!empty($publications)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Published')?>: </th> - <td> - <? foreach ($publications as $field): ?> - <span property="publisher" typeof="Organization"> - <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?> - <span property="location"><?=$this->escapeHtml($pubPlace)?></span> - <? endif; ?> - <? $pubName = $field->getName(); if (!empty($pubName)): ?> - <span property="name"><?=$this->escapeHtml($pubName)?></span> - <? endif; ?> - </span> - <? $pubDate = $field->getDate(); if (!empty($pubDate)): ?> - <span property="publicationDate"><?=$this->escapeHtml($pubDate)?></span> - <? endif; ?> - <br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $edition = $this->driver->getEdition(); if (!empty($edition)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Edition')?>: </th> - <td property="bookEdition"><?=$this->escapeHtml($edition)?></td> - </tr> - <? endif; ?> - - <?/* Display series section if at least one series exists. */?> - <? $series = $this->driver->getSeries(); if (!empty($series)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Series')?>: </th> - <td> - <? foreach ($series as $field): ?> - <?/* Depending on the record driver, $field may either be an array with - "name" and "number" keys or a flat string containing only the series - name. We should account for both cases to maximize compatibility. */?> - <? if (is_array($field)): ?> - <? if (!empty($field['name'])): ?> - <a href="<?=$this->record($this->driver)->getLink('series', $field['name'])?>"><?=$this->escapeHtml($field['name'])?></a> - <? if (!empty($field['number'])): ?> - <?=$this->escapeHtml($field['number'])?> - <? endif; ?> - <br/> - <? endif; ?> - <? else: ?> - <a href="<?=$this->record($this->driver)->getLink('series', $field)?>"><?=$this->escapeHtml($field)?></a><br/> - <? endif; ?> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $subjects = $this->driver->getAllSubjectHeadings(); if (!empty($subjects)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Subjects')?>: </th> - <td> - <? foreach ($subjects as $field): ?> - <div class="subjectLine" property="keywords"> - <? $subject = ''; ?> - <? $i = 0; foreach ($field as $subfield): ?> - <?=($i++ == 0) ? '' : ' > '?> - <? $subject = trim($subject . ' ' . $subfield); ?> - <a title="<?=$this->escapeHtmlAttr($subject)?>" href="<?=$this->record($this->driver)->getLink('subject', $subject)?>" class="subjectHeading"><?=$this->escapeHtml($subfield)?></a> - <? endforeach; ?> - </div> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $childRecordCount = $this->driver->tryMethod('getChildRecordCount'); if ($childRecordCount): ?> - <tr valign="top"> - <th><?=$this->transEsc('child_records')?>: </th> - <td><a href="<?=$this->recordLink()->getChildRecordSearchUrl($this->driver)?>"><?=$this->transEsc('child_record_count', array('%%count%%' => $childRecordCount))?></a></td> - </tr> - <? endif; ?> - - <? - $openUrl = $this->openUrl($this->driver, 'record'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - ?> - <? if (!empty($urls) || $openUrlActive): ?> - <tr valign="top"> - <th><?=$this->transEsc('Online Access')?>: </th> - <td> - <? foreach ($urls as $current): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->escapeHtml($current['desc'])?></a><br/> - <? endforeach; ?> - <? if ($openUrlActive): ?> - <?=$openUrl->renderTemplate()?><br/> - <? endif; ?> - </td> - </tr> - <? endif; ?> - - <? $recordLinks = $this->driver->getAllRecordLinks(); if (!empty($recordLinks)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Related Items')?>:</th> - <td> - <? foreach ($recordLinks as $recordLink): ?> - <?=$this->transEsc($recordLink['title'])?>: - <a href="<?=$this->recordLink()->related($recordLink['link'])?>"><?=$this->escapeHtml($recordLink['value'])?></a><br /> - <? endforeach; ?> - <? /* if we have record links, display relevant explanatory notes */ - $related = $this->driver->getRelationshipNotes(); - if (!empty($related)): ?> - <? foreach ($related as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - <? endif; ?> - </td> - </tr> - <? endif; ?> - - <? $source = $this->driver->getSource(); if (!empty($source)): ?> - <tr valign="top"> - <th><?=$this->transEsc('Source')?>:</th> - <td><?=$this->escapeHtml($source)?></td> - </tr> - <? endif; ?> - - <? if ($this->usertags()->getMode() !== 'disabled'): ?> - <? $tagList = $this->driver->getTags(null, null, 'count', $user_id); ?> - <tr valign="top"> - <th><?=$this->transEsc('Tags')?>: </th> - <td> - <span style="float:right;"> - <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'AddTag')?>" class="tool add tagRecord controller<?=$this->record($this->driver)->getController()?>" title="<?=$this->transEsc('Add Tag')?>" id="tagRecord"><?=$this->transEsc('Add Tag')?></a> - </span> - <?=$this->context($this)->renderInContext('record/taglist', array('tagList'=>$tagList, 'loggedin'=>$loggedin)) ?> - </td> - </tr> - <? endif; ?> - </table> - <?/* End Main Details */?> -</div> - -<div class="span-4 last"> - <? /* Display thumbnail if appropriate: */ ?> - <?=$this->record($this->driver)->getCover('core', 'medium', $this->record($this->driver)->getThumbnail('large')); ?> - - <? /* Display qrcode if appropriate: */ ?> - <? $QRCode = $this->record($this->driver)->getQRCode("core"); ?> - <? if($QRCode): ?> - <img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> - <? endif; ?> - - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <? /* Display the lists that this record is saved to */ ?> - <div class="savedLists info hide" id="savedLists"> - <strong><?=$this->transEsc("Saved in")?>:</strong> - </div> - <? endif; ?> - - <? // if you have a preview tab but want to move or remove the preview link - // from this area of the record view, this can be split into - // getPreviewData() (should stay here) and - // getPreviewLink() (can go in your desired tab) ?> - <?=$this->record($this->driver)->getPreviews()?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/format-class.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/format-class.phtml deleted file mode 100644 index 2e2ce73b628f19dc2eb4028d1dad39cad505c089..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/format-class.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=preg_replace('/[^a-z0-9]/', '', strtolower($this->format))?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/format-list.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/format-list.phtml deleted file mode 100644 index 9ffc562f0d1c0490415099d24323b3a6e665c633..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/format-list.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<? foreach ($this->driver->getFormats() as $format): ?> - <span class="iconlabel <?=$this->record($this->driver)->getFormatClass($format)?>"><?=$this->transEsc($format)?></span> -<? endforeach; ?> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/link-author.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/link-author.phtml deleted file mode 100644 index 1ef515fe458f58dbc0a53af91c01a7cbb097086e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('author-home')?>?author=<?=urlencode($this->lookfor)?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/link-journaltitle.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/link-journaltitle.phtml deleted file mode 100644 index 5987653afd9f7c4fff7a830588128fde1077c8a4..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/link-journaltitle.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=JournalTitle \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/link-series.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/link-series.phtml deleted file mode 100644 index bf7507d0a50c08a2edefcb6054506c4ca4c4dee1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/link-series.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Series \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/link-subject.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/link-subject.phtml deleted file mode 100644 index 07a34f729d9e6eda12dbc8cbd2bb8b8b3ded9791..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Subject \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/link-title.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/link-title.phtml deleted file mode 100644 index eca8c06502d139dd4ea37d34bb01aa516b9bd08e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Title \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml deleted file mode 100644 index 1470c1b975f046660aa87a3050cc291c059cac17..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml +++ /dev/null @@ -1,120 +0,0 @@ -<? - // Set up some convenience variables: - $id = $this->driver->getUniqueId(); - $source = $this->driver->getResourceSource(); - if (isset($this->list) && is_object($this->list)) { - $list_id = $this->list->id; - $user_id = $this->list->user_id; - } else { - $list_id = null; - $user_id = $this->user ? $this->user->id : null; - } -?> -<div class="listentry recordId source<?=$this->escapeHtmlAttr($source)?><?=$this->driver->supportsAjaxStatus()?' ajaxItemId':''?>" id="record<?=$this->escapeHtmlAttr($id)?>"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" /> - <? $cover = $this->record($this->driver)->getCover('list-entry', 'small'); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-10"> - <? else: ?> - <div class="span-12"> - <? endif; ?> - <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title"> - <?=$this->record($this->driver)->getTitleHtml()?> - </a><br/> - <? $listAuthor = $this->driver->getPrimaryAuthor(); if (!empty($listAuthor)): ?> - <?=$this->transEsc('by')?>: - <a href="<?=$this->record($this->driver)->getLink('author', $listAuthor)?>"><?=$this->escapeHtml($listAuthor)?></a><br/> - <? endif; ?> - <? $listTags = ($this->usertags()->getMode() !== 'disabled') ? $this->driver->getTags( - null === $list_id ? true : $list_id, // get tags for all lists if no single list is selected - $user_id, 'tag' - ) : array(); - ?> - <? if (count($listTags) > 0): ?> - <strong><?=$this->transEsc('Your Tags')?>:</strong> - <? $i = 0; foreach ($listTags as $tag): ?><?=($i++ == 0)?'':', '?><a href="<?=$this->url('tag-home')?>?lookfor=<?=urlencode($tag->tag)?>"><?=$this->escapeHtml($tag->tag)?></a><? endforeach; ?> - <br/> - <? endif; ?> - <? $listNotes = $this->driver->getListNotes($list_id, $user_id); ?> - <? if (count($listNotes) > 0): ?> - <strong><?=$this->transEsc('Notes')?>:</strong> - <? if (count($listNotes) > 1): ?><br/><? endif; ?> - <? foreach ($listNotes as $note): ?> - <?=$this->escapeHtml($note)?><br/> - <? endforeach; ?> - <? endif; ?> - - <? if (count($this->lists) > 0): ?> - <strong><?=$this->transEsc('Saved in')?>:</strong> - <? $i=0;foreach($this->lists as $current): ?> - <a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$current->title?></a><? if($i++ < count($this->lists)-1): ?>,<? endif; ?> - <? endforeach; ?> - <br/> - <? endif; ?> - - <div class="callnumAndLocation"> - <? if ($this->driver->supportsAjaxStatus()): ?> - <strong class="hideIfDetailed"><?=$this->transEsc('Call Number')?>:</strong> - <span class="callnumber ajax_availability hide"> - <?=$this->transEsc('Loading')?>... - </span><br class="hideIfDetailed"/> - <strong><?=$this->transEsc('Located')?>:</strong> - <span class="location ajax_availability hide"> - <?=$this->transEsc('Loading')?>... - </span> - <div class="locationDetails hide"></div> - <? else: ?> - <? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?> - <strong><?=$this->transEsc('Call Number')?>:</strong> <?=$this->escapeHtml($summCallNo)?> - <? endif; ?> - <? endif; ?> - </div> - <? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive), - but even if we don't plan to display the link, we still want to get the $openUrl - value for use in generating a COinS (Z3988) tag -- see bottom of file. - */ - $openUrl = $this->openUrl($this->driver, 'results'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - if ($openUrlActive || !empty($urls)): ?> - <? if ($openUrlActive): ?> - <br/> - <?=$openUrl->renderTemplate()?> - <? endif; ?> - <? if (!is_array($urls)) $urls = array(); foreach ($urls as $current): ?> - <br/> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a> - <? endforeach; ?> - <? endif; ?> - - <br class="hideIfDetailed"/> - <?=$this->record($this->driver)->getFormatList()?> - - <? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?> - <div class="status ajax_availability hide"><?=$this->transEsc('Loading')?>...</div> - <? endif; ?> - </div> - - <? // Allow editing if a list is selected and edit is allowed OR if no list is selected - // and a user is logged in (which means we are viewing all of the user's favorites) - if ((isset($list) && $list->editAllowed($this->user)) || (!isset($list) && $this->user)): ?> - <div class="floatright"> - <a href="<?=$this->url('myresearch-edit')?>?id=<?=urlencode($id)?>&source=<?=urlencode($source)?><? if (!is_null($list_id)):?>&list_id=<?=urlencode($list_id)?><? endif; ?>" class="edit tool"><?=$this->transEsc('Edit')?></a> - <? /* Use a different delete URL if we're removing from a specific list or the overall favorites: */ - $deleteUrl = is_null($list_id) - ? $this->url('myresearch-favorites') - : $this->url('userList', array('id' => $list_id)); - $deleteUrl .= '?delete=' . urlencode($id) . '&source=' . urlencode($source); - ?> - <a href="<?=$deleteUrl?>" title="<?=$this->transEsc('confirm_delete_brief')?>" class="delete tool source<?=$this->escapeHtmlAttr($source)?>"><?=$this->transEsc('Delete')?></a> - </div> - <? endif; ?> - - <div class="clear"></div> -</div> - -<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/result-grid.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/result-grid.phtml deleted file mode 100644 index 7a46f3e4327528dacd939fd6a1a2c72266d82398..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/result-grid.phtml +++ /dev/null @@ -1,36 +0,0 @@ -<div class="gridRecordBox source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?> recordId<?=$this->driver->supportsAjaxStatus()?' ajaxItemId':''?>"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" /> - <span class="gridImageBox"> - <?=$this->record($this->driver)->getCover('result-grid', 'large', $this->recordLink()->getUrl($this->driver)); ?> - </span> - <div class="gridTitleBox" > - <a class="gridTitle" href="<?=$this->recordLink()->getUrl($this->driver)?>"> - <?=$this->record($this->driver)->getTitleHtml(80)?> - </a> - <? - /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive), - but even if we don't plan to display the link, we still want to get the $openUrl - value for use in generating a COinS (Z3988) tag -- see bottom of file. - */ - $openUrl = $this->openUrl($this->driver, 'results'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - ?> - <? if ($openUrlActive || !empty($urls)): ?> - <? if ($openUrlActive): ?> - <?=$openUrl->renderTemplate()?><br /> - <? endif; ?> - <? if (!is_array($urls)) $urls = array(); foreach ($urls as $current): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a> - <br/> - <? endforeach; ?> - <? else: ?> - <? if ($this->driver->supportsAjaxStatus()): ?> - <div class="status ajax_availability hide"><?=$this->transEsc('Loading')?>...</div> - <? endif; ?> - <? endif; ?> - </div> -</div> - -<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/result-list.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/result-list.phtml deleted file mode 100644 index 1093ea38401a08f5fe378b978d7befe0078decf0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/result-list.phtml +++ /dev/null @@ -1,177 +0,0 @@ -<div class="result source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?> recordId<?=$this->driver->supportsAjaxStatus()?' ajaxItemId':''?>"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" /> - <? $cover = $this->record($this->driver)->getCover('result-list', 'medium', $this->recordLink()->getUrl($this->driver)); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-9"> - <? else: ?> - <div class="span-11"> - <? endif; ?> - <div class="resultItemLine1"> - <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title"> - <?=$this->record($this->driver)->getTitleHtml()?> - </a> - </div> - - <div class="resultItemLine2"> - <? $summAuthor = $this->driver->getPrimaryAuthor(); if (!empty($summAuthor)): ?> - <?=$this->transEsc('by')?> - <a href="<?=$this->record($this->driver)->getLink('author', $summAuthor)?>"><? - $summHighlightedAuthor = $this->driver->getHighlightedAuthor(); - echo !empty($summHighlightedAuthor) - ? $this->highlight($summHighlightedAuthor) - : $this->escapeHtml($summAuthor); - ?></a> - <? endif; ?> - - <? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?> - <? if (!empty($journalTitle)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> - <?=$this->transEsc('Published in')?> - <? $containerID = $this->driver->getContainerRecordID(); ?> - <? /* TODO: handle highlighting more elegantly here: */?> - <a href="<?=($containerID ? $this->recordLink()->getUrl("VuFind|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a> - <?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?> - <? elseif (!empty($summDate)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> - <?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?> - <? endif; ?> - <? $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?> - <? foreach ($summInCollection as $collId => $collText): ?> - <div> - <b><?=$this->transEsc("in_collection_label")?></b> - <a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>"> - <?=$this->escapeHtml($collText)?> - </a> - </div> - <? endforeach; ?> - <? endif; ?> - </div> - - <div class="last"> - <? if ($snippet = $this->driver->getHighlightedSnippet()) { - if (!empty($snippet['caption'])) { - echo '<strong>' . $this->transEsc($snippet['caption']) . ':</strong> '; - } - if (!empty($snippet['snippet'])) { - echo '<span class="quotestart">“</span>...' . $this->highlight($snippet['snippet']) . '...<span class="quoteend">”</span><br/>'; - } - } - ?> - - <? - /* Display information on duplicate records if available */ - $dedupData = $this->driver->getDedupData(); - if ($dedupData): ?> - <div class="dedupInformation"> - <? - $i = 0; - foreach ($dedupData as $source => $current) { - if (++$i == 1) { - ?><span class="currentSource"><a href="<?=$this->recordLink()->getUrl($this->driver)?>"><?=$this->transEsc("source_$source", array(), $source)?></a></span><? - } else { - if ($i == 2) { - ?> <span class="otherSources">(<?=$this->transEsc('Other Sources')?>: <? - } else { - ?>, <? - } - ?><a href="<?=$this->recordLink()->getUrl($current['id'])?>"><?=$this->transEsc("source_$source", array(), $source)?></a><? - } - } - if ($i > 1) { - ?>)</span><? - }?> - </div> - <? endif; ?> - - - <div class="callnumAndLocation"> - <? if ($this->driver->supportsAjaxStatus()): ?> - <strong class="hideIfDetailed"><?=$this->transEsc('Call Number')?>:</strong> - <span class="callnumber ajax_availability hide"> - <?=$this->transEsc('Loading')?>... - </span><br class="hideIfDetailed"/> - <strong><?=$this->transEsc('Located')?>:</strong> - <span class="location ajax_availability hide"> - <?=$this->transEsc('Loading')?>... - </span> - <div class="locationDetails hide"></div> - <? else: ?> - <? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?> - <strong><?=$this->transEsc('Call Number')?>:</strong> <?=$this->escapeHtml($summCallNo)?> - <? endif; ?> - <? endif; ?> - </div> - - <? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive), - but even if we don't plan to display the link, we still want to get the $openUrl - value for use in generating a COinS (Z3988) tag -- see bottom of file. - */ - $openUrl = $this->openUrl($this->driver, 'results'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - if ($openUrlActive || !empty($urls)): ?> - <? if ($openUrlActive): ?> - <br/> - <?=$openUrl->renderTemplate()?> - <? endif; ?> - <? if (!is_array($urls)) $urls = array(); foreach ($urls as $current): ?> - <br/> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a> - <? endforeach; ?> - <? endif; ?> - - <br class="hideIfDetailed"/> - <?=$this->record($this->driver)->getFormatList()?> - - <? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?> - <div class="status ajax_availability hide"><?=$this->transEsc('Loading')?>...</div> - <? endif; ?> - <?=$this->record($this->driver)->getPreviews()?> - </div> - </div> - - <div class="span-4 last"> - - <? /* Display qrcode if appropriate: */ ?> - <? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?> - <? - // Add JS Variables for QrCode - $this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show')); - ?> - <a href="<?=$this->escapeHtmlAttr($QRCode);?>" class="qrcodeLink"><?=$this->transEsc('qrcode_show')?></a> - <div class="qrcodeHolder"> - <script type="text/template" class="qrCodeImgTag"> - <img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> - </script> - </div> - <? endif; ?> - - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" class="fav tool saveRecord controller<?=$this->record($this->driver)->getController()?>" title="<?=$this->transEsc('Add to favorites')?>"><?=$this->transEsc('Add to favorites')?></a> - - <div class="savedLists info hide"> - <strong><?=$this->transEsc("Saved in")?>:</strong> - </div> - <? endif; ?> - - <? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?> - <? $this->headScript()->appendFile('search_hierarchyTree.js'); ?> - <? foreach ($trees as $hierarchyID => $hierarchyTitle): ?> - <div class="hierarchyTreeLink"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" /> - <a class="hierarchyTreeLinkText" href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>"> - <?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?> - </a> - </div> - <? endforeach; ?> - <? endif; ?> - </div> - - <div class="clear"></div> -</div> - -<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/results-qrcode.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/results-qrcode.phtml deleted file mode 100644 index e162a0f98f11a5abfaa18b05e1f5c118850948d8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/results-qrcode.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->serverUrl($this->recordLink()->getUrl($this->driver))?> diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/toolbar.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/toolbar.phtml deleted file mode 100644 index 2ab3ba084609832eb827cc0fc7a6fab15bb891a7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/toolbar.phtml +++ /dev/null @@ -1,55 +0,0 @@ -<? - $addThis = $this->addThis(); - if (!empty($addThis)) { - $this->headScript()->appendFile('https://s7.addthis.com/js/250/addthis_widget.js?pub=' . urlencode($addThis)); - } - - // Set up some variables for convenience: - $id = $this->driver->getUniqueId(); - $controllerClass = 'controller' . $this->record($this->driver)->getController(); - $cart = $this->cart(); - $cartId = $this->driver->getResourceSource() . '|' . $id; -?> -<div class="toolbar"> - <ul> - <? if (count($this->driver->getCitationFormats()) > 0): ?> - <li><a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Cite')?>" class="citeRecord cite <?=$controllerClass?>" id="citeRecord" title="<?=$this->transEsc('Cite this')?>"><?=$this->transEsc('Cite this')?></a></li> - <? endif; ?> - <li><a href="<?=$this->recordLink()->getActionUrl($this->driver, 'SMS')?>" class="smsRecord sms <?=$controllerClass?>" id="smsRecord" title="<?=$this->transEsc('Text this')?>"><?=$this->transEsc('Text this')?></a></li> - <li><a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Email')?>" class="mailRecord mail <?=$controllerClass?>" id="mailRecord" title="<?=$this->transEsc('Email this')?>"><?=$this->transEsc('Email this')?></a></li> - <? $exportFormats = $this->export()->getFormatsForRecord($this->driver); if (count($exportFormats) > 0): ?> - <li> - <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>" class="export exportMenu"><?=$this->transEsc('Export Record')?></a> - <ul class="menu offscreen" id="exportMenu"> - <? foreach ($exportFormats as $exportFormat): ?> - <li><a <? if ($this->export()->needsRedirect($exportFormat)): ?>target="<?=$this->escapeHtmlAttr($exportFormat)?>Main" <? endif; ?>href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtmlAttr($exportFormat)?>"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li> - <? endforeach; ?> - </ul> - </li> - <? endif; ?> - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <li id="saveLink"><a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" class="saveRecord fav <?=$controllerClass?>" id="saveRecord" title="<?=$this->transEsc('Add to favorites')?>"><?=$this->transEsc('Add to favorites')?></a></li> - <? endif; ?> - <? if (!empty($addThis)): ?> - <li id="addThis"><a class="addThis addthis_button" href="https://www.addthis.com/bookmark.php?v=250&pub=<?=urlencode($addThis)?>"><?=$this->transEsc('Bookmark')?></a></li> - <? endif; ?> - <? if ($cart->isActive()): ?> - <li><a id="recordCart" class="<?=$cart->contains($cartId) ? 'bookbagDelete' : 'bookbagAdd'?> offscreen" href="#"><?=$this->transEsc('Add to Book Bag')?></a></li> - <? endif; ?> - </ul> - <? if ($cart->isActive()): ?> - <div class="cartSummary"> - <form method="post" name="addForm" action="<?=$this->url('cart-home')?>"> - <input id="cartId" type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($cartId)?>" /> - <noscript> - <? if ($cart->contains($cartId)): ?> - <input type="submit" class="button cart bookbagDelete" name="delete" value="<?=$this->transEsc('Remove from Book Bag')?>"/> - <? else: ?> - <input type="submit" class="button bookbagAdd" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"/> - <? endif; ?> - </noscript> - </form> - </div> - <? endif; ?> - <div class="clear"></div> -</div> diff --git a/themes/blueprint/templates/RecordDriver/SolrWeb/result-list.phtml b/themes/blueprint/templates/RecordDriver/SolrWeb/result-list.phtml deleted file mode 100644 index b0a979dd74db655989ed447b95eef74f571cd9dd..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/SolrWeb/result-list.phtml +++ /dev/null @@ -1,28 +0,0 @@ -<? - $url = $this->driver->getUrl(); -?> -<div class="listentry span-15"> - <div class="resultItemLine1"> - <a href="<?=$this->escapeHtmlAttr($url)?>" class="title"> - <?=$this->record($this->driver)->getTitleHtml()?> - </a> - </div> - - <div class="resultItemLine2"> - <? $snippet = $this->driver->getHighlightedSnippet(); ?> - <? $summary = $this->driver->getSummary(); ?> - <? if (!empty($snippet)): ?> - <?=$this->highlight($snippet['snippet'])?> - <? elseif (!empty($summary)): ?> - <?=$this->escapeHtml($summary[0])?> - <? endif; ?> - </div> - - <div class="resultItemLine3"> - <span style="color:#008000;" class="ui-li-desc"><?=$this->escapeHtml($url)?></span> - <? $lastMod = $this->driver->getLastModified(); if (!empty($lastMod)): ?> - <br /><?=$this->transEsc('Last Modified')?>: <?=$this->escapeHtml(trim(str_replace(array('T', 'Z'), ' ', $lastMod)))?> - <? endif; ?> - </div> -</div> -<div class="clearer"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/format-class.phtml b/themes/blueprint/templates/RecordDriver/Summon/format-class.phtml deleted file mode 100644 index 5601e7f5710eb1c0cfd601f580dcdb2eeed2b292..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/format-class.phtml +++ /dev/null @@ -1,44 +0,0 @@ -<? - // Convert Summon formats to VuFind formats so icons display correctly: - switch ($this->format) { - case 'Audio Recording': - echo 'audio'; - break; - case 'Book': - case 'Book Chapter': - echo 'book'; - break; - case 'Computer File': - case 'Web Resource': - echo 'electronic'; - break; - case 'Dissertation': - case 'Manuscript': - case 'Paper': - case 'Patent': - echo 'manuscript'; - break; - case 'eBook': - echo 'ebook'; - break; - case 'Kit': - echo 'kit'; - break; - case 'Image': - case 'Photograph': - echo 'photo'; - break; - case 'Music Score': - echo 'musicalscore'; - break; - case 'Newspaper Article': - echo 'newspaper'; - break; - case 'Video Recording': - echo 'video'; - break; - default: - echo 'journal'; - break; - } -?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/link-author.phtml b/themes/blueprint/templates/RecordDriver/Summon/link-author.phtml deleted file mode 100644 index 5aebd76f472dedf0a45e8d96de75376ed44caa8e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Author \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/link-journaltitle.phtml b/themes/blueprint/templates/RecordDriver/Summon/link-journaltitle.phtml deleted file mode 100644 index 5536935b4f4be76c407a7dd867e1d3f1365c31aa..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/link-journaltitle.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=PublicationTitle \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/link-series.phtml b/themes/blueprint/templates/RecordDriver/Summon/link-series.phtml deleted file mode 100644 index 26a9524f15a53509bf7ac0cb7d8416536fbdbbda..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/link-series.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=PublicationSeriesTitle \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/link-subject.phtml b/themes/blueprint/templates/RecordDriver/Summon/link-subject.phtml deleted file mode 100644 index cf66f99c10196f7e8380bf6955a933fc2730e6e9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Subject \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/Summon/link-title.phtml b/themes/blueprint/templates/RecordDriver/Summon/link-title.phtml deleted file mode 100644 index 57cdc24f2d6d29a12d49a08447a5d08928a47b85..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/Summon/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('summon-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Title \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/WorldCat/link-author.phtml b/themes/blueprint/templates/RecordDriver/WorldCat/link-author.phtml deleted file mode 100644 index c64269d9bd5bb19862f2a7c56ad83d4ea4c03054..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/WorldCat/link-author.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('worldcat-search')?>?lookfor=<?=urlencode($this->lookfor)?>&type=srw.au diff --git a/themes/blueprint/templates/RecordDriver/WorldCat/link-series.phtml b/themes/blueprint/templates/RecordDriver/WorldCat/link-series.phtml deleted file mode 100644 index d95ad084838175f0a631beffe32ea08268c1dd06..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/WorldCat/link-series.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('worldcat-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=srw.se \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/WorldCat/link-subject.phtml b/themes/blueprint/templates/RecordDriver/WorldCat/link-subject.phtml deleted file mode 100644 index 6b6bb5c92351d841d4bb25b8cf4b28bdd27e4013..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/WorldCat/link-subject.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('worldcat-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=srw.su \ No newline at end of file diff --git a/themes/blueprint/templates/RecordDriver/WorldCat/link-title.phtml b/themes/blueprint/templates/RecordDriver/WorldCat/link-title.phtml deleted file mode 100644 index 03f8d524558d20d3a643d5ea3b36e76553d3a8e2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordDriver/WorldCat/link-title.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->url('worldcat-search')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=srw.ti%3Asrw.se \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/collectionhierarchytree.phtml b/themes/blueprint/templates/RecordTab/collectionhierarchytree.phtml deleted file mode 100644 index 630849877690912cbaa21cc7bacdfdc5d99c1cd1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/collectionhierarchytree.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - $this->mainTreeClass = 'span-11'; - $this->treeContext = 'Collection'; -?> -<?=$this->render('RecordTab/hierarchytree.phtml')?> -<div class="span-11"> - <div id="hierarchyRecordHolder"> - <div id="hierarchyRecord"> - <? if (($collectionRecord = $this->tab->getActiveRecord()) !== false): ?> - <? if ($collectionRecord === null): ?> - <?=$this->render('collection/collection-record-error.phtml')?> - <? else: ?> - <?=$this->record($collectionRecord)->getCollectionBriefRecord()?> - <? endif; ?> - <? endif; ?> - </div> - </div> -</div> -<div class="clear"> </div> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/collectionlist.phtml b/themes/blueprint/templates/RecordTab/collectionlist.phtml deleted file mode 100644 index 90fe820d68a202cb51f1a5c3584660f0b84ae562..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/collectionlist.phtml +++ /dev/null @@ -1,33 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Collection Items') . ': ' . $this->driver->getBreadcrumb()); - - // Get search results - $results = $this->tab->getResults(); - $params = $this->tab->getParams(); - $searchDetails = array('results' => $results, 'params' => $params, 'indexStart' => 1); -?> -<? if (($recordTotal = $results->getResultTotal()) > 0): // only display these at very top if we have results ?> - <? foreach ($results->getRecommendations('top') as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <?=$this->transEsc("Showing")?> - <strong><?=$this->localizedNumber($results->getStartRecord())?></strong> - <strong><?=$this->localizedNumber($results->getEndRecord())?></strong> - <? if (!isset($this->skipTotalCount)): ?> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($recordTotal)?></strong> <?=$this->transEsc('Items')?> - <? endif; ?> - <?=$this->render('search/controls/sort.phtml', $searchDetails)?> - <?=$this->render('search/controls/view.phtml', $searchDetails)?> - <div class="paginationTop"> - <?=$this->paginationControl($results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $results))?> - </div> - <div class="clearer"></div> - <form method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>"> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', $searchDetails + array('idPrefix' => ''))?> - <?=$this->render('search/list-' . $results->getParams()->getView() . '.phtml', $searchDetails)?> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', $searchDetails + array('idPrefix' => 'bottom_'))?> - <?=$this->paginationControl($results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $results))?> - </form> -<? else: ?> - <?=$this->transEsc('collection_empty')?> -<? endif; ?> diff --git a/themes/blueprint/templates/RecordTab/description.phtml b/themes/blueprint/templates/RecordTab/description.phtml deleted file mode 100644 index f85c81a7004abf40cb1d4c0758f0c2a024d87bd3..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/description.phtml +++ /dev/null @@ -1,243 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Description') . ': ' . $this->driver->getBreadcrumb()); - - // Grab clean ISBN for convenience: - $isbn = $this->driver->getCleanISBN(); - - // Activate Syndetics Plus if necessary: - if ($this->syndeticsPlus()->isActive()) { - $this->headScript()->appendFile($this->syndeticsPlus()->getScript()); - } -?> -<table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Description')?>"> - <? $summ = $this->driver->getSummary(); if (!empty($summ)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Summary')?>: </th> - <td> - <? foreach ($summ as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $dateSpan = $this->driver->getDateSpan(); if (!empty($dateSpan)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Published')?>: </th> - <td> - <? foreach ($dateSpan as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $notes = $this->driver->getGeneralNotes(); if (!empty($notes)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Item Description')?>: </th> - <td> - <? foreach ($notes as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $physical = $this->driver->getPhysicalDescriptions(); if (!empty($physical)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Physical Description')?>: </th> - <td> - <? foreach ($physical as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $freq = $this->driver->getPublicationFrequency(); if (!empty($freq)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Publication Frequency')?>: </th> - <td> - <? foreach ($freq as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $playTime = $this->driver->getPlayingTimes(); if (!empty($playTime)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Playing Time')?>: </th> - <td> - <? foreach ($playTime as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $system = $this->driver->getSystemDetails(); if (!empty($system)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Format')?>: </th> - <td> - <? foreach ($system as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $audience = $this->driver->getTargetAudienceNotes(); if (!empty($audience)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Audience')?>: </th> - <td> - <? foreach ($audience as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $awards = $this->driver->getAwards(); if (!empty($awards)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Awards')?>: </th> - <td> - <? foreach ($awards as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $credits = $this->driver->getProductionCredits(); if (!empty($credits)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Production Credits')?>: </th> - <td> - <? foreach ($credits as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $bib = $this->driver->getBibliographyNotes(); if (!empty($bib)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Bibliography')?>: </th> - <td> - <? foreach ($bib as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $isbns = $this->driver->getISBNs(); if (!empty($isbns)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('ISBN')?>: </th> - <td> - <? foreach ($isbns as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $issns = $this->driver->getISSNs(); if (!empty($issns)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('ISSN')?>: </th> - <td> - <? foreach ($issns as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $doi = $this->driver->tryMethod('getCleanDOI'); if (!empty($doi)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('DOI')?>: </th> - <td><?=$this->escapeHtml($doi)?></td> - </tr> - <? endif; ?> - - <? $related = $this->driver->getRelationshipNotes(); if (!empty($related)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Related Items')?>: </th> - <td> - <? foreach ($related as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $access = $this->driver->getAccessRestrictions(); if (!empty($access)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Access')?>: </th> - <td> - <? foreach ($access as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $findingAids = $this->driver->getFindingAids(); if (!empty($findingAids)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Finding Aid')?>: </th> - <td> - <? foreach ($findingAids as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $publicationPlaces = $this->driver->getHierarchicalPlaceNames(); if (!empty($publicationPlaces)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Publication_Place')?>: </th> - <td> - <? foreach ($publicationPlaces as $field): ?> - <?=$this->escapeHtml($field)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? $authorNotes = empty($isbn) ? array() : $this->authorNotes($isbn); if (!empty($authorNotes)): ?> - <? $contentDisplayed = true; ?> - <tr valign="top"> - <th><?=$this->transEsc('Author Notes')?>: </th> - <td> - <? foreach ($authorNotes as $provider => $list): ?> - <? foreach ($list as $field): ?> - <?=$field['Content']?><br/> - <? endforeach; ?> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - - <? if (!isset($contentDisplayed) || !$contentDisplayed): // Avoid errors if there were no rows above ?> - <tr><td><?=$this->transEsc('no_description')?></td></tr> - <? endif; ?> -</table> diff --git a/themes/blueprint/templates/RecordTab/excerpt.phtml b/themes/blueprint/templates/RecordTab/excerpt.phtml deleted file mode 100644 index 09d6b34abde0a84ce1373be3d20fdeb6017a7a0e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/excerpt.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Excerpt') . ': ' . $this->driver->getBreadcrumb()); - - // Grab excerpt data: - $excerpts = $this->tab->getContent(); - - // Activate Syndetics Plus if necessary: - if ($this->syndeticsPlus()->isActive()) { - $this->headScript()->appendFile($this->syndeticsPlus()->getScript()); - } -?> -<? if (count($excerpts) > 0): ?> - <? foreach ($excerpts as $provider => $list): ?> - <? foreach ($list as $excerpt): ?> - <p class="summary"><?=$excerpt['Content']?></p> - <?=isset($excerpt['Copyright']) ? $excerpt['Copyright'] : ''?> - <hr/> - <? endforeach; ?> - <? endforeach; ?> -<? else: ?> - <?=$this->transEsc('No excerpts were found for this record.')?> -<? endif; ?> diff --git a/themes/blueprint/templates/RecordTab/hierarchytree.phtml b/themes/blueprint/templates/RecordTab/hierarchytree.phtml deleted file mode 100644 index e98c93095eb1b39aa7cf7834e58a54abb08f64ff..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/hierarchytree.phtml +++ /dev/null @@ -1,61 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('hierarchy_tree') . ': ' . $this->driver->getBreadcrumb()); - $hierarchyTreeList = $this->tab->getTreeList(); - $activeTree = $this->tab->getActiveTree(); - - $this->inlineScript( - \Zend\View\Helper\HeadScript::SCRIPT, - "var hierarchySettings = {\n" - . " lightboxMode: " . ($this->layout()->getTemplate() == 'layout/lightbox' ? 'true' : 'false') . ",\n" - . " fullHierarchy: " . ($this->tab->isFullHierarchyVisible() ? 'true' : 'false') . "\n" - . "};\n", - 'SET' - ); - $this->jsTranslations()->addStrings( - array('showTree' => 'hierarchy_show_tree', 'hideTree' => 'hierarchy_hide_tree') - ); - $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'jsTree/jquery.jstree.js'); - $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'hierarchyTree_JSTree.js'); - echo $this->inlineScript(); -?> -<div<?=isset($this->mainTreeClass) ? ' class="' . $this->mainTreeClass . '"' : ''?>> - <? if (count($hierarchyTreeList) > 1): ?> - <div id="treeSelector"> - <? foreach ($hierarchyTreeList as $hierarchy => $hierarchyTitle): ?> - <a class="tree<?=($activeTree == $hierarchy) ? ' currentTree' : ''?>" href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchy)?>"><?=$this->escapeHtml($hierarchyTitle)?></a> - <? endforeach; ?> - </div> - <? endif; ?> - <? if ($activeTree): ?> - <div id="hierarchyTreeHolder"> - <? if ($this->tab->searchActive()): ?> - <div id="treeSearch"> - <span id="treeSearchNoResults"><?=$this->transEsc('nohit_heading')?></span> - <input id="search" type="button" value="search" /> - <select id="treeSearchType" name="type"> - <option value="AllFields"><?=$this->transEsc('All Fields')?></option> - <option value="Title"><?=$this->transEsc('Title')?></option> - </select> - <input id="treeSearchText" type="text" value="" /> - <span id="treeSearchLoadingImg"><img src="<?=$this->imageLink('loading.gif')?>"/></span> - </div> - <div id="treeSearchLimitReached"><?=$this->transEsc('tree_search_limit_reached_html', array('%%url%%' => $this->url('search-results'), '%%limit%%' => $this->tab->getSearchLimit()))?></div> - <? endif; ?> - <div id="hierarchyTree"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" class="hiddenRecordId" /> - <input type="hidden" value="<?=$this->escapeHtmlAttr($activeTree)?>" class="hiddenHierarchyId" /> - <input type="hidden" value="<?=isset($this->treeContext) ? $this->treeContext : 'Record'?>" class="hiddenContext" /> - <? if ($this->layout()->getTemplate() != 'layout/lightbox'): ?> - <noscript> - <div id="treeList"> - <ul> - <?=$this->tab->renderTree($this->url('home'))?> - </ul> - </div> - </noscript> - <? endif; ?> - </div> - </div> - <? endif; ?> -</div> diff --git a/themes/blueprint/templates/RecordTab/holdingsils.phtml b/themes/blueprint/templates/RecordTab/holdingsils.phtml deleted file mode 100644 index c31352f85916dac7973ecf19d5cab60e2b1721c8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/holdingsils.phtml +++ /dev/null @@ -1,162 +0,0 @@ -<? - // Set up convenience variables: - $account = $this->auth()->getManager(); - $user = $account->isLoggedIn(); - $holdings = $this->driver->getRealTimeHoldings(); - $openUrl = $this->openUrl($this->driver, 'holdings'); - $openUrlActive = $openUrl->isActive(); - // Account for replace_other_urls setting - $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); - $offlineMode = $this->ils()->getOfflineMode(); - // Set page title. - $this->headTitle($this->translate('Holdings') . ': ' . $this->driver->getBreadcrumb()); -?> - -<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - -<? if ($offlineMode == "ils-offline"): ?> - <div class="sysInfo"> - <h2><?=$this->transEsc('ils_offline_title')?></h2> - <p><strong><?=$this->transEsc('ils_offline_status')?></strong></p> - <p><?=$this->transEsc('ils_offline_holdings_message')?></p> - <? $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> - <p><a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a></p> - </div> -<? endif; ?> -<? if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings)) || $this->ils()->getTitleHoldsMode() == 'driver'): ?> - <? if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?> - <? if (!$user): ?> - <div class="info"> - <a href="<?=$this->recordLink()->getTabUrl($this->driver, 'Holdings')?>?login=true&catalogLogin=true"><?=$this->transEsc("Login")?></a> <?=$this->transEsc("hold_login")?> - </div> - <? elseif (!$user->cat_username): ?> - <div class="info"> - <?=$this->translate("hold_profile_html", array('%%url%%' => $this->recordLink()->getTabUrl($this->driver, 'Holdings') . '?catalogLogin=true'))?> - </div> - <? endif; ?> - <? endif; ?> -<? endif; ?> -<? $holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); if (!empty($holdingTitleHold)): ?> - <a class="holdPlace" href="<?=$this->recordLink()->getRequestUrl($holdingTitleHold)?>"><?=$this->transEsc('title_hold_place')?></a> -<? endif; ?> -<? if (!empty($urls) || $openUrlActive): ?> - <h3><?=$this->transEsc("Internet")?></h3> - <? if (!empty($urls)): ?> - <? foreach ($urls as $current): ?> - <a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>"><?=$this->escapeHtml($current['desc'])?></a><br/> - <? endforeach; ?> - <? endif; ?> - <? if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><? endif; ?> -<? endif; ?> -<? foreach ($holdings as $holding): ?> -<h3><?=$this->transEsc('location_' . $holding['location'], array(), $holding['location'])?></h3> -<table cellpadding="2" cellspacing="0" border="0" class="citation" summary="<?=$this->transEsc('Holdings details from')?> <?=$this->transEsc($holding['location'])?>"> - <? $callNos = $this->tab->getUniqueCallNumbers($holding['items']); if (!empty($callNos)): ?> - <tr> - <th><?=$this->transEsc("Call Number")?>: </th> - <td> - <? foreach ($callNos as $callNo): ?> - <?=$this->escapeHtml($callNo)?><br /> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - <? foreach ($this->ils()->getHoldingsTextFieldNames() as $textField): ?> - <? if (!empty($holding[$textField])): ?> - <tr> - <? // Translation for summary is a special case for backwards-compatibility ?> - <th><?=$textField == 'summary' ? $this->transEsc("Volume Holdings") : $this->transEsc(ucfirst($textField))?>: </th> - <td> - <? foreach ($holding[$textField] as $current): ?> - <?=$this->escapeHtml($current)?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> - <? endforeach; ?> - <? foreach ($holding['items'] as $row): ?> - <? $check = (isset($row['check']) && $row['check']); ?> - <? $checkStorageRetrievalRequest = (isset($row['checkStorageRetrievalRequest']) && $row['checkStorageRetrievalRequest']); ?> - <? $checkILLRequest = (isset($row['checkILLRequest']) && $row['checkILLRequest']); ?> - <? if (isset($row['barcode']) && $row['barcode'] != ""): ?> - <tr vocab="http://schema.org/" typeof="Offer"> - <th><?=$this->transEsc("Copy")?> <?=$this->escapeHtml($row['number'])?></th> - <td> - <? if ($row['reserve'] == "Y"): ?> - <link property="availability" href="http://schema.org/InStoreOnly" /> - <?=$this->transEsc("On Reserve - Ask at Circulation Desk")?><br /> - <? endif; ?> - <? if (isset($row['use_unknown_message']) && $row['use_unknown_message']): ?> - <span class="unknown"><?=$this->transEsc("status_unknown_message")?></span> - <? else: ?> - <? if ($row['availability']): ?> - <? /* Begin Available Items (Holds) */ ?> - <div> - <link property="availability" href="http://schema.org/InStock" /> - <span class="available"><?=$this->transEsc("Available")?></span> - <? if (isset($row['link']) && $row['link']): ?> - <a class="holdPlace<?=$check ? ' checkRequest' : ''?>" href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><span><?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></span></a> - <? endif; ?> - <? if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?> - <a class="storageRetrievalRequestPlace<?=$checkStorageRetrievalRequest ? ' checkStorageRetrievalRequest' : ''?>" href="<?=$this->recordLink()->getRequestUrl($row['storageRetrievalRequestLink'])?>"><span><?=$this->transEsc($checkStorageRetrievalRequest ? "storage_retrieval_request_check_text" : "storage_retrieval_request_place_text")?></span></a> - <? endif; ?> - <? if (isset($row['ILLRequestLink']) && $row['ILLRequestLink']): ?> - <a class="ILLRequestPlace<?=$checkILLRequest ? ' checkILLRequest' : ''?>" href="<?=$this->recordLink()->getRequestUrl($row['ILLRequestLink'])?>"><span><?=$this->transEsc($checkILLRequest ? "ill_request_check_text" : "ill_request_place_text")?></span></a> - <? endif; ?> - </div> - <? else: ?> - <? /* Begin Unavailable Items (Recalls) */ ?> - <div> - <span class="checkedout"><?=$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span> - <? if (isset($row['returnDate']) && $row['returnDate']): ?> <span class="statusExtra"><?=$this->escapeHtml($row['returnDate'])?></span><? endif; ?> - <? if (isset($row['duedate']) && $row['duedate']): ?> - <span class="statusExtra"><?=$this->transEsc("Due")?>: <?=$this->escapeHtml($row['duedate'])?></span> - <? endif; ?> - <? if (isset($row['requests_placed']) && $row['requests_placed'] > 0): ?> - <span><?=$this->transEsc("Requests")?>: <?=$this->escapeHtml($row['requests_placed'])?></span> - <? endif; ?> - <? if (isset($row['link']) && $row['link']): ?> - <a class="holdPlace<?=$check ? ' checkRequest' : ''?>" href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><span><?=$this->transEsc($check ? "Check Recall" : "Recall This")?></span></a> - <? endif; ?> - </div> - <? endif; ?> - <? endif; ?> - <? /* Embed item structured data: library, barcode, call number */ ?> - <? if ($row['location']): ?> - <meta property="seller" content="<?=$this->escapeHtmlAttr($row['location'])?>" /> - <? endif; ?> - <? if ($row['barcode']): ?> - <meta property="serialNumber" content="<?=$this->escapeHtmlAttr($row['barcode'])?>" /> - <? endif; ?> - <? if ($row['callnumber']): ?> - <meta property="sku" content="<?=$this->escapeHtmlAttr($row['callnumber'])?>" /> - <? endif; ?> - <? /* Declare that the item is to be borrowed, not for sale */ ?> - <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut" /> - <link property="itemOffered" href="#record" /> - </td> - </tr> - <? endif; ?> - <? endforeach; ?> - <? if (!empty($holding['purchase_history'])): ?> - <tr> - <th><?=$this->transEsc("Most Recent Received Issues")?>:</th> - <td> - <? foreach ($holding['purchase_history'] as $current): ?> - <?=$this->escapeHtml($current['issue'])?><br/> - <? endforeach; ?> - </td> - </tr> - <? endif; ?> -</table> -<? endforeach; ?> - -<? $history = $this->driver->getRealTimeHistory(); ?> -<? if (is_array($history) && !empty($history)): ?> -<h3><?=$this->transEsc("Most Recent Received Issues")?></h3> -<ul> - <? foreach ($history as $row): ?> - <li><?=$this->escapeHtml($row['issue'])?></li> - <? endforeach; ?> -</ul> -<? endif; ?> diff --git a/themes/blueprint/templates/RecordTab/holdingsworldcat.phtml b/themes/blueprint/templates/RecordTab/holdingsworldcat.phtml deleted file mode 100644 index 8148ca6d4cc364f638e60273721c9755374a63a5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/holdingsworldcat.phtml +++ /dev/null @@ -1,24 +0,0 @@ -<? $holdings = $this->tab->getHoldings(); if ($holdings && count($holdings) > 0): ?> -<h3><?=$this->transEsc('Holdings at Other Libraries')?></h3> -<table cellpadding="2" cellspacing="0" border="0" class="citation" width="100%"> -<? foreach ($holdings as $holding): ?> - <tr> - <th colspan="2"> - <? if (isset($holding->electronicAddress->text) && !empty($holding->electronicAddress->text)): ?> - <a href="<?=$this->escapeHtmlAttr($holding->electronicAddress->text)?>"><?=$this->escapeHtml($holding->physicalLocation)?></a> - <? else: ?> - <?=$this->escapeHtml($holding->physicalLocation)?> - <? endif; ?> - </th> - </tr> - <tr> - <th><?=$this->transEsc('Address')?>: </th> - <td><?=$this->escapeHtml($holding->physicalAddress->text)?></td> - </tr> - <tr> - <th><?=$this->transEsc('Copies')?>: </th> - <td><?=$this->escapeHtml($holding->holdingSimple->copiesSummary->copiesCount)?></td> - </tr> -<? endforeach; ?> -</table> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/map.phtml b/themes/blueprint/templates/RecordTab/map.phtml deleted file mode 100644 index 374a6ef94f87b384a9b24bec932a10e323923df9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/map.phtml +++ /dev/null @@ -1,65 +0,0 @@ -<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.5&sensor=false&language=<?=$this->layout()->userLang?>"></script> - -<script type="text/javascript"> - -var markers; -var markersData; -var latlng; -var myOptions; -var map; -var infowindow = new google.maps.InfoWindow({maxWidth: 480, minWidth: 480}); - function initialize() { - markersData = <?=$this->tab->getGoogleMapMarker()?>; - latlng = new google.maps.LatLng(0, 0); - myOptions = { - zoom: 1, - center: latlng, - mapTypeControl: true, - mapTypeControlOptions: { - style: google.maps.MapTypeControlStyle.DROPDOWN_MENU - }, - mapTypeId: google.maps.MapTypeId.ROADMAP - }; - map = new google.maps.Map(document.getElementById("map_canvas"), - myOptions); - showMarkers(); - } - function showMarkers(){ - deleteOverlays(); - markers = []; - - for (var i = 0; i<markersData.length; i++){ - var disTitle = markersData[i].title; - var iconTitle = disTitle; - if (disTitle.length>25){ - iconTitle = disTitle.substring(0,25) + "..."; - } - var markerImg = "https://chart.googleapis.com/chart?chst=d_bubble_text_small&chld=edge_bc|" + iconTitle +"|EEEAE3|"; - var labelXoffset = 1 + disTitle.length * 4; - var latLng = new google.maps.LatLng(markersData[i].lat , markersData[i].lon) - var marker = new google.maps.Marker({ - position: latLng, - map: map, - title: disTitle, - icon: markerImg - }); - markers.push(marker); - } - } - function deleteOverlays() { - if (markers) { - for (i in markers) { - markers[i].setMap(null); - } - markers.length = 0; - } - } - function refreshMap() { - showMarkers(); - } - google.maps.event.addDomListener(window, 'load', initialize); -</script> - -<div id="wrap" onload="initialize()" style="width: 674px; height: 479px"> - <div id="map_canvas" style="width: 100%; height: 100%"></div> -</div> diff --git a/themes/blueprint/templates/RecordTab/preview.phtml b/themes/blueprint/templates/RecordTab/preview.phtml deleted file mode 100644 index 36d3301a1bd0d6dd4d4db875ccfc511260646404..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/preview.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Preview') . ': ' . $this->driver->getBreadcrumb()); - - // load the embedded preview javascript file - $this->headScript()->appendFile('https://www.google.com/jsapi'); - $this->headScript()->appendFile('embedGBS.js'); -?> -<div id="gbsViewer" ></div> - diff --git a/themes/blueprint/templates/RecordTab/reviews.phtml b/themes/blueprint/templates/RecordTab/reviews.phtml deleted file mode 100644 index 8ba38a3c9fd19b7997fe41341a625b3e35cbae6d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/reviews.phtml +++ /dev/null @@ -1,37 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Reviews') . ': ' . $this->driver->getBreadcrumb()); - - // Grab review data: - $reviews = $this->tab->getContent(); - - // Activate Syndetics Plus if necessary: - if ($this->syndeticsPlus()->isActive()) { - $this->headScript()->appendFile($this->syndeticsPlus()->getScript()); - } -?> -<? if (count($reviews) > 0): ?> - <? foreach ($reviews as $provider => $list): ?> - <? foreach ($list as $review): ?> - <? if (isset($review['Summary']) && !empty($review['Summary'])): ?> - <p> - <? if (isset($review['Rating'])): ?> - <img src="<?=$this->imageLink($review['Rating'] . '.gif')?>" alt="<?=$review['Rating']?>/5 Stars"/> - <? endif; ?> - <strong><?=$review['Summary']?></strong> <?=isset($review['Date']) ? strftime('%B %e, %Y', strtotime($review['Date'])) : ''?> - </p> - <? endif; ?> - <? if (isset($review['Source'])): ?><strong><?=$this->transEsc('Review by')?> <?=$review['Source']?></strong><? endif; ?> - <p class="summary"> - <?=isset($review['Content']) ? $review['Content'] : ''?> - <? if ((!isset($review['Content']) || empty($review['Content'])) && isset($review['ReviewURL'])): ?> - <a target="new" href="<?=$this->escapeHtmlAttr($review['ReviewURL'])?>"><?=$this->transEsc('Read the full review online...')?></a> - <? endif; ?> - </p> - <?=isset($review['Copyright']) ? $review['Copyright'] : ''?> - <hr/> - <? endforeach; ?> - <? endforeach; ?> -<? else: ?> - <?=$this->transEsc('No reviews were found for this record')?>. -<? endif; ?> diff --git a/themes/blueprint/templates/RecordTab/similaritemscarousel.phtml b/themes/blueprint/templates/RecordTab/similaritemscarousel.phtml deleted file mode 100644 index 847c57ac01eec6edc2c0e96498c30081830573ee..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/similaritemscarousel.phtml +++ /dev/null @@ -1,39 +0,0 @@ -<? - echo $this->headLink()->appendStylesheet('slick/slick.css'); - echo $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'slick/slick.js', 'SET'); -?> -<h4><?=$this->transEsc('Similar Items')?></h4> -<? $similarRecords = $this->tab->getResults(); ?> -<? if (!empty($similarRecords)): ?> - <div id="similar-items-carousel"> - <? foreach ($similarRecords as $index=>$data): ?> - <div> - <a class="hover-overlay" href="<?=$this->recordLink()->getUrl($data)?>"> - <? $thumb = $this->record($data)->getThumbnail('large'); ?> - <img src="<?=$thumb ?>" title="<?=$data->getTitle() ?>"/> - <div class="content"> - <? $formats = $data->getFormats(); ?> - <i class="fa fa-x<? if (count($formats) > 0): ?> fa-<?=preg_replace('/[^a-z0-9]/', '', strtolower($formats[0]))?>" title="<?=$formats[0] ?><? endif; ?>"></i> - <b><?=$this->escapeHtml($data->getTitle())?></b> - <? $author = $data->getPrimaryAuthor(); if (!empty($author)): ?> - <br/><?=$this->transEsc('by')?>: <?=$this->escapeHtml($author);?> - <? endif; ?> - <? $pubDates = $data->getPublicationDates(); if (!empty($pubDates)): ?> - <br/><?=$this->transEsc('Published')?>: (<?=$this->escapeHtml($pubDates[0])?>) - <? endif; ?> - </div> - </a> - </div> - <? endforeach; ?> - </div> -<? $carouselJS = <<<JS -$('#similar-items-carousel').slick({ - dots:true, - slidesToShow: 4, - slidesToScroll: 4 -}); -JS; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $carouselJS, 'SET'); ?> -<? else: ?> - <p><?=$this->transEsc('Cannot find similar records')?></p> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/staffviewarray.phtml b/themes/blueprint/templates/RecordTab/staffviewarray.phtml deleted file mode 100644 index b315fec63e0c2a01e89b054088a6c39bfa4ec988..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/staffviewarray.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb()); -?> -<table class="citation"> - <? foreach ($this->driver->getRawData() as $field => $values): ?> - <tr> - <th><?=$this->escapeHtml($field)?></th> - <td> - <div style="width: 500px; overflow: auto;"> - <? if (!is_array($values)) { $values = array($values); } ?> - <? foreach ($values as $value): ?> - <?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br /> - <? endforeach; ?> - </div> - </td> - </tr> - <? endforeach; ?> -</table> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/staffviewmarc.phtml b/themes/blueprint/templates/RecordTab/staffviewmarc.phtml deleted file mode 100644 index cc89c983995ada977b5bafc4efa71b2dd0f67420..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/staffviewmarc.phtml +++ /dev/null @@ -1,5 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb()); -?> -<?=\VuFind\XSLT\Processor::process('record-marc.xsl', $this->driver->getXML('marc21'))?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/toc.phtml b/themes/blueprint/templates/RecordTab/toc.phtml deleted file mode 100644 index 46d9a5921ad34961c90ad7aea64346a32cc66901..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/toc.phtml +++ /dev/null @@ -1,16 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Table of Contents') . ': ' . $this->driver->getBreadcrumb()); - - $toc = $this->driver->getTOC(); -?> -<? if (!empty($toc)): ?> - <strong><?=$this->transEsc('Table of Contents')?>: </strong> - <ul class="toc"> - <? foreach ($toc as $line): ?> - <li><?=$this->escapeHtml($line)?></li> - <? endforeach; ?> - </ul> -<? else: ?> - <?=$this->transEsc("Table of Contents unavailable")?>. -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/RecordTab/usercomments.phtml b/themes/blueprint/templates/RecordTab/usercomments.phtml deleted file mode 100644 index c2e66973e8599ebaa682ae437fc290d9d41fb56b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/RecordTab/usercomments.phtml +++ /dev/null @@ -1,16 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Comments') . ': ' . $this->driver->getBreadcrumb()); -?> -<ul class="commentList" id="commentList"> -<?=$this->render('record/comments-list.phtml')?> -</ul> - -<form name="commentRecord" id="commentRecord" action="<?=$this->recordLink()->getActionUrl($this->driver, 'AddComment')?>" method="post"> - <input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>"/> - <input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>"/> - <label for="comment" class="offscreen"><?=$this->transEsc("Your Comment")?>:</label> - <textarea id="comment" name="comment" rows="4" cols="50" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"></textarea> - <br/><br/> - <input type="submit" value="<?=$this->transEsc("Add your comment")?>"/> -</form> diff --git a/themes/blueprint/templates/Related/Editions.phtml b/themes/blueprint/templates/Related/Editions.phtml deleted file mode 100644 index e0449b0265fef550f7ce27c7846b8eab5f5d7d27..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Related/Editions.phtml +++ /dev/null @@ -1,24 +0,0 @@ -<? $editions = $this->related->getResults(); if (!empty($editions)): ?> - <div class="sidegroup"> - <h4><?=$this->transEsc('Other Editions')?></h4> - <ul class="similar"> - <? foreach ($editions as $data): ?> - <li> - <? $formats = $data->getFormats(); if (count($formats) > 0): ?> - <span class="<?=preg_replace('/[^a-z0-9]/', '', strtolower($formats[0]))?>"> - <? else: ?> - <span> - <? endif; ?> - <a href="<?=$this->recordLink()->getUrl($data)?>"><?=$this->escapeHtml($data->getTitle())?></a> - </span> - <? $author = $data->getPrimaryAuthor(); if (!empty($author)): ?> - <br/><?=$this->transEsc('By')?>: <?=$this->escapeHtml($author);?> - <? endif; ?> - <? $pubDates = $data->getPublicationDates(); if (!empty($pubDates)): ?> - <?=$this->transEsc('Published')?>: (<?=$this->escapeHtml($pubDates[0])?>) - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/Related/Similar.phtml b/themes/blueprint/templates/Related/Similar.phtml deleted file mode 100644 index 3d352a1dbbc7785e32b3f1a88ecbb11052824f5a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/Related/Similar.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<div class="sidegroup"> - <h4><?=$this->transEsc('Similar Items')?></h4> - <? $similarRecords = $this->related->getResults(); if (!empty($similarRecords)): ?> - <ul class="similar"> - <? foreach ($similarRecords as $data): ?> - <li> - <? $formats = $data->getFormats(); if (count($formats) > 0): ?> - <span class="<?=preg_replace('/[^a-z0-9]/', '', strtolower($formats[0]))?>"> - <? else: ?> - <span> - <? endif; ?> - <a href="<?=$this->recordLink()->getUrl($data)?>"><?=$this->escapeHtml($data->getTitle())?></a> - </span> - <? $author = $data->getPrimaryAuthor(); if (!empty($author)): ?> - <br/><?=$this->transEsc('By')?>: <?=$this->escapeHtml($author);?> - <? endif; ?> - <? $pubDates = $data->getPublicationDates(); if (!empty($pubDates)): ?> - <?=$this->transEsc('Published')?>: (<?=$this->escapeHtml($pubDates[0])?>) - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - <? else: ?> - <p><?=$this->transEsc('Cannot find similar records')?></p> - <? endif; ?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/admin/config/home.phtml b/themes/blueprint/templates/admin/config/home.phtml deleted file mode 100644 index ebf54a03660e491fa2823405e77dc4d08dc87b05..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/config/home.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Configuration')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->transEsc('Configuration')?></h1> - <?=$this->flashmessages()?> - <p>Most VuFind configuration is handled by editing the configuration files in <strong><?=$this->escapeHtml($this->baseConfigPath)?></strong>.</p> - <p>Some basic settings can also be adjusted through the auto-configuration tool.</p> - <? if (!$this->showInstallLink): ?> - <p><?=$this->transEsc('Auto configuration is currently disabled') ?>.</p> - <p><a href="<?=$this->url('admin/config', array('action' => 'EnableAutoConfig'))?>"><?=$this->transEsc('Enable Auto Config')?></a></p> - <? else: ?> - <p><a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title')?></a></p> - <? endif; ?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/disabled.phtml b/themes/blueprint/templates/admin/disabled.phtml deleted file mode 100644 index 7572a66d769b00aba0b983526b988856503a76c9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/disabled.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<div class="span-18 last"> - <p class="error"> - The Admin module is currently disabled. To turn it on, see the admin_enabled - setting in the [Site] section of config.ini. - </p> -</div> -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/admin/home.phtml b/themes/blueprint/templates/admin/home.phtml deleted file mode 100644 index 3c299c665ba74bfd1161c352b65859f777e7bb6d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/home.phtml +++ /dev/null @@ -1,48 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Home')); - - // Set up map of core name => label - $coreLabels = array( - 'biblio' => $this->translate('Bibliographic Index'), - 'authority' => $this->translate('Authority Index'), - 'stats' => $this->translate('Usage Statistics Index') - ); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->transEsc('VuFind Administration')?></h1> - <? $cores = is_object($this->xml) ? $this->xml->xpath('/response/lst[@name="status"]/lst') : array(); ?> - <? foreach ($cores as $core): ?> - <? $coreName = (string)$core['name']; ?> - <? $coreLabel = isset($coreLabels[$coreName]) ? $coreLabels[$coreName] : ucwords($coreName) . ' Index'; ?> - <h2><?=$this->transEsc($coreLabel)?></h2> - <table class="citation"> - <tr> - <th><?=$this->transEsc('Record Count')?>: </th> - <? $recordCount = $core->xpath('//lst[@name="' . $coreName . '"]/lst/int[@name="numDocs"]') ?> - <td><?=$this->escapeHtml((string)array_pop($recordCount))?></td> - </tr> - <tr> - <th><?=$this->transEsc('Start Time')?>: </th> - <? $startTime = $core->xpath('//lst[@name="' . $coreName . '"]/date[@name="startTime"]') ?> - <td><?=$this->escapeHtml(strftime("%b %d, %Y %l:%M:%S%p", strtotime((string)array_pop($startTime))))?></td> - </tr> - <tr> - <th><?=$this->transEsc('Last Modified')?>: </th> - <? $lastModified = $core->xpath('//lst[@name="' . $coreName . '"]/lst/date[@name="lastModified"]') ?> - <td><?=$this->escapeHtml(strftime("%b %d, %Y %l:%M:%S%p", strtotime((string)array_pop($lastModified))))?></td> - </tr> - <tr> - <th><?=$this->transEsc('Uptime')?>: </th> - <? $uptime = $core->xpath('//lst[@name="' . $coreName . '"]/long[@name="uptime"]') ?> - <td><?=$this->printms((string)array_pop($uptime))?></td> - </tr> - </table> - <? endforeach; ?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/maintenance/home.phtml b/themes/blueprint/templates/admin/maintenance/home.phtml deleted file mode 100644 index cef2f1f278b5f934058b698294801a820d289c34..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/maintenance/home.phtml +++ /dev/null @@ -1,35 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - System Maintenance')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->transEsc('System Maintenance')?></h1> - - <h2>Utilities</h2> - <?=$this->flashmessages()?> - <form method="get" action="<?=$this->url('admin/maintenance', array('action' => 'DeleteExpiredSearches'))?>"> - <label for="del_daysOld" style="font-weight: normal;">Delete unsaved user search histories older than</label> - <input id="del_daysOld" type="text" name="daysOld" size="5" value="2"/> days. - <input type="submit" name="submit" value="<?=$this->transEsc('Submit')?>"/> - </form> - <hr /> - <form method="get" action="<?=$this->url('admin/maintenance', array('action' => 'DeleteExpiredSessions'))?>"> - <label for="delsess_daysOld" style="font-weight: normal;">Delete user sessions older than</label> - <input id="delsess_daysOld" type="text" name="daysOld" size="5" value="2"/> days. - <input type="submit" name="submit" value="<?=$this->transEsc('Submit')?>"/> - </form> - <hr /> - <form method="get" action="<?=$this->url('admin/maintenance', array('action' => 'ClearCache'))?>"> - Clear cache(s): - <? foreach ($caches as $cache): ?> - <input type="checkbox" checked="checked" name="cache[]" value="<?=$this->escapeHtmlAttr($cache)?>" /> <?=$this->escapeHtml($cache) ?> - <? endforeach; ?> - <input type="submit" name="submit" value="<?=$this->transEsc('Submit')?>"/> - </form> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/menu.phtml b/themes/blueprint/templates/admin/menu.phtml deleted file mode 100644 index 9a023bad3b30cb83b1dc5b74dd062867902ee033..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/menu.phtml +++ /dev/null @@ -1,8 +0,0 @@ -<ul id="list1"> - <li<?=strtolower($this->layout()->templateName) == "home" ? ' class="active"' : ''?>><a href="<?=$this->url('admin')?>"><?=$this->transEsc('Home')?></a></li> - <li<?=strtolower($this->layout()->templateName) == "socialstats" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/social')?>"><?=$this->transEsc('Social Statistics')?></a></li> - <li<?=strtolower($this->layout()->templateName) == "statistics" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/statistics')?>"><?=$this->transEsc('Statistics')?></a></li> - <li<?=strtolower($this->layout()->templateName) == "config" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/config')?>"><?=$this->transEsc('Configuration')?></a> - <li<?=strtolower($this->layout()->templateName) == "maintenance" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/maintenance')?>"><?=$this->transEsc('System Maintenance')?></a></li> - <li<?=strtolower($this->layout()->templateName) == "tags" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/tags')?>"><?=$this->transEsc('Tag Maintenance')?></a></li> -</ul> diff --git a/themes/blueprint/templates/admin/socialstats/home.phtml b/themes/blueprint/templates/admin/socialstats/home.phtml deleted file mode 100644 index be43c79a91c8df30a892763c4f9a0feafd97cab9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/socialstats/home.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Social Statistics')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->transEsc('Social Statistics')?></h1> - - <h2>Comments</h2> - <table> - <tr><th>Total Users</th><th>Total Resources</th><th>Total Comments</th></tr> - <tr><td><?=$comments['users']?></td><td><?=$comments['resources']?></td><td><?=$comments['total']?></td></tr> - </table> - - <h2>Favorites</h2> - <table> - <tr><th>Total Users</th><th>Total Resources</th><th>Total Lists</th><th>Total Saved Items</th></tr> - <tr><td><?=$favorites['users']?></td><td><?=$favorites['resources']?></td><td><?=$favorites['lists']?></td><td><?=$favorites['total']?></td></tr> - </table> - - <h2>Tags</h2> - <table> - <tr><th>Total Users</th><th>Total Resources</th><th>Total Tags</th></tr> - <tr><td><?=$tags['users']?></td><td><?=$tags['resources']?></td><td><?=$tags['total']?></td></tr> - </table> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/statistics/home.phtml b/themes/blueprint/templates/admin/statistics/home.phtml deleted file mode 100644 index a6a7710fc4bdbcf03b2a91ac320e0233dc6c595d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/statistics/home.phtml +++ /dev/null @@ -1,94 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Statistics')); -?> -<style> -table { - table-layout: fixed; - width: 100%; -} -tr td:first-child { - width:50%; -} -</style> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->transEsc('Statistics')?></h1> - - <? if(null !== $this->totalSearches || null !== $this->emptySearches || null !== $this->totalRecordViews): ?> - <h2>Executive Summary</h2> - <table> - <? if(null !== $this->totalSearches): ?><tr><td>Total Searches</td><td><?=$this->totalSearches ?></td></tr><? endif; ?> - <? if(null !== $this->emptySearches): ?><tr><td>0 Hit Searches</td><td><?=$this->emptySearches ?></td></tr><? endif; ?> - <? if(null !== $this->totalRecordViews): ?><tr><td>Total Record Views</td><td><?=$this->totalRecordViews ?></td></tr><? endif; ?> - </table> - <? endif; ?> - - <? if(!empty($this->topSearches)): ?> - <h2>Top Searches<? if($this->searchesBySource): ?> by Source<? endif; ?></h2> - <? if($this->searchesBySource): ?> - <? foreach($this->topSearches as $source=>$searches): ?> - <span style="font-size:14px"><?=$source ?></span> - <table> - <? foreach($searches as $search): ?> - <tr><td><?=$search['value'] ?></td><td><?=$this->localizedNumber($search['count']) ?></td></tr> - <? endforeach; ?> - </table> - <? endforeach; ?> - <? else: ?> - <table> - <? foreach($this->topSearches as $search): ?> - <tr><td><?=$search['value'] ?></td><td><?=$this->localizedNumber($search['count']) ?></td><td><?=$search['source'] ?></td></tr> - <? endforeach; ?> - </table> - <? endif; ?> - <? endif; ?> - - <? if(!empty($this->topRecords)): ?> - <h2>Top Records<? if($this->recordsBySource): ?> by Source<? endif; ?></h2> - <? if($this->recordsBySource): ?> - <? foreach($this->topRecords as $source=>$records): ?> - <span style="font-size:14px"><?=$source ?></span> - <table> - <? foreach($records as $record): ?> - <tr><td><?=$record['value'] ?></td><td><?=$this->localizedNumber($record['count']) ?></td></tr> - <? endforeach; ?> - </table> - <? endforeach; ?> - <? else: ?> - <table> - <? foreach($this->topRecords as $record): ?> - <tr><td><?=$record['value'] ?></td><td><?=$this->localizedNumber($record['count']) ?></td><td><?=$record['source'] ?></td></tr> - <? endforeach; ?> - </table> - <? endif; ?> - <? endif; ?> - - <? if(!empty($this->browserStats)): ?> - <h2>Browser Usage</h2> - <? - $total = 0; - foreach($this->browserStats as $browser) { - $total += $browser['count']; - } - ?> - <table> - <? foreach($this->browserStats as $browser): ?> - <tr><td><?=$browser['browserName'] ?></td><td><?=$this->localizedNumber($browser['count']) ?></td><td><?=$this->localizedNumber($browser['count']*100/$total, 2) ?>%</td></tr> - <? endforeach; ?> - </table> - <h4 style="display:inline">Top Versions</h4>: - <? foreach($this->topVersions as $i=>$browser): ?> - <span style="padding:0 3px<? if($this->currentBrowser == $browser['browserName']): ?>;background:#E5ECF9<? endif; ?>"><?=$browser['browserName'] ?> (<?=$this->localizedNumber($browser['count']) ?>)</span><? if(++$i < count($this->topVersions)): ?>,<? endif; ?> - <? endforeach; ?> - <? endif; ?> - - <? if(empty($this->topSearches) && empty($this->topRecords) && empty($this->browserStats)): ?> - No statistic sources. - <? endif; ?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/tags/checkbox.phtml b/themes/blueprint/templates/admin/tags/checkbox.phtml deleted file mode 100644 index ee58b72a9e49efe10c83458a4a52bccce543361e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/tags/checkbox.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<label for="<?=$this->prefix?>checkbox_<?=$this->tag['id']?>" class="offscreen"><?=$this->transEsc('Select this tag')?></label> -<input id="<?=$this->prefix?>checkbox_<?=$this->tag['id']?>" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->tag['id'])?>" class="checkbox_ui"/> -<input type="hidden" name="idsAll[]" value="<?=$this->escapeHtmlAttr($this->tag['id'])?>" /> diff --git a/themes/blueprint/templates/admin/tags/home.phtml b/themes/blueprint/templates/admin/tags/home.phtml deleted file mode 100644 index bdac36a176289114270f34ca0a1e07976fb36d77..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/tags/home.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Tag Management')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->translate('Tag Management')?></h1> - - <?=$this->render("admin/tags/menu.phtml")?> - - <h2><?=$this->translate('Statistics')?></h2> -<table> - <tr><th><?=$this->transEsc('total_users')?></th><th><?=$this->transEsc('total_resources')?></th><th><?=$this->transEsc('total_tags')?></th><th><?=$this->transEsc('unique_tags')?></th><th><?=$this->transEsc('anonymous_tags')?></th></tr> - <tr><td><?=$statistics['users']?></td><td><?=$statistics['resources']?></td><td><?=$statistics['total']?></td><td><?=$statistics['unique']?></td><td><?=$statistics['anonymous']?></td></tr> - </table> - -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/tags/list.phtml b/themes/blueprint/templates/admin/tags/list.phtml deleted file mode 100644 index 4224ce4f09797be50a787cbff116f96e327051a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/tags/list.phtml +++ /dev/null @@ -1,112 +0,0 @@ -<?php - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Tag Management')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->translate('Tag Management')?></h1> - <h2><?=$this->translate('List Tags')?></h2> - - <?=$this->render("admin/tags/menu.phtml")?> - - <?=$this->flashmessages()?> - - <div class="tagForm"> - <form action="<?= $this->url('admin/tags', array('action' => 'List'))?>" method="get"> - - <fieldset> - <legend><?=$this->translate('filter_tags')?></legend> - - <table> - <tr> - <th><label for="user_id"><?=$this->translate('Username')?></label></th> - <th><label for="tag_id"><?=$this->translate('Tag')?></label></th> - <th><label for="resource_id"><?=$this->translate('Title')?></label></th> - </tr> - <tr> - <td> - <select name="user_id" id="user_id"> - <option value="ALL"><?=$this->translate('All')?></option> - <? foreach($this->uniqueUsers as $user):?> - <option value="<?= $user['user_id'] ?>"<? if(isset($this->params['user_id']) && $user['user_id'] == $this->params['user_id']): ?> selected="selected"<? endif;?>> - <?=$user['username'] ?> - </option> - <? endforeach;?> - </select> - </td> - <td> - <select name="tag_id" id="tag_id"> - <option value="ALL"><?=$this->translate('All')?></option> - <? foreach($this->uniqueTags as $tag):?> - <option value="<?= $tag['tag_id'] ?>"<? if(isset($this->params['tag_id']) && $tag['tag_id'] == $this->params['tag_id']): ?> selected="selected"<? endif;?>> - <?=$tag['tag'] ?> - </option> - <? endforeach;?> - </select> - </td> - <td> - <select name="resource_id" id="resource_id"> - <option value="ALL"><?=$this->translate('All')?></option> - <? foreach($this->uniqueResources as $resource):?> - <option value="<?= $resource['resource_id']; ?>" title="<?=$resource['title'] ?>"<? if(isset($this->params['resource_id']) && $resource['resource_id'] == $this->params['resource_id']): ?> selected="selected"<? endif;?>> - <?=$this->truncate($resource['title'], 80) ?> (<?=$resource['resource_id'] ?>) - </option> - <? endforeach;?> - </select> - </td> - </tr> - </table> - - <input type="submit" value="<?=$this->transEsc('Filter')?>"> - <? if((isset($this->params['user_id']) && !is_null($this->params['user_id'])) || (isset($this->params['tag_id']) && !is_null($this->params['tag_id'])) || (isset($this->params['resource_id']) && !is_null($this->params['resource_id']))):?> - <a href="<?= $this->url('admin/tags', array('action' => 'List')); ?>"><?=$this->translate('clear_tag_filter')?></a> - <? endif;?> - - </fieldset> - - </form> - </div> - - <? if(count($this->results) > 0):?> - <div class="tagsList"> - <form action="<?= $this->url('admin/tags', array('action' => 'Delete'))?>" method="post"> - <input type="hidden" name="user_id" value="<?=isset($this->params['user_id']) ? $this->params['user_id'] : '' ?>" /> - <input type="hidden" name="tag_id" value="<?=isset($this->params['tag_id']) ? $this->params['tag_id'] : '' ?>" /> - <input type="hidden" name="resource_id" value="<?=isset($this->params['resource_id']) ? $this->params['resource_id'] : '' ?>" /> - <input type="hidden" name="origin" value="list" /> - - <table class="citation"> - - <tr> - <th> </th> - <th><?=$this->translate('Username')?></th> - <th><?=$this->translate('Tag')?></th> - <th><?=$this->translate('Title')?></th> - </tr> - - <? foreach ($this->results as $tag): ?> - <tr> - <td><?=$this->render('admin/tags/checkbox', array('tag'=>$tag)) ; ?></td> - <td><?=$tag->username ?> (<?= $tag->user_id?>)</td> - <td><?=$tag->tag?> (<?= $tag->tag_id?>)</td> - <td><?=$tag->title?> (<?= $tag->resource_id?>)</td> - </tr> - <? endforeach;?> - </table> - - <input type="submit" name="deleteSelected" value="<?=$this->transEsc('delete_selected')?>"> - <input type="submit" name="deletePage" value="<?=$this->transEsc('delete_page')?>"> - <input type="submit" name="deleteFilter" value="<?=$this->transEsc('delete_all')?>"> - - </form> - </div> - <?=$this->paginationControl($this->results, 'Sliding', 'Helpers/pagination.phtml', array('params' => $this->params))?> - <? else:?> - <p><?=$this->translate('tag_filter_empty')?></p> - <? endif;?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/tags/manage.phtml b/themes/blueprint/templates/admin/tags/manage.phtml deleted file mode 100644 index 70c26bc2bf7c69c24cd88566503c19195d8e9275..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/tags/manage.phtml +++ /dev/null @@ -1,89 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('VuFind Administration - Tag Maintenance')); -?> -<div class="span-5"> - <?=$this->render("admin/menu.phtml")?> -</div> - -<div class="span-18 last"> - <h1><?=$this->translate('Tag Management')?></h1> - <h2><?=$this->translate('Manage Tags')?></h2> - - <?=$this->render("admin/tags/menu.phtml")?> - - <?=$this->flashmessages()?> - - <form action="<?= $this->url('admin/tags', array('action' => 'Manage'));?>" method="post"> - - <label for="type"><?=$this->translate('delete_tags_by')?>:</label> - - <select id="type" name="type"> - <option value="user" <? if("user" == $this->type) echo " selected=selected";?>><?=$this->translate('Username')?></option> - <option value="tag" <? if("tag" == $this->type) echo " selected=selected";?>><?=$this->translate('Tag')?></option> - <option value="resource" <? if("resource" == $this->type) echo " selected=selected";?>><?=$this->translate('Title')?></option> - </select> - - <input type="submit" value="<?=$this->translate('Submit')?>" /> - - </form> - - <? if(false !== $this->type):?> - - <form action="<?= $this->url('admin/tags', array('action' => 'Delete'))?>" method="post"> - <input type="hidden" name="origin" value="manage" /> - <input type="hidden" name="type" value="<?= $this->type; ?>" /> - - <? if("user" == $type):?> - - <label for="user_id"><?=$this->translate('Username')?></label> - - <select name="user_id" id="user_id"> - <? foreach($this->uniqueUsers as $user):?> - <option value="<?= $user['user_id'] ?>"> - <?= $user['username'] ?> - </option> - <? endforeach;?> - </select> - - <input type="submit" name="deleteFilter" value="<?=$this->translate('delete_tags')?>" /> - - <? elseif("tag" == $type):?> - - <label for="tag_id"><?=$this->translate('Tag')?></label> - - <select name="tag_id" id="tag_id"> - <? foreach($this->uniqueTags as $tag):?> - <option value="<?= $tag['tag_id'] ?>"> - <?= $tag['tag'] ?> - </option> - <? endforeach;?> - </select> - - <input type="submit" name="deleteFilter" value="<?=$this->translate('delete_tags')?>" /> - - <? elseif("resource" == $type):?> - - <label for="resource_id"><?=$this->translate('Title')?></label> - - <select name="resource_id" id="resource_id"> - <? foreach($this->uniqueResources as $resource):?> - <option value="<?=$resource['resource_id'] ?>" title="<?=$resource['title'] ?>"> - <?=$this->truncate($resource['title'], 80) ?> (<?= $resource['resource_id'] ?>) - </option> - <? endforeach;?> - </select> - - <input type="submit" name="deleteFilter" value="<?=$this->translate('delete_tags')?>" /> - - <? endif;?> - - </form> - - <? endif;?> - - </form> - -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/admin/tags/menu.phtml b/themes/blueprint/templates/admin/tags/menu.phtml deleted file mode 100644 index e837b008b63672c5440a761d04df84b2dd850440..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/admin/tags/menu.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<div class="toolbar"> - <ul> - <li<?=strtolower($this->layout()->templateName) == "tagslist" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/tags', array('action' => 'List'))?>"><?=$this->transEsc('List Tags')?></a></li> - <li<?=strtolower($this->layout()->templateName) == "tagsmanage" ? ' class="active"' : ''?>><a href="<?=$this->url('admin/tags', array('action' => 'Manage'))?>"><?=$this->transEsc('Manage Tags')?></a></li> - </ul> -</div> diff --git a/themes/blueprint/templates/ajax/export-favorites.phtml b/themes/blueprint/templates/ajax/export-favorites.phtml deleted file mode 100644 index c1120508d1ee6c30d8163ff50cc9b90d0253f61e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/export-favorites.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<p> - <a class="save" onclick="hideLightbox();" href="<?=$this->escapeHtmlAttr($this->url)?>"<?=$this->export()->needsRedirect($this->format) ? ' target="_blank"' : ''?>><?= - $this->export()->needsRedirect($this->format) - ? $this->transEsc('export_redirect', array('%%service%%' => $this->translate($this->export()->getLabelForFormat($this->format)))) - : $this->transEsc('export_download') - ?></a> -</p> \ No newline at end of file diff --git a/themes/blueprint/templates/ajax/resolverLinks.phtml b/themes/blueprint/templates/ajax/resolverLinks.phtml deleted file mode 100644 index 735b8f2b51aab051c602d2111d154b7fad71ea9b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/resolverLinks.phtml +++ /dev/null @@ -1,48 +0,0 @@ -<div> - <? if (!empty($this->electronic)): ?> - <div class="openurls"> - <strong><?=$this->transEsc('Electronic')?></strong> - <ul> - <? foreach ($this->electronic as $link): ?> - <li> - <? if (!empty($link['href'])): ?> - <a href="<?=$this->escapeHtmlAttr($link['href'])?>" title="<?=isset($link['service_type'])?$this->escapeHtmlAttr($link['service_type']):''?>"<?=!empty($link['access'])?' class="access-'.$link['access'].'"':''?>><?=isset($link['title'])?$this->escapeHtml($link['title']):''?></a> <?=isset($link['coverage'])?$this->escapeHtml($link['coverage']):''?> - <? else: ?> - <?=isset($link['title'])?$this->escapeHtml($link['title']):''?> <?=isset($link['coverage'])?$this->escapeHtml($link['coverage']):''?> - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - </div> - <? endif; ?> - <? if (!empty($this->print)): ?> - <div class="openurls"> - <strong><?=$this->transEsc('Holdings')?></strong> - <ul> - <? foreach ($this->print as $link): ?> - <li> - <? if (!empty($link['href'])): ?> - <a href="<?=$this->escapeHtmlAttr($link['href'])?>" title="<?=isset($link['service_type'])?$this->escapeHtmlAttr($link['service_type']):''?>"<?=!empty($link['access'])?' class="access-'.$link['access'].'"':''?>><?=isset($link['title'])?$this->escapeHtml($link['title']):''?></a> <?=isset($link['coverage'])?$this->escapeHtml($link['coverage']):''?> - <? else: ?> - <?=isset($link['title'])?$this->escapeHtml($link['title']):''?> <?=isset($link['coverage'])?$this->escapeHtml($link['coverage']):''?> - <? endif; ?> - </li> - <? endforeach; ?> - </ul> - </div> - <? endif; ?> - <div class="openurls"> - <strong><a href="<?=$this->escapeHtmlAttr($this->openUrlBase)?>?<?=$this->escapeHtmlAttr($this->openUrl)?>"><?=$this->transEsc('More options')?></a></strong> - <? if (!empty($this->services)): ?> - <ul> - <? foreach ($this->services as $link): ?> - <? if (!empty($link['href'])): ?> - <li> - <a href="<?=$this->escapeHtmlAttr($link['href'])?>" title="<?=isset($link['service_type'])?$this->escapeHtmlAttr($link['service_type']):''?>"<?=!empty($link['access'])?' class="access-'.$link['access'].'"':''?>><?=isset($link['title'])?$this->escapeHtml($link['title']):''?></a> - </li> - <? endif; ?> - <? endforeach; ?> - </ul> - <? endif; ?> - </div> -</div> diff --git a/themes/blueprint/templates/ajax/resultgooglemapinfo.phtml b/themes/blueprint/templates/ajax/resultgooglemapinfo.phtml deleted file mode 100644 index 27fc94d18f726d9fa93be161abdd9e0a3a0139ec..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/resultgooglemapinfo.phtml +++ /dev/null @@ -1,27 +0,0 @@ -<div class="mapInfoWrapper"> - <h2><?=$this->transEsc('map_results_label')?></h2> - <div class="mapInfoResults"> - <? $i = 0; ?> - <? foreach($this->recordSet as $record): ?> - <? $i++; ?> - <div class="mapInfoResult <? if ($i % 2 == 0): ?>alt <? endif; ?>record<?=$i ?>"> - <div class="mapInfoResultThumb"> - <? if ($thumb = $this->record($record)->getThumbnail()): ?><img class="mapInfoResultThumbImg" src="<?=$this->escapeHtmlAttr($thumb) ?>" style="display:block"/><? endif; ?> - </div> - - <div class="mapInfoResultText"> - <a href="<?=$this->recordLink()->getUrl($record)?>"><?=$record->getTitle() ?></a><br/> - <?=$this->transEsc('by') ?> <a href="<?=$this->url('author-home')?>?author=<?=urlencode($record->getPrimaryAuthor())?>"><?=$this->escapeHtml($record->getPrimaryAuthor())?></a> - </div> - - </div> - <div class="clearer"></div> - <? if ($i == 5) break; ?> - <? endforeach; ?> - </div> - <? if ($this->recordCount > 5): ?> - <div class="mapSeeAllDiv"> - <a href="<?=$this->url('search-results') ?><?=$this->results->getUrlQuery()->getParams() ?>"><?=$this->transEsc('see all') ?> <?=$this->escapeHtml($this->recordCount) ?>...</a> - </div> - <? endif; ?> -</div> diff --git a/themes/blueprint/templates/ajax/status-available.phtml b/themes/blueprint/templates/ajax/status-available.phtml deleted file mode 100644 index aa1ada91ffa142a34291afd5f9a75f735847e077..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/status-available.phtml +++ /dev/null @@ -1 +0,0 @@ -<span class="available"><?=$this->transEsc("Available")?></span> \ No newline at end of file diff --git a/themes/blueprint/templates/ajax/status-full.phtml b/themes/blueprint/templates/ajax/status-full.phtml deleted file mode 100644 index 2368f3f1f51e4ff03928b912c0093134382caa1f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/status-full.phtml +++ /dev/null @@ -1,28 +0,0 @@ -<table class="summHoldings"> -<tbody> -<tr> - <th class="locationColumn"><?=$this->transEsc('Location')?></th> - <th class="callnumColumn"><?=$this->transEsc('Call Number')?></th> - <th class="statusColumn"><?=$this->transEsc('Status')?></th> -</tr> -<? $i = 0; foreach ($this->statusItems as $item): ?> - <? if (++$i == 5) break; // Show no more than 5 items ?> - <tr> - <td class="locationColumn"><?=$this->transEsc('location_' . $item['location'], array(), $item['location'])?></td> - <td class="callnumColumn"><?=$this->escapeHtml($item['callnumber'])?></td> - <td class="statusColumn"> - <? if (isset($item['use_unknown_message']) && $item['use_unknown_message']): ?> - <span class="unknown"><?=$this->transEsc("status_unknown_message")?></span> - <? elseif ($item['availability']): ?> - <span class="available"><?=($item['reserve'] == 'Y') ? $this->transEsc("On Reserve") : $this->transEsc("Available")?></span> - <? else: ?> - <span class="checkedout"><?=$this->transEsc($item['status'])?></span> - <? endif; ?> - </td> - </tr> -<? endforeach; ?> -</tbody> -</table> -<? if (count($this->statusItems) > 5): ?> - <a class="summHoldings" href="<?=$this->url('record', array('id' => $this->statusItems[0]['id']))?>"><?=count($this->statusItems) - 5?> <?=$this->transEsc('more')?> ...</a> -<? endif; ?> diff --git a/themes/blueprint/templates/ajax/status-unavailable.phtml b/themes/blueprint/templates/ajax/status-unavailable.phtml deleted file mode 100644 index 5f17859891601209f6033ff9e9d1ada615517297..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/status-unavailable.phtml +++ /dev/null @@ -1 +0,0 @@ -<span class="checkedout"><?=$this->transEsc("Checked Out")?></span> \ No newline at end of file diff --git a/themes/blueprint/templates/ajax/status-unknown.phtml b/themes/blueprint/templates/ajax/status-unknown.phtml deleted file mode 100644 index c6ef06ef2e3fb0edb1cb77223fc03b06b0146268..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/ajax/status-unknown.phtml +++ /dev/null @@ -1 +0,0 @@ -<span class="unknown"><?=$this->transEsc("status_unknown_message")?></span> \ No newline at end of file diff --git a/themes/blueprint/templates/alphabrowse/home.phtml b/themes/blueprint/templates/alphabrowse/home.phtml deleted file mode 100644 index 1cc4ce9a79476a723df806b306420d6649389051..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/alphabrowse/home.phtml +++ /dev/null @@ -1,124 +0,0 @@ -<? - $this->headTitle($this->translate('Browse the Collection Alphabetically')); - $this->layout()->breadcrumbs = '<a href="' . $this->url('alphabrowse-home') . '">' . $this->transEsc('Browse Alphabetically') . '</a>'; - $baseQuery = array('source' => $this->source, 'from' => $this->from); -?> - -<? /* LOAD THE LINK INFORMATION INTO $pageLinks, similar to smarty's {capture} */ ?> -<? ob_start(); ?> - <div class="alphaBrowsePageLinks"> - <? if (isset($this->prevpage)): ?> - <div class="alphaBrowsePrevLink"><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => $baseQuery + array('page' => $this->prevpage))))?>">« <?=$this->transEsc('Prev')?></a></div> - <? endif; ?> - - <? if (isset($this->nextpage)): ?> - <div class="alphaBrowseNextLink"><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => $baseQuery + array('page' => $this->nextpage))))?>"><?=$this->transEsc('Next')?> »</a></div> - <? endif; ?> - <div class="clear"></div> - </div> -<? $pageLinks = ob_get_contents(); ?> -<? ob_end_clean(); ?> - -<div class="<?=$this->layoutClass('mainbody')?>"> - <div class="resulthead"> - <form method="get" action="<?=$this->url('alphabrowse-home')?>" name="alphaBrowseForm" id="alphaBrowseForm"> - <label for="alphaBrowseForm_source"><?=$this->transEsc('Browse Alphabetically') ?></label> - <select id="alphaBrowseForm_source" name="source"> - <? foreach ($this->alphaBrowseTypes as $key => $item): ?> - <option value="<?=$this->escapeHtmlAttr($key) ?>"<? if ($this->source == $key): ?> selected="selected"<? endif; ?>><?=$this->transEsc($item) ?></option> - <? endforeach; ?> - </select> - <label for="alphaBrowseForm_from"><?=$this->transEsc('starting from') ?></label> - <input type="text" name="from" id="alphaBrowseForm_from" value="<?=$this->escapeHtmlAttr($this->from) ?>"/> - <input type="submit" value="<?=$this->transEsc('Browse') ?>"/> - </form> - </div> - - <? if ($this->result): ?> - <div class="alphaBrowseResult"> - <?= $pageLinks ?> - - <div class="alphaBrowseHeader"><?=$this->transEsc("alphabrowse_matches") ?></div> - <? $altRow = false; foreach ($this->result['Browse']['items'] as $i => $item): ?> - - <? $highlight = (isset($this->highlight_row) && $i == $this->highlight_row) ? true : false ?> - <div class="alphaBrowseEntry<? if (!($altRow = !$altRow)): echo ' alt'; endif; ?><?=$highlight ? ' browse-match' : '' ?> alphaBrowseSource_<?=$this->escapeHtmlAttr($this->source)?>"> - <? if ($highlight && isset($this->match_type) && ($this->match_type == "NONE")): ?> - <?// this is the right row but query doesn't match value ?> - <?=$this->transEsc('your_match_would_be_here') ?> - </div> - <div class="alphaBrowseEntry<? if (!($altRow = !$altRow)): echo ' alt'; endif; ?> alphaBrowseSource_<?=$this->escapeHtmlAttr($this->source)?>"> - <? endif; ?> - - <div class="alphaBrowseHeading alphaBrowseHeading_<?=$this->escapeHtmlAttr($this->source)?>"> - <? if ($url = $this->alphabrowse()->getUrl($this->source, $item)): ?> - <a href="<?=$this->escapeHtmlAttr($url)?>"><?=$this->escapeHtml($item['heading'])?></a> - <? else: ?> - <?=$this->escapeHtml($item['heading'])?> - <? endif; ?> - </div> - <? - foreach ($this->extras as $ei => $extraName): - $extraData = $item['extras'][$extraName]; - ?> - <div class="alphaBrowseExtra alphaBrowseColumn_<? echo $extraName?>"> - <? - $extraDisplayArray = array(); - foreach ($extraData as $j => $e) { - $extraDisplayArray = array_unique(array_merge($extraDisplayArray, $e)); - } - echo (empty($extraDisplayArray)) ? ' ' : implode('<br />', $extraDisplayArray); - ?> - </div> - <? endforeach; ?> - <div class="alphaBrowseCount"><? if ($item['count'] > 0): echo $item['count']; endif; ?></div> - <div class="clear"></div> - - <? if (count($item['useInstead']) > 0): ?> - <div class="alphaBrowseRelatedHeading"> - <div class="title"><?=$this->transEsc('Use instead') ?>:</div> - <ul> - <? foreach ($item['useInstead'] as $heading): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => array('from' => $heading) + $baseQuery)))?>"><?=$this->escapeHtml($heading)?></a></li> - <? endforeach; ?> - </ul> - </div> - <? endif; ?> - - <? if (count($item['seeAlso']) > 0): ?> - <div class="alphaBrowseRelatedHeading"> - <div class="title"><?=$this->transEsc('See also') ?>:</div> - <ul> - <? foreach ($item['seeAlso'] as $heading): ?> - <li><a href="<?=$this->escapeHtmlAttr($this->url('alphabrowse-home', array(), array('query' => array('from' => $heading) + $baseQuery)))?>"><?=$this->escapeHtml($heading)?></a></li> - <? endforeach; ?> - </ul> - </div> - <? endif; ?> - - <? if ($item['note']): ?> - <div class="alphaBrowseRelatedHeading"> - <div class="title"><?=$this->transEsc('Note') ?>:</div> - <ul> - <li><?=$this->escapeHtml($item['note'])?></li> - </ul> - </div> - <? endif; ?> - - </div> - <? endforeach; ?> - <? if (isset($this->highlight_end)): ?> - <div class="alphaBrowseEntry<? if (!($altRow = !$altRow)): echo ' alt'; endif; ?> alphaBrowseSource_<?=$this->escapeHtmlAttr($this->source)?> browse-match"> - <?=$this->transEsc('your_match_would_be_here') ?> - </div> - <? endif; ?> - - <?= $pageLinks ?> - </div> - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/author/home.phtml b/themes/blueprint/templates/author/home.phtml deleted file mode 100644 index dbb7091b327bc5db07060721c59e0f89a6e5e13e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/author/home.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Author')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Author') . '</em>'; -?> -<form method="get" action="<?=$this->url('author-search')?>"> - <label for="author_lookfor"><?=$this->transEsc('Author Results for')?>:</label> - <input type="text" id="author_lookfor" name="lookfor" /> - <input type="submit" value="<?=$this->transEsc('Find')?>" /> -</form> diff --git a/themes/blueprint/templates/author/results.phtml b/themes/blueprint/templates/author/results.phtml deleted file mode 100644 index 54340fa538e755869ca5e7ec77182e67813049ea..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/author/results.phtml +++ /dev/null @@ -1,16 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); - - // Override some details... - - // Set up page title: - $this->headTitle($this->translate('Author Search Results')); - - // Set up empty search box (we want Author search boxes to point at the Solr search screen): - $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('author-home') . '">' . $this->transEsc('Author') . '</a> <span>></span> ' - . '<em>' . $this->escapeHtml($this->params->getDisplayQuery()) . '</em>'; -?> diff --git a/themes/blueprint/templates/author/search.phtml b/themes/blueprint/templates/author/search.phtml deleted file mode 100644 index e015ae5d641689b0f60e0b11aea85eda30225e2c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/author/search.phtml +++ /dev/null @@ -1,21 +0,0 @@ -<? - // Hide the total result count -- because of limitations in the way facet - // paging works, we can't actually determine an accurate total count. (Note - // that this setting simply modifies the behavior of search/results.phtml below). - $this->skipTotalCount = true; - - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); - - // Override some details... - - // Set up page title: - $this->headTitle($this->translate('Author Browse')); - - // Set up empty search box pointing at Solr module: - $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('author-home') . '">' . $this->transEsc('Author') . '</a> <span>></span> ' - . '<em>' . $this->transEsc('Author Results for') . ' ' . $this->escapeHtml($this->params->getDisplayQuery()) . '</em>'; -?> \ No newline at end of file diff --git a/themes/blueprint/templates/authority/home.phtml b/themes/blueprint/templates/authority/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/authority/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/authority/record.phtml b/themes/blueprint/templates/authority/record.phtml deleted file mode 100644 index 73bf63b69d4b61f5c63520928065f58ba797082c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/authority/record.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<? $this->layout()->breadcrumbs = ' '; ?> -<?=$this->record($this->driver)->getTab($this->tabs['Details'])?> \ No newline at end of file diff --git a/themes/blueprint/templates/authority/search.phtml b/themes/blueprint/templates/authority/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/authority/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/browse/home.phtml b/themes/blueprint/templates/browse/home.phtml deleted file mode 100644 index b513d42fdfa2c2b80363c2142fca23f1c4235995..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/browse/home.phtml +++ /dev/null @@ -1,65 +0,0 @@ -<? - $this->headTitle($this->translate('Browse the Catalog')); - $this->layout()->breadcrumbs = '<a href="' . $this->url('browse-home') . '">' . $this->transEsc('Browse') . '</a>'; - - $BROWSE_BASE = $this->url('browse-' . strtolower($this->currentAction)); - $SEARCH_BASE = $this->url($this->currentAction == 'Tag' ? 'tag-home' : 'search-results'); -?> - -<? if (!isset($this->currentAction)): ?> - <h2><?=$this->transEsc('Choose a Category to Begin Browsing') ?>:</h2> -<? endif; ?> - -<div class="span-5 browseNav"> - <?=$this->render('browse/top_list.phtml'); ?> -</div> - -<? if (!empty($this->categoryList)): ?> -<div class="span-5 browseNav"> - <ul class="browse" id="list2"> - <? foreach($this->categoryList as $findby=>$category): ?> - <li<? if ($this->findby == $findby): ?> class="active"<? endif; ?>> - <a href="<?=$BROWSE_BASE ?>?findby=<?=urlencode($findby) ?>&query_field=<?=$this->browse()->getSolrField($findby, $this->currentAction) ?>"> - <? if(is_string($category)): ?> - <?=$this->transEsc($category)?> - <? else: ?> - <?=$this->transEsc($category['text'])?> (<?=$this->localizedNumber($category['count'])?>) - <? endif; ?> - </a> - </li> - <? endforeach; ?> - </ul> -</div> -<? endif; ?> - -<? if (!empty($this->secondaryList)): ?> -<div class="span-5 browseNav"> - <ul class="browse" id="list3"> - <? foreach($this->secondaryList as $secondary): ?> - <li<? if ($this->query == $secondary['value'].'' || $this->query == $secondary['value'].'*'): ?> class="active"<? endif; ?>> - <? if (!empty($this->categoryList) && $this->currentAction != 'Tag' && $this->findby != 'alphabetical'):?> - <a href="<?=$SEARCH_BASE ?>?lookfor=<? if ($this->filter): ?>&filter[]=<?=urlencode($this->filter) ?>%3A<?=str_replace('+AND+','&filter[]=', urlencode($secondary['value'])) ?><? endif; ?>&filter[]=<?=$this->browse()->getSolrField($this->currentAction) ?>%3A[* TO *]<? if($this->dewey_flag):?>&sort=dewey-sort<?endif;?>" class="viewRecords"><?=$this->transEsc('View Records') ?></a> - <? endif; ?> - <a href="<?=$BROWSE_BASE ?>?findby=<?=urlencode($this->findby) ?>&category=<?=urlencode($this->category) ?>&query=<?=urlencode($secondary['value']) ?><? if ($this->facetPrefix): ?>&facet_prefix=<?=urlencode($secondary['displayText']) ?><? endif; ?><? if ($this->secondaryParams): foreach($this->secondaryParams as $var=>$val): ?>&<?=$var ?>=<?=urlencode($val) ?><? endforeach;endif; ?>"><?=$this->escapeHtml($secondary['displayText']) ?><? if ($this->findby != 'alphabetical'): ?> (<?=$this->localizedNumber($secondary['count']) ?>)<? endif; ?></a> </li> - <? endforeach; ?> - </ul> -</div> -<? endif; ?> - -<? if (!empty($this->resultList)): ?> -<div class="span-5 browseNav"> - <ul class="browse" id="list4"> - <? foreach($this->resultList as $result): ?> - <li><a href="<?=$SEARCH_BASE ?>?<?=$this->paramTitle ?><?=urlencode($result['value']) ?><? if ($this->searchParams): foreach($this->searchParams as $var=>$val): ?>&<?=$var ?>=<?=urlencode($val) ?><? endforeach;endif; ?>"><?=$this->escapeHtml($result['displayText'])/*html*/?> (<?=$this->localizedNumber($result['count']) ?>)</a></li> - <? endforeach; ?> - </ul> -</div> -<? elseif (isset($this->query)): ?> -<div class="span-5 browseNav"> - <ul class="browse" id="list4"> - <li><a href=""><?=$this->transEsc('nohit_heading') ?></a></li> - </ul> -</div> -<? endif; ?> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/browse/top_list.phtml b/themes/blueprint/templates/browse/top_list.phtml deleted file mode 100644 index fb93d38283420982d00ccf1818291ac7a089b3e2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/browse/top_list.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<ul class="browse" id="list1"> -<? foreach ($this->browseOptions as $item=>$currentOption): ?> - <li<? if($currentOption['action'] == $this->currentAction): ?> class="active"<? endif; ?>> - <a href="<?=$this->url('browse-' . strtolower($currentOption['action'])); ?>"><?=$this->transEsc($currentOption['description']) ?></a> - </li> -<? endforeach; ?> -</ul> diff --git a/themes/blueprint/templates/cart/cart.phtml b/themes/blueprint/templates/cart/cart.phtml deleted file mode 100644 index 3eee1bde4b5afe51ef29b99bf35c18cf54c97d56..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/cart.phtml +++ /dev/null @@ -1,29 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Book Bag')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<em>' . $this->transEsc('Book Bag') . '</em>'; -?> -<?=$this->flashmessages()?> -<form action="<?=$this->url('cart-home')?>" method="post" name="cartForm"> - <? if (!$this->cart()->isEmpty()): ?> - <div class="bulkActionButtons"> - <input type="checkbox" class="selectAllCheckboxes floatleft" name="selectAll" id="cartCheckboxSelectAll"/> <label for="cartCheckboxSelectAll" class="floatleft"><?=$this->transEsc('select_page')?></label> - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <input type="submit" class="fav floatleft button" name="saveCart" value="<?=$this->transEsc('bookbag_save_selected')?>" title="<?=$this->transEsc('bookbag_save')?>"/> - <? endif; ?> - <input type="submit" class="mail floatleft button" name="email" value="<?=$this->transEsc('bookbag_email_selected')?>" title="<?=$this->transEsc('bookbag_email')?>"/> - <? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?> - <input type="submit" class="export floatleft button" name="export" value="<?=$this->transEsc('bookbag_export_selected')?>" title="<?=$this->transEsc('bookbag_export')?>"/> - <? endif; ?> - <input type="submit" class="print floatleft button" name="print" value="<?=$this->transEsc('bookbag_print_selected')?>" title="<?=$this->transEsc('print_selected')?>"/> - <input type="submit" class="bookbagDelete floatleft button" name="delete" value="<?=$this->transEsc('bookbag_delete_selected')?>" title="<?=$this->transEsc('bookbag_delete')?>"/> - <input type="submit" class="bookbagEmpty floatleft button" name="empty" value="<?=$this->transEsc('Empty Book Bag')?>" title="<?=$this->transEsc('Empty Book Bag')?>"/> - <div class="clearer"></div> - </div> - <? endif; ?> - - <?=$this->render('cart/contents.phtml')?> -</form> diff --git a/themes/blueprint/templates/cart/contents.phtml b/themes/blueprint/templates/cart/contents.phtml deleted file mode 100644 index 4c7b6fd9ab85a3940e97483308dd79a889709a62..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/contents.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? $records = $this->cart()->getRecordDetails(); if (!empty($records)): ?> - <ul class="cartContent"> - <? foreach ($records as $i => $record): ?> - <li> - <?=$this->record($record)->getCheckbox('cart')?> - <a title="<?=$this->transEsc('View Record')?>" href="<?=$this->recordLink()->getUrl($record)?>"><?=$this->escapeHtml($record->getBreadcrumb())?></a> - </li> - <? endforeach; ?> - </ul> -<? else: ?> - <p><?=$this->transEsc('bookbag_is_empty')?>.</p> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/cart/email.phtml b/themes/blueprint/templates/cart/email.phtml deleted file mode 100644 index f89e5ca4c7a81c8862b33b139ab3a44517e6f959..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/email.phtml +++ /dev/null @@ -1,17 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('email_selected_favorites')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<em>' . $this->transEsc('email_selected_favorites') . '</em>'; -?> -<?=$this->flashmessages()?> -<form action="<?=$this->url('cart-email')?>" method="post" name="bulkEmail"> - <? foreach ($this->records as $current): ?> - <strong><?=$this->transEsc('Title')?>:</strong> <?=$this->escapeHtml($current->getBreadcrumb())?><br /> - <input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($current->getResourceSource() . '|' . $current->getUniqueId())?>" /> - <? endforeach; ?> - <br /> - <?=$this->render('Helpers/email-form-fields.phtml')?> -</form> diff --git a/themes/blueprint/templates/cart/export-success.phtml b/themes/blueprint/templates/cart/export-success.phtml deleted file mode 100644 index 86854934c1d9b0d36649ea240dad2278250f3271..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/export-success.phtml +++ /dev/null @@ -1,2 +0,0 @@ -<?=$this->transEsc('export_success')?> -<a href="<?=$this->escapeHtmlAttr($this->url)?>" class="save"><?=$this->transEsc('export_download')?></a> diff --git a/themes/blueprint/templates/cart/export.phtml b/themes/blueprint/templates/cart/export.phtml deleted file mode 100644 index 249716037edbb409389ceb5640e1a09a9cc2395d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/export.phtml +++ /dev/null @@ -1,29 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Export Favorites')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<em>' . $this->transEsc('Export Favorites') . '</em>'; -?> -<h3 class="hideinlightbox"><?=$this->transEsc('Export Favorites')?></h3> - -<?=$this->flashmessages()?> - -<? if (!empty($this->exportOptions)): ?> - <form method="post" action="<?=$this->url('cart-export')?>" name="exportForm" title="<?=$this->transEsc('Export Items')?>"> - <? foreach ($this->records as $current): ?> - <strong><?=$this->transEsc('Title')?>:</strong> <?=$this->escapeHtml($current->getBreadcrumb())?><br /> - <input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($current->getResourceSource() . '|' . $current->getUniqueId())?>" /> - <? endforeach; ?> - <br /> - <label for="format"><?=$this->transEsc('Format')?>:</label> - <select name="format" id="format"> - <? foreach ($this->exportOptions as $exportOption): ?> - <option value="<?=$this->escapeHtmlAttr($exportOption)?>"><?=$this->transEsc($this->export()->getLabelForFormat($exportOption))?></option> - <? endforeach; ?> - </select> - <br/> - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Export') ?>"/> - </form> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/cart/save.phtml b/themes/blueprint/templates/cart/save.phtml deleted file mode 100644 index 7af76db68d9e17d8ab57a519186f5e9a1926070a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/cart/save.phtml +++ /dev/null @@ -1,41 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('bookbag_save_selected')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<em>' . $this->transEsc('bookbag_save_selected') . '</em>'; -?> -<h3 class="hideinlightbox"><?=$this->transEsc('bookbag_save_selected')?></h3> - -<?=$this->flashmessages()?> - -<form method="post" action="<?=$this->url('cart-save')?>" name="bulkSave"> - <? $idParams = array(); ?> - <? foreach ($this->records as $current): ?> - <? $idParams[] = urlencode('ids[]') . '=' . urlencode($current->getResourceSource() . '|' . $current->getUniqueId()) ?> - <strong><?=$this->transEsc('Title')?>:</strong> <?=$this->escapeHtml($current->getBreadcrumb())?><br /> - <input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($current->getResourceSource() . '|' . $current->getUniqueId())?>" /> - <? endforeach; ?> - - <label class="displayBlock" for="save_list"><?=$this->transEsc('Choose a List') ?></label> - <select id="save_list" name="list"> - <? if (count($this->lists) > 0): ?> - <? foreach ($this->lists as $list): ?> - <option value="<?=$list['id'] ?>"<? if ($list['id']==$this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option> - <? endforeach; ?> - <? else: ?> - <option value=""><?=$this->transEsc('My Favorites') ?></option> - <? endif; ?> - </select> - - <a href="<?=$this->url('editList', array('id' => 'NEW')) . '?' . implode('&', $idParams) ?>" class="listEdit" id="listEdit" title="<?=$this->transEsc('Create a List') ?>"><?=$this->transEsc('or create a new list');?></a> - - <? if ($this->usertags()->getMode() !== 'disabled'): ?> - <label class="displayBlock" for="add_mytags"><?=$this->transEsc('Add Tags') ?></label> - <input class="mainFocus" id="add_mytags" type="text" name="mytags" value="" size="50"/> - <? endif; ?> - <br/> - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>"/> - -</form> diff --git a/themes/blueprint/templates/collection/collection-record-error.phtml b/themes/blueprint/templates/collection/collection-record-error.phtml deleted file mode 100644 index 5cfd1f89b518b4cf5e2af7eec30b3dbbd4415afb..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/collection/collection-record-error.phtml +++ /dev/null @@ -1 +0,0 @@ -<h1><?=$this->transEsc('Cannot find record')?></h1> diff --git a/themes/blueprint/templates/collection/view.phtml b/themes/blueprint/templates/collection/view.phtml deleted file mode 100644 index 6b454c903d37edb20605594180606d1b3f6a8019..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/collection/view.phtml +++ /dev/null @@ -1,74 +0,0 @@ -<? - // Set up standard record scripts: - $this->headScript()->appendFile("record.js"); - $this->headScript()->appendFile("check_save_statuses.js"); - - // Add RDF header link if applicable: - if ($this->export()->recordSupportsFormat($this->driver, 'RDF')) { - $this->headLink()->appendAlternate($this->recordLink()->getActionUrl($this->driver, 'RDF'), 'application/rdf+xml', 'RDF Representation'); - } - - // Set flag for special cases relating to full-width hierarchy tree tab: - $tree = (strtolower($this->activeTab) == 'hierarchytree'); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<a href="' . $this->url('collections-home') . '">' . $this->transEsc('Collections') . '</a><span>></span>' . - $this->recordLink()->getBreadcrumb($this->driver); -?> -<div class="<?=$tree ? 'span-23' : $this->layoutClass('mainbody')?>"> - <?=$this->record($this->driver)->getToolbar()?> - - <div class="record recordId source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" id="record"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" class="hiddenId" id="record_id" /> - <?=$this->flashmessages()?> - <? if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?> - <div class="resultscroller"> - <? if ($this->scrollData['previousRecord']): ?><a href="<?=$this->recordLink()->getUrl($this->scrollData['previousRecord'])?>">« <?=$this->transEsc('Prev')?></a><? endif; ?> - #<?=$this->localizedNumber($this->scrollData['currentPosition']) . ' ' . $this->transEsc('of') . ' ' . $this->localizedNumber($this->scrollData['resultTotal'])?> - <? if ($this->scrollData['nextRecord']): ?><a href="<?=$this->recordLink()->getUrl($this->scrollData['nextRecord'])?>"><?=$this->transEsc('Next')?> »</a><? endif; ?> - </div> - <? endif; ?> - <?=$this->record($this->driver)->getCollectionMetadata()?> - </div> - <div class="clearer"><!-- empty --></div> - <? if (count($this->tabs) > 0): ?> - <div id="tabnav"> - <ul> - <? foreach ($this->tabs as $tab => $obj): ?> - <? // add current tab to breadcrumbs if applicable: - $desc = $obj->getDescription(); - $isCurrent = (strtolower($this->activeTab) == strtolower($tab)); - if ($isCurrent) { - $this->layout()->breadcrumbs .= '<span>></span><em>' . $this->transEsc($desc) . '</em>'; - $activeTabObj = $obj; - } - ?> - <li<?=$isCurrent ? ' class="active"' : ''?>> - <a href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>#tabnav"><?=$this->transEsc($desc)?></a> - </li> - <? endforeach; ?> - </ul> - <div class="clear"></div> - </div> - <? endif; ?> - - - <div class="collectionDetails<?=$tree ? 'Tree' : ''?>"> - <?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : '' ?> - </div> - - <?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?> -</div> - -<? if (!$tree): ?> - <div class="<?=$this->layoutClass('sidebar')?>"> - <? if (isset($activeTabObj) && is_callable(array($activeTabObj, 'getSideRecommendations'))): ?> - <? foreach ($activeTabObj->getSideRecommendations() as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <? endif; ?> - </div> -<? endif; ?> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/collections/bytitle.phtml b/themes/blueprint/templates/collections/bytitle.phtml deleted file mode 100644 index b79fdba8bb8ef00e585197fae66c61c40d524b84..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/collections/bytitle.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? $this->layout()->breadcrumbs = '<a href="' . $this->url('collections-home') . '">' . $this->transEsc('Collections') . '</a>'; ?> -<div id="bd"> - <div id="yui-main" class="content"> - <div class="disambiguationDiv" > - <? if (empty($collections)): ?> - <h1><?=$this->transEsc('collection_empty')?></h1> - <? $this->headTitle($this->translate('collection_empty')); ?> - <? else: ?> - <h1><?=$this->transEsc('collection_disambiguation')?></h1> - <? $this->headTitle($this->translate('collection_disambiguation')); ?> - <div id="disambiguationItemsDiv"> - <? foreach ($collections as $i => $collection): ?> - <div class="disambiguationItem <?=$i % 2 ? 'alt ' : ''?>record<?=$i?>"> - <a href="<?=$this->url('collection', array('id' => $collection->getUniqueId()))?>"><?=$this->escapeHtml($collection->getTitle())?></a> - <p><?=$this->escapeHtml(implode(' ', $collection->getSummary()))?></p> - </div> - <? endforeach; ?> - </div> - <? endif; ?> - </div> - </div> -</div> diff --git a/themes/blueprint/templates/collections/home.phtml b/themes/blueprint/templates/collections/home.phtml deleted file mode 100644 index f2004f32abdc884eca1dc78d9efafba97ffff668..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/collections/home.phtml +++ /dev/null @@ -1,65 +0,0 @@ -<? - $this->headTitle($this->translate('Collection Browse')); - $this->layout()->breadcrumbs = '<a href="' . $this->url('collections-home') . '">' . $this->transEsc('Collections') . '</a>'; - $filterList = array(); - $filterString = ''; - foreach (isset($filters['Other']) ? $filters['Other'] : array() as $filter) { - $filter['urlPart'] = $filter['field'] . ':' . $filter['value']; - $filterList[] = $filter; - $filterString .= '&' . urlencode('filter[]') . '=' . urlencode($filter['urlPart']); - } -?> -<? ob_start(); ?> - <div class="alphaBrowsePageLinks"> - <? if (isset($prevpage)): ?> - <div class="alphaBrowsePrevLink"><a href="<?=$this->url('collections-home')?>?from=<?=urlencode($from)?>&page=<?=urlencode($prevpage)?><?=$this->escapeHtmlAttr($filterString)?>">« <?=$this->transEsc('Prev')?></a></div> - <? endif; ?> - <? if (isset($nextpage)): ?> - <div class="alphaBrowseNextLink"><a href="<?=$this->url('collections-home')?>?from=<?=urlencode($from)?>&page=<?=urlencode($nextpage)?><?=$this->escapeHtmlAttr($filterString)?>"><?=$this->transEsc('Next')?> »</a></div> - <? endif; ?> - <div class="clear"></div> - </div> -<? $pageLinks = ob_get_contents(); ?> -<? ob_end_clean(); ?> -<? if (!empty($filterList)): ?> - <strong><?=$this->transEsc('Remove Filters')?></strong> - <ul class="filters"> - <? foreach ($filterList as $filter): ?> - <li> - <? - $removalUrl = $this->url('collections-home') . '?from=' . urlencode($from); - foreach ($filterList as $current) { - if ($current['urlPart'] != $filter['urlPart']) { - $removalUrl .= '&' . urlencode('filter[]') . '=' . urlencode($current['urlPart']); - } - } - ?> - <a href="<?=$this->escapeHtmlAttr($removalUrl)?>"><img src="<?=$this->imageLink('silk/delete.png')?>" alt="Delete"/></a> - <a href="<?=$this->escapeHtmlAttr($removalUrl)?>"><?=$this->escapeHtml($filter['displayText'])?></a> - </li> - <? endforeach; ?> - </ul> -<? endif; ?> -<div class="browseAlphabetSelector"> - <? foreach ($letters as $letter): ?> - <div class="browseAlphabetSelectorItem"><a href="<?=$this->url('collections-home')?>?from=<?=urlencode($letter)?><?=$this->escapeHtmlAttr($filterString)?>"><?=$this->escapeHtml($letter)?></a></div> - <? endforeach; ?> -</div> - -<div class="browseJumpTo"> -<form method="GET" action="<?=$this->url('collections-home')?>" class="browseForm"> - <input type="submit" value="<?=$this->transEsc('Jump to')?>" /> - <input type="text" name="from" value="<?=$this->escapeHtmlAttr($from)?>" /> -</form> -</div> - -<div class="clear"> </div> - -<h2><?=$this->transEsc('Collection Browse')?></h2> - -<div class="collectionBrowseResult"> - <?=$pageLinks?> - <?=$this->render('collections/list.phtml')?> - <div class="clearer"></div> - <?=$pageLinks?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/collections/list.phtml b/themes/blueprint/templates/collections/list.phtml deleted file mode 100644 index 50c3a346ebfe84b65da71f0b576c84d7cb072ade..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/collections/list.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? foreach ($result as $i => $item): ?> - <div class="collectionBrowseEntry listBrowse<?=($i % 2 == 0) ? ' alt' : ''?>"> - <div class="collectionBrowseHeading"> - <a href="<?=$this->url('collection', array('id' => $item['value']))?>"><?=$this->escapeHtml($item['displayText'])?></a> - </div> - <? /* subtract one from the number of items to exclude the record representing the collection itself. */ ?> - <div class="collectionBrowseCount"><b><?=$item['count'] - 1?></b> <?=$this->transEsc('items')?></div> - <div class="clearer"><!-- empty --></div> - </div> -<? endforeach; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/combined/home.phtml b/themes/blueprint/templates/combined/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/combined/results-ajax.phtml b/themes/blueprint/templates/combined/results-ajax.phtml deleted file mode 100644 index d717669d166af71325d6e1db850178adcf357532..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/results-ajax.phtml +++ /dev/null @@ -1,15 +0,0 @@ -<? - $view = $currentSearch['view']; - $results = $view->results; - $params = $results->getParams(); - $lookfor = $params->getDisplayQuery(); - - // Set up Javascript for use below: - $loadJs = 'var url = path + "/Combined/Result?id=' . urlencode($searchClassId) - . '&lookfor=' . urlencode($lookfor) . '";' - . "\$('#combined_" . $this->escapeHtml($searchClassId) . "').load(url, '', function(responseText) { if (responseText.length == 0) $('#combined_" . $this->escapeHtml($searchClassId) . "').hide(); });"; -?> -<h2><?=$this->transEsc($currentSearch['label'])?></h2> -<p><?=$this->transEsc("Loading")?>... <img src="<?=$this->imageLink('ajax_loading.gif')?>" /></p> -<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$(document).ready(function(){' . $loadJs . '});', 'SET')?> -<noscript><?=$this->transEsc('Please enable JavaScript.')?></noscript> diff --git a/themes/blueprint/templates/combined/results-list.phtml b/themes/blueprint/templates/combined/results-list.phtml deleted file mode 100644 index 1dff16015e19b962a16d1cf51aa5a5c6feaada7a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/results-list.phtml +++ /dev/null @@ -1,89 +0,0 @@ -<? - $view = $currentSearch['view']; - $results = $view->results; - $params = $results->getParams(); - $lookfor = $params->getDisplayQuery(); - $recordTotal = $results->getResultTotal(); - - // More link should use default limit, not custom limit: - $limit = $params->getLimit(); - $params->setLimit($params->getOptions()->getDefaultLimit()); - $moreUrl = $this->url($params->getOptions()->getSearchAction()) . $results->getUrlQuery()->setPage(1); - $params->setLimit($limit); -?> -<? if (isset($currentSearch['more_link']) && $currentSearch['more_link']): ?> - <div style="float: right;"> - <a href="<?=$moreUrl?>"><?=$this->transEsc('More options')?></a> - </div> - <h2><a href="<?=$moreUrl?>"><?=$this->transEsc($currentSearch['label'])?></a></h2> -<? else: ?> - <h2><?=$this->transEsc($currentSearch['label'])?></h2> -<? endif; ?> -<? if (isset($currentSearch['sublabel'])): ?> - <p><i><?=$this->transEsc($currentSearch['sublabel'])?></i></p> -<? endif; ?> -<div class="resulthead"> - <div class="floatleft"> - <? if ($recordTotal > 0): ?> - <? foreach (($top = $results->getRecommendations('top')) as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <?=$this->transEsc("Showing")?> - <strong><?=$this->localizedNumber($results->getStartRecord())?></strong> - <strong><?=$this->localizedNumber($results->getEndRecord())?></strong> - <? if (!isset($view->skipTotalCount)): ?> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($recordTotal)?></strong> - <? endif; ?> - <? if (isset($view->overrideSearchHeading)): ?> - <?=$view->overrideSearchHeading?> - <? elseif ($params->getSearchType() == 'basic'): ?> - <?=$this->transEsc('for search')?>: <strong>'<?=$this->escapeHtml($lookfor)?>'</strong>, - <? endif; ?> - <? if ($qtime = $results->getQuerySpeed()): ?> - <?=$this->transEsc('query time')?>: <?=$this->localizedNumber($qtime, 2).$this->transEsc('seconds_abbrev')?> - <? endif; ?> - <? else: ?> - <h3><?=$this->transEsc('nohit_heading')?></h3> - <? endif; ?> - </div> - <div class="clear"></div> -</div> -<? /* End Listing Options */ ?> - -<? if ($recordTotal < 1): ?> - <p class="error"> - <? if (isset($view->overrideEmptyMessage)): ?> - <?=$view->overrideEmptyMessage?> - <? else: ?> - <?=$this->transEsc('nohit_prefix')?> - <strong><?=$this->escapeHtml($lookfor)?></strong> - <?=$this->transEsc('nohit_suffix')?> - <? endif; ?> - </p> - <? if (isset($view->parseError)): ?> - <p class="error"><?=$this->transEsc('nohit_parse_error')?></p> - <? endif; ?> - <? foreach (($top = $results->getRecommendations('top')) as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <? foreach ($results->getRecommendations('noresults') as $current): ?> - <? if (!in_array($current, $top)): ?> - <?=$this->recommend($current)?> - <? endif; ?> - <? endforeach; ?> -<? else: ?> - <? - $viewType = in_array('list', array_keys($params->getViewList())) - ? 'list' : $params->getView(); - $viewParams = array( - 'results' => $results, - 'params' => $params, - 'showCartControls' => $this->showCartControls, - 'showBulkOptions' => $this->showBulkOptions - ); - if(isset($this->showCartControls) && !$this->showCartControls) { - $viewParams['hideCartControls'] = true; - } - ?> - <?=$this->render('search/list-' . $viewType . '.phtml', $viewParams)?> - <? if (isset($currentSearch['more_link']) && $currentSearch['more_link']): ?> - <p class="more_link"><a href="<?=$moreUrl?>"><?=$this->transEsc($currentSearch['more_link'])?></a></p> - <? endif; ?> -<? endif; ?> diff --git a/themes/blueprint/templates/combined/results.phtml b/themes/blueprint/templates/combined/results.phtml deleted file mode 100644 index c7b254ac726b4ab88bacacccaa5642397469d896..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/results.phtml +++ /dev/null @@ -1,80 +0,0 @@ -<? - // Set up page title: - $lookfor = $this->params->getDisplayQuery(); - if (isset($this->overrideTitle)) { - $this->headTitle($this->overrideTitle); - } else { - $this->headTitle($this->translate('Search Results') . (empty($lookfor) ? '' : " - {$lookfor}")); - } - - // Set up search box: - $this->layout()->searchbox = $this->context($this)->renderInContext( - 'search/searchbox.phtml', - array( - 'lookfor' => $lookfor, - 'searchIndex' => $this->params->getSearchHandler(), - 'searchType' => $this->params->getSearchType(), - 'searchId' => $this->results->getSearchId(), - 'searchClassId' => $this->params->getsearchClassId(), - 'checkboxFilters' => $this->params->getCheckboxFacets(), - 'filterList' => $this->params->getFilters(), - 'hasDefaultsApplied' => $this->params->hasDefaultsApplied(), - 'selectedShards' => $this->params->getSelectedShards() - ) - ); - - // Create shortcut to combined results (since $this->results may get overwritten in processing below): - $combinedResults = $this->results; - - // Set up breadcrumbs: - if (isset($this->overrideTitle)) { - $this->layout()->breadcrumbs = '<em>' . $this->escapeHtml($this->overrideTitle) . '</em>'; - } else { - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Search') . ': ' . - $this->escapeHtml($lookfor) . '</em>'; - } - - // Enable cart if appropriate: - $this->showCartControls = $this->supportsCart && $this->cart()->isActive(); - // Enable bulk options if appropriate: - $this->showBulkOptions = $this->supportsCart && $this->showBulkOptions; - - // Load Javascript dependencies into header: - $this->headScript()->appendFile("check_item_statuses.js"); - $this->headScript()->appendFile("check_save_statuses.js"); - // Style - $this->headLink()->appendStylesheet('combined.css'); -?> -<div> - <? $recs = $combinedResults->getRecommendations('top'); if (!empty($recs)): ?> - <div> - <? foreach ($recs as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - </div> - <? endif; ?> - <?=$this->flashmessages()?> - <form method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>"> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?> - <? - $viewParams = array( - 'searchClassId' => $searchClassId, - 'combinedResults' => $this->combinedResults, - 'supportsCartOptions' => $this->supportsCartOptions, - 'showCartControls' => $this->showCartControls - ); - ?> - <?=$this->context($this)->renderInContext('combined/stack-'.$placement.'.phtml', $viewParams)?> - </form> -</div> -<? /* End Main Listing */ ?> - -<div class="clear"></div> - -<? $recs = $combinedResults->getRecommendations('bottom'); if (!empty($recs)): ?> - <div> - <? foreach ($recs as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/combined/stack-distributed.phtml b/themes/blueprint/templates/combined/stack-distributed.phtml deleted file mode 100644 index 1ebf931621a5d5785411eeae1588c9a575b89f91..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/stack-distributed.phtml +++ /dev/null @@ -1,32 +0,0 @@ -<? $span = floor(24/$columns); ?> -<? $sectionCount = count($this->combinedResults); ?> -<? $keys = array(); ?> -<? $searches = array(); ?> -<? foreach ($this->combinedResults as $searchClassId => $currentSearch): ?> - <? $keys[] = $searchClassId; ?> - <? $searches[] = $currentSearch; ?> -<? endforeach; ?> -<? for ($column=0;$column<$columns;$column++): ?> - <? $columnIndex = $column; ?> - <div class="span-<?=$span ?> combined-list"> - <? while ($columnIndex < $sectionCount): ?> - <? $searchClassId = $keys[$columnIndex]; ?> - <? $currentSearch = $searches[$columnIndex]; ?> - <? if ((!isset($currentSearch['ajax']) || !$currentSearch['ajax']) && isset($currentSearch['hide_if_empty']) && $currentSearch['hide_if_empty'] && $currentSearch['view']->results->getResultTotal() == 0) { $columnIndex += $columns; continue; } ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); - // Enable cart if appropriate: - $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; - // Enable bulk options if appropriate: - $viewParams['showBulkOptions'] = $this->supportsCartOptions[$columnIndex] && $this->showBulkOptions; - ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? $templateSuffix = (isset($currentSearch['ajax']) && $currentSearch['ajax']) ? 'ajax' : 'list'; ?> - <?=$this->render('combined/results-' . $templateSuffix . '.phtml', $viewParams)?> - </div> - </div> - <? $columnIndex += $columns ?> - <? endwhile; ?> - </div> -<? endfor; ?> diff --git a/themes/blueprint/templates/combined/stack-left.phtml b/themes/blueprint/templates/combined/stack-left.phtml deleted file mode 100644 index 9d5f6d1b1209318deef834a70e8844af260ac210..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/stack-left.phtml +++ /dev/null @@ -1,37 +0,0 @@ -<? $span = floor(24/$columns); ?> -<? $sectionCount = count($this->combinedResults); ?> -<? $keys = array(); ?> -<? $searches = array(); ?> -<? foreach ($this->combinedResults as $searchClassId => $currentSearch): ?> - <? $keys[] = $searchClassId; ?> - <? $searches[] = $currentSearch; ?> -<? endforeach; ?> -<div class="span-<?=$span ?> combined-list"> - <? for ($columnIndex = $columns-1;$columnIndex < $sectionCount;$columnIndex++): ?> - <? $searchClassId = $keys[$columnIndex]; ?> - <? $currentSearch = $searches[$columnIndex]; ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? $templateSuffix = (isset($currentSearch['ajax']) && $currentSearch['ajax']) ? 'ajax' : 'list'; ?> - <?=$this->render('combined/results-' . $templateSuffix . '.phtml', array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch))?> - </div> - <? endfor; ?> -</div> -<? for ($columnIndex = 0;$columnIndex < $columns-1;$columnIndex++): ?> - <? $searchClassId = $keys[$columnIndex]; ?> - <? $currentSearch = $searches[$columnIndex]; ?> - <div class="span-<?=$span ?> combined-list"> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); - // Enable cart if appropriate: - $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; - // Enable bulk options if appropriate: - $viewParams['showBulkOptions'] = $this->supportsCartOptions[$columnIndex] && $this->showBulkOptions; - ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? $templateSuffix = (isset($currentSearch['ajax']) && $currentSearch['ajax']) ? 'ajax' : 'list'; ?> - <?=$this->render('combined/results-' . $templateSuffix . '.phtml', $viewParams)?> - </div> - </div> - </div> -<? endfor; ?> diff --git a/themes/blueprint/templates/combined/stack-right.phtml b/themes/blueprint/templates/combined/stack-right.phtml deleted file mode 100644 index 9c33dfb50f0d3d7a333276da2fe92b04295e2662..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/combined/stack-right.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<? $columnIndex = 0; ?> -<? $span = floor(24/$columns); ?> -<? $sectionCount = count($this->combinedResults); ?> -<? foreach ($this->combinedResults as $searchClassId => $currentSearch): ?> - <? if ((!isset($currentSearch['ajax']) || !$currentSearch['ajax']) && isset($currentSearch['hide_if_empty']) && $currentSearch['hide_if_empty'] && $currentSearch['view']->results->getResultTotal() == 0) { continue; } ?> - <? if ($columnIndex < $columns): ?> - <div class="span-<?=$span ?> combined-list"> - <? endif; ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? - $viewParams = array('searchClassId' => $searchClassId, 'currentSearch' => $currentSearch); - // Enable cart if appropriate: - $viewParams['showCartControls'] = $this->supportsCartOptions[$columnIndex] && $this->showCartControls; - // Enable bulk options if appropriate: - $viewParams['showBulkOptions'] = $this->supportsCartOptions[$columnIndex] && $this->showBulkOptions; - ?> - <div id="combined_<?=$this->escapeHtmlAttr($searchClassId)?>"> - <? $templateSuffix = (isset($currentSearch['ajax']) && $currentSearch['ajax']) ? 'ajax' : 'list'; ?> - <?=$this->render('combined/results-' . $templateSuffix . '.phtml', $viewParams)?> - </div> - </div> - <? ++$columnIndex ?> - <? if($columnIndex < $columns || $columnIndex == $sectionCount): ?> - </div> - <? endif; ?> -<? endforeach; ?> diff --git a/themes/blueprint/templates/confirm/confirm.phtml b/themes/blueprint/templates/confirm/confirm.phtml deleted file mode 100644 index 6731c009c405af57f914e157f3e58df6fcc60f17..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/confirm/confirm.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<div class="alignleft"> - <h3><?=$this->transEsc($this->title) ?></h3> - - <?=$this->flashmessages();?> - - <div id="popupDetails" class="confirmDialog"> - <form action="<?=$this->escapeHtmlAttr($this->confirm)?>" method="post"> - <? if (isset($this->extras)): ?> - <? foreach ($this->extras as $extra=>$value): ?> - <? if (is_array($value)): ?> - <? foreach ($value as $current): ?> - <input type="hidden" name="<?=$this->escapeHtmlAttr($extra) ?>[]" value="<?=$this->escapeHtmlAttr($current) ?>" /> - <? endforeach; ?> - <? else: ?> - <input type="hidden" name="<?=$this->escapeHtmlAttr($extra) ?>" value="<?=$this->escapeHtmlAttr($value) ?>" /> - <? endif; ?> - <? endforeach; ?> - <? endif;?> - <input type="submit" name="confirm" value="<?=$this->transEsc('confirm_dialog_yes') ?>" /> - </form> - <form action="<?=$this->escapeHtmlAttr($this->cancel) ?>" method="post"> - <input type="submit" name="cancel" value="<?=$this->transEsc('confirm_dialog_no') ?>" /> - </form> - <div class="clearer"></div> - </div> -</div> diff --git a/themes/blueprint/templates/devtools/language.phtml b/themes/blueprint/templates/devtools/language.phtml deleted file mode 100644 index 12b35eae153051c84e8010aee9d2c4a8a5f3e698..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/devtools/language.phtml +++ /dev/null @@ -1,35 +0,0 @@ -<? - $this->headTitle($this->translate('Language')); -?> - -<h1>Comparing Languages Against <?=$this->escapeHtml($mainName)?></h1> - -<h2>Summary</h2> - -<table> - <tr><th>Language</th><th>Missing Lines</th><th>Extra Lines</th><th>Percent Translated</th><th>Extra Help Files</th></tr> - <? foreach ($details as $langCode => $diffs): ?> - <tr> - <td><?=$this->escapeHtml($langCode . ' (' . $diffs['name'] . ')')?></td> - <td><?=count($diffs['notInL2'])?></td> - <td><?=count($diffs['notInL1'])?></td> - <td><?=$this->escapeHtml($diffs['l2Percent'])?></td> - <td><?=count($diffs['helpFiles'])?></td> - </tr> - <? endforeach; ?> -</table> - -<? foreach ($details as $langCode => $diffs): ?> - <? if (count($diffs['notInL1']) > 0): ?> - <h2>Extra Lines In <?=$this->escapeHtml($diffs['name'])?> (<?=$this->escapeHtml($langCode)?>.ini)</h2> - <? foreach ($diffs['notInL1'] as $key): ?> - <?=$this->escapeHtml($key)?> = "<?=$this->escapeHtml($diffs['object'][$key])?>"<br /> - <? endforeach; ?> - <? endif; ?> - <? if (count($diffs['notInL2']) > 0): ?> - <h2>Missing From <?=$this->escapeHtml($diffs['name'])?> (<?=$this->escapeHtml($langCode)?>.ini)</h2> - <? foreach ($diffs['notInL2'] as $key): ?> - <?=$this->escapeHtml($key)?> = "<?=$this->escapeHtml($main[$key])?>"<br /> - <? endforeach; ?> - <? endif; ?> -<? endforeach; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/eds/advanced.phtml b/themes/blueprint/templates/eds/advanced.phtml deleted file mode 100644 index 82aeff7c920dba2153a31bf78132342c9819b305..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eds/advanced.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<? - // Load the EDS-specific advanced search controls and inject them into the - // standard advanced search layout: - $this->extraAdvancedControls = $this->render('search/advanced/eds.phtml'); - - $this->buildPageOverride = '/search/advanced/build_page_eds.phtml'; - $this->advancedSearchJsOverride = 'advanced_search_eds.js'; - echo $this->render('search/advanced/layout.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/eds/home.phtml b/themes/blueprint/templates/eds/home.phtml deleted file mode 100644 index d7a41e70131abc1ccb759a55a3c5e2309c51bfa4..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eds/home.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<? - echo $this->render('search/home.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/eds/search.phtml b/themes/blueprint/templates/eds/search.phtml deleted file mode 100644 index a1f2bef83e8cce9df08e6acf285887435c887dd7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eds/search.phtml +++ /dev/null @@ -1,5 +0,0 @@ -<? - // Load standard settings from the default search results screen: - $this->overrideSideFacetCaption = 'Refine Results'; - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/eit/advanced.phtml b/themes/blueprint/templates/eit/advanced.phtml deleted file mode 100644 index 6d2d837a3c7db2d7eb01978580cf3ba3fa6c7a0f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eit/advanced.phtml +++ /dev/null @@ -1,5 +0,0 @@ -<? - // There are no EIT-specific advanced search controls, so just load the - // standard advanced search layout: - echo $this->render('search/advanced/layout.phtml'); -?> diff --git a/themes/blueprint/templates/eit/home.phtml b/themes/blueprint/templates/eit/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eit/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/eit/search.phtml b/themes/blueprint/templates/eit/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/eit/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/error/index.phtml b/themes/blueprint/templates/error/index.phtml deleted file mode 100644 index 56cc0eebd6a7f8b392cfb31fd5c19dc8e534a904..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/error/index.phtml +++ /dev/null @@ -1,47 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('An error has occurred')); -?> -<div class="error fatalError"> - <h1><?=$this->transEsc('An error has occurred')?></h1> - <p class="errorMsg"><?=$this->transEsc($this->message)?></p> - <p> - <?=$this->transEsc('Please contact the Library Reference Department for assistance')?> - <br/> - <? $supportEmail = $this->escapeHtmlAttr($this->systememail()); ?> - <a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a> - </p> -</div> - -<? if ($this->showInstallLink): ?> - <h3><a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title', array(), 'Auto Configure')?></a></h3> - <?=$this->transEsc('auto_configure_description', array(), 'If this is a new installation, you may be able to fix the error using VuFind\'s Auto Configure tool.')?> - <h3><a href="<?=$this->url('upgrade-home')?>"><?=$this->transEsc('Upgrade VuFind')?></a></h3> - <?=$this->transEsc('upgrade_description', array(), 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?> -<? endif; ?> - -<? if (isset($this->display_exceptions) && $this->display_exceptions): ?> - <h3><?=$this->transEsc('Exception')?>:</h3> - <p> - <b><?=$this->transEsc('Message')?>:</b> <?=$this->exception->getMessage()?> - </p> - - <h3><?=$this->transEsc('Backtrace')?>:</h3> - <pre><?=$this->exception->getTraceAsString()?> - </pre> - - <? if ($e = $this->exception->getPrevious()): ?> - <h3>Previous exceptions:</h2> - <? while($e): ?> - <h4><?php echo get_class($e); ?></h4> - <p><?=$e->getMessage()?></p> - <pre><?=$e->getTraceAsString()?></pre> - <? $e = $e->getPrevious(); ?> - <? endwhile; ?> - <? endif; ?> - - <? if (isset($this->request)): ?> - <h3><?=$this->transEsc('error_page_parameter_list_heading')?>:</h3> - <pre><?=$this->escapeHtml(var_export($this->request->getParams(), true))?></pre> - <? endif; ?> -<? endif ?> diff --git a/themes/blueprint/templates/error/unavailable.phtml b/themes/blueprint/templates/error/unavailable.phtml deleted file mode 100644 index fe7072037dcb20ac1b5b68e9ba3b94a43dc60c6c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/error/unavailable.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('System Unavailable')); - - // Disable top search box -- this page has a special layout. - $this->layout()->searchbox = false; -?> -<div class="error unavailable"> - <h1><?=$this->transEsc('System Unavailable')?></h1> - <p> - <?=$this->transEsc('The system is currently unavailable due to system maintenance')?>. - <?=$this->transEsc('Please check back soon')?>. - </p> - <p> - <?=$this->transEsc('Please contact the Library Reference Department for assistance')?> - <br/> - <? $supportEmail = $this->escapeHtml($this->systemEmail()); ?> - <a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a> - </p> -</div> diff --git a/themes/blueprint/templates/feedback/email.phtml b/themes/blueprint/templates/feedback/email.phtml deleted file mode 100644 index 3c6c114e8f553647ce9b4d5e57e2bc39a4e23905..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/feedback/email.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<div class="slideOutForm" id="slideOut"> - <div class="slide-out-div"> - <div class="handle"> - <div id="feedbackTabBox"></div> - <div id="feedbackTabText"><?=$this->transEsc("Feedback")?></div> - </div> - <?=$this->render('feedback/form.phtml');?> - </div> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/feedback/form.phtml b/themes/blueprint/templates/feedback/form.phtml deleted file mode 100644 index 9a1520e0a6ecbb0ca7526f73eedf2a58ae5b263f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/feedback/form.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<div id="contact_form"> - <form method="post" action="<?=$this->url('feedback-email')?>"> - <p class="feedbackHeader"><b><?=$this->transEsc("Send us your feedback!")?></b></p> - <label for="name" style="line-height: 2.5;"> - <?=$this->transEsc("feedback_name")?></label> - <label class="error" for="name"> - <?=$this->transEsc("Please enable JavaScript.")?></label><br /> - <input type="text" id="name" size="30" class="text-input <?=$this->jqueryValidation(array('required'=>'This field is required'))?>" /><br /> - <label for="email" style="line-height: 2.5;"> - <?=$this->transEsc("Email")?></label><br /> - <input type="text" id="email" size="30" class="text-input <?=$this->jqueryValidation(array('required'=>'This field is required', 'email'=>'Email address is invalid'))?>" /><br /> - <label for="comments" style="line-height: 2.5;"> - <?=$this->transEsc("Comments")?></label><br /> - <textarea id="comments" style="width:250px;height:130px" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"></textarea><br /> - <input type="submit" class="button" value="<?=$this->transEsc("Send")?>" /> - <input type="hidden" id="formSuccess" value="<?=$this->transEsc("Form Submitted!")?>"/> - <input type="hidden" id="feedbackSuccess" value="<?=$this->transEsc("Thank you for your feedback.")?>"/> - <input type="hidden" id="feedbackFailure" value="<?=$this->transEsc("An error has occurred")?>"/> - </form> -</div> diff --git a/themes/blueprint/templates/feedback/home.phtml b/themes/blueprint/templates/feedback/home.phtml deleted file mode 100644 index 42b3c6b88ec803828c3bd5db2801aa0081e3bf44..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/feedback/home.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<? - // Set page title - $this->headTitle($this->translate('Feedback Email')); - // Get rid of the feedback tab since this uses the same variables - $this->layout()->feedbacktab = false; -?> -<?=$this->render('feedback/form.phtml');?> diff --git a/themes/blueprint/templates/footer.phtml b/themes/blueprint/templates/footer.phtml deleted file mode 100644 index 41faaf4ba6e35502a5833adab87346e7fa5bec6f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/footer.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<div class="span-5"><p><strong><?=$this->transEsc('Search Options')?></strong></p> - <ul> - <li><a href="<?=$this->url('search-history')?>"><?=$this->transEsc('Search History')?></a></li> - <li><a href="<?=$this->url('search-advanced')?>"><?=$this->transEsc('Advanced Search')?></a></li> - </ul> -</div> -<div class="span-5"><p><strong><?=$this->transEsc('Find More')?></strong></p> - <ul> - <li><a href="<?=$this->url('browse-home')?>"><?=$this->transEsc('Browse the Catalog')?></a></li> - <li><a href="<?=$this->url('alphabrowse-home')?>"><?=$this->transEsc('Browse Alphabetically')?></a></li> - <li><a href="<?=$this->url('search-reserves')?>"><?=$this->transEsc('Course Reserves')?></a></li> - <li><a href="<?=$this->url('search-newitem')?>"><?=$this->transEsc('New Items')?></a></li> - </ul> -</div> -<div class="span-5 last"><p><strong><?=$this->transEsc('Need Help?')?></strong></p> - <ul> - <li><a href="<?=$this->url('help-home', array(), array('query' => array('topic' => 'search')))?>" class="searchHelp"><?=$this->transEsc('Search Tips')?></a></li> - <li><a href="#"><?=$this->transEsc('Ask a Librarian')?></a></li> - <li><a href="#"><?=$this->transEsc('FAQs')?></a></li> - </ul> -</div> -<div class="clear"></div> diff --git a/themes/blueprint/templates/header.phtml b/themes/blueprint/templates/header.phtml deleted file mode 100644 index b4b67c070b1b3dd133c7b64c8f7c9f0001bb0128..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/header.phtml +++ /dev/null @@ -1,49 +0,0 @@ -<? $account = $this->auth()->getManager(); ?> -<a id="logo" href="<?=$this->url('home')?>"></a> -<? if (!isset($this->layout()->renderingError)): ?> - <div id="headerRight"> - <? $cart = $this->cart(); if ($cart->isActive()): ?> - <div id="cartSummary" class="cartSummary"> - <a id="cartItems" title="<?=$this->transEsc('View Book Bag')?>" class="bookbag" href="<?=$this->url('cart-home')?>"><strong><span><?=count($cart->getItems())?></span></strong> <?=$this->transEsc('items')?> <?=$cart->isFull() ? '(' . $this->transEsc('bookbag_full') . ')' : ''?></a> - <a id="viewCart" title="<?=$this->transEsc('View Book Bag')?>" class="viewCart bookbag offscreen" href="<?=$this->url('cart-home')?>"><strong><span id="cartSize"><?=count($cart->getItems())?></span></strong> <?=$this->transEsc('items')?><span id="cartStatus"><?=$cart->isFull() ? $this->transEsc('bookbag_full') : ' '?></span></a> - </div> - <? endif; ?> - <? if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?> - <div id="logoutOptions"<?=!$account->isLoggedIn() ? ' class="hide"' : ''?>> - <a class="account" href="<?=$this->url('myresearch-home', array(), array('query' => array('redirect' => 0)))?>"><?=$this->transEsc("Your Account")?></a> | - <a class="logout" href="<?=$this->url('myresearch-logout')?>"><?=$this->transEsc("Log Out")?></a> - </div> - <div id="loginOptions"<?=$account->isLoggedIn() ? ' class="hide"' : ''?>> - <? if ($account->getSessionInitiator($this->serverUrl($this->url('myresearch-userlogin')))): ?> - <a class="login" href="<?=$this->url('myresearch-userlogin')?>"><?=$this->transEsc("Institutional Login")?></a> - <? else: ?> - <a class="login" href="<?=$this->url('myresearch-userlogin')?>"><?=$this->transEsc("Login")?></a> - <? endif; ?> - </div> - <? endif; ?> - <? if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?> - <form method="post" name="themeForm" action="" id="themeForm"> - <label for="themeForm_ui"><?=$this->transEsc("Theme")?>:</label> - <select id="themeForm_ui" name="ui" class="jumpMenu"> - <? foreach ($this->layout()->themeOptions as $current): ?> - <option value="<?=$this->escapeHtmlAttr($current['name'])?>"<?=$current['selected'] ? ' selected="selected"' : ''?>><?=$this->transEsc($current['desc'])?></option> - <? endforeach; ?> - </select> - <noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript> - </form> - <? endif; ?> - <? if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?> - <form method="post" name="langForm" action="" id="langForm"> - <label for="langForm_mylang"><?=$this->transEsc("Language")?>:</label> - <select id="langForm_mylang" name="mylang" class="jumpMenu"> - <? foreach ($this->layout()->allLangs as $langCode => $langName): ?> - <option value="<?=$langCode?>"<?=$this->layout()->userLang == $langCode ? ' selected="selected"' : ''?>><?=$this->displayLanguageOption($langName)?></option> - <? endforeach; ?> - </select> - <noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript> - </form> - <? endif; ?> - </div> -<? endif; ?> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/install/disabled.phtml b/themes/blueprint/templates/install/disabled.phtml deleted file mode 100644 index fdca791370987083a4a704803f4ac756ab2c4981..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/disabled.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<p><?=$this->transEsc('auto_configure_disabled')?></p> \ No newline at end of file diff --git a/themes/blueprint/templates/install/done.phtml b/themes/blueprint/templates/install/done.phtml deleted file mode 100644 index ceefd746090200dfed5020a06a51de5029280f3b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/done.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<p>Auto configuration has been successfully disabled.</p> - -<p>If you are concerned about security, you may want to change the permissions on -the <strong><?=$this->escapeHtml($this->configDir)?></strong> directory to prevent the -web server from writing changes to configurations in the future.</p> \ No newline at end of file diff --git a/themes/blueprint/templates/install/fixbasicconfig.phtml b/themes/blueprint/templates/install/fixbasicconfig.phtml deleted file mode 100644 index 0bb5f8a27677df218aaf0d5b9a13cd29ab50bfb8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixbasicconfig.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<? if (isset($this->configDir)): ?> - <p>VuFind cannot write to <b><?=$this->escapeHtml($this->configDir)?></b>.</p> - - <p>Please make sure that write permissions are available on this directory.</p> - - <p>In Linux, try this command (note that you may need to prefix with "sudo" on some flavors):</p> - - <pre> - <? if (isset($this->runningUser)): ?> - chown <?=$this->escapeHtml($this->runningUser)?>:<?=$this->escapeHtml($this->runningUser)?> <?=$this->escapeHtml($this->configDir)?> - <? else: ?> - chmod 777 <?=$this->escapeHtml($this->configDir)?> - <? endif; ?> - </pre> -<? else: ?> - <p>Your configuration has been successfully updated.</p> -<? endif; ?> diff --git a/themes/blueprint/templates/install/fixcache.phtml b/themes/blueprint/templates/install/fixcache.phtml deleted file mode 100644 index b26ce1b05e3795b67c666342d378bc6f946eb3a1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixcache.phtml +++ /dev/null @@ -1,22 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<p>VuFind cannot write to <b><?=$this->escapeHtml($this->cacheDir)?></b>.</p> - -<p>Please make sure that write permissions are available on this directory.</p> - -<p>In Linux, try this command (note that you may need to prefix with "sudo" on some flavors):</p> - -<pre> - <? if (isset($this->runningUser)): ?> - chown <?=$this->escapeHtml($this->runningUser)?>:<?=$this->escapeHtml($this->runningUser)?> <?=$this->escapeHtml($this->cacheDir)?> - <? else: ?> - chmod 777 <?=$this->escapeHtml($this->cacheDir)?> - <? endif; ?> -</pre> diff --git a/themes/blueprint/templates/install/fixdatabase.phtml b/themes/blueprint/templates/install/fixdatabase.phtml deleted file mode 100644 index 25a2757672f507a8b4b62c35d794a6e28fb0b4b1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixdatabase.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<?=$this->flashmessages()?> - -<p>To create a new database for VuFind, please fill in this form:</p> - -<form action="" method="post"> - <table> - <tbody> - <tr><td>Select database type: </td><td><select name="driver"><option value="mysql">MySQL</option><option <? if ($driver == 'pgsql'): ?>selected="selected" <? endif; ?>value="pgsql">PostgreSQL</option></select></td></tr> - <tr><td>New database name: </td><td><input type="text" name="dbname" value="<?=$this->escapeHtmlAttr($this->dbname)?>"/></td></tr> - <tr><td>New database user: </td><td><input type="text" name="dbuser" value="<?=$this->escapeHtmlAttr($this->dbuser)?>"/></td></tr> - <tr><td>New user password: </td><td><input type="password" name="dbpass" value=""/></td></tr> - <tr><td>Confirm new user password: </td><td><input type="password" name="dbpassconfirm" value=""/></td></tr> - <tr><td>SQL Host: </td><td><input type="text" name="dbhost" value="<?=$this->escapeHtmlAttr($this->dbhost)?>"/></td></tr> - <tr><td>VuFind IP/Host (if different from SQL Host): </td><td><input type="text" name="vufindhost" value="<?=$this->escapeHtmlAttr($this->vufindhost)?>"/></td></tr> - <tr><td>SQL Root User: </td><td><input type="text" name="dbrootuser" value="<?=$this->escapeHtmlAttr($this->dbrootuser)?>"/></td></tr> - <tr><td>SQL Root Password: </td><td><input type="password" name="dbrootpass" value=""/></td></tr> - <tr><td width="50%"></td><td><input type="submit" name="submit" value="<?=$this->transEsc('Submit') ?>" /></td></tr> - <tr><td>If you don't have the credentials or you wish to print the SQL out :</td><td>Click here to <input type="submit" name="printsql" value="Skip" /> credentials.</td></tr> - </tbody> - </table> - -</form> diff --git a/themes/blueprint/templates/install/fixdependencies.phtml b/themes/blueprint/templates/install/fixdependencies.phtml deleted file mode 100644 index 1fc58c93f818d50c5ec2636f4fddf76025ff7b3d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixdependencies.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<?=$this->flashmessages()?> - -<? if ($this->problems == 0): ?><p><?=$this->transEsc('No dependency problems found') ?>.</p><? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/install/fixils.phtml b/themes/blueprint/templates/install/fixils.phtml deleted file mode 100644 index 0897324422eebc0d25f8d62835a4ab13717c1245..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixils.phtml +++ /dev/null @@ -1,31 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<? if (isset($this->demo)): ?> - <p>You are using one of VuFind's simulated Integrated Library System (ILS) drivers, which display fake information - in order to demonstrate the capabilities of the system. If you want real patron and status information to display, - you should change your configuration to communicate with a real ILS.</p> - - <form method="post" action=""> - Pick a driver: - <select name="driver"> - <? foreach ($this->drivers as $driver): ?> - <option value="<?=$this->escapeHtmlAttr($driver)?>"><?=$this->escapeHtml($driver)?></option> - <? endforeach; ?> - </select> - <input type="submit"/> - </form> - - <p>If your ILS is not available in this list, you may be able to write your own driver. See the - <a href="http://vufind.org/wiki/vufind2:developer_manual">Developer Manual</a>.</p> -<? else: ?> - <p>VuFind is having trouble communicating with your Integrated Library System (ILS). Check your configuration. - You may need to edit the file at <strong><?=$this->escapeHtml($this->configPath)?></strong> and fill in some - connection details.</p> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/install/fixsecurity.phtml b/themes/blueprint/templates/install/fixsecurity.phtml deleted file mode 100644 index b2d117a0f6eac19fc53ed39fa1524b19615a0b5f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixsecurity.phtml +++ /dev/null @@ -1,27 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<?=$this->flashmessages()?> - -<? if (isset($this->confirmUserFix) && $this->confirmUserFix): ?> - <p>You have existing user data in your database containing non-encrypted passwords.</p> - <p>If you continue with enabling security, all of your passwords will be hashed and/or encrypted.</p> - <p><b>Please make a database backup before proceeding.</b></p> - <p>You should <b>NOT</b> turn on encryption if you still wish for your database to be compatible with VuFind 1.x. If you want - to keep the option of being able to roll back to the earlier version, or if you plan on temporarily running 1.x and 2.x in - parallel, you should not enable encryption now. - </p> - <p><i>Do you still wish to proceed with enabling enhanced security in the database?</i></p> - <form method="post" action="<?=$this->url('install-fixsecurity')?>"> - <input type="submit" name="fix-user-table" value="Yes" /> - <input type="submit" name="fix-user-table" value="No" /> - </form> -<? else: ?> - <p>No security problems found.</p> -<? endif; ?> diff --git a/themes/blueprint/templates/install/fixsolr.phtml b/themes/blueprint/templates/install/fixsolr.phtml deleted file mode 100644 index 6e6c7e7be77d4da4a2aa4a9559a681f533c9a500..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/fixsolr.phtml +++ /dev/null @@ -1,18 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('install-home') .'">' . $this->transEsc('auto_configure_title') . '</a>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> - -<p>VuFind cannot communicate with the Solr index.</p> - -<p>Troubleshooting steps:</p> - -<ol> - <li>Did you start the Solr server? See <a href="http://vufind.org/wiki/starting_and_stopping_vufind">Starting and Stopping VuFind</a> in the documentation.</li> - <li>Have you checked the Solr admin panel for errors? You may be able to find it <a href="<?=$this->escapeHtmlAttr($this->userUrl)?>">here</a>.</li> - <li>Are you using non-default Solr settings? If your Solr URL is not <strong><?=$this->escapeHtml($this->rawUrl)?></strong> or your core name is not <strong><?=$this->escapeHtml($this->core)?></strong>, you will need to customize the [Index] section of <?=$this->escapeHtml($this->configFile)?>.</li> -</ol> \ No newline at end of file diff --git a/themes/blueprint/templates/install/home.phtml b/themes/blueprint/templates/install/home.phtml deleted file mode 100644 index 5191faa09489b2a10c0cf1e3d468e962282bc30d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/home.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('auto_configure_title')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('auto_configure_title') . '</em>'; -?> -<h1><?=$this->transEsc('auto_configure_title')?></h1> -<?=$this->flashmessages()?> -<ul> - <? $errors = 0; foreach ($this->checks as $check): ?> - <? if (!$check['status']) $errors++; ?> - <li><?=$this->escapeHtml($check['title'])?>... <?=$check['status'] ? '<span style="color:green">' . $this->transEsc('test_ok') . '</span>' : '<span style="color:red">' . $this->transesc('test_fail') . '</span> <a href="' . $this->url('install-' . strtolower($check['fix'])) . '">' . $this->transEsc('test_fix') . '</a>' ?></li> - <? endforeach; ?> -</ul> - -<? if ($errors == 0): ?> - <p>No problems were found. You may wish to <a href="<?=$this->url('install-done')?>">Disable Auto Configuration</a> at this time.</p> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/install/showsql.phtml b/themes/blueprint/templates/install/showsql.phtml deleted file mode 100644 index 012efc5ef653aa8363c1ff7cb65d021fbab0eb0c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/install/showsql.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Install VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Install VuFind') . '</em>'; - - // Set up styles: - $this->headstyle()->appendStyle( - ".pre {\n" - . " white-space:pre-wrap; width:90%; overflow-y:visible; padding:8px; margin:1em 2em; background:#EEE; border:1px dashed #CCC;\n" - . "}\n" - ); -?> -<h1><?=$this->transEsc('Install VuFind')?></h1> -<?=$this->flashmessages()?> -<p>Save this SQL somewhere safe:</p> - -<textarea class="pre" rows="20" readonly onClick="this.select()"><?=trim($this->sql) ?></textarea> - -<form method="post" action="<?=$this->url('install-showsql')?>"> - <input type="submit" name="continue" value="Next" /> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/layout/layout.phtml b/themes/blueprint/templates/layout/layout.phtml deleted file mode 100644 index 2a6a170528a1f59904aaaaeb6456359cdab2a7a2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/layout/layout.phtml +++ /dev/null @@ -1,141 +0,0 @@ -<?=$this->doctype('XHTML1_TRANSITIONAL')?> -<html xmlns="http://www.w3.org/1999/xhtml" lang="<?=$this->layout()->userLang?>" xml:lang="en"> - <head> - <?$this->headThemeResources()?> - <?=$this->headMeta()?> - <?=$this->headTitle()?> - <? - // Set up OpenSearch link: - $this->headLink( - array( - 'href' => $this->url('search-opensearch') . '?method=describe', - 'type' => 'application/opensearchdescription+xml', - 'title' => $this->transEsc('Library Catalog Search'), - 'rel' => 'search' - ) - ); - ?> - <? - $feedback = $this->feedback()->tabEnabled(); - if ($feedback) { - $this->headLink()->appendStylesheet('ie8-tab.css', 'screen, projection', 'IE 8'); - } - ?> - <?=$this->headLink()?> - <?=$this->headStyle()?> - <? - // Set global path for Javascript code: - $this->headScript()->prependScript("path = '" . rtrim($this->url('home'), '/') . "';"); - - $this->jsTranslations()->addStrings( - array( - 'loading' => 'Loading', - 'libphonenumber_invalid' => 'libphonenumber_invalid', - 'libphonenumber_invalidcountry' => 'libphonenumber_invalidcountry', - 'libphonenumber_invalidregion' => 'libphonenumber_invalidregion', - 'libphonenumber_notanumber' => 'libphonenumber_notanumber', - 'libphonenumber_toolong' => 'libphonenumber_toolong', - 'libphonenumber_tooshort' => 'libphonenumber_tooshort', - 'libphonenumber_tooshortidd' => 'libphonenumber_tooshortidd', - ) - ); - // Deal with cart stuff: - if (!isset($this->renderingError)) { - $cart = $this->cart(); - if ($cart->isActive()) { - $this->headScript()->appendFile("jquery.cookie.js"); - $this->headScript()->appendFile("cart.js"); - $domain = $cart->getCookieDomain(); - $this->headScript()->appendScript( - 'var cartCookieDomain = ' . (!empty($domain) ? "'$domain'" : 'false') . ';' - ); - $this->jsTranslations()->addStrings( - array( - 'bulk_noitems_advice' => 'bulk_noitems_advice', - 'confirmEmpty' => 'bookbag_confirm_empty', - 'viewBookBag' => 'View Book Bag', - 'addBookBag' => 'Add to Book Bag', - 'removeBookBag' => 'Remove from Book Bag', - 'itemsAddBag' => 'items_added_to_bookbag', - 'itemsInBag' => 'items_already_in_bookbag', - 'bookbagMax' => $cart->getMaxSize(), - 'bookbagFull' => 'bookbag_full_msg', - 'bookbagStatusFull' => 'bookbag_full', - ) - ); - } - $this->headScript()->appendScript($this->jsTranslations()->getScript()); - $this->headScript()->appendScript( - 'var userIsLoggedIn = ' . ($this->auth()->isLoggedIn() ? 'true' : 'false') . ';' - ); - } - if ($feedback) { - $this->headScript()->appendFile("jquery.tabSlideOut.v2.0.js"); - $this->headScript()->appendFile("feedback.js"); - } - - // Session keep-alive - if ($this->KeepAlive()) { - $this->headScript()->appendScript('var keepAliveInterval = ' - . $this->KeepAlive()); - $this->headScript()->appendFile("keep_alive.js"); - } - if ($this->recaptcha()->active()) { - $this->headScript()->appendFile("recaptcha_ajax.js"); - } - ?> - <?=$this->headScript()?> - </head> - <body> - <? if ($mobileViewLink = $this->mobileUrl()): // display 'return to mobile' link when applicable ?> - <div class="mobileViewLink"><a href="<?=$this->escapeHtmlAttr($mobileViewLink)?>"><?=$this->transEsc("mobile_link")?></a></div> - <? endif; ?> - <div class="container"> - <div class="header"> - <?=$this->render('header.phtml')?> - </div> - <? // Set up the search box -- there are three possible cases: - // 1. No search box was set; we should default to the normal box - // 2. It was set to false; we should display nothing - // 3. It is set to a custom string; we should display the provided version - - // Set up default search box if no data was provided from the template; - // this covers case 1. Cases 2 and 3 are then covered by logic below. - if (!isset($this->layout()->searchbox)) { - $this->layout()->searchbox = $this->render('search/searchbox.phtml'); - } - ?> - <? if ($this->layout()->searchbox !== false): ?> - <div class="searchbox"> - <?=$this->layout()->searchbox?> - </div> - <? endif; ?> - <? - // Set up the feedback tab -- the same possible cases exist as the search box - if ($feedback && !isset($this->layout()->feedbacktab)) { - $this->layout()->feedbacktab = $this->render('feedback/email.phtml'); - } - ?> - <? if (isset($this->layout()->feedbacktab)): ?> - <div class="feedbacktab"><?=$this->layout()->feedbacktab?></div> - <? endif; ?> - <? if ($this->layout()->breadcrumbs): ?> - <div class="breadcrumbs"> - <div class="breadcrumbinner"> - <a href="<?=$this->url('home')?>"><?=$this->transEsc('Home')?></a> <span>></span> - <?=$this->layout()->breadcrumbs?> - </div> - </div> - <? endif; ?> - <div class="main"> - <?=$this->layout()->content?> - </div> - <div class="footer"> - <?=$this->render('footer.phtml')?> - <?=$this->layout()->poweredBy?> - </div> - </div> - <?=$this->googleanalytics()?> - <?=$this->piwik()?> - </body> -</html> \ No newline at end of file diff --git a/themes/blueprint/templates/layout/lightbox.phtml b/themes/blueprint/templates/layout/lightbox.phtml deleted file mode 100644 index 265a7c93e7d0288b422e4ee9ee073d3dfd0b0a58..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/layout/lightbox.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<?=$this->layout()->content?> -<script type="text/javascript"> -$(document).ready(function(){ - lightboxDocumentReady(); -}); -</script> diff --git a/themes/blueprint/templates/libguides/home.phtml b/themes/blueprint/templates/libguides/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/libguides/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/libguides/results.phtml b/themes/blueprint/templates/libguides/results.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/libguides/results.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/librarycards/editcard.phtml b/themes/blueprint/templates/librarycards/editcard.phtml deleted file mode 100644 index 2c0112db6bf4e954300417722ab556d02356f1e7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/librarycards/editcard.phtml +++ /dev/null @@ -1,39 +0,0 @@ -<? - // Set up page title: - $pageTitle = empty($this->card->id) ? 'Add a Library Card' : "Edit Library Card"; - $this->headTitle($this->translate($pageTitle)); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc($pageTitle) . '</em>'; -?> -<h1><?=$this->transEsc($pageTitle); ?></h1> - -<?=$this->flashmessages()?> - -<form method="post" name="<?=empty($this->card->id) ? 'newCardForm' : 'editCardForm'?>" action=""> - <label class="displayBlock" for="card_name"><?=$this->transEsc('Library Card Name'); ?>:</label> - <input id="card_name" type="text" name="card_name" value="<?=$this->escapeHtmlAttr($this->cardName)?>" size="50" - class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required')) ?>"/> - <br class="clear"/> - - <? if ($this->targets !== null): ?> - <label class="displayBlock" for="login_target"><?=$this->transEsc('login_target')?>:</label> - <select id="login_target" name="target"> - <? foreach ($this->targets as $target): ?> - <option value="<?=$this->escapeHtmlAttr($target)?>"<?=($target == $this->target ? ' selected="selected"' : '')?>><?=$this->transEsc("source_$target", null, $target)?></option> - <? endforeach; ?> - </select> - <br class="clear"/> - <? endif; ?> - - <label class="displayBlock" for="login_username"><?=$this->transEsc('Username')?>:</label> - <input id="login_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->username)?>" size="15" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> - <br class="clear"/> - <label class="displayBlock" for="login_password"><?=$this->transEsc('Password')?>:</label> - <input id="login_password" type="password" name="password" value="<?=$this->escapeHtmlAttr($this->password)?>" size="15" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> - <br class="clear"/> - - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>"/> -</form> diff --git a/themes/blueprint/templates/librarycards/home.phtml b/themes/blueprint/templates/librarycards/home.phtml deleted file mode 100644 index 1fa5b4f33cf18bba5874e17b432f8445d766de25..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/librarycards/home.phtml +++ /dev/null @@ -1,55 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Library Cards')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Library Cards') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <?=$this->flashmessages()?> - <? if ($this->libraryCards->count() == 0): ?> - <?=$this->transEsc('You do not have any library cards')?> - <? else: ?> - <h3><?=$this->transEsc('Library Cards')?></h3> - <table class="datagrid fines" summary="<?=$this->transEsc('Library Cards')?>"> - <tr> - <th><?=$this->transEsc('Library Card Name')?></th> - <? if ($this->multipleTargets): ?> - <th><?=$this->transEsc('login_target')?></th> - <? endif; ?> - <th><?=$this->transEsc('Username')?></th> - <th> </th> - </tr> - <? foreach ($this->libraryCards as $record): ?> - <tr> - <td><?=$this->escapeHtml($record['card_name'])?></td> - <? $username = $record['cat_username']; if ($this->multipleTargets): ?> - <? $target = ''; ?> - <? if (strstr($username, '.')): ?> - <? list($target, $username) = explode('.', $username, 2); ?> - <? endif; ?> - <td><?=$target ? $this->transEsc("source_$target", null, $target) : ' ' ?></td> - <? endif; ?> - <td><?=$this->escapeHtml($username)?></td> - <td> - <div class="libraryCardButtons"> - <a class="edit smallButton" href="<?=$this->url('editLibraryCard') . $this->escapeHtmlAttr($record['id']) ?>" title="<?=$this->transEsc('Edit Library Card')?>"><i class="fa fa-edit"></i> <?=$this->transEsc('Edit')?></a> - <a class="delete smallButton" href="<?=$this->url('librarycards-deletecard') ?>?cardID=<?=urlencode($record['id'])?>"><?=$this->transEsc('Delete')?></a> - </div> - </td> - </tr> - <? endforeach; ?> - </table> - - <div> - <a href="<?=$this->url('editLibraryCard') ?>NEW" class="add smallButton" title="<?=$this->transEsc('Add a Library Card')?>"><?=$this->transEsc('Add a Library Card')?></a> - </div> - - <? endif; ?> -</div> -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'fines'))?> -</div> -<div class="clear"></div> diff --git a/themes/blueprint/templates/librarycards/selectcard.phtml b/themes/blueprint/templates/librarycards/selectcard.phtml deleted file mode 100644 index 8ebe45b2ac14c21209d6437641374433bed501ae..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/librarycards/selectcard.phtml +++ /dev/null @@ -1,24 +0,0 @@ -<? if ($this->user): ?> - <?$cards = $this->user->getLibraryCards(); if ($cards->count() > 1): ?> - <form action="<?=$this->url('librarycards-selectcard')?>" method="get"> - <label for="library_card"><?=$this->transEsc('Library Card')?></label> - <select id="library_card" name="cardID" class="jumpMenu"> - <? foreach ($cards as $card): ?> - <? - $target = ''; - $username = $card->cat_username; - if (strstr($username, '.')) { - list($target, $username) = explode('.', $username, 2); - } - $display = $this->transEsc($card->card_name ? $card->card_name : $card->cat_username); - if ($target) { - $display .= ' (' . $this->transEsc("source_$target", null, $target) . ')'; - } - ?> - <option value="<?=$this->escapeHtmlAttr($card->id)?>"<?=$card->cat_username == $this->user->cat_username ? ' selected="selected"' : ''?>><?=$display ?></option> - <? endforeach; ?> - </select> - <noscript><input type="submit" class="btn btn-default" value="<?=$this->transEsc("Set")?>" /></noscript> - </form> - <? endif; ?> -<? endif; ?> diff --git a/themes/blueprint/templates/missingrecord/home.phtml b/themes/blueprint/templates/missingrecord/home.phtml deleted file mode 100644 index ce6781682e783f3f32ad8a068b68986b1c3b3fa5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/missingrecord/home.phtml +++ /dev/null @@ -1,5 +0,0 @@ -<div class="<?=$this->layoutClass('mainbody')?>"> - <?=$this->flashmessages()?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/myresearch/account.phtml b/themes/blueprint/templates/myresearch/account.phtml deleted file mode 100644 index 46ce5ce2677123b1a1827af7e2215fad6358c3e5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/account.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('User Account')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Account') . '</em>'; -?> -<h2><?=$this->transEsc('User Account')?></h2> -<?=$this->flashmessages()?> - -<form method="post" action="" name="accountForm" id="accountForm"> - <?=$this->auth()->getCreateFields()?> - <?=$this->recaptcha()->html($this->useRecaptcha) ?> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Submit')?>"/> - <div class="clear"></div> -</form> -<? - // Set up form validation: - $initJs = '$(document).ready(function() { $(\'#accountForm\').validate(); });'; - echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $initJs, 'SET'); -?> diff --git a/themes/blueprint/templates/myresearch/bulk-action-buttons.phtml b/themes/blueprint/templates/myresearch/bulk-action-buttons.phtml deleted file mode 100644 index 0ac6300938c80296d7d403ff015d70e4a78dafb3..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/bulk-action-buttons.phtml +++ /dev/null @@ -1,18 +0,0 @@ -<? $user = $this->auth()->isLoggedIn(); ?> -<div class="bulkActionButtons"> - <input type="checkbox" class="selectAllCheckboxes floatleft" name="selectAll" id="<?=$this->idPrefix?>addFormCheckboxSelectAll"/> <label class="floatleft" for="addFormCheckboxSelectAll"><?=$this->transEsc('select_page')?></label> - <span class="floatleft">|</span> - <span class="floatleft"><strong><?=$this->transEsc('with_selected')?>: </strong></span> - <input type="submit" class="mail floatleft button" name="email" value="<?=$this->transEsc('Email')?>" title="<?=$this->transEsc('email_selected')?>"/> - <? if ((!is_null($this->list) && $this->list->editAllowed($user)) || is_null($this->list) && $user): ?> - <input id="<?=$this->idPrefix?>delete_list_items_<?=!is_null($this->list) ? $this->escapeHtml($this->list->id) : ''?>" type="submit" class="delete floatleft button" name="delete" value="<?=$this->transEsc('Delete')?>" title="<?=$this->transEsc('delete_selected')?>"/> - <? endif; ?> - <? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?> - <input type="submit" class="export floatleft button" name="export" value="<?=$this->transEsc('Export')?>" title="<?=$this->transEsc('export_selected')?>"/> - <? endif; ?> - <input type="submit" class="print floatleft button" name="print" value="<?=$this->transEsc('Print')?>" title="<?=$this->transEsc('print_selected')?>"/> - <? if ($this->cart()->isActive()): ?> - <input id="<?=$this->idPrefix?>updateCart" type="submit" class="button floatleft bookbagAdd" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"/> - <? endif; ?> - <div class="clear"></div> -</div> diff --git a/themes/blueprint/templates/myresearch/cataloglogin.phtml b/themes/blueprint/templates/myresearch/cataloglogin.phtml deleted file mode 100644 index f23a1bb1f37615e9fdcb822623a2918b97366c7b..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/cataloglogin.phtml +++ /dev/null @@ -1,41 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Login')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Login') . '</em>'; - - // Convenience variable: - $offlineMode = $this->ils()->getOfflineMode(); -?> -<? if ($offlineMode == "ils-offline"): ?> - <div class="sysInfo"> - <h2><?=$this->transEsc('ils_offline_title')?></h2> - <p><strong><?=$this->transEsc('ils_offline_status')?></strong></p> - <p><?=$this->transEsc('ils_offline_login_message')?></p> - <? $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> - <p><a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a></p> - </div> -<? else: ?> - <h3><?=$this->transEsc('Library Catalog Profile')?></h3> - <?=$this->flashmessages()?> - <p><?=$this->transEsc('cat_establish_account')?></p> - <form method="post" action=""> - <? if ($this->targets !== null): ?> - <label class="displayBlock" for="login_target"><?=$this->transEsc('login_target')?>:</label> - <select id="login_target" name="target"> - <? foreach ($this->targets as $target): ?> - <option value="<?=$this->escapeHtmlAttr($target)?>"><?=$this->transEsc("source_$target", null, $target)?></option> - <? endforeach; ?> - </select> - <? endif; ?> - <label class="displayBlock" for="profile_cat_username"><?=$this->transEsc('Library Catalog Username')?>:</label> - <input id="profile_cat_username" type="text" name="cat_username" value="" size="25"/> - <label class="displayBlock" for="profile_cat_password"><?=$this->transEsc('Library Catalog Password')?>:</label> - <input id="profile_cat_password" type="password" name="cat_password" value="" size="25"/> - <br/> - <input type="submit" name="submit" value="<?=$this->transEsc('Save')?>"/> - </form> -<? endif; ?> diff --git a/themes/blueprint/templates/myresearch/checkedout.phtml b/themes/blueprint/templates/myresearch/checkedout.phtml deleted file mode 100644 index 50c2d2455426cb29491e023787ad2d8229731029..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/checkedout.phtml +++ /dev/null @@ -1,173 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Checked Out Items')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Checked Out Items') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Your Checked Out Items')?></h3> - <?=$this->flashmessages()?> - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <? if (!empty($this->transactions)): ?> - <? if ($this->renewForm): ?> - <form name="renewals" action="" method="post" id="renewals"> - <div class="toolbar"> - <ul> - <li><input type="submit" class="button renew" name="renewSelected" value="<?=$this->transEsc("renew_selected")?>" /></li> - <li><input type="submit" class="button renewAll" name="renewAll" value="<?=$this->transEsc('renew_all')?>" /></li> - </ul> - </div> - <br /> - <? endif; ?> - - <? if ($paginator): ?> - <?=$this->transEsc("Showing")?> - <? $start = $paginator->getAbsoluteItemNumber(1); - $end = $paginator->getAbsoluteItemNumber($paginator->getItemCountPerPage()); - $total = $paginator->getTotalItemCount(); - ?> - <strong><?=$this->localizedNumber($start)?></strong> - <strong><?=$this->localizedNumber($end > $total ? $total : $end)?></strong> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($total)?></strong> - <? endif; ?> - - <? foreach ($hiddenTransactions as $ilsDetails): ?> - <? if (isset($this->renewResult[$ilsDetails['item_id']])): ?> - <? $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?> - <? $prefix = isset($ilsDetails['title']) ? $ilsDetails['title'] : $ilsDetails['item_id']; ?> - <? if (isset($renewDetails['success']) && $renewDetails['success']): ?> - <div class="success"><?=$this->escapeHtml($prefix . ': ') . $this->transEsc('renew_success')?></div> - <? else: ?> - <div class="error"><?=$this->escapeHtml($prefix . ': ') . $this->transEsc('renew_fail')?><? if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><? endif; ?></div> - <? endif; ?> - <? endif; ?> - <? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?> - <? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?> - <input type="hidden" name="renewAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" /> - <? endif; ?> - <? endforeach; ?> - - <ul class="recordSet"> - <? $i = 0; foreach ($this->transactions as $resource): ?> - <? $ilsDetails = $resource->getExtraDetail('ils_details'); ?> - <li class="result<?=(++$i % 2 == 0) ? ' alt' : ''?>"> - <? if ($this->renewForm): ?> - <? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?> - <? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?> - <label for="checkbox_<?=$safeId?>" class="offscreen"><?=$this->transEsc("Select this record")?></label> - <input type="checkbox" name="renewSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" class="checkbox" style="margin-left: 0" id="checkbox_<?=$safeId?>" /> - <input type="hidden" name="renewAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" /> - <? endif; ?> - <? endif; ?> - <div id="record<?=$this->escapeHtmlAttr($resource->getUniqueId())?>"> - <? $cover = $this->record($resource)->getCover('checkedout', 'small'); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-10"> - <? else: ?> - <div class="span-12"> - <? endif; ?> - <? - // If this is a non-missing Solr record, we should display a link: - if (is_a($resource, 'VuFind\\RecordDriver\\SolrDefault') && !is_a($resource, 'VuFind\\RecordDriver\\Missing')) { - $title = $resource->getTitle(); - $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title); - echo '<a href="' . $this->recordLink()->getUrl($resource) . - '" class="title">' . $title . '</a>'; - } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){ - // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show... - echo $this->escapeHtml($ilsDetails['title']); - } else { - // Last resort -- indicate that no title could be found. - echo $this->transEsc('Title not available'); - } - ?><br/> - <? $listAuthor = $resource->getPrimaryAuthor(); if (!empty($listAuthor)): ?> - <?=$this->transEsc('by')?>: - <a href="<?=$this->record($resource)->getLink('author', $listAuthor)?>"><?=$this->escapeHtml($listAuthor)?></a><br/> - <? endif; ?> - <? $formats = $resource->getFormats(); if (count($formats) > 0): ?> - <?=$this->record($resource)->getFormatList()?> - <br/> - <? endif; ?> - <? if (!empty($ilsDetails['volume'])): ?> - <strong><?=$this->transEsc('Volume')?>:</strong> <?=$this->escapeHtml($ilsDetails['volume'])?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['publication_year'])): ?> - <strong><?=$this->transEsc('Year of Publication')?>:</strong> <?=$this->escapeHtml($ilsDetails['publication_year'])?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['institution_name'])): ?> - <strong><?=$this->transEsc('location_' . $ilsDetails['institution_name'], array(), $ilsDetails['institution_name'])?></strong> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['borrowingLocation'])): ?> - <strong><?=$this->transEsc('Borrowing Location')?>:</strong> <?=$this->transEsc('location_' . $ilsDetails['borrowingLocation'], array(), $ilsDetails['borrowingLocation'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['renew'])): ?> - <strong><?=$this->transEsc('Renewed')?>:</strong> <?=$this->transEsc($ilsDetails['renew'])?> - <? if (isset($ilsDetails['renewLimit'])): ?> - / <?=$this->transEsc($ilsDetails['renewLimit'])?> - <? endif; ?> - <br /> - <? endif; ?> - - <? $showStatus = true; ?> - - <? if (isset($this->renewResult[$ilsDetails['item_id']])): ?> - <? $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?> - <? if (isset($renewDetails['success']) && $renewDetails['success']): ?> - <? $showStatus = false; ?> - <strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($renewDetails['new_date'])?> <? if (isset($renewDetails['new_time'])): ?><?=$this->escapeHtml($renewDetails['new_time'])?><? endif; ?></strong> - <div class="success"><?=$this->transEsc('renew_success')?></div> - <? else: ?> - <strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><? if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><? endif; ?></strong> - <div class="error"><?=$this->transEsc('renew_fail')?><? if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><? endif; ?></div> - <? endif; ?> - <? else: ?> - <strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><? if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><? endif; ?></strong> - <? if ($showStatus): ?> - <? if (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "overdue"): ?> - <div class="error"><?=$this->transEsc("renew_item_overdue")?></div> - <? elseif (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "due"): ?> - <div class="notice"><?=$this->transEsc("renew_item_due")?></div> - <? endif; ?> - <? endif; ?> - <? endif; ?> - - <? if ($showStatus && isset($ilsDetails['message']) && !empty($ilsDetails['message'])): ?> - <div class="info"><?=$this->transEsc($ilsDetails['message'])?></div> - <? endif; ?> - <? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_link'])): ?> - <a href="<?=$this->escapeHtmlAttr($ilsDetails['renew_link'])?>"><?=$this->transEsc('renew_item')?></a> - <? endif; ?> - </div> - <div class="clear"></div> - </div> - </li> - <? endforeach; ?> - </ul> - <? if ($this->renewForm): ?></form><? endif; ?> - <?=$paginator ? $this->paginationControl($paginator, 'Sliding', 'Helpers/pagination.phtml') : ''?> - <? else: ?> - <?=$this->transEsc('You do not have any items checked out')?>. - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'checkedout'))?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/myresearch/delete.phtml b/themes/blueprint/templates/myresearch/delete.phtml deleted file mode 100644 index 4530871d0733aa7869870032dd2933f1dff4b338..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/delete.phtml +++ /dev/null @@ -1,21 +0,0 @@ -<form action="<?=$this->url('myresearch-delete')?>" method="post" name="bulkDelete"> - <div id="popupMessages"><?=$this->flashmessages()?></div> - <div id="popupDetails"> - <? if (!$this->list): ?> - <div class="info"><?=$this->transEsc("fav_delete_warn") ?></div> - <? else: ?> - <h2><?=$this->transEsc("List") ?>: <?=$this->escapeHtml($this->list->title) ?></h2> - <? endif; ?> - - <? foreach ($this->records as $favorite): ?> - <strong><?=$this->transEsc('Title') ?>:</strong> - <?=$this->escapeHtml($favorite->getBreadcrumb())?><br /> - <? endforeach; ?> - <br /> - <input class="submit" type="submit" name="submit" value="<?=$this->transEsc('Delete')?>"/> - <? foreach ($this->deleteIDS as $deleteID): ?> - <input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($deleteID)?>" /> - <? endforeach; ?> - <input type="hidden" name="listID" value="<?=$this->list?$this->escapeHtmlAttr($this->list->id):''?>" /> - </div> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/myresearch/edit.phtml b/themes/blueprint/templates/myresearch/edit.phtml deleted file mode 100644 index 8b53262c5f5faedbd903276487e84119991c8171..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/edit.phtml +++ /dev/null @@ -1,56 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Edit') . ' : ' . $this->driver->getBreadcrumb()); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Edit') . '</em>'; - - // Load Javascript dependencies into header: - $this->headScript()->appendFile("bulk_actions.js"); -?> -<div class="record"> - <h1><?=$this->escapeHtml($this->driver->getBreadcrumb())?></h1> - - <form method="post" name="editForm" action=""> - <? if (empty($this->savedData)): ?> - <p> - <? if (isset($listFilter)): ?> - <?=$this->transEsc('The record you selected is not part of the selected list.') ?> - <? else: ?> - <?=$this->transEsc('The record you selected is not part of any of your lists.') ?> - <? endif; ?> - </p> - <? else: ?> - <? foreach ($this->savedData as $i=>$current): ?> - <strong><?=$this->transEsc('List') ?>: <?=$this->escapeHtml($current['listTitle'])?></strong> - <a href="<?=$this->url('userList', array('id' => $current['listId'])) ?>?delete=<?=urlencode($this->driver->getUniqueId())?>&source=<?=urlencode($this->driver->getResourceSource())?>" id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>delete<?=$current['listId'] ?>" title="<?=$this->transEsc('confirm_delete')?>" class="holdCancel delete tool"></a> - <input type="hidden" name="lists[]" value="<?=$current['listId'] ?>"/> - <? if ($this->usertags()->getMode() !== 'disabled'): ?> - <label class="displayBlock" for="edit_tags<?=$current['listId'] ?>"><?=$this->transEsc('Tags') ?>:</label> - <input id="edit_tags<?=$current['listId'] ?>" type="text" name="tags<?=$current['listId'] ?>" value="<?=$this->escapeHtmlAttr($current['tags'])?>" size="50"/> - <? endif; ?> - <label class="displayBlock" for="edit_notes<?=$current['listId'] ?>"><?=$this->transEsc('Notes') ?>:</label> - <textarea id="edit_notes<?=$current['listId'] ?>" class="displayBlock" name="notes<?=$current['listId'] ?>" rows="3" cols="50"><?=$this->escapeHtml($current['notes'])?></textarea> - <br/><br/> - <? if($i < count($this->savedData)-1): ?> - <hr/> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - <? if (count($this->lists) > 0): ?> - <hr /> - <select name="addToList"> - <option value="-1">- <?=$this->transEsc('Add to another list')?> -</option> - <? foreach ($this->lists as $listID=>$listTitle): ?> - <option value="<?=$listID ?>"><?=$this->escapeHtml($listTitle) ?></option> - <? endforeach; ?> - </select> - <br/><br/> - <? endif; ?> - <? if (!empty($this->savedData) || count($this->lists) > 0): ?> - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>"/> - <? endif; ?> - </form> -</div> diff --git a/themes/blueprint/templates/myresearch/editlist.phtml b/themes/blueprint/templates/myresearch/editlist.phtml deleted file mode 100644 index f0c95771dcef1662e108c1c643c5f623ca81ecd4..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/editlist.phtml +++ /dev/null @@ -1,33 +0,0 @@ -<? - // Set up page title: - $pageTitle = $this->newList ? 'Create a List' : "edit_list"; - $this->headTitle($this->translate($pageTitle)); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc($pageTitle) . '</em>'; -?> -<h1><?=$this->transEsc($pageTitle); ?></h1> - -<?=$this->flashmessages()?> - -<form method="post" name="<?=$this->newList ? 'newList' : 'editListForm'?>" action=""> -<label class="displayBlock" for="list_title"><?=$this->transEsc('List'); ?>:</label> -<input id="list_title" type="text" name="title" value="<?=isset($this->list['title']) ? $this->escapeHtml($this->list['title']) : ''?>" size="50" - class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required')) ?>"/> -<label class="displayBlock" for="list_desc"><?=$this->transEsc('Description') ?></label> -<textarea id="list_desc" name="desc" rows="3" cols="50"><?=isset($this->list['description']) ? $this->escapeHtml($this->list['description']) : ''?></textarea> -<? if ($this->userlist()->getMode() === 'public_only'): ?> - <input type="hidden" name="public" value="1" /><br /> -<? elseif ($this->userlist()->getMode() === 'private_only'): ?> - <input type="hidden" name="public" value="0" /><br /> -<? else: ?> - <fieldset> - <legend><?=$this->transEsc('Access') ?></legend> - <input id="list_public_1" type="radio" name="public" value="1"<? if ($this->list->isPublic()): ?> checked="checked"<? endif; ?>/> <label for="list_public_1"><?=$this->transEsc('Public') ?></label> - <input id="list_public_0" type="radio" name="public" value="0"<? if (!$this->list->isPublic()): ?> checked="checked"<? endif; ?>/> <label for="list_public_0"><?=$this->transEsc('Private') ?></label> - </fieldset> -<? endif; ?> -<input class="button" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>"/> -</form> diff --git a/themes/blueprint/templates/myresearch/fines.phtml b/themes/blueprint/templates/myresearch/fines.phtml deleted file mode 100644 index eaa48a3627187eaed072b894a74dca203d7940d2..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/fines.phtml +++ /dev/null @@ -1,53 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('My Fines')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Fines') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <? if (empty($this->fines)): ?> - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <?=$this->transEsc('You do not have any fines')?> - <? else: ?> - <h3><?=$this->transEsc('Your Fines')?></h3> - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <table class="datagrid fines" summary="<?=$this->transEsc('Your Fines')?>"> - <tr> - <th><?=$this->transEsc('Title')?></th> - <th><?=$this->transEsc('Checked Out')?></th> - <th><?=$this->transEsc('Due Date')?></th> - <th><?=$this->transEsc('Fine')?></th> - <th><?=$this->transEsc('Fee')?></th> - <th><?=$this->transEsc('Balance')?></th> - </tr> - <? foreach ($this->fines as $record): ?> - <tr> - <td> - <? if (empty($record['title'])): ?> - <?=$this->transEsc('not_applicable')?> - <? elseif (!is_object($record['driver'])): ?> - <?=$this->escapeHtml(trim($record['title'], '/:'))?> - <? else: ?> - <a href="<?=$this->recordLink()->getUrl($record['driver'])?>"><?=$this->escapeHtml(trim($record['title'], '/:'))?></a> - <? endif; ?> - </td> - <td><?=isset($record['checkout']) ? $this->escapeHtml($record['checkout']) : ''?></td> - <td><?=isset($record['duedate']) ? $this->escapeHtml($record['duedate']) : ''?></td> - <td><?=isset($record['fine']) ? $this->escapeHtml($record['fine']) : ''?></td> - <td><?=isset($record['amount']) ? $this->safeMoneyFormat($record['amount']/100.00) : ''?></td> - <td><?=isset($record['balance']) ? $this->safeMoneyFormat($record['balance']/100.00) : ''?></td> - </tr> - <? endforeach; ?> - </table> - <? endif; ?> -</div> -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'fines'))?> -</div> -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/myresearch/holds.phtml b/themes/blueprint/templates/myresearch/holds.phtml deleted file mode 100644 index 70ba2cb5d41f980074e4158a5ccc8338a4e7df1f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/holds.phtml +++ /dev/null @@ -1,157 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('My Holds')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('My Holds') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Your Holds and Recalls') ?></h3> - - <?=$this->flashmessages()?> - - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <? if (!empty($this->recordList)): ?> - <? if ($this->cancelForm): ?> - <form name="cancelForm" action="" method="post" id="cancelHold"> - <input type="hidden" id="cancelConfirm" name="confirm" value="0"/> - <div class="toolbar"> - <ul> - <li><input type="submit" class="button holdCancel" name="cancelSelected" value="<?=$this->transEsc("hold_cancel_selected") ?>"/></li> - <li><input type="submit" class="button holdCancelAll" name="cancelAll" value="<?=$this->transEsc("hold_cancel_all") ?>"/></li> - </ul> - </div> - <div class="clearer"></div> - <? endif; ?> - - <ul class="recordSet"> - <? $iteration = 0; ?> - <? foreach ($this->recordList as $resource): ?> - <? $iteration++; ?> - <? $ilsDetails = $resource->getExtraDetail('ils_details'); ?> - <li class="result<? if (($iteration % 2) == 0): ?> alt<? endif; ?>"> - <? if ($this->cancelForm && isset($ilsDetails['cancel_details'])): ?> - <? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $resource->getUniqueId()); ?> - <label for="checkbox_<?=$safeId?>" class="offscreen"><?=$this->transEsc("Select this record")?></label> - <input type="hidden" name="cancelAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" /> - <input type="checkbox" name="cancelSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" class="checkbox" style="margin-left:0;" id="checkbox_<?=$safeId?>" /> - <? endif; ?> - <div id="record<?=$this->escapeHtmlAttr($resource->getUniqueId()) ?>"> - <? $cover = $this->record($resource)->getCover('holds', 'small'); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-10"> - <? else: ?> - <div class="span-12"> - <? endif; ?> - <? - // If this is a non-missing Solr record, we should display a link: - if (is_a($resource, 'VuFind\\RecordDriver\\SolrDefault') && !is_a($resource, 'VuFind\\RecordDriver\\Missing')) { - $title = $resource->getTitle(); - $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title); - echo '<a href="' . $this->recordLink()->getUrl($resource) . - '" class="title">' . $title . '</a>'; - } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){ - // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show... - echo $this->escapeHtml($ilsDetails['title']); - } else { - // Last resort -- indicate that no title could be found. - echo $this->transEsc('Title not available'); - } - ?><br/> - <? $listAuthor = $resource->getPrimaryAuthor(); if (!empty($listAuthor)): ?> - <?=$this->transEsc('by')?>: - <a href="<?=$this->record($resource)->getLink('author', $listAuthor)?>"><?=$this->escapeHtml($listAuthor)?></a><br/> - <? endif; ?> - - <? $formats = $resource->getFormats(); if (count($formats) > 0): ?> - <?=$this->record($resource)->getFormatList()?> - <br/> - <? endif; ?> - <? if (isset($ilsDetails['volume']) && !empty($ilsDetails['volume'])): ?> - <strong><?=$this->transEsc('Volume')?>:</strong> <?=$this->escapeHtml($ilsDetails['volume'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['publication_year']) && !empty($ilsDetails['publication_year'])): ?> - <strong><?=$this->transEsc('Year of Publication')?>:</strong> <?=$this->escapeHtml($ilsDetails['publication_year'])?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['requestGroup'])): ?> - <strong><?=$this->transEsc('hold_requested_group') ?>:</strong> <?=$this->transEsc('location_' . $ilsDetails['requestGroup'], array(), $ilsDetails['requestGroup'])?> - <br /> - <? endif; ?> - - <? /* Depending on the ILS driver, the "location" value may be a string or an ID; figure out the best - value to display... */ ?> - <? $pickupDisplay = ''; ?> - <? $pickupTranslate = false; ?> - <? if (isset($ilsDetails['location'])): ?> - <? if ($this->pickup): ?> - <? foreach ($this->pickup as $library): ?> - <? if ($library['locationID'] == $ilsDetails['location']): ?> - <? $pickupDisplay = $library['locationDisplay']; ?> - <? $pickupTranslate = true; ?> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - <? if (empty($pickupDisplay)): ?> - <? $pickupDisplay = $ilsDetails['location']; ?> - <? endif; ?> - <? endif; ?> - <? if (!empty($pickupDisplay)): ?> - <strong><?=$this->transEsc('pick_up_location') ?>:</strong> - <?=$pickupTranslate ? $this->transEsc($pickupDisplay) : $this->escapeHtml($pickupDisplay)?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['create'])): ?> - <strong><?=$this->transEsc('Created') ?>:</strong> <?=$this->escapeHtml($ilsDetails['create']) ?> - <? if (!empty($ilsDetails['expire'])): ?>|<? endif; ?> - <? endif; ?> - <? if (!empty($ilsDetails['expire'])): ?> - <strong><?=$this->transEsc('Expires') ?>:</strong> <?=$this->escapeHtml($ilsDetails['expire']) ?> - <? endif; ?> - <br /> - - <? if (isset($this->cancelResults['items'])): ?> - <? foreach ($this->cancelResults['items'] as $itemId=>$cancelResult): ?> - <? if ($itemId == $ilsDetails['item_id'] && $cancelResult['success'] == false): ?> - <div class="error"><?=$this->transEsc($cancelResult['status']) ?><? if ($cancelResult['sysMessage']) echo ' : ' . $this->transEsc($cancelResult['sysMessage']); ?></div> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - - <? if (isset($ilsDetails['available']) && $ilsDetails['available'] == true): ?> - <div class="info"><?=$this->transEsc("hold_available") ?></div> - <? elseif (isset($ilsDetails['position'])): ?> - <p><strong><?=$this->transEsc("hold_queue_position") ?>:</strong> <?=$this->escapeHtml($ilsDetails['position']) ?></p> - <? endif; ?> - <? if (isset($ilsDetails['cancel_link'])): ?> - <p><a href="<?=$this->escapeHtmlAttr($ilsDetails['cancel_link']) ?>"><?=$this->transEsc("hold_cancel") ?></a></p> - <? endif; ?> - - </div> - <div class="clear"></div> - </div> - </li> - <? endforeach; ?> - </ul> - <? if ($this->cancelForm): ?></form><? endif; ?> - <? else: ?> - <?=$this->transEsc('You do not have any holds or recalls placed') ?>. - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'holds'))?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/myresearch/illrequests.phtml b/themes/blueprint/templates/myresearch/illrequests.phtml deleted file mode 100644 index 376721d68ae76eaa04ae9de6a1cafb3802e30e30..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/illrequests.phtml +++ /dev/null @@ -1,163 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('ILL Requests')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('ILL Requests') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('ILL Requests') ?></h3> - - <?=$this->flashmessages()?> - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <? if (!empty($this->recordList)): ?> - <? if ($this->cancelForm): ?> - <form name="cancelForm" action="" method="post" id="cancelILLRequest"> - <input type="hidden" id="cancelConfirm" name="confirm" value="0"/> - <div class="toolbar"> - <ul> - <li><input type="submit" class="button ILLRequestCancel" name="cancelSelected" value="<?=$this->transEsc("ill_request_cancel_selected") ?>"/></li> - <li><input type="submit" class="button ILLRequestCancelAll" name="cancelAll" value="<?=$this->transEsc("ill_request_cancel_all") ?>"/></li> - </ul> - </div> - <div class="clearer"></div> - <? endif; ?> - - <ul class="recordSet"> - <? $iteration = 0; ?> - <? foreach ($this->recordList as $resource): ?> - <? $iteration++; ?> - <? $ilsDetails = $resource->getExtraDetail('ils_details'); ?> - <li class="result<? if (($iteration % 2) == 0): ?> alt<? endif; ?>"> - <? if ($this->cancelForm && isset($ilsDetails['cancel_details'])): ?> - <? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $resource->getUniqueId()); ?> - <label for="checkbox_<?=$safeId?>" class="offscreen"><?=$this->transEsc("Select this record")?></label> - <input type="hidden" name="cancelAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" /> - <input type="checkbox" name="cancelSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" class="checkbox" style="margin-left:0;" id="checkbox_<?=$safeId?>" /> - <? endif; ?> - <div id="record<?=$this->escapeHtmlAttr($resource->getUniqueId()) ?>"> - <? $cover = $this->record($resource)->getCover('illrequests', 'small'); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-10"> - <? else: ?> - <div class="span-12"> - <? endif; ?> - <? - // If this is a non-missing Solr record, we should display a link: - if (is_a($resource, 'VuFind\\RecordDriver\\SolrDefault') && !is_a($resource, 'VuFind\\RecordDriver\\Missing')) { - $title = $resource->getTitle(); - $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title); - echo '<a href="' . $this->recordLink()->getUrl($resource) . - '" class="title">' . $title . '</a>'; - } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){ - // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show... - echo $this->escapeHtml($ilsDetails['title']); - } else { - // Last resort -- indicate that no title could be found. - echo $this->transEsc('Title not available'); - } - ?><br/> - <? $listAuthor = $resource->getPrimaryAuthor(); if (!empty($listAuthor)): ?> - <?=$this->transEsc('by')?>: - <a href="<?=$this->record($resource)->getLink('author', $listAuthor)?>"><?=$this->escapeHtml($listAuthor)?></a><br/> - <? endif; ?> - - <? $formats = $resource->getFormats(); if (count($formats) > 0): ?> - <?=$this->record($resource)->getFormatList()?> - <br/> - <? endif; ?> - <? if (isset($ilsDetails['volume']) && !empty($ilsDetails['volume'])): ?> - <strong><?=$this->transEsc('Volume')?>:</strong> <?=$this->escapeHtml($ilsDetails['volume'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['publication_year']) && !empty($ilsDetails['publication_year'])): ?> - <strong><?=$this->transEsc('Year of Publication')?>:</strong> <?=$this->escapeHtml($ilsDetails['publication_year'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['institution_name']) && !empty($ilsDetails['institution_name'])): ?> - <strong><?=$this->transEsc('institution_' . $ilsDetails['institution_name'], array(), $ilsDetails['institution_name']) ?></strong> - <br /> - <? endif; ?> - - <? /* Depending on the ILS driver, the "location" value may be a string or an ID; figure out the best - value to display... */ ?> - <? $pickupDisplay = ''; ?> - <? $pickupTranslate = false; ?> - <? if (isset($ilsDetails['location'])): ?> - <? if ($this->pickup): ?> - <? foreach ($this->pickup as $library): ?> - <? if ($library['locationID'] == $ilsDetails['location']): ?> - <? $pickupDisplay = $library['locationDisplay']; ?> - <? $pickupTranslate = true; ?> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - <? if (empty($pickupDisplay)): ?> - <? $pickupDisplay = $ilsDetails['location']; ?> - <? endif; ?> - <? endif; ?> - <? if (!empty($pickupDisplay)): ?> - <strong><?=$this->transEsc('pick_up_location') ?>:</strong> - <?=$pickupTranslate ? $this->transEsc($pickupDisplay) : $this->escapeHtml($pickupDisplay)?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['create'])): ?> - <strong><?=$this->transEsc('Created') ?>:</strong> <?=$this->escapeHtml($ilsDetails['create']) ?> - <? if (!empty($ilsDetails['expire'])): ?>|<? endif; ?> - <? endif; ?> - <? if (!empty($ilsDetails['expire'])): ?> - <strong><?=$this->transEsc('Expires') ?>:</strong> <?=$this->escapeHtml($ilsDetails['expire']) ?> - <? endif; ?> - <br /> - - <? if (isset($this->cancelResults['items'])): ?> - <? foreach ($this->cancelResults['items'] as $itemId=>$cancelResult): ?> - <? if ($itemId == $ilsDetails['item_id'] && $cancelResult['success'] == false): ?> - <div class="error"><?=$this->transEsc($cancelResult['status']) ?><? if ($cancelResult['sysMessage']) echo ' : ' . $this->transEsc($cancelResult['sysMessage']); ?></div> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - - <? if (isset($ilsDetails['in_transit']) && $ilsDetails['in_transit']): ?> - <div class="info"><?=$this->transEsc("ill_request_in_transit") . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], array(), $ilsDetails['in_transit']) : '') ?></div> - <? endif; ?> - <? if (isset($ilsDetails['processed']) && $ilsDetails['processed']): ?> - <div class="info"><?=$this->transEsc("ill_request_processed") . (is_string($ilsDetails['processed']) ? ': ' . $ilsDetails['processed'] : '') ?></div> - <? endif; ?> - <? if (isset($ilsDetails['available']) && $ilsDetails['available']): ?> - <div class="info"><?=$this->transEsc("ill_request_available") ?></div> - <? endif; ?> - <? if (isset($ilsDetails['canceled']) && $ilsDetails['canceled']): ?> - <div class="info"><?=$this->transEsc("ill_request_canceled") . (is_string($ilsDetails['canceled']) ? ': ' . $ilsDetails['canceled'] : '') ?></div> - <? endif; ?> - <? if (isset($ilsDetails['cancel_link'])): ?> - <p><a href="<?=$this->escapeHtmlAttr($ilsDetails['cancel_link']) ?>"><?=$this->transEsc("ill_request_cancel") ?></a></p> - <? endif; ?> - - </div> - <div class="clear"></div> - </div> - </li> - <? endforeach; ?> - </ul> - <? if ($this->cancelForm): ?></form><? endif; ?> - <? else: ?> - <?=$this->transEsc('You do not have any interlibrary loan requests placed') ?>. - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'ILLRequests'))?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/myresearch/login.phtml b/themes/blueprint/templates/myresearch/login.phtml deleted file mode 100644 index 9f893a08690b6739ad7eae61642b8228a1ba9b9f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/login.phtml +++ /dev/null @@ -1,38 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Login')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Login') . '</em>'; - - // If we're in AJAX mode, load some extra Javascript inline: - if ($this->layout()->getTemplate() == 'layout/lightbox') { - echo $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'rc4.js', 'SET'); - } - - // Convenience variables: - $account = $this->auth()->getManager(); - $hideLogin = !(is_object($account) && $account->loginEnabled()); - $offlineMode = $this->ils()->getOfflineMode(); -?> - -<? if ($offlineMode == "ils-offline"): ?> - <div class="sysInfo"> - <h2><?=$this->transEsc('ils_offline_title')?></h2> - <p><strong><?=$this->transEsc('ils_offline_status')?></strong></p> - <p><?=$this->transEsc('ils_offline_login_message')?></p> - <? $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> - <p><a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a></p> - </div> -<? endif; ?> - -<h2><?=$this->transEsc('Login')?></h2> -<?=$this->flashmessages()?> - -<? if ($hideLogin): ?> - <div class="error"><?=$this->transEsc('login_disabled')?></div> -<? else: ?> - <?=$this->auth()->getLogin()?> -<? endif; ?> diff --git a/themes/blueprint/templates/myresearch/menu.phtml b/themes/blueprint/templates/myresearch/menu.phtml deleted file mode 100644 index 779aa36fc9d1ab24a328feed6cd1c37dda4e18d8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/menu.phtml +++ /dev/null @@ -1,59 +0,0 @@ -<div class="sidegroup"> - <h4 class="account"><?=$this->transEsc('Your Account')?></h4> - <ul class="bulleted"> - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <li<?=$this->active == 'favorites' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-favorites')?>"><?=$this->transEsc('Favorites')?></a></li> - <? endif; ?> - <? if ('ils-none' !== $this->ils()->getOfflineMode()): ?> - <? if ($this->ils()->checkCapability('getMyTransactions')): ?> - <li<?=$this->active == 'checkedout' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-checkedout')?>"><?=$this->transEsc('Checked Out Items')?></a></li> - <? endif; ?> - <? if ($this->ils()->checkCapability('getMyHolds')): ?> - <li<?=$this->active == 'holds' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-holds')?>"><?=$this->transEsc('Holds and Recalls')?></a></li> - <? endif; ?> - <? if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?> - <li<?=$this->active == 'storageRetrievalRequests' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-storageretrievalrequests')?>"><?=$this->transEsc('Storage Retrieval Requests')?></a></li> - <? endif; ?> - <? if ($this->ils()->checkFunction('ILLRequests')): ?> - <li<?=$this->active == 'ILLRequests' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-illrequests')?>"><?=$this->transEsc('Interlibrary Loan Requests')?></a></li> - <? endif; ?> - <? if ($this->ils()->checkCapability('getMyFines')): ?> - <li<?=$this->active == 'fines' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-fines')?>"><?=$this->transEsc('Fines')?></a></li> - <? endif; ?> - <? if ($this->ils()->checkCapability('getMyProfile')): ?> - <li<?=$this->active == 'profile' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-profile')?>"><?=$this->transEsc('Profile')?></a></li> - <? endif; ?> - <? $user = $this->auth()->isLoggedIn(); if ($user && $user->libraryCardsEnabled()): ?> - <li<?=$this->active == 'librarycards' ? ' class="active"' : ''?>><a href="<?=$this->url('librarycards-home')?>"><?=$this->transEsc('Library Cards')?></a></li> - <? endif; ?> - <? endif; ?> - <li<?=$this->active == 'history' ? ' class="active"' : ''?>><a href="<?=$this->url('search-history')?>?require_login"><?=$this->transEsc('history_saved_searches')?></a></li> - </ul> - <? if ($this->auth()->isLoggedIn() && $this->auth()->getManager()->supportsPasswordChange()): ?> - <h4 class="gear"><?=$this->transEsc('Preferences')?></h4> - <ul> - <li> - <a href="<?=$this->url('myresearch-changepassword') ?>"><?=$this->transEsc('Change Password') ?></a> - </li> - </ul> - <? endif; ?> - <? if ($this->userlist()->getMode() !== 'disabled' && $user = $this->auth()->isLoggedIn()): ?> - <h4 class="list"><?=$this->transEsc('Your Lists')?></h4> - <ul> - <li<?=$this->active == 'favorites' ? ' class="active"' : ''?>><a href="<?=$this->url('myresearch-favorites')?>"><?=$this->transEsc('Your Favorites')?></a></li> - <? $lists = $user->getLists() ?> - <? foreach ($lists as $list): ?> - <li<?=$this->active == 'list' . $list['id'] ? ' class="active"' : ''?>> - <a href="<?=$this->url('userList', array('id' => $list['id']))?>"><?=$this->escapeHtml($list['title'])?></a> - (<?=$list->cnt?>) - </li> - <? endforeach; ?> - <li> - <a href="<?=$this->url('editList', array('id'=>'NEW'))?>" title="<?=$this->transEsc('Create a List') ?>"> - <?=$this->transEsc('Create a List') ?> - </a> - <img src="<?=$this->imagelink('silk/add.png')?>" style="margin-left:2px;vertical-align:text-bottom"/> - </li> - </ul> - <? endif ?> -</div> diff --git a/themes/blueprint/templates/myresearch/mylist.phtml b/themes/blueprint/templates/myresearch/mylist.phtml deleted file mode 100644 index 342ab2b047041e76a52542bece95567a857480d9..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/mylist.phtml +++ /dev/null @@ -1,80 +0,0 @@ -<? - // Grab list object from search results (if applicable): - $list = $this->results->getListObject(); - - // Set up page title: - $this->headTitle(isset($list) ? $list->title : $this->translate('Favorites')); - - // Set up breadcrumbs: - $currPage = isset($list) ? 'List' : 'Favorites'; - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc($currPage) . '</em>'; - - // Load Javascript dependencies into header: - $this->headScript()->appendFile("bulk_actions.js"); - $this->headScript()->appendFile("check_item_statuses.js"); - - // Convenience variable: - $account = $this->auth()->getManager(); -?> - -<?=$this->flashmessages()?> - -<div class="<?=$this->layoutClass('mainbody')?>"> - <? if (isset($list)): ?> - <div class="floatright"> - <? if ($list->editAllowed($account->isLoggedIn())): ?> - <a href="<?=$this->url('editList', array('id' => $list->id)) ?>" class="edit smallButton listEdit" title="<?=$this->transEsc("edit_list")?>"><?=$this->transEsc("edit_list")?></a> - <a href="<?=$this->url('myresearch-deletelist') ?>?listID=<?=urlencode($list->id)?>" class="delete deleteList smallButton" id="deleteList<?=$list->id ?>" title="<?=$this->transEsc("delete_list")?>"><?=$this->transEsc("delete_list")?></a> - <? endif; ?> - </div> - <h3 class="list"><?=$this->escapeHtml($list->title)?></h3> - <? if (!empty($list->description)): ?><p class="listDescription"><?=$this->escapeHtml($list->description)?></p><hr /><? endif; ?> - <? else: ?> - <h3 class="fav"><?=$this->transEsc("Your Favorites")?></h3> - <? endif; ?> - - <? if (($recordTotal = $this->results->getResultTotal()) > 0): ?> - <div class="resulthead"> - <div class="floatleft"> - <?=$this->transEsc("Showing")?> - <strong><?=$this->localizedNumber($this->results->getStartRecord())?></strong> - <strong><?=$this->localizedNumber($this->results->getEndRecord())?></strong> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($recordTotal)?></strong> - </div> - <div class="floatright"> - <?=$this->render('search/controls/sort.phtml')?> - </div> - <div class="clear"></div> - </div> - <form method="post" name="bulkActionForm" action="<?=$this->url('cart-myresearchbulk')?>"> - <? if (isset($list)): ?> - <input type="hidden" name="listID" value="<?=$this->escapeHtmlAttr($list->id)?>" /> - <input type="hidden" name="listName" value="<?=$this->escapeHtmlAttr($list->title)?>" /> - <? endif; ?> - <?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', array('idPrefix' => '', 'list' => isset($list) ? $list : null))?> - <ul class="recordSet"> - <? $i = 0; foreach ($this->results->getResults() as $current): ?> - <li class="result<?=(++$i % 2 == 0) ? ' alt' : ''?>"> - <span class="recordNumber"><?=$this->results->getStartRecord()+$i-1?><?=$this->record($current)->getCheckbox()?></span> - <?=$this->record($current)->getListEntry($list, $account->isLoggedIn())?> - </li> - <? endforeach; ?> - </ul> - <?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_', 'list' => isset($list) ? $list : null))?> - </form> - <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?> - <? else: ?> - <p><?=$this->transEsc('You do not have any saved resources')?></p> - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => isset($list) ? 'list' . $list['id'] : 'favorites'))?> - - <? foreach ($this->results->getRecommendations('side') as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/myresearch/newpassword.phtml b/themes/blueprint/templates/myresearch/newpassword.phtml deleted file mode 100644 index 6271e39126e8152fc52f02968830534f0cbce06c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/newpassword.phtml +++ /dev/null @@ -1,33 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Create New Password')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a>' - . '<span>></span><em>' . $this->transEsc('Create New Password') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h2><?=$this->transEsc('Create New Password') ?></h2> - <?=$this->flashmessages() ?> - - <? if (!$this->auth()->getManager()->supportsPasswordChange($this->auth_method)): ?> - <div class="error"><?=$this->transEsc('recovery_new_disabled') ?></div> - <? elseif (!isset($this->hash)): ?> - <div class="error"><?=$this->transEsc('recovery_user_not_found') ?></div> - <? else: ?> - <form action="<?=$this->url('myresearch-newpassword') ?>" method="post"> - <?=$this->auth()->getNewPasswordForm() ?> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/> - <?=$this->recaptcha()->html($this->useRecaptcha) ?> - <input name="submit" type="submit" value="<?=$this->transEsc('Submit')?>"/> - </form> - <? endif; ?> -</div> - -<? if ($this->auth()->isLoggedIn()): ?> - <div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'newpassword'))?> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/myresearch/profile.phtml b/themes/blueprint/templates/myresearch/profile.phtml deleted file mode 100644 index aaeba9f455bfa98226e7ce799c67153be9f1146f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/profile.phtml +++ /dev/null @@ -1,69 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('My Profile')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Profile') . '</em>'; - - // Only display home library form if we have multiple pickup locations: - $showHomeLibForm = (isset($this->pickup) && count($this->pickup) > 1); - - // Template for use by the renderArray helper: - $arrTemplate = '<span class="span-3"><strong>%%LABEL%%:</strong></span> %%VALUE%%<br class="clear"/>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Your Profile')?></h3> - <?=$this->flashmessages();?> - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <? if ($showHomeLibForm): ?><form method="post" action="" id="profile_form"><? endif; ?> - <? - echo $this->renderArray( - $arrTemplate, $this->profile, - array( - $this->transEsc('First Name') => 'firstname', - $this->transEsc('Last Name') => 'lastname' - ) - ); - ?> - <? if ($showHomeLibForm): ?> - <span class="span-3"><label for="home_library"><?=$this->transEsc('Preferred Library')?>:</label></span> - <? - $selected = (isset($this->profile['home_library']) && $this->profile['home_library'] != "") - ? $this->profile['home_library'] : $this->defaultPickupLocation - ?> - <select id="home_library" name="home_library"> - <? foreach ($this->pickup as $lib): ?> - <option value="<?=$this->escapeHtmlAttr($lib['locationID'])?>"<?=($selected == $lib['locationID'])?' selected="selected"':''?>><?=$this->escapeHtml($lib['locationDisplay'])?></option> - <? endforeach; ?> - </select> - <br class="clear"/> - <? endif; ?> - <? - echo $this->renderArray( - $arrTemplate, $this->profile, - array( - $this->transEsc('Address') . ' 1' => 'address1', - $this->transEsc('Address') . ' 2' => 'address2', - $this->transEsc('Zip') => 'zip', - $this->transEsc('City') => 'city', - $this->transEsc('Country') => 'country', - $this->transEsc('Phone Number') => 'phone', - $this->transEsc('Group') => 'group' - ) - ); - ?> - <? if ($showHomeLibForm): ?> - <input type="submit" value="<?=$this->transEsc('Save')?>" /> - </form> - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'profile'))?> -</div> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/myresearch/recover.phtml b/themes/blueprint/templates/myresearch/recover.phtml deleted file mode 100644 index c2d8d33275ccfc35312ae0d85d8cd14152dcd1b1..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/recover.phtml +++ /dev/null @@ -1,9 +0,0 @@ -<h2><?=$this->transEsc('recovery_title') ?></h2> -<?=$this->flashmessages()?> -<? if (!$this->auth()->getManager()->supportsRecovery()): ?> - <div class="error"><?=$this->transEsc('recovery_disabled') ?></div> -<? else: ?> - <form action="" method="post"> - <?=$this->auth()->getPasswordRecoveryForm() ?> - </form> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/myresearch/storageretrievalrequests.phtml b/themes/blueprint/templates/myresearch/storageretrievalrequests.phtml deleted file mode 100644 index 88c0a3072297f93951a088307af7dceca9b1072a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/myresearch/storageretrievalrequests.phtml +++ /dev/null @@ -1,160 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Storage Retrieval Requests')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<a href="' . $this->url('myresearch-home') . '">' - . $this->transEsc('Your Account') . '</a>' . '<span>></span><em>' - . $this->transEsc('Storage Retrieval Requests') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Storage Retrieval Requests') ?></h3> - - <?=$this->flashmessages()?> - - <?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', array('user' => $this->auth()->isLoggedIn())); ?> - - <? if (!empty($this->recordList)): ?> - <? if ($this->cancelForm): ?> - <form name="cancelForm" action="" method="post" id="cancelStorageRetrievalRequest"> - <input type="hidden" id="cancelConfirm" name="confirm" value="0"/> - <div class="toolbar"> - <ul> - <li><input type="submit" class="button storageRetrievalRequestCancel" name="cancelSelected" value="<?=$this->transEsc("storage_retrieval_request_cancel_selected") ?>"/></li> - <li><input type="submit" class="button storageRetrievalRequestCancelAll" name="cancelAll" value="<?=$this->transEsc("storage_retrieval_request_cancel_all") ?>"/></li> - </ul> - </div> - <div class="clearer"></div> - <? endif; ?> - - <ul class="recordSet"> - <? $iteration = 0; ?> - <? foreach ($this->recordList as $resource): ?> - <? $iteration++; ?> - <? $ilsDetails = $resource->getExtraDetail('ils_details'); ?> - <li class="result<? if (($iteration % 2) == 0): ?> alt<? endif; ?>"> - <? if ($this->cancelForm && isset($ilsDetails['cancel_details'])): ?> - <? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $resource->getUniqueId()); ?> - <label for="checkbox_<?=$safeId?>" class="offscreen"><?=$this->transEsc("Select this record")?></label> - <input type="hidden" name="cancelAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" /> - <input type="checkbox" name="cancelSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['cancel_details']) ?>" class="checkbox" style="margin-left:0;" id="checkbox_<?=$safeId?>" /> - <? endif; ?> - <div id="record<?=$this->escapeHtmlAttr($resource->getUniqueId()) ?>"> - <? $cover = $this->record($resource)->getCover('storageretrievalrequests', 'small'); ?> - <? if ($cover): ?> - <div class="span-2"> - <?=$cover?> - </div> - <div class="span-10"> - <? else: ?> - <div class="span-12"> - <? endif; ?> - <? - // If this is a non-missing Solr record, we should display a link: - if (is_a($resource, 'VuFind\\RecordDriver\\SolrDefault') && !is_a($resource, 'VuFind\\RecordDriver\\Missing')) { - $title = $resource->getTitle(); - $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title); - echo '<a href="' . $this->recordLink()->getUrl($resource) . - '" class="title">' . $title . '</a>'; - } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){ - // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show... - echo $this->escapeHtml($ilsDetails['title']); - } else { - // Last resort -- indicate that no title could be found. - echo $this->transEsc('Title not available'); - } - ?><br/> - <? $listAuthor = $resource->getPrimaryAuthor(); if (!empty($listAuthor)): ?> - <?=$this->transEsc('by')?>: - <a href="<?=$this->record($resource)->getLink('author', $listAuthor)?>"><?=$this->escapeHtml($listAuthor)?></a><br/> - <? endif; ?> - - <? $formats = $resource->getFormats(); if (count($formats) > 0): ?> - <?=$this->record($resource)->getFormatList()?> - <br/> - <? endif; ?> - <? if (isset($ilsDetails['volume']) && !empty($ilsDetails['volume'])): ?> - <strong><?=$this->transEsc('Volume')?>:</strong> <?=$this->escapeHtml($ilsDetails['volume'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['publication_year']) && !empty($ilsDetails['publication_year'])): ?> - <strong><?=$this->transEsc('Year of Publication')?>:</strong> <?=$this->escapeHtml($ilsDetails['publication_year'])?> - <br /> - <? endif; ?> - - <? if (isset($ilsDetails['institution_name']) && !empty($ilsDetails['institution_name'])): ?> - <strong><?=$this->transEsc('institution_' . $ilsDetails['institution_name'], array(), $ilsDetails['institution_name']) ?></strong> - <br /> - <? endif; ?> - - <? /* Depending on the ILS driver, the "location" value may be a string or an ID; figure out the best - value to display... */ ?> - <? $pickupDisplay = ''; ?> - <? $pickupTranslate = false; ?> - <? if (isset($ilsDetails['location'])): ?> - <? if ($this->pickup): ?> - <? foreach ($this->pickup as $library): ?> - <? if ($library['locationID'] == $ilsDetails['location']): ?> - <? $pickupDisplay = $library['locationDisplay']; ?> - <? $pickupTranslate = true; ?> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - <? if (empty($pickupDisplay)): ?> - <? $pickupDisplay = $ilsDetails['location']; ?> - <? endif; ?> - <? endif; ?> - <? if (!empty($pickupDisplay)): ?> - <strong><?=$this->transEsc('pick_up_location') ?>:</strong> - <?=$pickupTranslate ? $this->transEsc($pickupDisplay) : $this->escapeHtml($pickupDisplay)?> - <br /> - <? endif; ?> - - <? if (!empty($ilsDetails['create'])): ?> - <strong><?=$this->transEsc('Created') ?>:</strong> <?=$this->escapeHtml($ilsDetails['create']) ?> - <? if (!empty($ilsDetails['expire'])): ?>|<? endif; ?> - <? endif; ?> - <? if (!empty($ilsDetails['expire'])): ?> - <strong><?=$this->transEsc('Expires') ?>:</strong> <?=$this->escapeHtml($ilsDetails['expire']) ?> - <? endif; ?> - <br /> - - <? if (isset($this->cancelResults['items'])): ?> - <? foreach ($this->cancelResults['items'] as $itemId=>$cancelResult): ?> - <? if ($itemId == $ilsDetails['item_id'] && $cancelResult['success'] == false): ?> - <div class="error"><?=$this->transEsc($cancelResult['status']) ?><? if ($cancelResult['sysMessage']) echo ' : ' . $this->transEsc($cancelResult['sysMessage']); ?></div> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - - <? if (isset($ilsDetails['processed']) && $ilsDetails['processed']): ?> - <div class="info"><?=$this->transEsc("storage_retrieval_request_processed") . (is_string($ilsDetails['processed']) ? ': ' . $ilsDetails['processed'] : '') ?></div> - <? endif; ?> - <? if (isset($ilsDetails['available']) && $ilsDetails['available']): ?> - <div class="info"><?=$this->transEsc("storage_retrieval_request_available") ?></div> - <? endif; ?> - <? if (isset($ilsDetails['canceled']) && $ilsDetails['canceled']): ?> - <div class="info"><?=$this->transEsc("storage_retrieval_request_canceled") . (is_string($ilsDetails['canceled']) ? ': ' . $ilsDetails['canceled'] : '') ?></div> - <? endif; ?> - <? if (isset($ilsDetails['cancel_link'])): ?> - <p><a href="<?=$this->escapeHtmlAttr($ilsDetails['cancel_link']) ?>"><?=$this->transEsc("storage_retrieval_request_cancel") ?></a></p> - <? endif; ?> - - </div> - <div class="clear"></div> - </div> - </li> - <? endforeach; ?> - </ul> - <? if ($this->cancelForm): ?></form><? endif; ?> - <? else: ?> - <?=$this->transEsc('You do not have any storage retrieval requests placed') ?>. - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext("myresearch/menu.phtml", array('active' => 'storageRetrievalRequests'))?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/oai/home.phtml b/themes/blueprint/templates/oai/home.phtml deleted file mode 100644 index 01ead6b09b5858de460a679eb0e0a0c09d74ad86..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/oai/home.phtml +++ /dev/null @@ -1,90 +0,0 @@ -<? - $this->headTitle($this->translate('OAI Server')); - $this->layout()->breadcrumbs = $this->transEsc('OAI Server'); - $baseUrl = $this->url('oai-server'); -?> -<div class="span-18"> - <h1><?=$this->transEsc('OAI Server')?></h1> - <p> - This OAI server is OAI 2.0 compliant.<br/> - The OAI Server URL is: <?=$this->serverUrl($baseUrl)?> - </p> - - <h2><?=$this->transEsc('Available Functionality') ?>:</h2> - <dl> - <dt>Identify</dt> - <dd>Returns the Identification information of this OAI Server.</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="Identify"/> - <p>Accepts no additional parameters.</p> - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/> - </form> - </dd> - - <dt>ListIdentifiers</dt> - <dd>Returns a listing of available identifiers</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="ListIdentifiers"/> - <label class="span-3" for="ListIdentifier_from"><?=$this->transEsc('From')?>:</label> <input id="ListIdentifier_from" type="text" name="from"/><br class="clear"/> - <label class="span-3" for="ListIdentifier_until"><?=$this->transEsc('Until')?>:</label> <input id="ListIdentifier_until" type="text" name="until"/><br class="clear"/> - <label class="span-3" for="ListIdentifier_set"><?=$this->transEsc('Set')?>:</label> <input id="ListIdentifier_set" type="text" name="set"/><br class="clear"/> - <label class="span-3" for="ListIdentifier_metadataPrefix"><?=$this->transEsc('Metadata Prefix')?>:</label> <input id="ListIdentifier_metadataPrefix" type="text" name="metadataPrefix"/><br class="clear"/> - <label class="span-3" for="ListIdentifier_resumptionToken"><?=$this->transEsc('Resumption Token')?>:</label> <input id="ListIdentifier_resumptionToken" type="text" name="resumptionToken"/><br class="clear"/> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/><br class="clear"/> - </form> - </dd> - - <dt>ListMetadataFormats</dt> - <dd>Returns a listing of available metadata formats.</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="ListMetadataFormats"/> - <label class="span-3" for="ListMetadataFormats_identifier"><?=$this->transEsc('Identifier')?>:</label> <input id="ListMetadataFormats_identifier" type="text" name="identifier"/><br class="clear"/> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/><br class="clear"/> - </form> - </dd> - - <dt>ListSets</dt> - <dd>Returns a listing of available sets.</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="ListSets"/> - <label class="span-3" for="ListSets_metadataPrefix"><?=$this->transEsc('Metadata Prefix')?>:</label> <input id="ListSets_metadataPrefix" type="text" name="metadataPrefix"/><br class="clear"/> - <label class="span-3" for="ListSets_resumptionToken"><?=$this->transEsc('Resumption Token')?>:</label> <input id="ListSets_resumptionToken" type="text" name="resumptionToken"/><br class="clear"/> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/><br class="clear"/> - </form> - </dd> - - <dt>ListRecords</dt> - <dd>Returns a listing of available records.</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="ListRecords"/> - <label class="span-3" for="ListRecords_from"><?=$this->transEsc('From')?>:</label> <input id="ListRecords_from" type="text" name="from"/><br class="clear"/> - <label class="span-3" for="ListRecords_until"><?=$this->transEsc('Until')?>:</label> <input id="ListRecords_until" type="text" name="until"/><br class="clear"/> - <label class="span-3" for="ListRecords_set"><?=$this->transEsc('Set')?>:</label> <input id="ListRecords_set" type="text" name="set"/><br class="clear"/> - <label class="span-3" for="ListRecords_metadataPrefix"><?=$this->transEsc('Metadata Prefix')?>:</label> <input id="ListRecords_metadataPrefix" type="text" name="metadataPrefix"/><br class="clear"/> - <label class="span-3" for="ListRecords_resumptionToken"><?=$this->transEsc('Resumption Token')?>:</label> <input id="ListRecords_resumptionToken" type="text" name="resumptionToken"/><br class="clear"/> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/><br class="clear"/> - </form> - </dd> - - <dt>GetRecord</dt> - <dd>Returns a single record.</dd> - <dd> - <form method="get" action="<?=$baseUrl?>"> - <input type="hidden" name="verb" value="GetRecord"/> - <label class="span-3" for="GetRecord_identifier"><?=$this->transEsc('Identifier')?>:</label> <input id="GetRecord_identifier" type="text" name="identifier"/><br class="clear"/> - <label class="span-3" for="GetRecord_metadataPrefix"><?=$this->transEsc('Metadata Prefix')?>:</label> <input id="GetRecord_metadataPrefix" type="text" name="metadataPrefix"/><br class="clear"/> - <input class="push-3 button" type="submit" name="submit" value="<?=$this->transEsc('Go')?>"/><br class="clear"/> - </form> - </dd> - </dl> -</div> - -<div class="span-5 last"> -</div> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/pazpar2/home.phtml b/themes/blueprint/templates/pazpar2/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/pazpar2/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/pazpar2/search.phtml b/themes/blueprint/templates/pazpar2/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/pazpar2/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/primo/advanced.phtml b/themes/blueprint/templates/primo/advanced.phtml deleted file mode 100644 index 5ca7726d9cd433605fbd77b32d9e8a7c7dc85475..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/primo/advanced.phtml +++ /dev/null @@ -1,115 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Advanced Search')); - - // Disable top search box -- this page has a special layout. - $this->layout()->searchbox = false; - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Advanced Search') . '</em>'; - - // Set up saved search details: - if (isset($this->saved) && is_object($this->saved)) { - $searchDetails = $this->saved->getParams()->getQuery(); - if ($searchDetails instanceof \VuFindSearch\Query\Query) { - // Not an advanced query -- ignore it. - $searchDetails = $groups = false; - } else { - $groups = $searchDetails->getQueries(); - } - $hasDefaultsApplied = $this->saved->getParams()->hasDefaultsApplied(); - $searchFilters = $this->saved->getParams()->getFilterList(); - } else { - $hasDefaultsApplied = $searchDetails = $searchFilters = $groups = false; - } -?> -<form method="get" action="<?=$this->url($this->options->getSearchAction())?>" id="advSearchForm" name="searchForm" class="search"> - <input type="hidden" name="join" value="AND" /> - <div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Advanced Search')?></h3> - <div class="advSearchContent"> - <div id="searchHolder"> - <? /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?> - <? if ($groups !== false) { - $numGroups = count($groups); - } - if (!isset($numGroups) || $numGroups < 3) { - $numGroups = 1; - } - ?> - <? for ($i = 0; $i < $numGroups; $i++): ?> - <div class="group group<?=$i%2?>" id="group<?=$i?>"> - <div class="groupSearchHolder" id="group<?=$i?>SearchHolder"> - <? - if (isset($groups[$i])) { - $currentGroup = $groups[$i]->getQueries(); - $numRows = count($currentGroup); - } else { - $currentGroup = false; - } - if (!isset($numRows) || $numRows < 3) { - $numRows = 3; - } - ?> - <? for ($j = 0; $j < $numRows; $j++): ?> - <? $currRow = isset($currentGroup[$j]) ? $currentGroup[$j] : false; ?> - <div class="advRow"> - <div class="label"> - <label <?=($j > 0)?'class="offscreen" ':''?>for="search_lookfor<?=$i?>_<?=$j?>"><?=$this->transEsc("adv_search_label")?>:</label> - </div> - <input type="hidden" name="bool<?=$i?>[]" value="AND" /> - <div class="field"> - <select id="search_type<?=$i?>_<?=$j?>" name="type<?=$i?>[]"> - <? foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?> - <option value="<?=$this->escapeHtmlAttr($searchVal)?>"<?=($currRow && $currRow->getHandler() == $searchVal)?' selected="selected"':''?>><?=$this->transEsc($searchDesc)?></option> - <? endforeach; ?> - </select> - </div> - <div class="operators"> - <select id="searchForm_op<?=$i?>_<?=$j?>" name="op<?=$i?>[]"> - <? foreach ($this->options->getAdvancedOperators() as $searchVal => $searchDesc): ?> - <option value="<?=$this->escapeHtmlAttr($searchVal)?>"<?=($currRow && $currRow->getOperator() == $searchVal)?' selected="selected"':''?>><?=$this->transEsc($searchDesc)?></option> - <? endforeach; ?> - </select> - </div> - <div class="terms"> - <input id="search_lookfor<?=$i?>_<?=$j?>" type="text" value="<?=$currRow?$this->escapeHtmlAttr($currRow->getString()):''?>" size=30" name="lookfor<?=$i?>[]"/> - </div> - <span class="clearer"></span> - </div> - <? endfor; ?> - </div> - </div> - <? endfor; ?> - </div> - - <? $lastSort = $this->options->getLastSort(); if (!empty($lastSort)): ?> - <input type="hidden" name="sort" value="<?=$this->escapeHtmlAttr($lastSort)?>" /> - <? endif; ?> - <input type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/> - </div> - </div> - - <div class="<?=$this->layoutClass('sidebar')?>"> - <? if ($hasDefaultsApplied): ?> - <input type="hidden" name="dfApplied" value="1" /> - <? endif ?> - <? if (!empty($searchFilters)): ?> - <div class="filterList"> - <h3><?=$this->transEsc("adv_search_filters")?><br/><span>(<?=$this->transEsc("adv_search_select_all")?> <input type="checkbox" checked="checked" onclick="filterAll(this, 'advSearchForm');" />)</span></h3> - <? foreach ($searchFilters as $field => $data): ?> - <div> - <h4><?=$this->transEsc($field)?></h4> - <ul> - <? foreach ($data as $value): ?> - <li><input type="checkbox" checked="checked" name="filter[]" value='<?=$this->escapeHtmlAttr($value['field'])?>:"<?=$this->escapeHtmlAttr($value['value'])?>"' /> <?=$this->escapeHtml($value['displayText'])?></li> - <? endforeach; ?> - </ul> - </div> - <? endforeach; ?> - </div> - <? endif; ?> - </div> - - <div class="clear"></div> -</form> diff --git a/themes/blueprint/templates/primo/home.phtml b/themes/blueprint/templates/primo/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/primo/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/primo/search.phtml b/themes/blueprint/templates/primo/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/primo/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/record/addtag.phtml b/themes/blueprint/templates/record/addtag.phtml deleted file mode 100644 index 221450ac0549060fc06791ae77993447ca58b505..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/addtag.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Add Tag')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Add Tag') . '</em>'; -?> -<div class="record"> - <h1 class="hideinlightbox"><?=$this->transEsc('Add Tag')?></h1> - <form action="" method="post" name="tagRecord"> - <input type="hidden" name="submit" value="1" /> - <input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" /> - <input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" /> - <label for="addtag_tag"><?=$this->transEsc("Tags")?>:</label> - <input id="addtag_tag" type="text" name="tag" value="" size="40" class="mainFocus <?=$this->jqueryValidation(array('required'=>'This field is required'))?>"/> - <p><?=$this->transEsc("add_tag_note")?></p> - <input type="submit" value="<?=$this->transEsc('Save')?>"/> - </form> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/record/ajaxtab.phtml b/themes/blueprint/templates/record/ajaxtab.phtml deleted file mode 100644 index 6f7d520981ebef08a220bd6ef46f1afaf76ecd02..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/ajaxtab.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<? -foreach ($this->tabs as $tab => $obj) { - if (strtolower($this->activeTab) == strtolower($tab)) { - echo $this->record($this->driver)->getTab($obj); - } -} -?> \ No newline at end of file diff --git a/themes/blueprint/templates/record/checkbox.phtml b/themes/blueprint/templates/record/checkbox.phtml deleted file mode 100644 index edf332c2ba4cfb6eb80abf661d18d17dbf24ccf5..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/checkbox.phtml +++ /dev/null @@ -1,3 +0,0 @@ -<label for="<?=$this->prefix?>checkbox_<?=$this->count?>" class="offscreen"><?=$this->transEsc('Select this record')?></label> -<input id="<?=$this->prefix?>checkbox_<?=$this->count?>" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->id)?>" class="checkbox_ui"/> -<input type="hidden" name="idsAll[]" value="<?=$this->escapeHtmlAttr($this->id)?>" /> \ No newline at end of file diff --git a/themes/blueprint/templates/record/cite.phtml b/themes/blueprint/templates/record/cite.phtml deleted file mode 100644 index 5c1915cbeb4603cc5fee4264bb62251704267841..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/cite.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Record Citations')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Record Citations') . '</em>'; - - // Collect citation data: - $helper = $this->citation($this->driver); - $citations = array(); - foreach ($this->driver->getCitationFormats() as $format) { - $citations[$format . ' Citation'] = $helper->getCitation($format); - } -?> -<? if (count($citations) == 0): ?> - <?=$this->transEsc('No citations are available for this record')?> -<? else: ?> - <? foreach ($citations as $caption => $citation): ?> - <strong><?=$this->transEsc($caption)?></strong> - <p class="citationText"> - <?=$citation?> - </p> - <? endforeach; ?> - <div class="note"><?=$this->transEsc('Warning: These citations may not always be 100% accurate')?>.</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/record/comments-list.phtml b/themes/blueprint/templates/record/comments-list.phtml deleted file mode 100644 index 0a2af48c9bf850fcf35fb66b9e3d371bf1bcabcb..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/comments-list.phtml +++ /dev/null @@ -1,15 +0,0 @@ -<? $comments = $this->driver->getComments(); if (empty($comments) || count($comments) == 0): ?> - <li><?=$this->transEsc('Be the first to leave a comment')?>!</li> -<? endif; ?> -<? foreach ($comments as $comment): ?> - <li> - <?=$this->escapeHtml($comment->comment)?> - <div class="posted"> - <?=$this->transEsc('Posted by')?> <strong><?=$this->escapeHtml(trim($comment->firstname . ' ' . $comment->lastname))?></strong> - <?=$this->transEsc('posted_on')?> <?=$this->escapeHtml($comment->created)?> - <? if (($user = $this->auth()->isLoggedIn()) && $comment->user_id == $user->id): ?> - <a href="<?=$this->recordLink()->getActionUrl($this->driver, 'DeleteComment')?>?delete=<?=urlencode($comment->id)?>" id="recordComment<?=$this->escapeHtml($comment->id)?>" class="delete tool deleteRecordComment source<?=$this->escapeHtml($this->driver->getResourceSource())?>"><?=$this->transEsc('Delete')?></a> - <? endif; ?> - </div> - </li> -<? endforeach; ?> diff --git a/themes/blueprint/templates/record/cover.phtml b/themes/blueprint/templates/record/cover.phtml deleted file mode 100644 index d27d01f38f4380e467df5a5be9588edab211f2a7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/cover.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? /* Display thumbnail if appropriate: */ ?> -<? switch ($this->context) { - case 'result-list': - case 'storageretrievalrequests': - case 'checkedout': - case 'holds': - case 'illrequests': - $coverclass = "summcover"; break; - case 'grid-list': - $coverclass = "result-grid"; break; - default: - $coverclass = "recordcover"; -} ?> -<? if ($cover): ?> - <? if ($this->link): ?><a href="<?=$this->escapeHtmlAttr($this->link)?>"><? endif; ?> - <img alt="<?=$this->transEsc('Cover Image')?>" class="<?=$coverclass?>" src="<?=$this->escapeHtmlAttr($cover); ?>"/> - <? if ($this->link): ?></a><? endif; ?> -<? else: ?> - <img src="<?=$this->url('cover-unavailable')?>" class="<?=$coverclass?>" alt="<?=$this->transEsc('No Cover Image')?>"/> -<? endif; ?> diff --git a/themes/blueprint/templates/record/email.phtml b/themes/blueprint/templates/record/email.phtml deleted file mode 100644 index 762fd95d2a024cfc901cca27c73fd1bd5ae68c91..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/email.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Email Record')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Email Record') . '</em>'; -?> -<?=$this->flashmessages()?> -<form action="" method="post" name="emailRecord"> - <input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" /> - <input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" /> - <?=$this->render('Helpers/email-form-fields.phtml')?> -</form> diff --git a/themes/blueprint/templates/record/export-menu.phtml b/themes/blueprint/templates/record/export-menu.phtml deleted file mode 100644 index ee672ab24fde8b89e1bb491118e6f0f1208b1204..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/export-menu.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Export Record')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Export Record') . '</em>'; -?> -<?=$this->flashmessages()?> -<? $exportFormats = $this->export()->getFormatsForRecord($this->driver); if (count($exportFormats) > 0): ?> - <?=$this->transEsc('export_choose_format')?> - <ul> - <? foreach ($exportFormats as $exportFormat): ?> - <li><a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtml($exportFormat)?>"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li> - <? endforeach; ?> - </ul> -<? else: ?> - <?=$this->transEsc('export_no_formats')?> -<? endif; ?> - diff --git a/themes/blueprint/templates/record/hold.phtml b/themes/blueprint/templates/record/hold.phtml deleted file mode 100644 index f954a4b30774a692956b4479239d0e36fca818ba..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/hold.phtml +++ /dev/null @@ -1,113 +0,0 @@ -<? - // Set up hold script: - $this->headScript()->appendFile("hold.js"); - - // Set page title. - $this->headTitle($this->translate('request_place_text') . ': ' . $this->driver->getBreadcrumb()); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('request_place_text') . '</em>'; -?> -<h2><?=$this->transEsc('request_place_text')?></h2> -<? if ($this->helpText): ?> -<p class="helptext"><?=$this->helpText?></p> -<? endif; ?> - -<?=$this->flashmessages()?> -<div class="hold-form"> - - <form action="" method="post"> - - <? if (in_array("comments", $this->extraHoldFields)): ?> - <div> - <strong><?=$this->transEsc("Comments")?>:</strong><br/> - <textarea rows="3" cols="20" name="gatheredDetails[comment]"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea> - </div> - <? endif; ?> - - <? if (in_array("requiredByDate", $this->extraHoldFields)): ?> - <div> - <strong><?=$this->transEsc("hold_required_by")?>: </strong> - <div id="requiredByHolder"><input id="requiredByDate" type="text" name="gatheredDetails[requiredBy]" value="<?=(isset($this->gatheredDetails['requiredBy']) && !empty($this->gatheredDetails['requiredBy'])) ? $this->escapeHtml($this->gatheredDetails['requiredBy']) : $this->escapeHtml($this->defaultRequiredDate)?>" size="8" /> <strong>(<?=$this->dateTime()->getDisplayDateFormat()?>)</strong></div> - </div> - <? endif; ?> - - <? if ($this->requestGroupNeeded): ?> - <div> - <? - if (isset($this->gatheredDetails['requestGroupId']) && $this->gatheredDetails['requestGroupId'] !== "") { - $selected = $this->gatheredDetails['requestGroupId']; - } else { - $selected = $this->defaultRequestGroup; - } - ?> - <strong><?=$this->transEsc("hold_request_group")?>:</strong> - <select id="requestGroupId" name="gatheredDetails[requestGroupId]"> - <? if ($selected === false): ?> - <option value="" selected="selected"> - <?=$this->transEsc('select_request_group')?> - </option> - <? endif; ?> - <? foreach ($this->requestGroups as $group): ?> - <option value="<?=$this->escapeHtmlAttr($group['id'])?>"<?=($selected == $group['id']) ? ' selected="selected"' : ''?>> - <?=$this->escapeHtml($group['name'])?> - </option> - <? endforeach; ?> - </select> - </div> - <? endif; ?> - - <? if (in_array("pickUpLocation", $this->extraHoldFields)): ?> - <? - if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") { - $selected = $this->gatheredDetails['pickUpLocation']; - } elseif (isset($this->homeLibrary) && $this->homeLibrary !== "") { - $selected = $this->homeLibrary; - } else { - $selected = $this->defaultPickup; - } - ?> - <div> - <? if ($this->requestGroupNeeded): ?> - <span id="pickUpLocationLabel"><strong><?=$this->transEsc("pick_up_location")?>: - <noscript> (<?=$this->transEsc("Please enable JavaScript.")?>)</noscript> - </strong></span> - <select id="pickUpLocation" name="gatheredDetails[pickUpLocation]" data-default="<?=$this->escapeHtmlAttr($selected)?>"> - <? if ($selected === false): ?> - <option value="" selected="selected"> - <?=$this->transEsc('select_pickup_location')?> - </option> - <? endif; ?> - </select> - <? elseif (count($this->pickup) > 1): ?> - <strong><?=$this->transEsc("pick_up_location")?>:</strong><br/> - <select name="gatheredDetails[pickUpLocation]"> - <? if ($selected === false): ?> - <option value="" selected="selected"> - <?=$this->transEsc('select_pickup_location')?> - </option> - <? endif; ?> - <? foreach ($this->pickup as $lib): ?> - <option value="<?=$this->escapeHtmlAttr($lib['locationID'])?>"<?=($selected == $lib['locationID']) ? ' selected="selected"' : ''?>> - <?=$this->escapeHtml($lib['locationDisplay'])?> - </option> - <? endforeach; ?> - </select> - <? else: ?> - <input type="hidden" name="gatheredDetails[pickUpLocation]" value="<?=$this->escapeHtmlAttr($this->defaultPickup)?>" /> - <? endif; ?> - </div> - <? endif; ?> - - <input type="submit" name="placeHold" value="<?=$this->transEsc('request_submit_text')?>"/> - - </form> - -</div> - -<script type="text/javascript"> -$(document).ready(function(){ - setUpHoldRequestForm('<?=$this->escapeHtml($this->driver->getUniqueId()) ?>'); -}); -</script> diff --git a/themes/blueprint/templates/record/illrequest.phtml b/themes/blueprint/templates/record/illrequest.phtml deleted file mode 100644 index 877b2e28d032f5013f241f3eb2844c1b1cb19162..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/illrequest.phtml +++ /dev/null @@ -1,120 +0,0 @@ -<? - // Set up ill script: - $this->headScript()->appendFile("ill.js"); - - // Set page title. - $this->headTitle($this->translate('ill_request_place_text') . ': ' . $this->driver->getBreadcrumb()); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('ill_request_place_text') . '</em>'; -?> -<h2><?=$this->transEsc('ill_request_place_text')?></h2> -<? if ($this->helpText): ?> -<p class="helptext"><?=$this->helpText?></p> -<? endif; ?> - -<?=$this->flashmessages()?> -<div id="ILLRequestForm" class="ILLRequestForm"> - - <form action="" method="post"> - - <? if (in_array("itemId", $this->extraFields)): ?> - <div> - <strong><?=$this->transEsc('ill_request_item')?>:</strong><br/> - <select name="gatheredDetails[itemId]"> - <? foreach ($this->items as $item): ?> - <option value="<?=$this->escapeHtmlAttr($item['id'])?>"<?=($this->gatheredDetails['itemId'] == $item['id']) ? ' selected="selected"' : ''?>><?=$this->escapeHtml($item['name'])?></option> - <? endforeach; ?> - </select> - </div> - <? endif; ?> - - <? if (in_array("pickUpLibrary", $this->extraFields) && !empty($this->pickupLibraries)): ?> - <div> - <strong><?=$this->transEsc("ill_request_pick_up_library")?>:</strong><br/> - <? if (count($this->pickupLibraries) > 1): ?> - <? - if (isset($this->gatheredDetails['pickUpLibrary']) && $this->gatheredDetails['pickUpLibrary'] !== "") { - $selected = $this->gatheredDetails['pickUpLibrary']; - } else { - $selected = false; - } - ?> - <select id="pickupLibrary" name="gatheredDetails[pickUpLibrary]"> - <? foreach ($this->pickupLibraries as $lib): ?> - <option value="<?=$this->escapeHtmlAttr($lib['id'])?>"<?=(($selected === false && isset($lib['isDefault']) && $lib['isDefault']) || $selected === $lib['id']) ? ' selected="selected"' : ''?>> - <?=$this->transEsc('library_' . $lib['name'], null, $lib['name'])?> - </option> - <? endforeach; ?> - </select> - <? else: ?> - <? $lib = $this->pickupLibraries[0]; ?> - <input type="text" size="40" readonly="readonly" value="<?=$this->escapeHtmlAttr($this->translate('library_' . $lib['name'], null, $lib['name']))?>" /> - <input type="hidden" id="pickupLibrary" name="gatheredDetails[pickUpLibrary]" value="<?=$this->escapeHtmlAttr($lib['id'])?>" /> - <? endif; ?> - </div> - <? endif; ?> - - <? if (in_array("pickUpLibraryLocation", $this->extraFields)): ?> - <div> - <span id="pickupLibraryLocationLabel"><strong><?=$this->transEsc("ill_request_pick_up_location")?>:</strong></span> - <noscript> - <label class="error" for="pickupLibraryLocation"><?=$this->transEsc("Please enable JavaScript.")?></label> - <br /> - </noscript> - <br/> - <select id="pickupLibraryLocation" name="gatheredDetails[pickUpLibraryLocation]"> - </select> - </div> - <? endif; ?> - - <? if (in_array("pickUpLocation", $this->extraFields)): ?> - <div> - <? if (count($this->pickupLocations) > 1): ?> - <? - if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") { - $selected = $this->gatheredDetails['pickUpLocation']; - } elseif (isset($this->homeLibrary) && $this->homeLibrary !== "") { - $selected = $this->homeLibrary; - } else { - $selected = false; - } - ?> - <strong><?=$this->transEsc("pick_up_location")?>:</strong><br/> - <select id="pickupLocation" name="gatheredDetails[pickUpLocation]"> - <? foreach ($this->pickupLocations as $loc): ?> - <option value="<?=$this->escapeHtmlAttr($loc['id'])?>"<?=(($selected === false && isset($loc['isDefault']) && $loc['isDefault']) || $selected === $loc['id']) ? ' selected="selected"' : ''?>> - <?=$this->escapeHtml($loc['name'])?> - </option> - <? endforeach; ?> - </select> - <? endif; ?> - </div> - <? endif; ?> - - <? if (in_array("requiredByDate", $this->extraFields)): ?> - <div> - <strong><?=$this->transEsc("hold_required_by")?>: </strong> - <div id="requiredByHolder"><input id="requiredByDate" type="text" name="gatheredDetails[requiredBy]" value="<?=(isset($this->gatheredDetails['requiredBy']) && !empty($this->gatheredDetails['requiredBy'])) ? $this->escapeHtmlAttr($this->gatheredDetails['requiredBy']) : $this->escapeHtmlAttr($this->defaultRequiredDate)?>" size="8" /> <strong>(<?=$this->dateTime()->getDisplayDateFormat()?>)</strong></div> - </div> - <? endif; ?> - - <? if (in_array("comments", $this->extraFields)): ?> - <div> - <strong><?=$this->transEsc("Comments")?>:</strong><br/> - <textarea rows="3" cols="20" name="gatheredDetails[comment]"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea> - </div> - <? endif; ?> - - <input type="submit" name="placeILLRequest" value="<?=$this->transEsc('ill_request_submit_text')?>"/> - - </form> - -</div> - -<script type="text/javascript"> -$(document).ready(function(){ - setUpILLRequestForm('<?=$this->escapeHtml($this->driver->getUniqueId()) ?>'); -}); -</script> diff --git a/themes/blueprint/templates/record/save.phtml b/themes/blueprint/templates/record/save.phtml deleted file mode 100644 index cb5b1be5e5d0db38f4e7d68eaad78295abdd1cc8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/save.phtml +++ /dev/null @@ -1,52 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Save')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Save') . '</em>'; -?> -<h2><?=$this->transEsc("add_favorite_prefix") ?> <?=$this->escapeHtml($this->driver->getBreadcrumb())?> <?=$this->transEsc("add_favorite_suffix") ?></h2> -<form method="post" action="" name="saveRecord"> - <input type="hidden" name="submit" value="1" /> - <input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId()) ?>" /> - <input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" /> - <? if (!empty($this->containingLists)): ?> - <p><?=$this->transEsc('This item is already part of the following list/lists') ?>:</p> - <ul> - <? foreach ($this->containingLists as $list): ?> - <li><a href="<?=$this->url('userList', array('id' => $list['id'])) ?>"><?=$this->escapeHtml($list['title'])?></a></li> - <? endforeach; ?> - </ul> - <? endif; ?> - - <?/* Only display the list drop-down if the user has lists that do not contain - this item OR if they have no lists at all and need to create a default list */?> - <? $showLists = (!empty($this->nonContainingLists) || (empty($this->containingLists) && empty($this->nonContainingLists))); ?> - - <? if ($showLists): ?> - <label class="displayBlock" for="save_list"><?=$this->transEsc('Choose a List') ?></label> - <select id="save_list" name="list"> - <? if ($this->nonContainingLists): ?> - <? foreach ($this->nonContainingLists as $list): ?> - <option value="<?=$list['id'] ?>"<? if ($list['id']==$this->userList()->lastUsed()): ?> selected="selected"<? endif; ?>><?=$this->escapeHtml($list['title'])?></option> - <? endforeach; ?> - <? else: ?> - <option value=""><?=$this->transEsc('My Favorites') ?></option> - <? endif; ?> - </select> - <? endif; ?> - <a href="<?=$this->url('editList', array('id' => 'NEW'))?>?recordId=<?=urlencode($this->driver->getUniqueId())?>&recordSource=<?=urlencode($this->driver->getResourceSource())?>" class="listEdit controller<?=$this->record($this->driver)->getController()?>" title="<?=$this->transEsc('Create a List') ?>"><? if ($showLists) echo $this->transEsc('or create a new list'); else echo $this->transEsc('Create a List'); ?></a> - - <? if ($showLists): ?> - <? if ($this->usertags()->getMode() !== 'disabled'): ?> - <label class="displayBlock" for="add_mytags"><?=$this->transEsc('Add Tags') ?></label> - <input class="mainFocus" id="add_mytags" type="text" name="mytags" value="" size="50"/> - <p><?=$this->transEsc("add_tag_note") ?></p> - <? endif; ?> - <label class="displayBlock" for="add_notes"><?=$this->transEsc('Add a Note') ?></label> - <textarea id="add_notes" name="notes" rows="3" cols="50"></textarea> - <br/> - <input class="button" type="submit" value="<?=$this->transEsc('Save') ?>"/> - <? endif; ?> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/record/sms.phtml b/themes/blueprint/templates/record/sms.phtml deleted file mode 100644 index 5a5aeb5ce5c00c4da3c2cef11186d9946a62bafc..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/sms.phtml +++ /dev/null @@ -1,36 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Text this')); - echo $this->inlineScript(\Zend\View\Helper\HeadScript::FILE, 'libphonenumber.js', 'SET'); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('Text this') . '</em>'; -?> -<?=$this->flashmessages()?> -<form method="post" action="" name="smsRecord"> - <input type="hidden" name="id" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" /> - <input type="hidden" name="source" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" /> - <label class="span-2" for="sms_to"><?=$this->transEsc('Number')?>:</label> - <input id="sms_to" type="tel" name="to" value="<?=isset($this->to) ? $this->to : $this->transEsc('sms_phone_number')?>" - onfocus="if (this.value=='<?=$this->transEsc('sms_phone_number')?>') this.value=''" - onblur="if (this.value=='') this.value='<?=$this->transEsc('sms_phone_number')?>'" - class="<?=$this->jqueryValidation(['required'=>'This field is required'])?>"/> - <div class="phone-error"></div> - <br/> - <? if (is_array($this->carriers) && count($this->carriers) > 1): ?> - <label class="span-2" for="sms_provider"><?=$this->transEsc('Provider')?>:</label> - <select id="sms_provider" name="provider" class="<?=$this->jqueryValidation(array('required'=>'This field is required'))?>"> - <option selected="selected" value=""><?=$this->transEsc('Select your carrier')?></option> - <? foreach ($this->carriers as $val => $details): ?> - <option<?=(isset($this->provider) && $val == $this->provider) ? ' selected="selected"' : ''?> value="<?=$this->escapeHtmlAttr($val)?>"><?=$this->escapeHtml($details['name'])?></option> - <? endforeach; ?> - </select> - <br/> - <? else: ?> - <? $keys = is_array($this->carriers) ? array_keys($this->carriers) : array(); ?> - <input type="hidden" name="provider" value="<?=isset($keys[0]) ? $keys[0] : ''?>" /> - <? endif; ?> - <?=$this->recaptcha()->html($this->useRecaptcha) ?> - <input class="button" type="submit" name="submit" value="<?=$this->transEsc('Send')?>"<? if(isset($this->validation) && !empty($this->validation)):?> onClick="return phoneNumberFormHandler('sms_to', '<?=$this->validation ?>')"<? endif; ?>/> -</form> diff --git a/themes/blueprint/templates/record/storageretrievalrequest.phtml b/themes/blueprint/templates/record/storageretrievalrequest.phtml deleted file mode 100644 index 448a5ffaf9fd39a57b4440e5d93904a42b2f7954..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/storageretrievalrequest.phtml +++ /dev/null @@ -1,98 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('storage_retrieval_request_place_text') . ': ' . $this->driver->getBreadcrumb()); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver) . '<span>></span><em>' . $this->transEsc('storage_retrieval_request_place_text') . '</em>'; -?> -<h2><?=$this->transEsc('storage_retrieval_request_place_text')?></h2> -<? if ($this->helpText): ?> -<p class="helptext"><?=$this->helpText?></p> -<? endif; ?> - -<?=$this->flashmessages()?> -<div class="storageRetrievalRequestForm"> - - <form action="" method="post"> - - <? if (in_array("item-issue", $this->extraFields)): ?> - <div> - <input type="radio" id="storageRetrievalRequestItem" name="gatheredDetails[level]" value="copy"<?=!isset($this->gatheredDetails['level']) || $this->gatheredDetails['level'] != 'title' ? ' checked="checked"' : ''?>> - <strong><label for="storageRetrievalRequestItem"><?=$this->transEsc('storage_retrieval_request_selected_item')?></label></strong><br/> - <input type="radio" id="storageRetrievalRequestTitle" name="gatheredDetails[level]" value="title"<?=isset($this->gatheredDetails['level']) && $this->gatheredDetails['level'] == 'title' ? ' checked="checked"' : ''?>> - <strong><label for="storageRetrievalRequestTitle"><?=$this->transEsc('storage_retrieval_request_reference')?></label></strong><br/> - <div id="storageRetrievalRequestReference" class="storageRetrievalRequestReference"> - <strong><label for="storageRetrievalRequestVolume"><?=$this->transEsc('storage_retrieval_request_volume')?>:</label></strong><br/> - <input type="text" id="storageRetrievalRequestVolume" name="gatheredDetails[volume]" value="<?=isset($this->gatheredDetails['volume']) ? $this->escapeHtmlAttr($this->gatheredDetails['volume']) : ''?>"></input><br/> - <strong><label for="storageRetrievalRequestIssue"><?=$this->transEsc('storage_retrieval_request_issue')?>:</label></strong><br/> - <input type="text" id="storageRetrievalRequestIssue" name="gatheredDetails[issue]" value="<?=isset($this->gatheredDetails['issue']) ? $this->escapeHtmlAttr($this->gatheredDetails['issue']) : ''?>"></input><br/> - <strong><label for="storageRetrievalRequestYear"><?=$this->transEsc('storage_retrieval_request_year')?>:</label></strong><br/> - <input type="text" id="storageRetrievalRequestYear" name="gatheredDetails[year]" value="<?=isset($this->gatheredDetails['year']) ? $this->escapeHtmlAttr($this->gatheredDetails['year']) : ''?>"></input><br/> - </div> - </div> - <? endif; ?> - - <? if (in_array("requiredByDate", $this->extraFields)): ?> - <div> - <strong><?=$this->transEsc("hold_required_by")?>: </strong> - <div id="requiredByHolder"><input id="requiredByDate" type="text" name="gatheredDetails[requiredBy]" value="<?=(isset($this->gatheredDetails['requiredBy']) && !empty($this->gatheredDetails['requiredBy'])) ? $this->escapeHtmlAttr($this->gatheredDetails['requiredBy']) : $this->escapeHtmlAttr($this->defaultRequiredDate)?>" size="8" /> <strong>(<?=$this->dateTime()->getDisplayDateFormat()?>)</strong></div> - </div> - <? endif; ?> - - <? if (in_array("pickUpLocation", $this->extraFields)): ?> - <div> - <? if (count($this->pickup) > 1): ?> - <? - if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") { - $selected = $this->gatheredDetails['pickUpLocation']; - } elseif (isset($this->homeLibrary) && $this->homeLibrary !== "") { - $selected = $this->homeLibrary; - } else { - $selected = $this->defaultPickup; - } - ?> - <strong><?=$this->transEsc("pick_up_location")?>:</strong><br/> - <select name="gatheredDetails[pickUpLocation]"> - <? if ($selected === false): ?> - <option value="" selected="selected"> - <?=$this->transEsc('select_pickup_location')?> - </option> - <? endif; ?> - <? foreach ($this->pickup as $lib): ?> - <option value="<?=$this->escapeHtmlAttr($lib['locationID'])?>"<?=($selected == $lib['locationID']) ? ' selected="selected"' : ''?>> - <?=$this->escapeHtml($lib['locationDisplay'])?> - </option> - <? endforeach; ?> - </select> - <? else: ?> - <input type="hidden" name="gatheredDetails[pickUpLocation]" value="<?=$this->escapeHtmlAttr($this->defaultPickup)?>" /> - <? endif; ?> - </div> - <? endif; ?> - - <? if (in_array("comments", $this->extraFields)): ?> - <div> - <strong><?=$this->transEsc("Comments")?>:</strong><br/> - <textarea rows="3" cols="20" name="gatheredDetails[comment]"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea> - </div> - <? endif; ?> - - <input type="submit" name="placeStorageRetrievalRequest" value="<?=$this->transEsc('storage_retrieval_request_submit_text')?>"/> - - </form> - -</div> - -<script type="text/javascript"> -$(document).ready(function() { - $("input[type='radio']").change(function() { - if ($('#storageRetrievalRequestItem').is(':checked')) { - $('#storageRetrievalRequestReference input').attr('disabled', 'disabled'); - } else { - $('#storageRetrievalRequestReference input').removeAttr('disabled'); - } - }); - $('#storageRetrievalRequestItem').trigger('change'); -}); -</script> diff --git a/themes/blueprint/templates/record/taglist.phtml b/themes/blueprint/templates/record/taglist.phtml deleted file mode 100644 index 20c017a35e479134bbf58c7963403c9d3c151956..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/taglist.phtml +++ /dev/null @@ -1,21 +0,0 @@ -<div id="tagList"<?=$loggedin ? ' class="loggedin"' : ''?>> - <? if (count($tagList) > 0): ?> - <? foreach ($tagList as $tag): ?> - <? $is_me = isset($tag['is_me']) && !is_null($tag['is_me']) ? $tag['is_me'] : false; ?> - <div class="record-tag<?=$is_me ? ' selected' : ''?>"> - <a href="<?=$this->url('tag-home')?>?lookfor=<?=urlencode($tag['tag'])?>"><?=$this->escapeHtml($tag['tag'])?></a> - <? if($loggedin): ?> - <form method="POST" action="<?=$this->recordLink()->getActionUrl($this->driver, $is_me ? 'DeleteTag' : 'AddTag') ?>" class="tag-form"> - <input type="hidden" name="tag" value="<?=$this->escapeHtmlAttr($tag['tag'])?>"/> - <button type="submit" class="badge <?=$is_me ? 'delete' : 'add' ?> right" onClick="ajaxTagUpdate('<?=$this->escapeHtmlAttr($tag['tag'])?>', <?=$is_me ? 'true' : 'false' ?>);return false;"><?=$this->escapeHtml($tag['cnt']) ?> - </button> - </form> - <? else: ?> - <span class="badge"><?=$this->escapeHtml($tag['cnt'])?></span> - <? endif; ?> - </div> - <? endforeach; ?> - <? else: ?> - <?=$this->transEsc('No Tags')?>, <?=$this->transEsc('Be the first to tag this record')?>! - <? endif; ?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/record/view.phtml b/themes/blueprint/templates/record/view.phtml deleted file mode 100644 index 0c147768ff7517ac3dd97fb5cd0603c7751b3492..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/record/view.phtml +++ /dev/null @@ -1,70 +0,0 @@ -<? - // Set up standard record scripts: - $this->headScript()->appendFile("record.js"); - $this->headScript()->appendFile("check_save_statuses.js"); - - // Add RDF header link if applicable: - if ($this->export()->recordSupportsFormat($this->driver, 'RDF')) { - $this->headLink()->appendAlternate($this->recordLink()->getActionUrl($this->driver, 'RDF'), 'application/rdf+xml', 'RDF Representation'); - } - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - $this->recordLink()->getBreadcrumb($this->driver); -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <?=$this->record($this->driver)->getToolbar()?> - - <div class="record recordId source<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" id="record"> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueId())?>" class="hiddenId" id="record_id" /> - <input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getResourceSource())?>" class="hiddenSource" /> - <?=$this->flashmessages()?> - <? if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?> - <div class="resultscroller"> - <? if ($this->scrollData['previousRecord']): ?><a href="<?=$this->recordLink()->getUrl($this->scrollData['previousRecord'])?>">« <?=$this->transEsc('Prev')?></a><? endif; ?> - #<?=$this->localizedNumber($this->scrollData['currentPosition']) . ' ' . $this->transEsc('of') . ' ' . $this->localizedNumber($this->scrollData['resultTotal'])?> - <? if ($this->scrollData['nextRecord']): ?><a href="<?=$this->recordLink()->getUrl($this->scrollData['nextRecord'])?>"><?=$this->transEsc('Next')?> »</a><? endif; ?> - </div> - <? endif; ?> - <?=$this->record($this->driver)->getCoreMetadata()?> - </div> - - <? if (count($this->tabs) > 0): ?> - <div id="tabnav"> - <ul> - <? foreach ($this->tabs as $tab => $obj): ?> - <? // add current tab to breadcrumbs if applicable: - $desc = $obj->getDescription(); - $isCurrent = (strtolower($this->activeTab) == strtolower($tab)); - if ($isCurrent) { - $this->layout()->breadcrumbs .= '<span>></span><em>' . $this->transEsc($desc) . '</em>'; - $activeTabObj = $obj; - } - $tab_classes = array(); - if ($isCurrent) $tab_classes[] = 'active'; - if (!$obj->isVisible()) $tab_classes[] = 'hidden'; - ?> - <li<?=count($tab_classes) > 0 ? ' class="' . implode(' ', $tab_classes) . '"' : ''?>> - <a href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>#tabnav"><?=$this->transEsc($desc)?></a> - </li> - <? endforeach; ?> - </ul> - <div class="clear"></div> - </div> - <? endif; ?> - - - <div class="recordsubcontent"> - <?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : '' ?> - </div> - - <?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <? foreach ($this->related()->getList($this->driver) as $current): ?> - <?=$this->related()->render($current)?> - <? endforeach; ?> -</div> - -<div class="clear"></div> diff --git a/themes/blueprint/templates/records/home.phtml b/themes/blueprint/templates/records/home.phtml deleted file mode 100644 index dbf1e7cebcde81c81cd16a35f803e6602ace6b9a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/records/home.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? - $this->overrideTitle = $this->translate('View Records'); - $this->overrideSearchHeading = ''; - - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); - - // Disable top search box -- it doesn't make sense in this module. - $this->layout()->searchbox = false; -?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/advanced.phtml b/themes/blueprint/templates/search/advanced.phtml deleted file mode 100644 index c1774e75c4f95a85a471fa5789a84a99511cc09e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<? - // Load the Solr-specific advanced search controls and inject them into the - // standard advanced search layout: - $this->extraAdvancedControls = $this->render('search/advanced/solr.phtml'); - echo $this->render('search/advanced/layout.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/advanced/build_page.phtml b/themes/blueprint/templates/search/advanced/build_page.phtml deleted file mode 100644 index 2db0f6e248f7d7083d18b5620af3934a3ef6e2e0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/build_page.phtml +++ /dev/null @@ -1,19 +0,0 @@ -$(document).ready(function() { - <? if (isset($this->searchDetails) && is_object($this->searchDetails)): ?> - <? foreach ($this->searchDetails->getQueries() as $searchGroup): ?> - <? $i = 0; foreach ($searchGroup->getQueries() as $search): ?> - <? if (++$i == 1): ?> - var new_group = addGroup('<?=addslashes($search->getString())?>', '<?=addslashes($search->getHandler())?>', '<?=$searchGroup->isNegated() ? 'NOT' : $searchGroup->getOperator()?>'); - <? else: ?> - addSearch(new_group, '<?=addslashes($search->getString())?>', '<?=addslashes($search->getHandler())?>'); - <? endif; ?> - <? endforeach; ?> - <? endforeach; ?> - <? else: ?> - var new_group = addGroup(); - addSearch(new_group); - addSearch(new_group); - <? endif; ?> - // show the add group link - $("#addGroupLink").removeClass("offscreen"); -}); diff --git a/themes/blueprint/templates/search/advanced/build_page_eds.phtml b/themes/blueprint/templates/search/advanced/build_page_eds.phtml deleted file mode 100644 index 859919bab37d76e061f43631d0d2b09809fdb206..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/build_page_eds.phtml +++ /dev/null @@ -1,22 +0,0 @@ -$(document).ready(function() { - <? if (isset($this->searchDetails) && is_object($this->searchDetails)): ?> - <? foreach ($this->searchDetails->getQueries() as $searchGroup): ?> - <? $i = 0; foreach ($searchGroup->getQueries() as $search): ?> - <? if (++$i == 1): ?> - var new_group = addGroup('<?=addslashes($search->getString())?>', '<?=addslashes($search->getHandler())?>', '<?=$searchGroup->isNegated() ? 'NOT' : $searchGroup->getOperator()?>'); - <? else: ?> - addSearch(new_group, - '<?=addslashes($search->getString())?>', - '<?=addslashes($search->getHandler())?>', - '<?=addslashes($search->getOperator())?>' - ); - <? endif; ?> - <? endforeach; ?> - <? endforeach; ?> - <? else: ?> - var new_group = addGroup(); - addSearch(new_group); - addSearch(new_group); - <? endif; ?> - -}); diff --git a/themes/blueprint/templates/search/advanced/checkbox-filters.phtml b/themes/blueprint/templates/search/advanced/checkbox-filters.phtml deleted file mode 100644 index 972b1f017bacaa9e96d726949e4687015ec13c3a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/checkbox-filters.phtml +++ /dev/null @@ -1,13 +0,0 @@ -<? if (isset($this->checkboxFacets) && count($this->checkboxFacets) > 0): ?> - <div class="span-7"> - <fieldset> - <? foreach ($this->checkboxFacets as $current): ?> - <div class="checkboxFilter"> - <input type="checkbox" name="filter[]" value="<?=$this->escapeHtmlAttr($current['filter'])?>" id="<?=$this->escapeHtmlAttr(str_replace(' ', '', $current['desc']))?>" <? if ($current['selected']): ?>checked="checked" <? endif; ?> /> - <label for="<?=$this->escapeHtmlAttr(str_replace(' ', '', $current['desc']))?>"><?=$this->transEsc($current['desc'])?></label> - </div> - <? endforeach; ?> - </fieldset> - </div> - <div class="clear"></div> -<?endif;?> diff --git a/themes/blueprint/templates/search/advanced/eds.phtml b/themes/blueprint/templates/search/advanced/eds.phtml deleted file mode 100644 index 01df5f9fbcfba6e4485325ad7bce219ecffd4c0f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/eds.phtml +++ /dev/null @@ -1,83 +0,0 @@ -<div class="clear"></div> -<? if (!empty($this->expanderList)): ?> - <fieldset class="span-5"> - <legend><?=$this->transEsc('eds_modes_and_expanders')?></legend> - <? foreach ($this->expanderList as $field => $expander): - $value = $expander['Value'] ?> - <label class="displayBlock" for="expand_<?=$this->escapeHtmlAttr(str_replace(' ', '+', $field))?>"><?=$this->transEsc('eds_expander_' . $value, array(), $expander['Label'])?></label> - <input id="expand_<?=$this->escapeHtmlAttr(str_replace(' ', '+', $field))?>" type="checkbox" <?=(isset($expander['selected']) && $expander['selected'])?'checked="checked"':''?> name="filter[]" value="EXPAND:<?=$this->escapeHtmlAttr($value)?>"> - <? endforeach; ?> - - <label class="displayBlock" for="searchModes"><?=$this->transEsc('Search Mode')?></label> - <select id="searchMode_<?=$this->escapeHtmlAttr($field)?>" name="filter[]"> - <? foreach ($this->searchModes as $field => $searchMode): - $value = $searchMode['Value'] ?> - <option <?=(isset($searchMode['selected']) && $searchMode['selected'])?'selected="selected"':''?> value="SEARCHMODE:<?=$this->escapeHtmlAttr($value)?>"> - <?= /* 'Label' comes from API and is always in English; try to translate structured value before using it: */ $this->transEsc('eds_mode_' . $value, array(), $searchMode['Label']) ?> - </option> - <? endforeach; ?> - </select> - </fieldset> -<? endif; ?> - -<? if (!empty($this->limiterList)): ?> - <fieldset class="span-5"> - <legend><?=$this->transEsc('Limit To')?></legend> - <? foreach ($this->limiterList as $field => $facet): ?> - <? switch($facet['Type']){ - case 'multiselectvalue': ?> - <label class="displayBlock" for="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '+', $field))?>"><?=$this->transEsc($facet['Label'])?></label> - <select id="limit_<?=$this->escapeHtmlAttr($field)?>" name="filter[]" multiple="multiple" size="10" style="width:100%"> - <? foreach ($facet['LimiterValues'] as $id => $facetValue): ?> - <? $value = $facetValue['Value']; ?> - <option value="<?='LIMIT|'.$this->escapeHtmlAttr($field . ':' . $facetValue['Value'])?>"<?=(isset($facetValue['selected']) && $facetValue['selected'])?' selected="selected"':''?>><?=$this->escapeHtml($facetValue['Value'])?></option> - <? endforeach; ?> - </select> - <!-- <br/> --> - <? break; - case 'select': - $value = $facet['LimiterValues'][0]['Value'] ?> - <label class="displayBlock"> - <input type="checkbox" id="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '+', $field))?>" <?=(isset($facet['LimiterValues'][0]['selected']) && $facet['LimiterValues'][0]['selected'])?'checked="checked"':''?> name="filter[]" value="<?=$this->escapeHtmlAttr('LIMIT|'.$field . ':' . $value)?>"> - <?=$this->transEsc('eds_limiter_' . $field, array(), $facet['Label'])?> - </label> - <!-- <br/> --> - <? break; - case 'text': ?> - <!-- not implemented --> - <? break; - case 'numeric':?> - <!-- not implemented --> - <? break; - case 'numericrange':?> - <!-- not implemented --> - <? break; - case 'ymrange': ?> - <!-- not implemented --> - <? break; - case 'yrange': ?> - <!-- not implemented --> - <? break; - case 'historicalrange':?> - <!-- not implemented --> - <? break; - case 'singleselectvalue':?> - <!-- not implemented --> - <? break; - }; ?> - <? endforeach; ?> - </fieldset> -<? endif; ?> -<? if (isset($this->dateRangeLimit)): ?> - <? /* Load the publication date slider UI widget */ $this->headScript()->appendFile('pubdate_slider.js'); ?> - <input type="hidden" name="daterange[]" value="PublicationDate"/> - <fieldset class="publishDateLimit span-5" id="PublicationDate"> - <legend><?=$this->transEsc('adv_search_year')?></legend> - <label for="PublicationDatefrom"><?=$this->transEsc('date_from')?>:</label> - <input type="text" size="4" maxlength="4" class="yearbox" name="PublicationDatefrom" id="PublicationDatefrom" value="<?=$this->escapeHtmlAttr($this->dateRangeLimit[0])?>" /> - <label for="PublicationDateto"><?=$this->transEsc('date_to')?>:</label> - <input type="text" size="4" maxlength="4" class="yearbox" name="PublicationDateto" id="PublicationDateto" value="<?=$this->escapeHtmlAttr($this->dateRangeLimit[1])?>" /> - <div id="PublicationDateSlider" class="dateSlider"></div> - </fieldset> -<? endif; ?> -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/advanced/globals.phtml b/themes/blueprint/templates/search/advanced/globals.phtml deleted file mode 100644 index 747aae95bea2b399a0ededffa974ad018a189e42..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/globals.phtml +++ /dev/null @@ -1,14 +0,0 @@ -var searchFields = new Array(); -<? foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?> - searchFields["<?=$this->escapeHtml($searchVal)?>"] = "<?=$this->transEsc($searchDesc)?>"; -<? endforeach; ?> -var searchJoins = new Array(); -searchJoins["AND"] = "<?=$this->transEsc("search_AND")?>"; -searchJoins["OR"] = "<?=$this->transEsc("search_OR")?>"; -searchJoins["NOT"] = "<?=$this->transEsc("search_NOT")?>"; -var addSearchString = "<?=$this->transEsc("add_search")?>"; -var searchLabel = "<?=$this->transEsc("adv_search_label")?>"; -var searchFieldLabel = "<?=$this->transEsc("in")?>"; -var deleteSearchGroupString = "<?=$this->transEsc("del_search")?>"; -var searchMatch = "<?=$this->transEsc("search_match")?>"; -var searchFormId = 'advSearchForm'; diff --git a/themes/blueprint/templates/search/advanced/layout.phtml b/themes/blueprint/templates/search/advanced/layout.phtml deleted file mode 100644 index abcd8b1cded9a7dd418012071410781a7a937022..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/layout.phtml +++ /dev/null @@ -1,170 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Advanced Search')); - - // Disable top search box -- this page has a special layout. - $this->layout()->searchbox = false; - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Advanced') . '</em>'; - - // Set up saved search details: - if (isset($this->saved) && is_object($this->saved)) { - $searchDetails = $this->saved->getParams()->getQuery(); - if ($searchDetails instanceof \VuFindSearch\Query\Query) { - // Not an advanced query -- ignore it. - $searchDetails = $groups = false; - } else { - $groups = $searchDetails->getQueries(); - } - $hasDefaultsApplied = $this->saved->getParams()->hasDefaultsApplied(); - $searchFilters = $this->saved->getParams()->getFilterList(); - } else { - $hasDefaultsApplied = $searchDetails = $searchFilters = $groups = false; - } - - // Set up Javascript: - // Step 1: Define our search arrays so they are usuable in the javascript - $this->headScript()->appendScript($this->render('search/advanced/globals.phtml')); - // Step 2: Call the javascript to make use of the above - $this->headScript()->appendFile( - isset($this->advancedSearchJsOverride) ? $this->advancedSearchJsOverride : 'advanced_search.js' - ); - // Step 3: Build the page - $this->headScript()->appendScript( - $this->partial( - isset($this->buildPageOverride) ? $this->buildPageOverride : 'search/advanced/build_page.phtml', - array('searchDetails' => $searchDetails) - ) - ); -?> -<form method="get" action="<?=$this->url($this->options->getSearchAction())?>" id="advSearchForm" name="searchForm" class="search"> - <div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Advanced Search')?></h3> - <div class="advSearchContent"> - <?=$this->flashmessages()?> - <div id="groupJoin" class="searchGroups"> - <div class="searchGroupDetails"> - <label for="groupJoinOptions"><?=$this->transEsc("search_match")?>:</label> - <select id="groupJoinOptions" name="join"> - <option value="AND"><?=$this->transEsc("group_AND")?></option> - <option value="OR"<?=(isset($searchDetails) && is_object($searchDetails) && $searchDetails->getOperator() == 'OR') ? ' selected="selected"' : ''?>><?=$this->transEsc("group_OR")?></option> - </select> - </div> - <strong><?=$this->transEsc("search_groups")?></strong>: - </div> - - <? /* An empty div. This is the target for the javascript that builds this screen */ ?> - <div id="searchHolder"> - <? /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?> - <noscript> - <? if ($groups !== false) { - $numGroups = count($groups); - } - if (!isset($numGroups) || $numGroups < 3) { - $numGroups = 3; - } - ?> - <? for ($i = 0; $i < $numGroups; $i++): ?> - <div class="group group<?=$i%2?>" id="group<?=$i?>"> - <div class="groupSearchDetails"> - <div class="join"> - <label for="search_bool<?=$i?>"><?=$this->transEsc("search_match")?>:</label> - <select id="search_bool<?=$i?>" name="bool<?=$i?>[]"> - <? - $options = array('AND', 'OR', 'NOT'); - foreach ($options as $option) { - echo '<option value="' . $this->escapeHtmlAttr($option) . '"'; - if ($groups && isset($groups[$i])) { - $operator = $groups[$i]->isNegated() ? 'NOT' : $groups[$i]->getOperator(); - if ($operator == $option) { - echo ' selected="selected"'; - } - } - echo '>' . $this->transEsc('search_' . $option) . '</option>'; - } - ?> - </select> - </div> - </div> - <div class="groupSearchHolder" id="group<?=$i?>SearchHolder"> - <? - if (isset($group[$i])) { - $currentGroup = $group[$i]->getQueries(); - $numRows = count($currentGroup); - } else { - $currentGroup = false; - } - if (!isset($numRows) || $numRows < 3) { - $numRows = 3; - } - ?> - <? for ($j = 0; $j < $numRows; $j++): ?> - <? $currRow = isset($currentGroup[$j]) ? $currentGroup[$j] : false; ?> - <div class="advRow"> - <div class="label"> - <label <?=($j > 0)?'class="offscreen" ':''?>for="search_lookfor<?=$i?>_<?=$j?>"><?=$this->transEsc("adv_search_label")?>:</label> - </div> - <div class="terms"> - <input id="search_lookfor<?=$i?>_<?=$j?>" type="text" value="<?=$currRow?$this->escapeHtmlAttr($currRow->getString()):''?>" size="50" name="lookfor<?=$i?>[]"/> - </div> - <div class="field"> - <label for="search_type<?=$i?>_<?=$j?>"><?=$this->transEsc("in")?></label> - <select id="search_type<?=$i?>_<?=$j?>" name="type<?=$i?>[]"> - <? foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?> - <option value="<?=$this->escapeHtmlAttr($searchVal)?>"<?=($currRow && $currRow->getHandler() == $searchVal)?' selected="selected"':''?>><?=$this->transEsc($searchDesc)?></option> - <? endforeach; ?> - </select> - </div> - <span class="clearer"></span> - </div> - <? endfor; ?> - </div> - </div> - <? endfor; ?> - </noscript> - </div> - - <a id="addGroupLink" href="#" class="add offscreen" onclick="addGroup(); return false;"><?=$this->transEsc("add_search_group")?></a> - - <br/><br/> - - <? $lastSort = $this->options->getLastSort(); if (!empty($lastSort)): ?> - <input type="hidden" name="sort" value="<?=$this->escapeHtmlAttr($lastSort)?>" /> - <? endif; ?> - <input type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/> - <? if (isset($this->extraAdvancedControls)): ?> - <?=$this->extraAdvancedControls?> - <input type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/> - <? endif; ?> - </div> - </div> - - <div class="<?=$this->layoutClass('sidebar')?>"> - <? if ($hasDefaultsApplied): ?> - <input type="hidden" name="dfApplied" value="1" /> - <? endif ?> - <? if (!empty($searchFilters)): ?> - <div class="filterList"> - <h3><?=$this->transEsc("adv_search_filters")?><br/><span>(<?=$this->transEsc("adv_search_select_all")?> <input type="checkbox" checked="checked" onclick="filterAll(this, 'advSearchForm');" />)</span></h3> - <? foreach ($searchFilters as $field => $data): ?> - <div> - <h4><?=$this->transEsc($field)?></h4> - <ul> - <? foreach ($data as $value): ?> - <li><input type="checkbox" checked="checked" name="filter[]" value='<?=$this->escapeHtmlAttr($value['field'])?>:"<?=$this->escapeHtmlAttr($value['value'])?>"' /> <?=$this->escapeHtml($value['displayText'])?></li> - <? endforeach; ?> - </ul> - </div> - <? endforeach; ?> - </div> - <? endif; ?> - <div class="sidegroup"> - <h4><?=$this->transEsc("Search Tips")?></h4> - <a href="<?=$this->url('help-home')?>?topic=searchadv" class="advsearchHelp"><?=$this->transEsc("Help with Advanced Search")?></a><br /> - <a href="<?=$this->url('help-home')?>?topic=search" class="searchHelp"><?=$this->transEsc("Help with Search Operators")?></a> - </div> - </div> - - <div class="clear"></div> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/search/advanced/limit.phtml b/themes/blueprint/templates/search/advanced/limit.phtml deleted file mode 100644 index f9c9ccbebc8d860689545e1490d348c53efee6d8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/limit.phtml +++ /dev/null @@ -1,18 +0,0 @@ -<? - // Set up convenience variables: - $limitList = $this->options->getLimitOptions(); - - // If a previous limit was used, make that the default; otherwise, use the "default default" - $lastLimit = $this->options->getLastLimit(); - $defaultLimit = empty($lastLimit) ? $this->options->getDefaultLimit() : $lastLimit; -?> -<? if (count($limitList) > 1): ?> - <fieldset class="span-4"> - <legend><?=$this->transEsc('Results per page')?></legend> - <select id="limit" name="limit"> - <? foreach ($limitList as $limitVal): ?> - <option value="<?=$this->escapeHtmlAttr($limitVal)?>"<?=($limitVal == $defaultLimit) ? 'selected="selected"' : ''?>><?=$this->escapeHtml($limitVal)?></option> - <? endforeach; ?> - </select> - </fieldset> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/advanced/ranges.phtml b/themes/blueprint/templates/search/advanced/ranges.phtml deleted file mode 100644 index 0baf0ceed73aca46391f43561f7f567934fe2949..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/ranges.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? if (isset($this->ranges) && !empty($this->ranges)): ?> - <? $params = $this->searchParams($this->searchClassId); $params->activateAllFacets(); ?> - <? foreach ($this->ranges as $current): $escField = $this->escapeHtmlAttr($current['field']); ?> - <? if ($current['type'] == 'date'): ?> - <? /* Load the publication date slider UI widget */ $this->headScript()->appendFile('pubdate_slider.js'); ?> - <? /* Set extra text input attributes */ $extraInputAttribs = 'maxlength="4" class="yearbox" '; ?> - <? else: ?> - <? /* No extra attributes by default */ $extraInputAttribs = ''; ?> - <? endif; ?> - <input type="hidden" name="<?=$this->escapeHtmlAttr($current['type'])?>range[]" value="<?=$escField?>"/> - <fieldset class="publishDateLimit span-5" id="<?=$escField?>"> - <legend><?=$this->transEsc($params->getFacetLabel($current['field']))?></legend> - <label for="<?=$escField?>from"><?=$this->transEsc('date_from')?>:</label> - <input type="text" size="4" name="<?=$escField?>from" id="<?=$escField?>from" value="<?=$this->escapeHtmlAttr($current['values'][0])?>" <?=$extraInputAttribs?>/> - <label for="<?=$escField?>to"><?=$this->transEsc('date_to')?>:</label> - <input type="text" size="4" name="<?=$escField?>to" id="<?=$escField?>to" value="<?=$this->escapeHtmlAttr($current['values'][1])?>" <?=$extraInputAttribs?>/> - <div id="<?=$escField?>Slider" class="<?=$this->escapeHtmlAttr($current['type'])?>Slider"></div> - </fieldset> - <? endforeach; ?> -<? endif; ?> diff --git a/themes/blueprint/templates/search/advanced/solr.phtml b/themes/blueprint/templates/search/advanced/solr.phtml deleted file mode 100644 index fc7f2474f95acbfd96dddff10cad4e2a1d6c3879..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/solr.phtml +++ /dev/null @@ -1,51 +0,0 @@ -<? if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?> - <h3><?=$this->transEsc('Limit To')?></h3> -<? endif; ?> - -<? if (!empty($this->checkboxFacets)): ?> - <?=$this->render('search/advanced/checkbox-filters.phtml')?> -<? endif; ?> - -<? if (!empty($this->facetList)): ?> - <? foreach ($this->facetList as $field => $list): ?> - <div class="<?=($field=='callnumber-first')?'span-7':'span-4'?>"> - <label class="displayBlock" for="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>"><?=$this->transEsc($list['label'])?>:</label> - <select id="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>" name="filter[]" multiple="multiple" size="10"> - <? if (in_array($field, $this->hierarchicalFacets)): ?> - <? foreach ($list['list'] as $value): ?> - <? $display = str_pad('', 4 * $value['level'] * 6, ' ', STR_PAD_LEFT) . $this->escapeHtml($value['displayText']); ?> - <option value="<?=$this->escapeHtmlAttr(($value['operator'] == 'OR' ? '~' : '') . $field . ':"' . $value['value'] . '"')?>"<?=(isset($value['selected']) && $value['selected'])?' selected="selected"':''?>><?=$display?></option> - <? endforeach; ?> - <? else: ?> - <? - // Sort the current facet list alphabetically; we'll use this data - // along with the foreach below to display facet options in the - // correct order. - $sorted = array(); - foreach ($list['list'] as $i => $value) { - $sorted[$i] = $value['displayText']; - } - natcasesort($sorted); - ?> - <? foreach ($sorted as $i => $display): ?> - <? $value = $list['list'][$i]; ?> - <option value="<?=$this->escapeHtmlAttr(($value['operator'] == 'OR' ? '~' : '') . $field . ':"' . $value['value'] . '"')?>"<?=(isset($value['selected']) && $value['selected'])?' selected="selected"':''?>><?=$this->escapeHtml($display)?></option> - <? endforeach; ?> - <? endif; ?> - </select> - </div> - <? endforeach; ?> - <div class="clear"></div> -<? endif; ?> -<? if (isset($this->illustratedLimit)): ?> - <fieldset class="span-4"> - <legend><?=$this->transEsc("Illustrated")?>:</legend> - <? foreach ($this->illustratedLimit as $current): ?> - <input id="illustrated_<?=$this->escapeHtmlAttr($current['value'])?>" type="radio" name="illustration" value="<?=$this->escapeHtmlAttr($current['value'])?>"<?=$current['selected']?' checked="checked"':''?>/> - <label for="illustrated_<?=$this->escapeHtmlAttr($current['value'])?>"><?=$this->transEsc($current['text'])?></label><br/> - <? endforeach; ?> - </fieldset> -<? endif; ?> -<?=$this->render('search/advanced/limit.phtml')?> -<?=$this->render('search/advanced/ranges.phtml')?> -<div class="clear"></div> diff --git a/themes/blueprint/templates/search/advanced/summon.phtml b/themes/blueprint/templates/search/advanced/summon.phtml deleted file mode 100644 index 2aa1c67cec42844a3047c9dbea66bf44d5b15029..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/advanced/summon.phtml +++ /dev/null @@ -1,35 +0,0 @@ -<? if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?> - <h3><?=$this->transEsc('Limit To')?></h3> -<? endif; ?> - -<? if (!empty($this->checkboxFacets)): ?> - <?=$this->render('search/advanced/checkbox-filters.phtml')?> -<? endif; ?> - -<? if (!empty($this->facetList)): ?> - <? foreach ($this->facetList as $field => $list): ?> - <div class="span-5"> - <label class="displayBlock" for="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>"><?=$this->transEsc($list['label'])?>:</label> - <select id="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>" name="filter[]" multiple="multiple" size="10"> - <? - // Sort the current facet list alphabetically; we'll use this data - // along with the foreach below to display facet options in the - // correct order. - $sorted = array(); - foreach ($list['list'] as $i => $value) { - $sorted[$i] = $value['displayText']; - } - natcasesort($sorted); - ?> - <? foreach ($sorted as $i => $display): ?> - <? $value = $list['list'][$i]; ?> - <option value="<?=$this->escapeHtmlAttr(($value['operator'] == 'OR' ? '~' : '') . $field . ':"' . $value['value'] . '"')?>"<?=(isset($value['selected']) && $value['selected'])?' selected="selected"':''?>><?=$this->escapeHtml($display)?></option> - <? endforeach; ?> - </select> - </div> - <? endforeach; ?> - <div class="clear"></div> -<? endif; ?> -<?=$this->render('search/advanced/limit.phtml')?> -<?=$this->render('search/advanced/ranges.phtml')?> -<div class="clear"></div> diff --git a/themes/blueprint/templates/search/bulk-action-buttons.phtml b/themes/blueprint/templates/search/bulk-action-buttons.phtml deleted file mode 100644 index a910ba4b8f7ed72e926ed6b84f52642e835ceb4a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/bulk-action-buttons.phtml +++ /dev/null @@ -1,21 +0,0 @@ -<? if((isset($this->showBulkOptions) && $this->showBulkOptions) - || (isset($this->showCartControls) && $this->showCartControls)): ?> - <div class="bulkActionButtons"> - <input type="checkbox" class="selectAllCheckboxes floatleft" name="selectAll" id="<?=$this->idPrefix?>addFormCheckboxSelectAll"/> <label class="floatleft" for="<?=$this->idPrefix?>addFormCheckboxSelectAll"><?=$this->transEsc('select_page')?></label> - <span class="floatleft"> | </span> - <? if (isset($this->showBulkOptions) && $this->showBulkOptions): ?> - <input id="ribbon-email" class="mail floatleft button" type="submit" name="email" title="<?=$this->transEsc('bookbag_email_selected')?>" value="<?=$this->transEsc('Email')?>"/> - <? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?> - <input id="ribbon-export" class="export floatleft button" type="submit" name="export" title="<?=$this->transEsc('bookbag_export_selected')?>" value="<?=$this->transEsc('Export')?>"/> - <? endif; ?> - <input id="ribbon-print" class="print floatleft button" type="submit" name="print" title="<?=$this->transEsc('bookbag_print_selected')?>" value="<?=$this->transEsc('Print')?>"/> - <? if ($this->userlist()->getMode() !== 'disabled'): ?> - <input id="ribbon-save" class="fav floatleft button" type="submit" name="saveCart" title="<?=$this->transEsc('bookbag_save_selected')?>" value="<?=$this->transEsc('Save')?>"/> - <? endif; ?> - <? endif; ?> - <? if (isset($this->showCartControls) && $this->showCartControls): ?> - <input id="<?=$this->idPrefix?>updateCart" class="bookbagAdd floatleft button" type="submit" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"/> - <? endif; ?> - <div class="clear"></div> - </div> -<? endif; ?> diff --git a/themes/blueprint/templates/search/controls/limit.phtml b/themes/blueprint/templates/search/controls/limit.phtml deleted file mode 100644 index 28269b34598ef5d92bd060231565f5d54c799b3d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/controls/limit.phtml +++ /dev/null @@ -1,13 +0,0 @@ -<div class="limitSelect"> - <? $limitList = $this->params->getLimitList(); if (count($limitList) > 1): ?> - <form action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="post"> - <label for="limit"><?=$this->transEsc('Results per page')?></label> - <select id="limit" name="limit" class="jumpMenu"> - <? foreach ($limitList as $limitVal => $limitData): ?> - <option value="<?=$this->escapeHtmlAttr($limitVal)?>"<?=$limitData['selected']?' selected="selected"':''?>><?=$this->escapeHtml($limitData['desc'])?></option> - <? endforeach; ?> - </select> - <noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript> - </form> - <? endif; ?> -</div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/controls/sort.phtml b/themes/blueprint/templates/search/controls/sort.phtml deleted file mode 100644 index d6b55615ee1cdf85e3ef2b4ca00acad09870d5c7..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/controls/sort.phtml +++ /dev/null @@ -1,12 +0,0 @@ -<? $list = $this->params->getSortList(); if (!empty($list)): ?> - <form action="<?=$this->currentPath()?>" class="sortSelector" method="get"> - <?=$this->results->getUrlQuery()->asHiddenFields(array('sort' => '/.*/'));?> - <label for="sort_options_1"><?=$this->transEsc('Sort')?></label> - <select id="sort_options_1" name="sort" class="jumpMenu"> - <? foreach ($list as $sortType => $sortData): ?> - <option value="<?=$this->escapeHtmlAttr($sortType)?>"<?=$sortData['selected']?' selected="selected"':''?>><?=$this->transEsc($sortData['desc'])?></option> - <? endforeach; ?> - </select> - <noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript> - </form> -<? endif; ?> diff --git a/themes/blueprint/templates/search/controls/view.phtml b/themes/blueprint/templates/search/controls/view.phtml deleted file mode 100644 index 18ebd53d62d22cb37cbaeb57f35f417847048d34..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/controls/view.phtml +++ /dev/null @@ -1,17 +0,0 @@ -<div class="viewButtons"> -<? $viewList = $this->params->getViewList(); if (count($viewList) > 1): ?> - <? foreach ($viewList as $viewType => $viewData): ?> - <? if (!$viewData['selected']): ?> - <a href="<?=$this->results->getUrlQuery()->setViewParam($viewType)?>" title="<?=$this->transEsc('Switch view to')?> <?=$this->transEsc($viewData['desc'])?>" > - <? endif; ?> - <? $src = $this->imageLink('view_'.$viewType.'.png'); if (!empty($src)): ?> - <img <? if ($viewData['selected']): ?>class="selected" <? endif; ?>src="<?=$src?>"<?=$viewData['selected'] ? ' title="' . $this->transEsc($viewData['desc']) . ' ' . $this->transEsc('view already selected') . '"' : ''?> alt="<?=$this->transEsc($viewData['desc'])?>" /> - <? else: ?> - <span<? if ($viewData['selected']): ?> class="selected" <? endif; ?>><?=$this->transEsc($viewData['desc'])?></span> - <? endif; ?> - <? if (!$viewData['selected']): ?> - </a> - <? endif; ?> - <? endforeach; ?> -<? endif; ?> -</div> diff --git a/themes/blueprint/templates/search/email.phtml b/themes/blueprint/templates/search/email.phtml deleted file mode 100644 index 3d4b9378e90f9c43e60c9ecb7b88fd52eeaeb2ad..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/email.phtml +++ /dev/null @@ -1,13 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Email this Search')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = $this->getLastSearchLink($this->transEsc('Search'), '', '<span>></span>') . - '<em>' . $this->transEsc('Email this Search') . '</em>'; -?> -<?=$this->flashmessages()?> -<form action="" method="post" name="emailSearch"> - <input type="hidden" name="url" value="<?=$this->escapeHtmlAttr($this->url)?>" /> - <?=$this->render('Helpers/email-form-fields.phtml')?> -</form> diff --git a/themes/blueprint/templates/search/history-table.phtml b/themes/blueprint/templates/search/history-table.phtml deleted file mode 100644 index 1181a65f79419dd2b0b06cc8d9af44d4f934afbf..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/history-table.phtml +++ /dev/null @@ -1,37 +0,0 @@ -<table class="datagrid" width="100%"> - <tr> - <th width="25%"><?=$this->transEsc("history_time")?></th> - <th width="30%"><?=$this->transEsc("history_search")?></th> - <th width="30%"><?=$this->transEsc("history_limits")?></th> - <th width="10%"><?=$this->transEsc("history_results")?></th> - <th width="5%"><?=$this->transEsc($this->showSaved ? "history_delete" : "history_save")?></th> - </tr> - <? foreach (($this->showSaved ? array_reverse($this->saved) : array_reverse($this->unsaved)) as $iteration => $info): ?> - <tr class="<?=$iteration % 2 == 1 ? 'even' : 'odd'?>row"> - <td><?=$this->escapeHtml($this->dateTime()->convertToDisplayDateAndTime("U", $info->getStartTime()))?></td> - <td> - <?=$this->historylabel($info->getParams()->getSearchClassId())?> - <a href="<?=$this->url($info->getOptions()->getSearchAction()) . $info->getUrlQuery()->getParams()?>"><? - $desc = $info->getParams()->getDisplayQuery(); - echo empty($desc) ? $this->transEsc("history_empty_search") : $this->escapeHtml($desc); - ?></a> - </td> - <td> - <? $info->getParams()->activateAllFacets(); foreach ($info->getParams()->getFilterList() as $field => $filters): ?> - <? foreach ($filters as $i => $filter): ?> - <? if ($filter['operator'] == 'NOT') echo $this->transEsc('NOT') . ' '; if ($filter['operator'] == 'OR' && $i > 0) echo $this->transEsc('OR') . ' '; ?> - <strong><?=$this->transEsc($field)?></strong>: <?=$this->escapeHtml($filter['displayText'])?><br/> - <? endforeach; ?> - <? endforeach; ?> - </td> - <td><?=$this->escapeHtml($this->localizedNumber($info->getResultTotal()))?></td> - <td> - <? if ($this->showSaved): ?> - <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($info->getSearchId())?>&mode=history" class="delete"><?=$this->transEsc("history_delete_link")?></a> - <? else: ?> - <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($info->getSearchId())?>&mode=history" class="add"><?=$this->transEsc("history_save_link")?></a> - <? endif; ?> - </td> - </tr> - <? endforeach; ?> -</table> diff --git a/themes/blueprint/templates/search/history.phtml b/themes/blueprint/templates/search/history.phtml deleted file mode 100644 index c36446774a59c61505d1e80e9849e5f2bb56e3f0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/history.phtml +++ /dev/null @@ -1,35 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Search History')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('History') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <? if (!empty($this->saved) || !empty($this->unsaved)): ?> - <? if (!empty($this->saved)): ?> - <h3><?=$this->transEsc("history_saved_searches")?></h3> - <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => true));?> - <? endif; ?> - - <? if (!empty($this->unsaved)): ?> - <h3><?=$this->transEsc("history_recent_searches")?></h3> - <?=$this->context()->renderInContext('search/history-table.phtml', array('showSaved' => false));?> - <a href="?purge=true" class="delete"><?=$this->transEsc("history_purge")?></a> - <? endif; ?> - <? else: ?> - <h3><?=$this->transEsc("history_recent_searches")?></h3> - <?=$this->transEsc("history_no_searches")?> - <? endif; ?> -</div> - -<div class="<?=$this->layoutClass('sidebar')?>"> - <?=$this->context($this)->renderInContext( - "myresearch/menu.phtml", - // Only activate search history in account menu if user is logged in. - $this->auth()->isLoggedIn() ? array('active' => 'history') : array() - ); - ?> -</div> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/home.phtml b/themes/blueprint/templates/search/home.phtml deleted file mode 100644 index ecab61c58e6e05fa57c943695eff00caa023d265..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/home.phtml +++ /dev/null @@ -1,86 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Search Home')); - - // Disable top search box -- this page has a special layout. - $this->layout()->searchbox = false; - - // Set default value if necessary: - if (!isset($this->searchClassId)) { - $this->searchClassId = 'Solr'; - } - - // Load search actions and settings (if any): - $options = $this->searchOptions($this->searchClassId); - $basicSearch = $options->getSearchAction(); - $advSearch = $options->getAdvancedSearchAction(); -?> -<div class="searchHomeContent"> - <? if ($this->ils()->getOfflineMode() == "ils-offline"): ?> - <div class="sysInfo"> - <h2><?=$this->transEsc('ils_offline_title')?></h2> - <p><strong><?=$this->transEsc('ils_offline_status')?></strong></p> - <p><?=$this->transEsc('ils_offline_home_message')?></p> - <? $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> - <p><a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a></p> - </div> - <? endif; ?> - <div class="searchHomeForm"> - <?=$this->render("search/searchbox.phtml")?> - </div> -</div> - -<? $facetList = is_object($this->results) ? $this->results->getFacetList() : array(); if (isset($facetList) && is_array($facetList)): ?> -<div class="searchHomeBrowse"> - <? foreach ($facetList as $field => $details): ?> - <? if (isset($this->hierarchicalFacets) && in_array($field, $this->hierarchicalFacets)) { - continue; - }?> - <? $currentWidth = ($field == 'callnumber-first') ? 10 : 5;?> - <h2 class="span-<?=$currentWidth?>"><?=$this->transEsc('home_browse') . ' ' . $this->transEsc($details['label'])?></h2> - <? endforeach; ?> - <div class="clearer"><!-- empty --></div> - <? foreach ($facetList as $field => $details): ?> - <? if (isset($this->hierarchicalFacets) && in_array($field, $this->hierarchicalFacets)) { - continue; - }?> - <ul class="span-5"> - <? $sortedList = $this->sortFacetList($this->results, $field, $details['list'], $basicSearch); ?> - <? /* Special case: two columns for LC call numbers... */ ?> - <? if ($field == "callnumber-first"): ?> - <? $i = 0; foreach ($sortedList as $url => $value): ?> - <li><a href="<?=$url?>"><?=$this->escapeHtml($value)?></a></li> - <? if (++$i == 10): ?> - </ul> - <ul class="span-5"> - <? endif; ?> - <? endforeach; ?> - <? /* Fill in empty column if we have too few values to spill over: */ ?> - <? if ($i < 10): ?></ul><ul class="span-5"><? endif; ?> - <? /* Special case: collections */ ?> - <? elseif ($field == 'hierarchy_top_title'): ?> - <? $i = 0; foreach ($sortedList as $url => $value): ?> - <? if (++$i > 12): ?> - <li><a href="<?=$this->url('collections-home')?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li> - <? break; ?> - <? else: ?> - <li><a href="<?=$this->url('collections-bytitle')?>?title=<?=urlencode($value)?>"><?=$this->escapeHtml($value)?></a></li> - <? endif; ?> - <? endforeach; ?> - <? else: ?> - <? $i = 0; foreach ($sortedList as $url => $value): ?> - <? if (++$i > 12): ?> - <? if ($advSearch): ?> - <li><a href="<?=$this->url($advSearch)?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li> - <? endif; ?> - <? break; ?> - <? else: ?> - <li><a href="<?=$url?>"><?=$this->escapeHtml($value)?></a></li> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - </ul> - <? endforeach; ?> - <div class="clear"></div> -</div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/list-authorfacets.phtml b/themes/blueprint/templates/search/list-authorfacets.phtml deleted file mode 100644 index 89c5ae3a3bcda4de5bc6e95a5791c49d1b46fb1d..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/list-authorfacets.phtml +++ /dev/null @@ -1,13 +0,0 @@ -<table class="citation authors"> - <tbody> - <tr> - <th><?=$this->transEsc("Author")?></th><th><?=$this->transEsc("sort_author_relevance")?></th> - </tr> - <? $i = 0; foreach ($this->results->getResults() as $record): ?> - <tr<?=(++$i % 2 == 0) ? ' class="alt"' : ''?>> - <td><a href="<?=$this->url('author-home')?>?author=<?=urlencode($record['value'])?>"><?=$this->escapeHtml($record['value'])?></a></td> - <td><?=$this->escapeHtml($record['count'])?></td> - </tr> - <? endforeach; ?> - </tbody> -</table> diff --git a/themes/blueprint/templates/search/list-grid.phtml b/themes/blueprint/templates/search/list-grid.phtml deleted file mode 100644 index 2fd9e9bf9dfc952f077155d6cf037d2637c49169..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/list-grid.phtml +++ /dev/null @@ -1,15 +0,0 @@ -<table style="border-bottom:1px solid #eee;"> - <tr> - <? $i = 0; foreach ($this->results->getResults() as $current): ?> - <td id="result<?=$i ?>" class="gridCell gridCellHover"> - <span class="recordNumber"><?=$this->results->getStartRecord()+(++$i)-1?> - <? if ((isset($this->showCartControls) && $this->showCartControls) - || (isset($this->showBulkOptions) && $this->showBulkOptions)): ?> - <?=$this->record($current)->getCheckbox()?> - <? endif; ?></span> - <?=$this->record($current)->getSearchResult('grid')?> - </td> - <?=($i%4==0)?'</tr><tr>':''?> - <? endforeach; ?> - </tr> -</table> \ No newline at end of file diff --git a/themes/blueprint/templates/search/list-list.phtml b/themes/blueprint/templates/search/list-list.phtml deleted file mode 100644 index bf82888212a63ad19d0ee516d4350b426d527eef..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/list-list.phtml +++ /dev/null @@ -1,14 +0,0 @@ -<ul class="recordSet"> - <? if (!isset($this->indexStart)) $this->indexStart = 0; ?> - <? $i = $this->indexStart; foreach ($this->results->getResults() as $current): - $recordNumber = $this->results->getStartRecord()+$i-$this->indexStart; ?> - <li id="result<?=$i ?>" class="result<?=(++$i % 2 == 0) ? ' alt' : ''?>"> - <span class="recordNumber"><?=$recordNumber?> - <? if ((isset($this->showCartControls) && $this->showCartControls) - || (isset($this->showBulkOptions) && $this->showBulkOptions)): ?> - <?=$this->record($current)->getCheckbox()?> - <? endif; ?></span> - <?=$this->record($current)->getSearchResult('list')?> - </li> - <? endforeach; ?> -</ul> \ No newline at end of file diff --git a/themes/blueprint/templates/search/list-visual.phtml b/themes/blueprint/templates/search/list-visual.phtml deleted file mode 100644 index 17ac8eb6964f001a357cb73a6248f37a86dc200c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/list-visual.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<div id="visualResults"> -<p><?=$this->transEsc('Please enable Javascript.')?></p> - -<p><?=$this->transEsc('Please upgrade your browser.')?></p> -</div> - -<div id="viz-instructions"> -<p><strong><a href="<?=$this->url('help-home', array(), array('query' => array('topic' => 'visualization')))?>" class="visualizationHelp"><?=$this->transEsc('What am I looking at')?></a></strong></p> -</div> - diff --git a/themes/blueprint/templates/search/newitem.phtml b/themes/blueprint/templates/search/newitem.phtml deleted file mode 100644 index 68896bdde514791f1262a38780d603a1eacfb46f..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/newitem.phtml +++ /dev/null @@ -1,37 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('New Item Search')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('New Items') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Find New Items')?></h3> - <form method="get" action="" class="search"> - <div class="span-5"> - <fieldset> - <legend><?=$this->transEsc('Range')?>:</legend> - <? foreach ($this->ranges as $key => $range): ?> - <input id="newitem_range_<?=$this->escapeHtmlAttr($key)?>" type="radio" name="range" value="<?=$this->escapeHtmlAttr($range)?>"<?= ($key == 0) ? ' checked="checked"' : ''?>/> - <label for="newitem_range_<?=$this->escapeHtmlAttr($key)?>"> - <?=($range == 1) ? $this->transEsc('Yesterday') : $this->transEsc('Past') . ' ' . $this->escapeHtml($range) . ' ' . $this->transEsc('Days')?> - </label> - <br/> - <? endforeach; ?> - </fieldset> - </div> - <? if (is_array($this->fundList) && !empty($this->fundList)): ?> - <div class="span-5"> - <label class="displayBlock" for="newitem_department"><?=$this->transEsc('Department')?>:</label> - <select id="newitem_department" name="department" size="10"> - <? foreach ($this->fundList as $fundId => $fund): ?> - <option value="<?=$this->escapeHtmlAttr($fundId)?>"><?=$this->transEsc($fund)?></option> - <? endforeach; ?> - </select> - </div> - <? endif; ?> - <div class="clear"></div> - <input type="submit" name="submit" value="<?=$this->transEsc('Find')?>"/> - </form> -</div> -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/newitemresults.phtml b/themes/blueprint/templates/search/newitemresults.phtml deleted file mode 100644 index 1153f29b3ba88a2e282fbec5b39e8d8634cab478..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/newitemresults.phtml +++ /dev/null @@ -1,7 +0,0 @@ -<? - // Set some overrides, then call the standard search results action: - $this->overrideTitle = $this->translate('New Items'); - $this->overrideSearchHeading = $this->transEsc('New Items'); - $this->overrideEmptyMessage = $this->transEsc('No new item information is currently available.'); - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/pagination.phtml b/themes/blueprint/templates/search/pagination.phtml deleted file mode 100644 index c3c37a7683d0e721c9572a06b2cd1a537147ce99..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/pagination.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? if ($this->pageCount): ?> - <div class="pagination"> - <? if (isset($this->previous)): ?> - <a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage(1)?>">[1]</a> - <a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->previous)?>">« <?=$this->transEsc('Prev')?></a> - <? endif; ?> - - <? if (count($this->pagesInRange) > 1): ?> - <? foreach ($this->pagesInRange as $page): ?> - <? if ($page != $this->current): ?> - <a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($page)?>"><?=$page?></a> - <? else: ?> - <span><?=$page?></span> - <? endif; ?> - <? endforeach; ?> - <? endif; ?> - - <? if (isset($this->next)): ?> - <a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->next)?>"><?=$this->transEsc('Next');?> »</a> - <a href="<?=$this->currentPath() . $this->results->getUrlQuery()->setPage($this->pageCount)?>">[<?=$this->pageCount?>]</a> - <? endif; ?> - </div> -<? endif; ?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/reserves.phtml b/themes/blueprint/templates/search/reserves.phtml deleted file mode 100644 index 02d39641af3f01e49125ecc86dd8ef574edb134c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/reserves.phtml +++ /dev/null @@ -1,53 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Reserves Search')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Reserves') . '</em>'; -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Search For Items on Reserve')?></h3> - <? if (is_array($this->courseList)): ?> - <form method="get" action="" name="searchForm" class="search"> - <label class="span-3" for="reserves_by_course"><?=$this->transEsc('By Course')?>:</label> - <select name="course" id="reserves_by_course"> - <option></option> - <? foreach ($this->courseList as $courseId => $courseName): ?> - <option value="<?=$this->escapeHtmlAttr($courseId)?>"><?=$this->escapeHtml($courseName)?></option> - <? endforeach; ?> - </select> - <input type="submit" name="submit" value="<?=$this->transEsc('Find')?>"/> - <div class="clear"></div> - </form> - <? endif; ?> - - <? if (is_array($this->instList)): ?> - <form method="get" action="" name="searchForm" class="search"> - <label class="span-3" for="reserves_by_inst"><?=$this->transEsc('By Instructor')?>:</label> - <select name="inst" id="reserves_by_inst"> - <option></option> - <? foreach ($this->instList as $instId => $instName): ?> - <option value="<?=$this->escapeHtmlAttr($instId)?>"><?=$this->escapeHtml($instName)?></option> - <? endforeach; ?> - </select> - <input type="submit" name="submit" value="<?=$this->transEsc('Find')?>"/> - <div class="clear"></div> - </form> - <? endif; ?> - - <? if (is_array($this->deptList)): ?> - <form method="get" action="" name="searchForm" class="search"> - <label class="span-3" for="reserves_by_dept"><?=$this->transEsc('By Department')?>:</label> - <select name="dept" id="reserves_by_dept"> - <option></option> - <? foreach ($this->deptList as $deptId => $deptName): ?> - <option value="<?=$this->escapeHtmlAttr($deptId)?>"><?=$this->escapeHtml($deptName)?></option> - <? endforeach; ?> - </select> - <input type="submit" name="submit" value="<?=$this->transEsc('Find')?>"/> - <div class="clear"></div> - </form> - <? endif; ?> -</div> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/reservesresults.phtml b/themes/blueprint/templates/search/reservesresults.phtml deleted file mode 100644 index 55c40b494cf556c50471fae560a8ad3079d36a65..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/reservesresults.phtml +++ /dev/null @@ -1,20 +0,0 @@ -<? - // Set some overrides, then call the standard search results action: - $this->overrideTitle = $this->translate('Reserves Search Results'); - $this->overrideSearchHeading = $this->transEsc('Reserves'); - if (isset($this->instructor) || isset($this->course)) { - $this->overrideSearchHeading .= ' ('; - if (isset($this->instructor)) { - $this->overrideSearchHeading .= $this->transEsc('Instructor') . ': <strong>' . $this->escapeHtml($this->instructor) . '</strong>'; - if (isset($this->course)) { - $this->overrideSearchHeading .= ', '; - } - } - if (isset($this->course)) { - $this->overrideSearchHeading .= $this->transEsc('Course') . ': <strong>' . $this->escapeHtml($this->course) . '</strong>'; - } - $this->overrideSearchHeading .= ')'; - } - $this->overrideEmptyMessage = $this->transEsc('course_reserves_empty_list'); - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/search/reservessearch.phtml b/themes/blueprint/templates/search/reservessearch.phtml deleted file mode 100644 index 9e73dd50d718a0548efe11aa535f0705acee089c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/reservessearch.phtml +++ /dev/null @@ -1,81 +0,0 @@ -<? - // Set up page title: - $this->headTitle($this->translate('Reserves Search')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Reserves') . '</em>'; - - // Convenience variables: - $reservesLookfor = $this->params->getDisplayQuery(); -?> - -<div class="<?=$this->layoutClass('mainbody')?>"> - <h3><?=$this->transEsc('Search For Items on Reserve')?></h3> - <form method="get" action="" name="reservesSearchForm" class="search"> - <label for="reservesSearchForm_lookfor" class="offscreen"><?=$this->transEsc("Your search terms")?></label> - <input id="reservesSearchForm_lookfor" type="text" name="lookfor" size="40" value="<?=$this->escapeHtmlAttr($reservesLookfor)?>" <?=$this->searchOptions('SolrReserves')->autocompleteEnabled() ? ' class="autocomplete searcher:SolrReserves type:Reserves"' : ''?> /> - <input type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/> - </form> - <script type="text/javascript">$("#reservesSearchForm_lookfor").focus()</script> - - <div class="resulthead"> - <div class="floatleft"> - <? if (($recordTotal = $this->results->getResultTotal()) > 0): ?> - <?=$this->transEsc("Showing")?> - <strong><?=$this->localizedNumber($this->results->getStartRecord())?></strong> - <strong><?=$this->localizedNumber($this->results->getEndRecord())?></strong> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($recordTotal)?></strong> - <?=$this->transEsc('for search')?>: <strong>'<?=$this->escapeHtml($reservesLookfor)?>'</strong>, - <? endif; ?> - <? if ($qtime = $this->results->getQuerySpeed()): ?> - <?=$this->transEsc('query time')?>: <?=$this->localizedNumber($qtime, 2).$this->transEsc('seconds_abbrev')?> - <? endif; ?> - </div> - - <div class="floatright"> - <?=$this->render('search/controls/sort.phtml')?> - </div> - <div class="clear"></div> - </div> - - <? if ($recordTotal < 1): ?> - <p class="error"><?=$this->transEsc('nohit_prefix')?> - <strong><?=$this->escapeHtml($reservesLookfor)?></strong> - <?=$this->transEsc('nohit_suffix')?></p> - <? if (isset($this->parseError)): ?> - <p class="error"><?=$this->transEsc('nohit_parse_error')?></p> - <? endif; ?> - <? else: ?> - <table class="datagrid reserves"> - <tr> - <th class="department"><?=$this->transEsc('Department')?></th> - <th class="course"><?=$this->transEsc('Course')?></th> - <th class="instructor"><?=$this->transEsc('Instructor')?></th> - <th class="items"><?=$this->transEsc('Items')?></th> - </tr> - <? foreach ($this->results->getResults() as $record): ?> - <? - $url = $this->currentPath() . $this->escapeHtmlAttr( - '?inst=' . urlencode($record->getInstructorId()) - . '&course=' . urlencode($record->getCourseId()) - . '&dept=' . urlencode($record->getDepartmentId()) - ); - ?> - <tr> - <td class="department"><a href="<?=$url?>"><?=$this->escapeHtml($record->getDepartment())?></a></td> - <td class="course"><a href="<?=$url?>"><?=$this->escapeHtml($record->getCourse())?></a></td> - <td class="instructor"><a href="<?=$url?>"><?=$this->escapeHtml($record->getInstructor())?></a></td> - <td class="items"><?=$this->localizedNumber($record->getItemCount())?></td> - </tr> - <? endforeach; ?> - </table> - <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?> - <? endif; ?> -</div> - -<? /* Narrow Search Options */ ?> -<div class="<?=$this->layoutClass('sidebar')?>"> - <? foreach ($this->results->getRecommendations('side') as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> -</div> -<? /* End Narrow Search Options */ ?> - -<div class="clear"></div> \ No newline at end of file diff --git a/themes/blueprint/templates/search/results.phtml b/themes/blueprint/templates/search/results.phtml deleted file mode 100644 index ba2699d2a709473ed496611acb0d3d97126d48a0..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/results.phtml +++ /dev/null @@ -1,136 +0,0 @@ -<? - // Set up page title: - $lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery(); - if (isset($this->overrideTitle)) { - $this->headTitle($this->overrideTitle); - } else { - $this->headTitle($this->translate('Search Results') . (empty($lookfor) ? '' : " - {$lookfor}")); - } - - // Set up search box: - $this->layout()->searchbox = $this->context($this)->renderInContext( - 'search/searchbox.phtml', - array( - 'lookfor' => $lookfor, - 'searchIndex' => $this->params->getSearchHandler(), - 'searchType' => $this->params->getSearchType(), - 'searchId' => $this->results->getSearchId(), - 'searchClassId' => $this->params->getsearchClassId(), - 'checkboxFilters' => $this->params->getCheckboxFacets(), - 'filterList' => $this->params->getFilters(), - 'hasDefaultsApplied' => $this->params->hasDefaultsApplied(), - 'selectedShards' => $this->params->getSelectedShards() - ) - ); - - // Set up breadcrumbs: - if (isset($this->overrideTitle)) { - $this->layout()->breadcrumbs = '<em>' . $this->escapeHtml($this->overrideTitle) . '</em>'; - } else { - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Search') . ': ' . - $this->escapeHtml($lookfor) . '</em>'; - } - - // Enable cart if appropriate: - $this->showCartControls = $this->params->getOptions()->supportsCart() && $this->cart()->isActive(); - // Enable bulk options if appropriate: - $this->showBulkOptions = $this->params->getOptions()->supportsCart() && $this->showBulkOptions; - - // Load Javascript dependencies into header: - $this->headScript()->appendFile("check_item_statuses.js"); - $this->headScript()->appendFile("check_save_statuses.js"); -?> -<div class="<?=$this->layoutClass('mainbody')?>"> - <? if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?> - <? foreach ($this->results->getRecommendations('top') as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <? endif; ?> - <?=$this->flashmessages()?> - <div class="resulthead"> - <div class="floatleft"> - <? if ($recordTotal > 0): ?> - <?=$this->transEsc("Showing")?> - <strong><?=$this->localizedNumber($this->results->getStartRecord())?></strong> - <strong><?=$this->localizedNumber($this->results->getEndRecord())?></strong> - <? if (!isset($this->skipTotalCount)): ?> - <?=$this->transEsc('of')?> <strong><?=$this->localizedNumber($recordTotal)?></strong> - <? endif; ?> - <? if (isset($this->overrideSearchHeading)): ?> - <?=$this->overrideSearchHeading?> - <? elseif ($this->params->getSearchType() == 'basic'): ?> - <?=$this->transEsc('for search')?>: <strong>'<?=$this->escapeHtml($lookfor)?>'</strong>, - <? endif; ?> - <? if ($qtime = $this->results->getQuerySpeed()): ?> - <?=$this->transEsc('query time')?>: <?=$this->localizedNumber($qtime, 2).$this->transEsc('seconds_abbrev')?> - <? endif; ?> - <? else: ?> - <h3><?=$this->transEsc('nohit_heading')?></h3> - <? endif; ?> - </div> - - <? if ($recordTotal > 0): ?> - <div class="floatright"> - <?=$this->render('search/controls/view.phtml')?> - <?=$this->render('search/controls/limit.phtml')?> - <?=$this->render('search/controls/sort.phtml')?> - </div> - <? endif; ?> - <div class="clear"></div> - </div> - <? /* End Listing Options */ ?> - - <? if ($recordTotal < 1): ?> - <p class="error"> - <? if (isset($this->overrideEmptyMessage)): ?> - <?=$this->overrideEmptyMessage?> - <? else: ?> - <?=$this->transEsc('nohit_prefix')?> - <strong><?=$this->escapeHtml($lookfor)?></strong> - <?=$this->transEsc('nohit_suffix')?> - <? endif; ?> - </p> - <? if (isset($this->parseError)): ?> - <p class="error"><?=$this->transEsc('nohit_parse_error')?></p> - <? endif; ?> - <? foreach (($top = $this->results->getRecommendations('top')) as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> - <? foreach ($this->results->getRecommendations('noresults') as $current): ?> - <? if (!in_array($current, $top)): ?> - <?=$this->recommend($current)?> - <? endif; ?> - <? endforeach; ?> - <? else: ?> - <form method="post" name="bulkActionForm" action="<?=$this->url('cart-home')?>"> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => ''))?> - <?=$this->render('search/list-' . $this->params->getView() . '.phtml')?> - <?=$this->context($this)->renderInContext('search/bulk-action-buttons.phtml', array('idPrefix' => 'bottom_'))?> - <?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', array('results' => $this->results))?> - </form> - - <div class="searchtools"> - <strong><?=$this->transEsc('Search Tools')?>:</strong> - <a href="<?=$this->results->getUrlQuery()->setViewParam('rss')?>" class="feed"><?=$this->transEsc('Get RSS Feed')?></a> - <a href="<?=$this->url('search-email')?>" class="mailSearch mail" id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>" title="<?=$this->transEsc('Email this Search')?>"><?=$this->transEsc('Email this Search')?></a> - <? if (($account = $this->auth()->getManager()) && $account->loginEnabled()): // hide save option if login disabled ?> - <? if (is_numeric($this->results->getSearchId())): ?> - <? if ($this->results->isSavedSearch()): ?> - <a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>" class="delete"><?=$this->transEsc('save_search_remove')?></a> - <? else: ?> - <a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>" class="add"><?=$this->transEsc('save_search')?></a> - <? endif; ?> - <? endif; ?> - <? endif; ?> - </div> - <? endif; ?> -</div> -<? /* End Main Listing */ ?> - -<? /* Narrow Search Options */ ?> -<div class="<?=$this->layoutClass('sidebar')?>"> - <? foreach ($this->results->getRecommendations('side') as $current): ?> - <?=$this->recommend($current)?> - <? endforeach; ?> -</div> -<? /* End Narrow Search Options */ ?> - -<div class="clear"></div> - diff --git a/themes/blueprint/templates/search/searchbox.phtml b/themes/blueprint/templates/search/searchbox.phtml deleted file mode 100644 index f128de76b4b2c2ad77c96f77b573fe98f2ebd7d6..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/search/searchbox.phtml +++ /dev/null @@ -1,113 +0,0 @@ -<? - // Set default value if necessary: - if (!isset($this->searchClassId)) { - $this->searchClassId = 'Solr'; - } - - // Load search actions and settings (if any): - $options = $this->searchOptions($this->searchClassId); - $handlers = $this->searchbox()->getHandlers( - $this->searchClassId, - isset($this->searchIndex) ? $this->searchIndex : null - ); - $handlerCount = count($handlers); - $basicSearch = $this->searchbox()->combinedHandlersActive() ? 'combined-searchbox' : $options->getSearchAction(); - $searchHome = $options->getSearchHomeAction(); - $advSearch = $options->getAdvancedSearchAction(); - $lastSort = $options->getLastSort(); - $lastLimit = $options->getLastLimit(); -?> -<div class="searchform"> - <? $searchTabs = $this->searchtabs($this->searchClassId, $this->lookfor, $this->searchIndex, $this->searchType); ?> - <? if (count($searchTabs) > 0): ?> - <ul class="searchTabNav"> - <? foreach ($searchTabs as $tab): ?> - <li<?=$tab['selected'] ? ' class="active"' : ''?>> - <? - if (!$tab['selected']) { - echo '<a href="' . $this->escapeHtmlAttr($tab['url']) . '">'; - } - echo $this->transEsc($tab['label']); - if (!$tab['selected']) { - echo '</a>'; - } - ?> - </li> - <? endforeach; ?> - </ul> - <? endif; ?> - <? if ($this->searchType == 'advanced'): ?> - <a href="<?=$this->url($advSearch)?>?edit=<?=$this->escapeHtmlAttr($this->searchId)?>" class="small"><?=$this->transEsc("Edit this Advanced Search")?></a> | - <a href="<?=$this->url($advSearch)?>" class="small"><?=$this->transEsc("Start a new Advanced Search")?></a> | - <a href="<?=$this->url($searchHome)?>" class="small"><?=$this->transEsc("Start a new Basic Search")?></a> - <br/><?=$this->transEsc("Your search terms")?> : "<strong><?=$this->escapeHtml($this->lookfor)?></strong>" - <? else: ?> - <form method="get" action="<?=$this->url($basicSearch)?>" name="searchForm" id="searchForm" class="search"> - <label for="searchForm_lookfor" class="offscreen"><?=$this->transEsc("Your search terms")?></label> - <input id="searchForm_lookfor" type="text" name="lookfor" size="40" value="<?=$this->escapeHtmlAttr($this->lookfor)?>"<?=$this->searchbox()->autocompleteEnabled($this->searchClassId) ? ' class="autocomplete searcher:' . $this->escapeHtmlAttr($this->searchClassId) . ' typeSelector:searchForm_type"' : ''?>/> - <label for="searchForm_type" class="offscreen"><?=$this->transEsc("Search Type")?></label> - <? if ($handlerCount > 1): ?> - <select id="searchForm_type" name="type" data-native-menu="false"> - <? foreach ($handlers as $handler): ?> - <option value="<?=$this->escapeHtmlAttr($handler['value'])?>"<?=$handler['selected'] ? ' selected="selected"' : ''?>><?=$handler['indent'] ? '-- ' : ''?><?=$this->transEsc($handler['label'])?></option> - <? endforeach; ?> - </select> - <? elseif ($handlerCount == 1): ?> - <input type="hidden" name="type" value="<?=$this->escapeHtmlAttr($handlers[0]['value'])?>" /> - <? endif; ?> - <input type="submit" name="submit" value="<?=$this->transEsc("Find")?>"/> - <? if ($advSearch): ?> - <a href="<?=$this->url($advSearch)?>" class="small"><?=$this->transEsc("Advanced")?></a> - <? endif; ?> - - <? $shards = $options->getShards(); if ($options->showShardCheckboxes() && !empty($shards)): ?> - <? - $selectedShards = isset($this->selectedShards) - ? $this->selectedShards : $options->getDefaultSelectedShards(); - ?> - <br /> - <? foreach ($shards as $shard => $val): ?> - <? $isSelected = in_array($shard, $selectedShards); ?> - <input type="checkbox" <?=$isSelected ? 'checked="checked" ' : ''?>name="shard[]" value='<?=$this->escapeHtmlAttr($shard)?>' /> <?=$this->transEsc($shard)?> - <? endforeach; ?> - <? endif; ?> - <? - $filterDetails = $this->searchbox()->getFilterDetails( - isset($this->filterList) && is_array($this->filterList) ? $this->filterList : array(), - isset($this->checkboxFilters) && is_array($this->checkboxFilters) ? $this->checkboxFilters : array() - ); - ?> - <? if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?> - <? $defaultFilterState = $options->getRetainFilterSetting() ? ' checked="checked"' : ''; ?> - <div class="keepFilters"> - <input type="checkbox"<?=$defaultFilterState?> id="searchFormKeepFilters"/> <label for="searchFormKeepFilters"><?=$this->transEsc("basic_search_keep_filters")?></label> - <div class="offscreen"> - <? foreach ($filterDetails as $current): ?> - <input id="<?=$this->escapeHtmlAttr($current['id'])?>" type="checkbox"<?=$defaultFilterState?> name="filter[]" value="<?=$this->escapeHtmlAttr($current['value'])?>" /> - <label for="<?=$this->escapeHtmlAttr($current['id'])?>"><?=$this->escapeHtml($current['value'])?></label> - <? endforeach; ?> - <? if (isset($hasDefaultsApplied) && $hasDefaultsApplied): ?> - <!-- this is a hidden element that flags whether or not default filters have been applied; - it is intentionally unlabeled, as users are not meant to manipulate it directly. --> - <input id="dfApplied" type="checkbox" name="dfApplied" value="1"<?=$defaultFilterState?> /> - <? endif; ?> - </div> - </div> - <? endif; ?> - <? - /* Show hidden field for active search class when in combined handler mode. */ - if ($this->searchbox()->combinedHandlersActive()) { - echo '<input type="hidden" name="activeSearchClassId" value="' . $this->escapeHtmlAttr($this->searchClassId) . '" />'; - } - /* Load hidden limit preference from Session */ - if (!empty($lastLimit)) { - echo '<input type="hidden" name="limit" value="' . $this->escapeHtmlAttr($lastLimit) . '" />'; - } - if (!empty($lastSort)) { - echo '<input type="hidden" name="sort" value="' . $this->escapeHtmlAttr($lastSort) . '" />'; - } - ?> - </form> - <script type="text/javascript">$("#searchForm_lookfor").focus()</script> - <? endif; ?> -</div> diff --git a/themes/blueprint/templates/summon/advanced.phtml b/themes/blueprint/templates/summon/advanced.phtml deleted file mode 100644 index 9b346d8e1c0410f0c5efa5302c1dfbf09da1f224..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/summon/advanced.phtml +++ /dev/null @@ -1,6 +0,0 @@ -<? - // Load the Summon-specific advanced search controls and inject them into the - // standard advanced search layout: - $this->extraAdvancedControls = $this->render('search/advanced/summon.phtml'); - echo $this->render('search/advanced/layout.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/summon/home.phtml b/themes/blueprint/templates/summon/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/summon/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/summon/search.phtml b/themes/blueprint/templates/summon/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/summon/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/tag/home.phtml b/themes/blueprint/templates/tag/home.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/tag/home.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/error.phtml b/themes/blueprint/templates/upgrade/error.phtml deleted file mode 100644 index 1cca7ed5e6e8cc80d69bf981e2308987b0f3042e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/error.phtml +++ /dev/null @@ -1,10 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> -<p><?=$this->transEsc('vufind_upgrade_fail') ?>. You can try <a href="<?=$this->url('upgrade-reset')?>">starting over</a>.</p> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/fixanonymoustags.phtml b/themes/blueprint/templates/upgrade/fixanonymoustags.phtml deleted file mode 100644 index ffad6960b7aad4bed08935bed3891793cd49b475..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/fixanonymoustags.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> - -<p>Due to a bug in earlier versions of VuFind, you have <?=$this->anonymousTags?> tags -in your database that are not associated with a user account. It is -recommended that you associate these tags with a user account for -easier maintenance in the future. Please enter a username (preferably -an administrator) to associate with old anonymous tags.</p> - -<p>If you do not wish to fix the problem at this time, click the Skip button.</p> - -<p>See <a target="_jira" href="http://vufind.org/jira/browse/VUFIND-217">http://vufind.org/jira/browse/VUFIND-217</a> for more details.</p> - -<br /> - -<form method="post" action="<?=$this->url('upgrade-fixanonymoustags')?>"> - <?=$this->transEsc('Username') ?>: <input type="text" name="username" /> <input type="submit" name="submit" value="<?=$this->transEsc('Submit') ?>" /><br /><br /> - <input type="submit" name="skip" value="<?=$this->transEsc('skip_step') ?>." onclick="return confirm('<?=$this->transEsc('skip_confirm') ?>');"/> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/fixduplicatetags.phtml b/themes/blueprint/templates/upgrade/fixduplicatetags.phtml deleted file mode 100644 index 2f887494920b7aa1ba99d8482f30fb84f4525737..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/fixduplicatetags.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> - -<p>Due to a bug in earlier versions of VuFind, you have some duplicate tags -in your database. It is recommended that you fix these. Click Submit to proceed.</p> - -<p>If you do not wish to fix the problem at this time, click the Skip button.</p> - -<p>See <a target="_jira" href="http://vufind.org/jira/browse/VUFIND-805">http://vufind.org/jira/browse/VUFIND-805</a> for more details.</p> - -<br /> - -<form method="post" action="<?=$this->url('upgrade-fixduplicatetags')?>"> - <input type="submit" name="submit" value="<?=$this->transEsc('Submit') ?>" /><br /><br /> - <input type="submit" name="skip" value="<?=$this->transEsc('skip_step') ?>." onclick="return confirm('<?=$this->transEsc('skip_confirm') ?>');"/> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/fixmetadata.phtml b/themes/blueprint/templates/upgrade/fixmetadata.phtml deleted file mode 100644 index d25aa35b9c92b05772f5802376bf557f585f4f03..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/fixmetadata.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> - -<p>Some of the items in your resource table appear to be missing metadata. Adding this metadata may take some time, -but it will improve the user experience by allowing proper sorting of favorites and tagged records.</p> - -<br /> - -<form method="post" action="<?=$this->url('upgrade-fixmetadata')?>"> - <input type="submit" name="submit" value="<?=$this->transEsc('fix_metadata') ?>." /><br /><br /> - <input type="submit" name="skip" value="<?=$this->transEsc('skip_fix_metadata') ?>." onclick="return confirm('<?=$this->transEsc('skip_confirm') ?>');"/> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/getdbcredentials.phtml b/themes/blueprint/templates/upgrade/getdbcredentials.phtml deleted file mode 100644 index 471babd487ec53a6786413691801e73ef10adb9e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/getdbcredentials.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> - -<p>VuFind's database structure needs to be updated for the new version. Please enter a database username and password -with permission to alter and create tables.</p> - -<form method="post" action="<?=$this->url('upgrade-getdbcredentials')?>"> - <table> - <tbody> - <tr><td>MySQL Root User: </td><td><input type="text" name="dbrootuser" value="<?=$this->escapeHtmlAttr($this->dbrootuser)?>"/></td></tr> - <tr><td>MySQL Root Password: </td><td><input type="password" name="dbrootpass" value=""/></td></tr> - <tr><td></td><td><input type="submit" name="submit" value="<?=$this->transEsc('Submit') ?>" /></td></tr> - </tbody> - </table> - If you don't have the credentials or you wish to print the SQL out : Click here to <input type="submit" name="printsql" value="Skip" /> credentials. -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/getdbencodingpreference.phtml b/themes/blueprint/templates/upgrade/getdbencodingpreference.phtml deleted file mode 100644 index 0b329f2a16473358bf4c11ee6d6ecfda94828773..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/getdbencodingpreference.phtml +++ /dev/null @@ -1,26 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> - -<p>Your current VuFind database is encoded in Latin-1 format. This may cause incorrect sorting and -display of records containing characters outside of the basic ASCII character set.</p> - -<p>It is <b>STRONGLY RECOMMENDED</b> that you convert your database to UTF-8. However, this will -prevent older versions of VuFind from reading the database correctly.</p> - -<p>If you need to maintain backward compatibility with 1.x, choose "Keep." You can return to this -upgrade tool later to perform UTF-8 conversion.</p> - -<p>If backward compatibility is not necessary, choose "Change" now. -(You should make a backup first if you have not already!)</p> - -<form method="post" action="<?=$this->url('upgrade-getdbencodingpreference')?>"> - <input type="submit" name="encodingaction" value="Change" /> encoding to UTF-8<br /> - <input type="submit" name="encodingaction" value="Keep" /> Latin-1 encoding -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/getsourcedir.phtml b/themes/blueprint/templates/upgrade/getsourcedir.phtml deleted file mode 100644 index c280a3bd356e908fd8831f3f0bfd885d8ce478ab..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/getsourcedir.phtml +++ /dev/null @@ -1,19 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> -<h2>Option 1: Upgrade from VuFind 1.x</h2> -<p>Please enter the full path of the directory containing your previous version of VuFind (e.g. /usr/local/vufind):</p> -<form method="post" action="<?=$this->url('upgrade-getsourcedir')?>"> -<input type="text" name="sourcedir" /> <input type="submit" /> -</form> -<h2>Option 2: Upgrade from VuFind 2.x</h2> -<p>Please enter the version number you are upgrading from (e.g. 2.0.1):</p> -<form method="post" action="<?=$this->url('upgrade-getsourceversion')?>"> -<input type="text" name="sourceversion" /> <input type="submit" /> -</form> diff --git a/themes/blueprint/templates/upgrade/home.phtml b/themes/blueprint/templates/upgrade/home.phtml deleted file mode 100644 index dcb5658ec121361cc10db9fca8a0a956cf8d637e..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/home.phtml +++ /dev/null @@ -1,27 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> -<p>Upgrade complete. You may still have some work to do:</p> - -<ol> - <? if ($oldVersion < 2): ?> - <li>If you have customized your SolrMarc import settings, your marc_local.properties file has been migrated, but you will need to move custom translation maps, index scripts, etc. by hand. Custom import files belong under <?=$this->escapeHtml($this->importDir)?> -- this will make future upgrades easier.</li> - <li>You should look over the configuration files in <?=$this->escapeHtml($this->configDir)?> and make sure settings look correct. The automatic update process sometimes re-enables disabled settings and removes comments.</li> - <li>If you have customized any of the YAML searchspecs files without using the *_local.yaml override mechanism, you will need to reapply those changes.</li> - <li>If you have customized code or templates in your previous version, you will need to adapt those changes to the new architecture.</li> - <? else: ?> - <li>You should look over the configuration files in <?=$this->escapeHtml($this->configDir)?> and make sure settings look correct. The automatic update process sometimes re-enables disabled settings and removes comments. Backups of your old configurations have been created for comparison purposes.</li> - <li>If you have customized code or templates in your previous version, you should test them to be sure they still work correctly; see the <a href="http://vufind.org/wiki/changelog">changelog</a> for notes on possible breaks in backward compatibility.</li> - <? endif; ?> - <li>You should reindex all of your content.</li> - <li>You may want to check for problems on the <a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title')?></a> page.</li> -</ol> - -<p>For the latest notes on upgrading, see the <a href="http://vufind.org/wiki/vufind2:migration_notes">online documentation</a>.</p> -<p>For help, feel free to use the mailing lists on the <a href="http://vufind.org/support.php">support page</a>.</p> \ No newline at end of file diff --git a/themes/blueprint/templates/upgrade/showsql.phtml b/themes/blueprint/templates/upgrade/showsql.phtml deleted file mode 100644 index ee27370e8875f4740a8bc28a54dc8d93886c595c..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/upgrade/showsql.phtml +++ /dev/null @@ -1,23 +0,0 @@ -<? - // Set page title. - $this->headTitle($this->translate('Upgrade VuFind')); - - // Set up breadcrumbs: - $this->layout()->breadcrumbs = '<em>' . $this->transEsc('Upgrade VuFind') . '</em>'; - - // Set up styles: - $this->headstyle()->appendStyle( - ".pre {\n" - . " white-space:pre-wrap; width:90%; overflow-y:visible; padding:8px; margin:1em 2em; background:#EEE; border:1px dashed #CCC;\n" - . "}\n" - ); -?> -<h1><?=$this->transEsc('Upgrade VuFind')?></h1> -<?=$this->flashmessages()?> -<p>These SQL statements can be used to manually upgrade your database:</p> - -<textarea class="pre" rows="20" readonly onClick="this.select()"><?=trim($this->sql) ?></textarea> - -<form method="post" action="<?=$this->url('upgrade-showsql')?>"> - <input type="submit" name="continue" value="Next" /> -</form> \ No newline at end of file diff --git a/themes/blueprint/templates/web/home.phtml b/themes/blueprint/templates/web/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/web/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/web/results.phtml b/themes/blueprint/templates/web/results.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/web/results.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/worldcat/advanced.phtml b/themes/blueprint/templates/worldcat/advanced.phtml deleted file mode 100644 index 6a613a7e60856b907244312e3b2c80f0f38a990a..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/worldcat/advanced.phtml +++ /dev/null @@ -1,5 +0,0 @@ -<? - // There are no WorldCat-specific advanced search controls, so just load the - // standard advanced search layout: - echo $this->render('search/advanced/layout.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/templates/worldcat/home.phtml b/themes/blueprint/templates/worldcat/home.phtml deleted file mode 100644 index d13d4348c1e39e2222b5f16ce7d65ecd7816ef92..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/worldcat/home.phtml +++ /dev/null @@ -1 +0,0 @@ -<?=$this->render('search/home.phtml');?> \ No newline at end of file diff --git a/themes/blueprint/templates/worldcat/search.phtml b/themes/blueprint/templates/worldcat/search.phtml deleted file mode 100644 index c1797c1cd4a1ebb2ccad84718b1e225e51cac6a8..0000000000000000000000000000000000000000 --- a/themes/blueprint/templates/worldcat/search.phtml +++ /dev/null @@ -1,4 +0,0 @@ -<? - // Load standard settings from the default search results screen: - echo $this->render('search/results.phtml'); -?> \ No newline at end of file diff --git a/themes/blueprint/theme.config.php b/themes/blueprint/theme.config.php deleted file mode 100644 index 4f87dcb26948bdd547a89fc24ae80e0ea754390e..0000000000000000000000000000000000000000 --- a/themes/blueprint/theme.config.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -return array( - 'extends' => 'root', - 'css' => array( - 'blueprint/screen.css:screen, projection', - 'blueprint/print.css:print', - 'blueprint/ie.css:screen, projection:lt IE 8', - 'jquery-ui/css/smoothness/jquery-ui.css', - 'styles.css:screen, projection', - 'print.css:print', - 'ie.css:screen, projection:lt IE 8', - ), - 'js' => array( - 'jquery.min.js', - 'jquery.form.js', - 'jquery.metadata.js', - 'jquery.validate.min.js', - 'jquery-ui/js/jquery-ui.js', - 'lightbox.js', - 'common.js', - 'd3.js', - ), - 'favicon' => 'vufind-favicon.ico', - 'helpers' => array( - 'factories' => array( - 'layoutclass' => 'VuFind\View\Helper\Blueprint\Factory::getLayoutClass', - ), - 'invokables' => array( - 'search' => 'VuFind\View\Helper\Blueprint\Search', - ) - ) -); \ No newline at end of file